Task: Text to Code
Input (English): SQL: SELECT Avg ( T2.price_range ) FROM Ref_Hotel_Star_Ratings AS T1 JOIN Hotels AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.star_rating_description = 5
Feedback: Also determine that pets allowed yn equals 1 along with star rating description equals 5 in step 2.
Output (English): SELECT avg(price_range) FROM HOTELS WHERE star_rating_code  =  "5" AND pets_allowed_yn  =  1