What is the average number of floors for buildings in mecca ranked above 12?
CREATE TABLE table_name_40 (floors INTEGER, city VARCHAR, rank VARCHAR)
SELECT AVG(floors) FROM table_name_40 WHERE city = "mecca" AND rank < 12
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (floors INTEGER, city VARCHAR, rank VARCHAR) Question: What is the average number of floors for buildings in mecca ranked above 12? [/INST] SELECT AVG(floors) FROM table_name_40 WHERE city = "mecca" AND rank < 12 </s>