Task: Text to Code
Input (English): SQL: SELECT Avg ( T2.winner_rank ) , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.loser_id GROUP BY T1.first_name
Feedback: In step 1 Substitute matches with rankings , In step 2 substitute winner rank with ranking .
Output (English): SELECT avg(ranking) ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.first_name