What is the most common major among female (sex is F) students?
CREATE TABLE STUDENT (Major VARCHAR, major VARCHAR, Sex VARCHAR)
SELECT TOP 1 Major FROM STUDENT WHERE Sex = "F" GROUP BY major ORDER BY COUNT(*) DESC
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE STUDENT (Major VARCHAR, major VARCHAR, Sex VARCHAR) Question: What is the most common major among female (sex is F) students? [/INST] SELECT TOP 1 Major FROM STUDENT WHERE Sex = "F" GROUP BY major ORDER BY COUNT(*) DESC </s>