human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Average Ranking, Competitive Finish, Couple, Number Of Dances, Total Score, Average
###Question: What is the total score when 7 is the average ranking?
gpt
SELECT MAX Total Score FROM table WHERE Average Ranking = 7