parsed_query: processes and verifies the river query