Drafting general SQL generator.