Show each gender code and the corresponding count of guests sorted by the count in descending order.
CREATE TABLE Guests (gender_code VARCHAR)
SELECT gender_code, COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Guests (gender_code VARCHAR) Question: Show each gender code and the corresponding count of guests sorted by the count in descending order. [/INST] SELECT gender_code, COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC </s>