Understanding cardinality estimation using entropy maximization