SELECT count(*) ,  rank FROM captain WHERE age  <  50 GROUP BY rank
Count the number of captains younger than 50 of each rank.
SELECT count ( * ) , rank FROM captain WHERE age < 50 GROUP BY rank
select count ( * ) , rank from captain where age < value group by rank
Count the number of captains younger than 50 of each rank .