Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE HOTELS ( price_range INTEGER, star_rating_code VARCHAR, pets_allowed_yn VARCHAR )

### Question ###
Show the average price range of hotels that have 5 star ratings and allow pets.

### Accurate SQL ###

SELECT AVG(price_range) FROM HOTELS WHERE star_rating_code = "5" AND pets_allowed_yn = 1