select columns and where clauses as content