Function pathFromQuery

Takes a Query and returns the path it would represent in a Query API request URL.