Task: Text to Code
Input (English): SQL: SELECT Count ( * ) , winner_rank FROM matches GROUP BY winner_rank
Feedback: I need date of ranking in rankings table.
Output (English): SELECT sum(tours) ,  ranking_date FROM rankings GROUP BY ranking_date