SELECT gender_code ,  COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC
Sort the gender codes in descending order of their corresponding number of guests. Return both the gender codes and counts.
SELECT gender_code , COUNT ( * ) FROM Guests GROUP BY gender_code ORDER BY COUNT ( * ) DESC
select gender_code , count ( * ) from guests group by gender_code order by count ( * ) desc
Sort the gender codes in descending order of their corresponding number of guests . Return both the gender codes and counts .