Add support for sampled tables for aggregation queries