parses simple query with scalar fields