reconstruct queries.