A relational query engine that rewrites sql to find the most efficient execution path