Putting together a list of queries