Implemented #distinct, #where and #select.