txn->query() now combines result from staging area and real table data