A bunch of SQL expression stuff.