Which Ages have an Ofsted larger than 106172, and a School of oakgrove school?
CREATE TABLE table_name_45 (ages VARCHAR, ofsted VARCHAR, school VARCHAR)
SELECT ages FROM table_name_45 WHERE ofsted > 106172 AND school = "oakgrove school"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (ages VARCHAR, ofsted VARCHAR, school VARCHAR) Question: Which Ages have an Ofsted larger than 106172, and a School of oakgrove school? [/INST] SELECT ages FROM table_name_45 WHERE ofsted > 106172 AND school = "oakgrove school" </s>