presto-main/src/main/java/io/prestosql/sql/analyzer/Scope.java/Scope/containsNamedQuery
class Scope:        public boolean containsNamedQuery(String name)
        {
            return namedQueries.containsKey(name);
        }