...planned to be replaced later by a real AST based implementation, which acutally parses the query definitions