Name the least rank by average for number of dances less than 9 and competition finish of 5
CREATE TABLE table_name_62 (rank_by_average INTEGER, competition_finish VARCHAR, number_of_dances VARCHAR)
SELECT MIN(rank_by_average) FROM table_name_62 WHERE competition_finish = 5 AND number_of_dances < 9
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (rank_by_average INTEGER, competition_finish VARCHAR, number_of_dances VARCHAR) Question: Name the least rank by average for number of dances less than 9 and competition finish of 5 [/INST] SELECT MIN(rank_by_average) FROM table_name_62 WHERE competition_finish = 5 AND number_of_dances < 9 </s>