text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  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?
  ### Answer:
  SELECT AVG(floors) FROM table_name_40 WHERE city = "mecca" AND rank < 12