Instruct: What is the rank of the Nation that has fewer than 24 total medals are more than 7 Gold medals?
Output: SELECT AVG Rank FROM table WHERE Total < 24 AND Gold > 7