What is the average rank of Great Britain when their total is over 4?
CREATE TABLE table_name_80 (rank INTEGER, total VARCHAR, nation VARCHAR)
SELECT AVG(rank) FROM table_name_80 WHERE total > 4 AND nation = "great britain"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (rank INTEGER, total VARCHAR, nation VARCHAR) Question: What is the average rank of Great Britain when their total is over 4? [/INST] SELECT AVG(rank) FROM table_name_80 WHERE total > 4 AND nation = "great britain" </s>