Framework of the multiquery call