Chinastark/bird_dataset huggingface dataset:
Database: public_review_platform
Question: How many businesses operating in the shopping business have opening times before 8AM?
Evidence: shopping business refers to category_name = 'Shopping'; opening time before 8AM refers to opening_time < '8AM';
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 INNER JOIN Business_Hours AS T4 ON T3.business_id = T4.business_id WHERE T4.opening_time < '8AM' AND T1.category_name LIKE 'Shopping'
Database: public_review_platform
Question: Provide name of businesses whose category is pets and are still opened after 9PM.
Evidence: category refers to category_name; open after 9pm refers to closing_time > '9PM';
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 Business_Hours AS T4 ON T3.business_id = T4.business_id WHERE T4.closing_time > '9PM' AND T1.category_name LIKE 'Pets'
Database: public_review_platform
Question: How many businesses with the category are open from Monday to Thursday?
Evidence: open from Monday to Thursday refers to day_of_week BETWEEN Monday AND Thursday and day_id BETWEEN 2 AND 5;
SQL: SELECT COUNT(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 INNER JOIN Business_Hours AS T4 ON T3.business_id = T4.business_id INNER JOIN Days AS T5 ON T4.day_id = T5.day_id WHERE T5.day_of_week LIKE 'Monday' OR T5.day_of_week LIKE 'Tuesday' OR T5.day_of_week LIKE 'Wednesday' OR T5.day_of_week LIKE 'Thursday'
Database: public_review_platform
Question: Please indicate the review count of the "active life" businesses in Phoenix.
Evidence: active life refers to category_name = 'Active Life'; Phoenix refers to city = 'Phoenix';
SQL: SELECT COUNT(*) 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 = 'Active Life' AND T3.city = 'Phoenix'
Database: public_review_platform
Question: Please list the businesses name with a rating less than 5 whose category name is men's clothing.
Evidence: businesses name refers to business_id; rating refers to stars; stars < 5;
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 'Men''s Clothing' AND T3.stars < 5
Database: public_review_platform
Question: Which businesses are no longer in business but have a low number of votes useful?
Evidence: no longer in business refers to active = 'False'; low number of votes useful refers to review_votes_useful = 'Low';
SQL: SELECT DISTINCT T1.business_id 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.active LIKE 'FALSE' AND T1.review_votes_useful LIKE 'Low'
Database: public_review_platform
Question: Please list the businesses names whose length of user review is long with business id from 1 to 20.
Evidence: businesses names refers to business_id; length of user review is long refers to review_length = 'Long'; business_id BETWEEN 1 AND 20;
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 'Long' AND T3.category_id BETWEEN 1 AND 20 GROUP BY T4.category_name
Database: public_review_platform
Question: Please provide the attribute values ​​of the bussinesses with fashion in Scottsdale.
Evidence: fashion refers to category_name = 'Fashion'; Scottsdale refers to city = 'Scottsdale';
SQL: SELECT T2.attribute_value FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T1.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T4.category_name LIKE 'Fashion' AND T1.city LIKE 'Scottsdale'
Database: public_review_platform
Question: How many compliments received from medium users that Phoenix city achieved?
Evidence: medium refers to number_of_compliments = 'Medium';
SQL: SELECT COUNT(T1.number_of_compliments) FROM Users_Compliments AS T1 INNER JOIN Reviews AS T2 ON T1.user_id = T2.user_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T3.city LIKE 'Phoenix' AND T1.number_of_compliments LIKE 'Medium'
Database: public_review_platform
Question: Provide the businesses name in Tempe city whose opening hours are earlier than 8AM.
Evidence: opening hours refers to opening_time; earlier than 8AM refers to opening_time < '8AM';
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 INNER JOIN Business_Hours AS T4 ON T3.business_id = T4.business_id WHERE T3.city LIKE 'Tempe' AND T4.opening_time < '8AM'
Database: public_review_platform
Question: How many businesses in Glendale city that are still running is opened from 8AM to 6PM?
Evidence: still running refers to active = 'true'; opened from 8AM to 6PM refers to opening_time = '8AM' AND closing_time = '6PM';
SQL: SELECT COUNT(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 INNER JOIN Business_Hours AS T4 ON T3.business_id = T4.business_id WHERE T3.city LIKE 'Glendale' AND T4.opening_time LIKE '8AM' AND T4.closing_time LIKE '6PM'
Database: public_review_platform
Question: How many businesses are there in Phoenix city? Find the percentage of businesses in Phoenix city in the total city.
Evidence: percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix' END), COUNT(category_id)), 1.0);
SQL: SELECT SUM(CASE WHEN T3.city LIKE 'Phoenix' THEN 1 ELSE 0 END) AS "num" , CAST(SUM(CASE WHEN T3.city LIKE 'Phoenix' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.city) FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id
Database: public_review_platform
Question: How many cities have businesses with active life category? Find the percentage of the city where the review count that is low in total review count.
Evidence: category refers to category_name; percentage = MULTIPLY(DIVIDE(SUM(category_name = 'Active Life'), SUM(review_count = 'LOW')), 1.0);
SQL: SELECT SUM(CASE WHEN T2.category_name LIKE 'Active Life' THEN 1 ELSE 0 END) AS "num" , CAST(SUM(CASE WHEN T3.city LIKE 'Phoenix' THEN 1 ELSE 0 END) AS REAL) * 100 / ( SELECT COUNT(T3.review_count) FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id WHERE T3.review_count LIKE 'Low' ) FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id
Database: public_review_platform
Question: How many active businesses are there in Phoenix?
Evidence: active businesses refers to active = 'true'; Phoenix refers to city = 'Phoenix';
SQL: SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Phoenix' AND active LIKE 'TRUE'
Database: public_review_platform
Question: How many businesses in Scottsdale are rated as "wonderful experience"?
Evidence: Scottsdale refers to city = 'Scottsdale'; rated refers to stars; rated as wonderful experience refers to stars > 3;
SQL: SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Scottsdale' AND stars > 3
Database: public_review_platform
Question: What is the average rating of inactive businesses?
Evidence: rating refers to stars; inactive refers to active = 'False'; average rating of inactive businesses = DIVIDE(SUM(stars), COUNT(business_id));
SQL: SELECT CAST(SUM(stars) AS REAL) / COUNT(business_id) AS "average" FROM Business WHERE active LIKE 'FALSE'
Database: public_review_platform
Question: How many businesses in AZ state have the beer_and_wine attribute?
Evidence: beer_and_wine refers to attribute_value = 'beer_and_wine';
SQL: SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id WHERE T2.attribute_value LIKE 'beer_and_wine' AND T1.state LIKE 'AZ'
Database: public_review_platform
Question: Which city has the most businesses whose attribute is full_bar?
Evidence: most business refers to MAX(business_id); full_bar refers to attribute_value = 'full_bar';
SQL: SELECT T1.city FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id WHERE T2.attribute_value LIKE 'full_bar' GROUP BY T1.city
Database: public_review_platform
Question: How many businesses in the fashion industry are rated 5 stars?
Evidence: fashion industry refers to category_name = 'Fashion';
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 = 5 AND T3.category_name LIKE 'Fashion'
Database: public_review_platform
Question: Which city has the highest number of businesses in the food industry whose number of reviews is high?
Evidence: highest number of businesses refers to MAX(business_id); food industry refers to category_name = 'Food'; number of reviews is high refers to review_count = 'High';
SQL: SELECT T1.city 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.review_count LIKE 'High' AND T3.category_name LIKE 'Food' GROUP BY T1.city
Database: public_review_platform
Question: Please list all business IDs in Mesa city that review stars of over 3.
Evidence: stars > 3;
SQL: SELECT T1.business_id FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city LIKE 'Mesa' AND T2.review_stars > 3 GROUP BY T1.business_id
Database: public_review_platform
Question: Which city has the least number of businesses whose amount of funny votes is low?
Evidence: least number of businesses refers to MIN(business_id); funny votes is low refers to review_votes_funny = 'Low';
SQL: SELECT T1.city FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T2.review_votes_funny LIKE 'low' GROUP BY T1.city
Database: public_review_platform
Question: What percentage of businesses are in the Real Estate sector and have the rating of 5 out of all businesses in Chandler?
Evidence: Real Estate sector refers to category_name = 'Real Estate'; rating of 5 refers to stars = 5; Chandler refers to city = 'Chandler'; percentage = MULTIPLY(DIVIDE(SUM(category_name = 'Real Estate' and stars = 5), COUNT(business_id)), 100);
SQL: SELECT CAST(SUM(CASE WHEN T1.stars = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.business_id) 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 T1.city LIKE 'Chandler' AND T3.category_name LIKE 'Real Estate'
Database: public_review_platform
Question: How many users who started yelping since 2012 have sent a high number of funny votes?
Evidence: users who started yelping in 2012 refers to user_yelping_since_year = '2012'; high number of funny votes refers to user_votes_funny = 'High';
SQL: SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year = 2012 AND user_votes_funny LIKE 'High'
Database: public_review_platform
Question: What is the number of useful votes that the user 52592 received when reviewed for business number 2?
Evidence: number of useful votes refers to review_votes_useful; business number refers to business_id;
SQL: SELECT review_votes_useful FROM Reviews WHERE user_id = 52592 AND business_id = 2
Database: public_review_platform
Question: What are the attribute numbers that are related to payment?
Evidence: attribute numbers refers to attribute_id; related to payment refers to attribute_name like '%payment%';
SQL: SELECT attribute_id FROM Attributes WHERE attribute_name LIKE '%payment%'
Database: public_review_platform
Question: How long was the review for business number 2 that user number 612 wrote?
Evidence: how long was the review refers to review_length; business number refers to business_id; user number refers to user_id;
SQL: SELECT review_length FROM Reviews WHERE user_id = 612 AND review_stars = 5 AND business_id = 2
Database: public_review_platform
Question: How many businesses are actively running in Gilbert City?
Evidence: actively running refers to active = 'true';
SQL: SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Gilbert' AND active LIKE 'True'
Database: public_review_platform
Question: How many businesses in the AZ state got low quality of reviews?
Evidence: low quality of reviews refers to review_count = 'low';
SQL: SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ' AND review_count LIKE 'Low'
Database: public_review_platform
Question: Please state any three business numbers in AZ state that have received the "Great experience" review stars.
Evidence: business numbers refers to business_id; great experience review stars refers to review_stars = 5;
SQL: SELECT DISTINCT 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.review_stars = 5 LIMIT 3
Database: public_review_platform
Question: Please name one attribute that business number 2 does not have.
Evidence: business number refers to business_id; business_id = 2; does not have refers to attribute_value = 'none';
SQL: SELECT T1.attribute_name FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T2.attribute_value LIKE 'none' LIMIT 1
Database: public_review_platform
Question: How many "cool" compliments did user number 33 receive?
Evidence: cool compliments refers to compliment_type = 'cool'; user number refers to user_id;
SQL: SELECT COUNT(T2.compliment_type) FROM Users_Compliments AS T1 INNER JOIN Compliments AS T2 ON T1.compliment_id = T2.compliment_id WHERE T1.user_id = 33 AND T2.compliment_type LIKE 'cool'
Database: public_review_platform
Question: What are the opening hours of business number 53 on Friday?
Evidence: opening hours refers to opening_time; business number refers to business_id; Friday refers to day_of_week = 'Friday';
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 'Friday' AND T1.business_id = 53
Database: public_review_platform
Question: What are the attributes that business number 56 have?
Evidence: business number refers to business_id; attributes that business have refers to attribute_value = 'true';
SQL: SELECT T1.attribute_name FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T2.attribute_value LIKE 'TRUE' AND T2.business_id = 56
Database: public_review_platform
Question: What are the categories that business number 15 belongs to?
Evidence: business number refers to business_id;
SQL: SELECT T2.category_name FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id WHERE T1.business_id = 15
Database: public_review_platform
Question: How many businesses are there in Scottsdale city under the category of "Beauty & Spas"?
Evidence: category refers to category_name;
SQL: SELECT COUNT(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 T3.city LIKE 'Scottsdale' AND T1.category_name LIKE 'Beauty & Spas'
Database: public_review_platform
Question: Please list any two user numbers that have an "Uber" number of cute compliments.
Evidence: user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';
SQL: SELECT 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 'Uber' AND T2.compliment_type LIKE 'cute' LIMIT 2
Database: public_review_platform
Question: How many businesses operating in the "Accessories" category have received a "wonderful experience" review from users?
Evidence: Accessories category refers to category_name = 'Accessories'; wonderful experience review refers to stars > 3;
SQL: SELECT COUNT(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 T3.stars > 3 AND T1.category_name LIKE 'Accessories'
Database: public_review_platform
Question: How long does business number 12 in Scottsdale stay open on day number 3?
Evidence: business number refers to business_id; Scottsdale refers to city = 'Scottsdale'; day number refers to day_id;
SQL: SELECT T2.closing_time - T2.opening_time AS "hour" FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T1.business_id = 12 AND T1.city LIKE 'Scottsdale' AND T2.day_id = 3
Database: public_review_platform
Question: How many businesses in AZ state do not open on Thursday?
Evidence: do not open on Thursday refers to day_of_week = 'Thursday' AND label_time_4 = 'None';
SQL: SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Checkins AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.label_time_4 LIKE 'None' AND T1.state LIKE 'AZ' AND T3.day_of_week LIKE 'Thursday'
Database: public_review_platform
Question: How many businesses of Yelp are in Scottsdale?
Evidence: Scottsdale refers to city = 'Scottsdale';
SQL: SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Scottsdale'
Database: public_review_platform
Question: Among the Yelp_Businesses in Arizona, how many of them are still running?
Evidence: Arizona refers to state = 'AZ'; still running refers to active = 'true';
SQL: SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ' AND active LIKE 'True'
Database: public_review_platform
Question: How many Yelp_Businesses in Scottsdale have received positive comments in the Elitestar rating?
Evidence: Scottsdale refers to city = 'Scottsdale'; positive comments refers to stars > 3; Elitestar rating refers to stars;
SQL: SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Scottsdale' AND stars > 3
Database: public_review_platform
Question: Which city has more Yelp_Business that's more appealing to users, Scottsdale or Anthem?
Evidence: more appealing to users refers to MAX(review_count);
SQL: SELECT city FROM Business ORDER BY review_count DESC LIMIT 1
Database: public_review_platform
Question: How many Yelp_Businesses in Arizona have a Elitestar rating of over 4?
Evidence: Arizona refers to state = 'AZ'; Elitestar rating of over 4 refers to stars > 4;
SQL: SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ' AND stars > 4
Database: public_review_platform
Question: How many Yelp_Businesses are there in Arizona in total?
Evidence: Arizona refers to state = 'AZ';
SQL: SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ'
Database: public_review_platform
Question: Please list the cities of the Yelp_Businesses that have gotten a 5 in the Elitestar rating.
Evidence: 5 in the Elitestar rating refers to stars = 5;
SQL: SELECT city FROM Business WHERE stars = 5 GROUP BY city
Database: public_review_platform
Question: How many reviews have the user whose ID is 3 posted?
SQL: SELECT COUNT(review_length) FROM Reviews WHERE user_id = 3
Database: public_review_platform
Question: How many reviews made by user whose ID is 3 are long?
Evidence: long refers to review_length = 'Long';
SQL: SELECT COUNT(review_length) FROM Reviews WHERE user_id = 3 AND review_length LIKE 'Long'
Database: public_review_platform
Question: Among the long reviews made by user ID 3, how many of them have received a medium number of useful votes?
Evidence: long reviews refers to review_length = 'Long'; medium number of useful votes refers to review_votes_useful = 'medium';
SQL: SELECT COUNT(review_length) FROM Reviews WHERE user_id = 3 AND review_length LIKE 'Long' AND review_votes_useful LIKE 'Medium'
Database: public_review_platform
Question: How many users have joined Yelp since the year 2012?
Evidence: since year 2012 refers to user_yelping_since_year = '2012'
SQL: SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year = 2012
Database: public_review_platform
Question: Please list the IDs of the users who have a high number of followers.
Evidence: high number of followers refers to user_fans = 'High'
SQL: SELECT user_id FROM Users WHERE user_fans LIKE 'High' GROUP BY user_id
Database: public_review_platform
Question: How many Yelp_Businesses do not provide alcohol?
Evidence: do not provide alcohol refers to attribute_name = 'Alcohol'and attribute_value = 'none'

SQL: SELECT COUNT(T1.attribute_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.attribute_name LIKE 'Alcohol' AND T2.attribute_value LIKE 'none'
Database: public_review_platform
Question: Among the Yelp_Businesses in Arizona, how many of them do not provide alcohol?
Evidence: Arizona refers to state = 'AZ'; do not provide alcohol refers to attribute_name = 'Alcohol' and attribute_value = 'none'
SQL: SELECT COUNT(T2.business_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.attribute_name LIKE 'Alcohol' AND T2.attribute_value LIKE 'none' AND T3.state LIKE 'AZ'
Database: public_review_platform
Question: Please list the business IDs of all the Yelp_Businesses that are good for kids.
Evidence: good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'

SQL: SELECT T2.business_id FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.attribute_name LIKE 'Good for Kids' AND T2.attribute_value LIKE 'TRUE'
Database: public_review_platform
Question: How many Yelp_Business falls under the category of "Shopping"?
Evidence: category of "Shopping" refers to category_name = 'Shopping'
SQL: SELECT COUNT(T1.category_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id WHERE T1.category_name LIKE 'Shopping'
Database: public_review_platform
Question: Under which categories is Yelp_Business no. 1?
Evidence: categories refers to category_name; Yelp_Business no.1 refers to business_id = 1
SQL: SELECT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id WHERE T2.business_id = 1
Database: public_review_platform
Question: Among the Yelp_Businesses which are still running, how many of them fall under the category of "Food"?
Evidence: are still running refers to active = 'true'; 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 INNER JOIN Tips AS T4 ON T3.business_id = T4.business_id WHERE T1.category_name LIKE 'Food' AND T3.active LIKE 'TRUE'