Implement Where for SelectStatement type.