Query (similar to SQL query) parser