QUERIES has to be fully initialized before getQuery() is called