basic framework for where clause and select clause