Task: Text to Code
Input (English): Find the average ranking for each player and their first name.
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