query: SELECT count(*) ,  flag FROM ship GROUP BY flag
question: Group by ships by flag, and are returning number of ships have each flag.
query_toks: SELECT count ( * ) , flag FROM ship GROUP BY flag
query_toks_no_value: select count ( * ) , flag from ship group by flag
question_toks: Group by ships by flag, and are returning number of ships have each flag.