Group multiple queries per request in transaction