Chinastark/bird_dataset huggingface dataset:
Database: public_review_platform
Question: How many Yelp_Business in Anthem are under the category of "Food"?
Evidence: in Anthem refers to city = 'Anthem'; the category of "Food" refers to category_name = 'Food'
SQL: SELECT COUNT(T3.business_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.category_name LIKE 'Food' AND T3.city LIKE 'Anthem'
Database: public_review_platform
Question: Please list the business ID of the Yelp_Business with the highest Elitestar rating under the category "Food".
Evidence: under the category "Food" refers to category_name = 'Food'
SQL: SELECT T2.business_id FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.category_name LIKE 'Food' ORDER BY T3.stars DESC LIMIT 1
Database: public_review_platform
Question: How many Yelp_Business under the category of "Food" are good for kids?
Evidence: under the category of "Food" refers to category_name = 'Food'; are good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'
SQL: SELECT COUNT(T3.stars) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Business_Attributes AS T4 ON T3.business_id = T4.business_id INNER JOIN Attributes AS T5 ON T4.attribute_id = T5.attribute_id WHERE T1.category_name LIKE 'Food' AND T5.attribute_name LIKE 'Good for Kids' AND T4.attribute_value LIKE 'TRUE'
Database: public_review_platform
Question: How many Yelp_Business in Arizona has user no. 3 reviewed?
Evidence: in Arizona refers to state = 'AZ'; user no. 3 refers to user_id = 3
SQL: SELECT COUNT(T2.business_id) FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T2.state LIKE 'AZ' AND T1.user_id = 3
Database: public_review_platform
Question: Please list all the categories of the Yelp_Business in Arizona.
Evidence: categories refers to category_name; in Arizona refers to state = 'AZ'
SQL: SELECT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T3.state LIKE 'AZ' GROUP BY T1.category_name
Database: public_review_platform
Question: How long does Yelp_Business no.1 open on Tuesdays?
Evidence: "How long" and "how much time" are synonyms; how much time does this business open refers to subtract(closing_time, opening_time); Yelp_Business no.1 refers to business_id = 1; Tuesdays refers to day_of_week = 'Tuesday'
SQL: SELECT T1.closing_time - T1.opening_time AS "opening hours" FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T2.day_of_week LIKE 'Tuesday' AND T1.business_id = 1
Database: public_review_platform
Question: When does Yelp_Business no.1 open on Tuesdays?
Evidence: Yelp_Business no.1 refers to business_id = 1; open on refers to opening_time; Tuesdays refers to day_of_week = 'Tuesday'
SQL: SELECT T1.opening_time FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T2.day_of_week LIKE 'Tuesday' AND T1.business_id = 1
Database: public_review_platform
Question: How many Yelp_Business close after 8PM on Mondays?
Evidence: close after 8PM refers to closing_time = '9PM' or closing_time = '10PM' closing_time = '11PM' closing_time = '12PM'; Mondays refers to day_of_week = 'Monday'
SQL: SELECT COUNT(T1.business_id) FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T2.day_of_week LIKE 'Monday' AND T1.closing_time > '8PM'
Database: public_review_platform
Question: Please list the opening time on Mondays of all the Yelp_Businesses in Anthem that are still running.
Evidence: Mondays refers to day_of_week = 'Monday'; in Anthem refers to city = 'Anthem'; are still running refers to active = 'true'
SQL: SELECT T1.opening_time FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id WHERE T2.day_of_week LIKE 'Monday' AND T3.city LIKE 'Anthem' AND T3.active LIKE 'True' GROUP BY T1.opening_time
Database: public_review_platform
Question: Among the Yelp_Business in Arizona, how many of them closes at 12PM on Sundays?
Evidence: in Arizona refers to state = 'AZ'; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'
SQL: SELECT COUNT(T1.business_id) FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id WHERE T2.day_of_week LIKE 'Sunday' AND T1.closing_time LIKE '12PM' AND T3.state LIKE 'AZ'
Database: public_review_platform
Question: Please list the categories of the Yelp_Business that closes at 12PM on Sundays.
Evidence: categories refers to category_name; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'
SQL: SELECT T4.category_name FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business_Categories AS T3 ON T1.business_id = T3.business_id INNER JOIN Categories AS T4 ON T4.category_id = T4.category_id WHERE T1.closing_time = '12PM' AND T2.day_of_week = 'Sunday' GROUP BY T4.category_name
Database: public_review_platform
Question: How many "Good for Kids" Yelp_Businesses are open everyday of the week?
Evidence: Good for Kids refers to attribute_name = 'Good for Kids'and attribute_value = 'true'; open everyday refers to day_id between 1 and 7
SQL: SELECT COUNT(T1.business_id) FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business_Attributes AS T3 ON T1.business_id = T3.business_id INNER JOIN Attributes AS T4 ON T4.attribute_id = T4.attribute_id WHERE T2.day_id IN (1, 2, 3, 4, 5, 6, 7) AND T4.attribute_name = 'Good for Kids' AND T3.attribute_value = 'true'
Database: public_review_platform
Question: How many users became an elite user the same year they joined Yelp?
Evidence: became an elite user the same year they joined Yelp refers to user_yelping_since_year = year_id
SQL: SELECT COUNT(T1.user_id) FROM Users AS T1 INNER JOIN Elite AS T2 ON T1.user_id = T2.user_id WHERE T1.user_yelping_since_year = T2.year_id
Database: public_review_platform
Question: What is the longest business time on Mondays for a Yelp_Business under the category "Shopping"?
Evidence: longest business time refers to max(subtract(closing_time, opening_time)); on Mondays refers to day_of_week = 'Monday';  category "Shopping" refers to category_name = 'Shopping'
SQL: SELECT T1.closing_time + 12 - T1.opening_time AS "hour" FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id INNER JOIN Business_Categories AS T4 ON T3.business_id = T4.business_id INNER JOIN Categories AS T5 ON T4.category_id = T5.category_id WHERE T2.day_of_week LIKE 'Monday' AND T5.category_name LIKE 'Shopping' ORDER BY T1.closing_time + 12 - T1.opening_time DESC LIMIT 1
Database: public_review_platform
Question: Please list the business IDs of the Yelp_Business that have a business time of longer than 12 hours on Sundays.
Evidence: business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'
SQL: SELECT T1.business_id FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id WHERE T1.closing_time + 12 - T1.opening_time > 12 AND T2.day_of_week LIKE 'Sunday' GROUP BY T1.business_id
Database: public_review_platform
Question: How many elite users have reviewed Yelp_Business no.1?
Evidence: Yelp_Business no.1 refers to business_id = 1
SQL: SELECT COUNT(T1.user_id) FROM Users AS T1 INNER JOIN Elite AS T2 ON T1.user_id = T2.user_id INNER JOIN Reviews AS T3 ON T1.user_id = T3.user_id WHERE T3.business_id = 1
Database: public_review_platform
Question: Among the users who have posted more than 10 reviews, how many users are elite users?
Evidence: posted more than 10 reviews refers to count(Reviews.user_id) > 10
SQL: SELECT COUNT(T4.user_id) FROM ( SELECT T1.user_id FROM Users AS T1 INNER JOIN Elite AS T2 ON T1.user_id = T2.user_id INNER JOIN Reviews AS T3 ON T1.user_id = T3.user_id WHERE T3.user_id IS NOT NULL GROUP BY T3.user_id HAVING COUNT(T3.user_id) > 10 ) T4
Database: public_review_platform
Question: Which Yelp_Business in Arizona gets the most number of reviews?
Evidence: Arizona refers to state = 'AZ'; gets the most number of reviews refers to max(count(Reviews.business_id))
SQL: SELECT T1.user_id FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T2.state LIKE 'AZ' GROUP BY T1.user_id ORDER BY COUNT(T1.user_id) DESC LIMIT 1
Database: public_review_platform
Question: How many stars on average does a Yelp_Business in Anthem get from a user review?
Evidence: in Anthem refers to city = 'Anthem'; stars on average = avg(review_stars)
SQL: SELECT AVG(T2.review_stars) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city LIKE 'Anthem'
Database: public_review_platform
Question: How many stars on average does user no.3 give to Yelp_Business in Arizona?
Evidence: user no.3 refers to user_id = 3; in Arizona refers to state = 'AZ'; stars on average = avg(review_stars(user_id = 3))
SQL: SELECT AVG(T2.review_stars) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.state LIKE 'AZ' AND T2.user_id = 3
Database: public_review_platform
Question: What is the average business time for Yelp_Business no.1 on weekends?
Evidence: Yelp_Business no.1 refers to business_id = 1; on weekends refers to day_of_week = 'Saturday' or day_of_week = 'Sunday'; average business time refers to DIVIDE(SUBTRACT(closing_time, opening_time), 2)
SQL: SELECT T1.closing_time + 12 - T1.opening_time AS "avg opening hours" FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T1.business_id = 1 AND (T2.day_of_week = 'Sunday' OR T2.day_of_week = 'Sunday')
Database: public_review_platform
Question: What is the average Elitestar rating for a Yelp_Business that closes at 12PM on Sundays?
Evidence: average Elitestar rating refers to DIVIDE(SUM(stars), COUNT(business_id)); closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'
SQL: SELECT CAST(SUM(T3.stars) AS REAL) / COUNT(T1.business_id) AS "average stars" FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id WHERE T2.day_of_week LIKE 'Sunday' AND T1.closing_time LIKE '12PM'
Database: public_review_platform
Question: How many of the busineses are in Casa Grande?
Evidence: in Casa Grande refers to city = 'Casa Grande'
SQL: SELECT COUNT(city) FROM Business WHERE city LIKE 'Casa Grande'
Database: public_review_platform
Question: What is the total number of active businesses in AZ with a low review count?
Evidence: active businesses refers to active = 'true'; in AZ refers to state = 'AZ'

SQL: SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ' AND active LIKE 'True' AND review_count LIKE 'low'
Database: public_review_platform
Question: List down the business ID with a star range from 2 to 3, located at Mesa.
Evidence: star range from 2 to 3 refers to stars > = 2 AND stars < 4;  located at Mesa refers to city = 'Mesa'
SQL: SELECT business_id FROM Business WHERE city LIKE 'Mesa' AND stars BETWEEN 2 AND 3
Database: public_review_platform
Question: In users yelping since 2011 to 2013, how many of them have high count of fans?
Evidence: In users yelping since 2011 to 2013 refers to user_yelping_since_year > = 2011 AND user_yelping_since_year < 2014
SQL: SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year BETWEEN 2011 AND 2013 AND user_fans LIKE 'High'
Database: public_review_platform
Question: What is the review length of user 35026 to business with business ID 2?
Evidence: user 35026 refers to user_id = 35026
SQL: SELECT review_length FROM Reviews WHERE user_id = 35026 AND business_id = 2
Database: public_review_platform
Question: Among the businesses in Chandler, list the attribute of the business with a low review count.
Evidence: in Chandler refers to city = 'Chandler'; attribute refers to attribute_name
SQL: SELECT DISTINCT T3.attribute_id, T3.attribute_name FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.attribute_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.review_count = 'Low' AND T1.city = 'Chandler'
Database: public_review_platform
Question: In businesses with a category of mexican, how many of them has a star rating below 4?
Evidence: category of mexican refers to category_name = 'Mexican'; star rating below 4 refers to stars < 4
SQL: SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.stars < 4 AND T3.category_name LIKE 'Mexican'
Database: public_review_platform
Question: List the active business ID and its stars of the businesses fall under the category of Fashion.
Evidence: active business refers to active = 'true'; category of Fashion refers to category = 'Fashion'
SQL: SELECT T1.business_id, T1.stars FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.active LIKE 'TRUE' AND T3.category_name LIKE 'Fashion'
Database: public_review_platform
Question: What is the category of businesses with highest star rating?
Evidence: category refers to category_name; highest star rating refers to max(stars)
SQL: SELECT T3.category_name FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id ORDER BY T1.stars DESC LIMIT 1
Database: public_review_platform
Question: What is the category of the business with medium review length and highest review stars within business ID from 6 t0 9?
Evidence: category refers to category_name; highest review stars refers to max(review_stars); business ID from 6 to 9 refers to business_id between 6 and 9
SQL: SELECT T4.category_name FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T1.review_length LIKE 'Medium' AND T2.business_id BETWEEN 6 AND 9 ORDER BY T1.review_stars DESC LIMIT 1
Database: public_review_platform
Question: Count the active businesses that has an attribute of caters with low review count.
Evidence: active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'
SQL: SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T3.attribute_name LIKE 'Caters' AND T1.review_count LIKE 'Low' AND T1.active LIKE 'TRUE'
Database: public_review_platform
Question: What is the closing and opening time of businesses located at Tempe with highest star rating?
Evidence: located at Tempe refers to city = 'Tempe'; highest star rating refers to max(stars)
SQL: SELECT T2.closing_time, T2.opening_time FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T1.city LIKE 'Tempe' ORDER BY T1.stars DESC LIMIT 1
Database: public_review_platform
Question: Among the active businesses located at Chandler, AZ, list the category and atrributes of business with a medium review count.
Evidence: active businesses refers to active = 'true'; located at Chandler, AZ refers to city = 'Chandler', state = 'AZ'; category refers to category_name; atrributes refers to attribute_name
SQL: SELECT T3.category_name, T5.attribute_name FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id INNER JOIN Business_Attributes AS T4 ON T1.business_id = T4.business_id INNER JOIN Attributes AS T5 ON T4.attribute_id = T5.attribute_id WHERE T1.active LIKE 'TRUE' AND T1.state LIKE 'AZ' AND T1.city LIKE 'Chandler' AND T1.review_count LIKE 'Medium'
Database: public_review_platform
Question: List the categories of active businesses in Surprise, AZ.
Evidence: categories refers to category_name; active businesses refers to active = 'true'; in Surprise, AZ refers to city = 'Surprise' and state = 'AZ'
SQL: SELECT T3.category_name FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.active LIKE 'TRUE' AND T1.state LIKE 'AZ' AND T1.city LIKE 'Surprise' GROUP BY T3.category_name
Database: public_review_platform
Question: Find the location of businesses that have business hours from 8 am to 9 pm every Friday.
Evidence: location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'
SQL: SELECT T1.city FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.closing_time LIKE '9PM' AND T2.opening_time LIKE '8AM' AND T3.day_of_week LIKE 'Friday' GROUP BY T1.city
Database: public_review_platform
Question: What is the attribute value of an active business with a high review count and 3 stars which is located at Mesa, AZ?
Evidence: active business refers to active = 'true'; located at Mesa, AZ refers to city = 'Mesa', state = 'AZ'
SQL: SELECT T2.attribute_value FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.state LIKE 'AZ' AND T1.review_count LIKE 'High' AND T1.active LIKE 'TRUE' AND T1.city LIKE 'Mesa' AND T1.stars = 3
Database: public_review_platform
Question: What is the opening time of the active businesses in Chandler that has a medium review count.
Evidence: active businesses refers to active = 'true'; in Chandler refers to city = 'Chandler'
SQL: SELECT DISTINCT T2.opening_time FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Chandler' AND T1.active LIKE 'TRUE' AND T1.review_count LIKE 'Medium'
Database: public_review_platform
Question: Among the businesses with a category of Accessories, what is the percentage of the business with less than 4 stars?
Evidence: category of Accessories refers to category_name = 'Accessories'; percentage of the business with less than 4 stars = divide(count(Business.business_id(stars < 4)), count(Business.business_id)) * 100%
SQL: SELECT CAST(SUM(CASE WHEN T1.stars < 4 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.stars) AS "percentage" FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T3.category_name LIKE 'Accessories'
Database: public_review_platform
Question: List the closing time and day of week of active businesses in Tempe with stars greater than the 70% of average age of star rating.
Evidence: active businesses refers to active = 'true'; in Tempe refers to city = 'Tempe'; with stars greater than the 70% of average age of star rating refers to stars > DIVIDE(sum(stars), COUNT(business_id)) * 70%
SQL: SELECT T2.closing_time, T3.day_of_week FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Tempe' AND T1.active LIKE 'TRUE' AND T1.stars > 0.7 * ( SELECT AVG(T1.stars) FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Tempe' AND T1.active LIKE 'TRUE' )
Database: public_review_platform
Question: How many active businesses are located at Phoenix, Arizona?
Evidence: active business refers to active = 'true'; 'Phoenix' is the city
SQL: SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Phoenix' AND active LIKE 'True'
Database: public_review_platform
Question: How many businesses are with high review count?
Evidence: high review count refers to review_count = 'High'
SQL: SELECT COUNT(business_id) FROM Business WHERE review_count LIKE 'High'
Database: public_review_platform
Question: How many businesses ID sell beer and wine?
Evidence: attribute_value = 'beer_and_wine'
SQL: SELECT COUNT(business_id) FROM Business_Attributes WHERE attribute_id = 1 AND attribute_value = 'beer_and_wine'
Database: public_review_platform
Question: How many attributes ID owned by business ID 2?
SQL: SELECT COUNT(attribute_id) FROM Business_Attributes WHERE business_id = 2
Database: public_review_platform
Question: How many users received high compliment type in photo?
Evidence: high compliments refers to number_of_compliments = 'High'; type in photo refers to compliment_ID = 1
SQL: SELECT COUNT(T1.user_id) FROM Users_Compliments AS T1 INNER JOIN Compliments AS T2 ON T1.compliment_id = T2.compliment_id WHERE T1.number_of_compliments LIKE 'High' AND T2.compliment_id = 1
Database: public_review_platform
Question: How many businesses in Phoenix, Arizona is attributed to waiter service?
Evidence: 'Phoenix' is the city; waiter service refers to attribute_name = 'waiter_services'
SQL: SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.city LIKE 'Phoenix' AND T3.attribute_name LIKE 'waiter_service' AND T2.attribute_id = 2
Database: public_review_platform
Question: Find out which business is opened for 24/7 and list out what is the business attribute.
Evidence: opened for 24/7 refers to Business_Hours WHERE opening_time = closing_time and business_id COUNT(day_id) = 7; business attribute refers to attribute_name
SQL: SELECT T5.attribute_name FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id INNER JOIN Business_Attributes AS T4 ON T3.business_id = T4.business_id INNER JOIN Attributes AS T5 ON T4.attribute_id = T5.attribute_id WHERE T2.day_id LIKE '1' AND '2' AND '3' AND '4' AND '5' AND '6' AND '7' AND T1.opening_time = T1.closing_time GROUP BY T5.attribute_name
Database: public_review_platform
Question: Which business in fashion category has the most review?
Evidence: 'Fashion' is the category_name; most review refers to Max(Count(user_id))
SQL: SELECT T3.business_id FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Reviews AS T4 ON T3.business_id = T4.business_id WHERE T1.category_name LIKE 'Fashion' AND T1.category_id = 7 GROUP BY T3.business_id ORDER BY COUNT(T4.user_id) DESC LIMIT 1
Database: public_review_platform
Question: List out which business category that are most likely to have average good review in Arizona?
Evidence: average good review refers to review_count > = 3; Arizona refers to state = 'AZ'; business category refers to category_name
SQL: SELECT DISTINCT T4.category_name FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T2.state LIKE 'AZ' AND T1.review_stars >= 3