Parses through query of given route"