multi-partition query