Get queries from the url