Show the number of buildings with a height above the average or a number of floors above the average.
CREATE TABLE building (height_feet INTEGER, floors INTEGER)
SELECT COUNT(*) FROM building WHERE height_feet > (SELECT AVG(height_feet) FROM building) OR floors > (SELECT AVG(floors) FROM building)
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE building (height_feet INTEGER, floors INTEGER) Question: Show the number of buildings with a height above the average or a number of floors above the average. [/INST] SELECT COUNT(*) FROM building WHERE height_feet > (SELECT AVG(height_feet) FROM building) OR floors > (SELECT AVG(floors) FROM building) </s>