Functional pearl: a SQL to C compiler in 500 lines of code
Efficiently Compiling Efficient Query Plans for Modern Hardware