[sql] preliminary expression code (still WIP)