Cutting down query processing cost through Random Sampling