how many people are there whose weight is higher than 85 for each gender?
CREATE TABLE people (sex VARCHAR, weight INTEGER)
SELECT COUNT(*), sex FROM people WHERE weight > 85 GROUP BY sex
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE people (sex VARCHAR, weight INTEGER) Question: how many people are there whose weight is higher than 85 for each gender? [/INST] SELECT COUNT(*), sex FROM people WHERE weight > 85 GROUP BY sex </s>