A minimal tsql generator