Add some documentation to parse query