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