Show the average price of hotels for different pet policy.
CREATE TABLE HOTELS (pets_allowed_yn VARCHAR, price_range INTEGER)
SELECT pets_allowed_yn, AVG(price_range) FROM HOTELS GROUP BY pets_allowed_yn
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE HOTELS (pets_allowed_yn VARCHAR, price_range INTEGER) Question: Show the average price of hotels for different pet policy. [/INST] SELECT pets_allowed_yn, AVG(price_range) FROM HOTELS GROUP BY pets_allowed_yn </s>