Sample function to get queries, location and occurances.