Database: ship_1
Question: How many captains with younger than 50 are in each rank?
SQL:
SELECT count(*) ,  rank FROM captain WHERE age  <  50 GROUP BY rank