presto-main/src/main/java/io/prestosql/sql/analyzer/Scope.java/Scope/isColumnReference
class Scope:    private static boolean isColumnReference(QualifiedName name, RelationType relation)
    {
        while (name.getPrefix().isPresent()) {
            name = name.getPrefix().get();
            if (!relation.resolveFields(name).isEmpty()) {
                return true;
            }
        }
        return false;
    }