Task: Text to Code
Input (English): Show all the ranks and the number of male and female faculty for each rank.
Output (English): SELECT rank ,  sex ,  count(*) FROM Faculty GROUP BY rank ,  sex