Instruct: What was the average rank for the team that had more than 5 medals and more than 6 gold medals?
Output: SELECT AVG Rank FROM table WHERE Total > 5 AND Gold > 6