A SQL to C compiler in 500 lines of code