Batch query debugging