Where clause compilation