now supports queries which involve multiple responses