Compiler for an optimized algebraic SQL.