Add the query_url method

This exposes a method that return the URL for a query without running it