Statement: the last record for both the highest totalling name and the lowest totalling name were recorded in the month of may

Input Table: list of sumo record holders

nametotalfirstlasthighest_rank
kotonishiki341990-09-011999-09-01sekiwake
kaiō321994-05-012000-07-01ōzeki
musōyama311994-03-012000-09-01ōzeki
hasegawa301965-11-011974-09-01sekiwake
kotomitsuki302001-01-012007-07-01ōzeki
akinoshima271988-11-012000-09-01sekiwake
takamiyama271969-11-011982-09-01sekiwake
takatōriki261991-05-012000-05-01sekiwake
wakanosato262000-11-012005-09-01sekiwake
daikirin221966-11-011970-09-01ōzeki
tochiazuma ii221997-07-012005-01-01ōzeki
kisenosato222006-07-012011-09-01ōzeki

SQL Command:

SELECT CASE WHEN (SELECT strftime('%m', last) FROM table_sql WHERE total = (SELECT MAX(total) FROM table_sql)) = '05' AND (SELECT strftime('%m', last) FROM table_sql WHERE total = (SELECT MIN(total) FROM table_sql)) = '05' THEN 'TRUE' ELSE 'FALSE' END;