added codegen for basic WHERE construct