Chinastark/bird_dataset huggingface dataset:
Database: restaurant
Note: Drive Street refers to street_name = 'drive'; San Rafael refers to city = 'san rafael'; American food refers to food_type <> 'american';
Question: What restaurant on Drive Street in San Rafael doesn't serve American food?
SQL: SELECT generalinfo.label FROM generalinfo INNER JOIN LOCATION ON generalinfo.id_restaurant = LOCATION.id_restaurant WHERE LOCATION.street_name = 'drive' AND generalinfo.food_type != 'american' AND LOCATION.city = 'san rafael'
Database: restaurant
Note: street refers to street_name; review of 1.7 refers to review = 1.7;
Question: On which streets in the city of San Francisco are there restaurants with a review of 1.7?
SQL: SELECT LOCATION.street_name FROM generalinfo INNER JOIN LOCATION ON generalinfo.id_restaurant = LOCATION.id_restaurant WHERE generalinfo.city = 'san francisco' AND generalinfo.review = 1.7
Database: restaurant
Note: restaurant refers to label; street Alameda de las Pulgas refers to street_name = 'avenida de las pulgas'; the worst rated refers to min(review);
Question: Which restaurant on the street Alameda de las Pulgas in the city of Menlo Park is the worst rated?
SQL: SELECT generalinfo.label FROM LOCATION INNER JOIN generalinfo ON LOCATION.id_restaurant = generalinfo.id_restaurant WHERE LOCATION.street_name = 'avenida de las pulgas' AND generalinfo.city = 'menlo park' ORDER BY review LIMIT 1
Database: restaurant
Note: street refers to street_name; Good Heavens restaurant refers to label = 'good heavens';
Question: On what street in Tuolumne County is Good Heavens restaurant located?
SQL: SELECT LOCATION.street_name FROM LOCATION INNER JOIN generalinfo ON LOCATION.id_restaurant = generalinfo.id_restaurant INNER JOIN geographic ON generalinfo.city = geographic.city WHERE generalinfo.label = 'good heavens' AND geographic.county = 'tuolumne county'
Database: restaurant
Note: street numbers refers to street_num; Aux Delices Vietnamese Restaurant refers to label = 'aux delices vietnamese restaurant';
Question: Indicate the street numbers where Aux Delices Vietnamese Restaurant are located.
SQL: SELECT DISTINCT LOCATION.street_num FROM LOCATION INNER JOIN generalinfo ON LOCATION.id_restaurant = generalinfo.id_restaurant WHERE generalinfo.label = 'aux delices vietnamese restaurant'
Database: restaurant
Question: Identify all the restaurants in Marin County by their id.
SQL: SELECT generalinfo.id_restaurant FROM generalinfo INNER JOIN geographic ON generalinfo.city = geographic.city WHERE geographic.county = 'marin county'
Database: restaurant
Note: no pizza restaurants refers to food_type = 'pizza';
Question: In which regions are there no pizza restaurants?
SQL: SELECT DISTINCT geographic.region FROM generalinfo INNER JOIN geographic ON generalinfo.city = geographic.city WHERE generalinfo.food_type = 'pizza' AND geographic.region != 'unknown'
Database: restaurant
Note: average rating = divide(sum(review where county = 'santa cruz county'), count(id_restaurant where county = 'santa cruz county'));
Question: Calculate the average rating of reviews for restaurants in Santa Cruz County.
SQL: SELECT avg(generalinfo.review) FROM geographic INNER JOIN generalinfo ON geographic.city = generalinfo.city WHERE geographic.county = 'santa cruz county'
Database: restaurant
Note: Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%;
Question: What percentage of restaurants in Monterey County have Mexican food?
SQL: SELECT cast(sum(iif(generalinfo.food_type = 'mexican', 1, 0)) AS REAL) * 100 / count(generalinfo.id_restaurant) FROM geographic INNER JOIN generalinfo ON geographic.city = generalinfo.city WHERE geographic.county = 'monterey county'
Database: restaurant
Note: street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and county = 'alameda county'), count(street_name where county = 'alameda county')) * 100%;
Question: What percentage of streets named 11th Street are in Alameda County?
SQL: SELECT cast(sum(iif(LOCATION.street_name = '11th st', 1, 0)) AS REAL) * 100 / count(LOCATION.id_restaurant) FROM LOCATION INNER JOIN geographic ON LOCATION.city = geographic.city WHERE geographic.county = 'alameda county'
Database: restaurant
Note: restaurant refers to label; European food refers to food_type = 'european';
Question: Please list all of the restaurants that serve European food.
SQL: SELECT label FROM generalinfo WHERE food_type = 'european'
Database: restaurant
Note: Northern California refers to region = 'northern california';
Question: What cities are located in Northern California?
SQL: SELECT city FROM geographic WHERE region = 'northern california'
Database: restaurant
Note: 24-hour diner refers to food_type = '24 hour diner'; diner name refers to label;
Question: What does the one and only 24-hour diner's name?
SQL: SELECT label FROM generalinfo WHERE food_type = '24 hour diner'
Database: restaurant
Note: unidentified county and region refers to county = 'unknown' AND region = 'unknown';
Question: Please list any five cities that have an unidentified county and region.
SQL: SELECT city FROM geographic WHERE county = 'unknown' AND region = 'unknown' LIMIT 5
Database: restaurant
Question: What is the county and region of Davis City?
SQL: SELECT county, region FROM geographic WHERE city = 'Davis'
Database: restaurant
Question: Please list all of the street names in Clayton City.
SQL: SELECT street_name FROM LOCATION WHERE city = 'Clayton'
Database: restaurant
Note: the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco';
Question: What are the most popular restaurants in San Francisco among diners?
SQL: SELECT id_restaurant, label FROM generalinfo WHERE city = 'San Francisco' AND review = ( SELECT max(review) FROM generalinfo WHERE city = 'San Francisco' )
Database: restaurant
Note: American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel';
Question: How many American food restaurants are unpopular in Carmel?
SQL: SELECT count(id_restaurant) FROM generalinfo WHERE food_type = 'american' AND city = 'carmel' AND review = ( SELECT min(review) FROM generalinfo WHERE food_type = 'american' AND city = 'carmel' )
Database: restaurant
Note: American food refers to food_type = 'american food'; percentage = divide(count(id_restaurant), count(id_restaurant where food_type = 'american food')) where city = 'dublin' * 100%;
Question: What is the percentage of restaurants that serve American food in Dublin city?
SQL: SELECT cast(sum(iif(food_type = 'american food', 1, 0)) AS REAL) * 100 / count(id_restaurant) FROM generalinfo WHERE city = 'dublin'
Database: restaurant
Note: full address = street_num, street_name, city; Albert's Café refers to label = 'Albert's Café';
Question: What is the full address of Albert's Café?
SQL: SELECT LOCATION.street_num, LOCATION.street_name, generalinfo.city FROM generalinfo INNER JOIN LOCATION ON generalinfo.id_restaurant = LOCATION.id_restaurant WHERE generalinfo.label = 'Albert''s Café'
Database: restaurant
Note: restaurant refers to label; "19th St. Oakland" refers to street_name = '19th St' AND city = 'Oakland';
Question: What are the restaurants that are located at "19th St. Oakland"?
SQL: SELECT generalinfo.id_restaurant FROM generalinfo INNER JOIN LOCATION ON generalinfo.id_restaurant = LOCATION.id_restaurant WHERE generalinfo.city = 'Oakland' AND LOCATION.street_name = '19th St'
Database: restaurant
Note: kind of restaurant refers to food_type; "106 E 25th Ave" refers to street_name = 'e 25th ave';
Question: What kind of restaurants can be found at "106 E 25th Ave"?
SQL: SELECT generalinfo.food_type FROM generalinfo INNER JOIN LOCATION ON generalinfo.id_restaurant = LOCATION.id_restaurant WHERE LOCATION.street_num = 106 AND LOCATION.street_name = 'e 25th ave'
Database: restaurant
Note: restaurant name refers to label; unidentified region refers to region = 'unknown';
Question: Please name any three restaurants that have an unidentified region.
SQL: SELECT generalinfo.label FROM LOCATION INNER JOIN generalinfo ON LOCATION.id_restaurant = generalinfo.id_restaurant INNER JOIN geographic ON generalinfo.city = geographic.city WHERE geographic.region = 'unknown' LIMIT 3
Database: restaurant
Note: restaurant name refers to label; Chinese restaurant refers to food_type = 'chinese'; 104 San Tomas Aquino Road Campbell refers to street_num = 104 AND street_name = 'san tomas aquino road' AND city = 'campbell';
Question: What is the name of the Chinese restaurant that can be found at 104 San Tomas Aquino Road, Campbell?
SQL: SELECT generalinfo.label FROM generalinfo INNER JOIN LOCATION ON generalinfo.id_restaurant = LOCATION.id_restaurant WHERE LOCATION.street_num = 104 AND generalinfo.city = 'campbell' AND LOCATION.street_name = 'san tomas aquino road'
Database: restaurant
Note: Thai restaurant refers to food_type = 'thai'; San Pablo Ave Albany refers to street_name = 'san pablo ave' AND T1.city = 'albany';
Question: How many Thai restaurants can be found in San Pablo Ave, Albany?
SQL: SELECT count(generalinfo.id_restaurant) FROM generalinfo INNER JOIN LOCATION ON generalinfo.id_restaurant = LOCATION.id_restaurant WHERE generalinfo.food_type = 'thai' AND generalinfo.city = 'albany' AND LOCATION.street_name = 'san pablo ave'
Database: restaurant
Note: Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine';
Question: What is the county and region of Plearn-Thai Cuisine restaurant?
SQL: SELECT geographic.county, geographic.region, generalinfo.label FROM geographic INNER JOIN generalinfo ON geographic.city = generalinfo.city WHERE generalinfo.label = 'plearn-thai cuisine'
Database: restaurant
Note: restaurant name refers to label;
Question: What is the name of the restaurant that is located in El Dorado County, Lake Tahoe region?
SQL: SELECT generalinfo.label FROM geographic INNER JOIN generalinfo ON geographic.city = generalinfo.city WHERE geographic.region = 'lake tahoe' AND geographic.county = 'el dorado county'
Database: restaurant
Note: street E. El Camino Real refers to street_name = 'E. El Camino Real';
Question: Which county and region does the street E. El Camino Real belong to?
SQL: SELECT DISTINCT geographic.county, geographic.region FROM LOCATION INNER JOIN geographic ON LOCATION.city = geographic.city WHERE LOCATION.street_name = 'E. El Camino Real'
Database: restaurant
Note: restaurant name refers to label; the least popular refers to min(review); Indian restaurant refers to food_type = 'Indian restaurant'; Shattuck Avenue in Berkeley refers to street_name = 'shattuck ave' and city = 'berkeley';
Question: What is the name of the least popular Indian restaurant on Shattuck Avenue in Berkeley?
SQL: SELECT generalinfo.id_restaurant FROM generalinfo INNER JOIN LOCATION ON generalinfo.id_restaurant = LOCATION.id_restaurant WHERE generalinfo.city = 'berkeley' AND LOCATION.street_name = 'shattuck ave' AND generalinfo.food_type = 'Indian restaurant' ORDER BY generalinfo.review LIMIT 1
Database: restaurant
Note: scored over 4 refers to review > 4; percentage = divide(count(id_restaurant where region = 'bay area' and review > 4), count(id_restaurant where region = 'Bay Area')) * 100%;
Question: What is the percentage of restaurants in the Bay Area region that scored over 4 for the review rating?
SQL: SELECT cast(sum(iif(generalinfo.review > 4, 1, 0)) AS REAL) * 100 / count(generalinfo.id_restaurant) FROM geographic RIGHT JOIN generalinfo ON geographic.city = generalinfo.city WHERE geographic.region = 'bay area'
Database: restaurant
Question: List every city in San Mateo County.
SQL: SELECT city FROM geographic WHERE county = 'san mateo county'
Database: restaurant
Note: more than 4 star review refers to review > 4;
Question: How many restaurants have more than 4 star reviews?
SQL: SELECT count(id_restaurant) AS cnt FROM generalinfo WHERE review > 4
Database: restaurant
Note: street refers to street_name; the most restaurants refers to max(count(street_name));
Question: Which street has the most restaurants?
SQL: SELECT street_name FROM LOCATION GROUP BY street_name ORDER BY count(street_name) DESC LIMIT 1
Database: restaurant
Note: chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review);
Question: Which chicken restaurant has the highest review?
SQL: SELECT label FROM generalinfo WHERE food_type = 'chicken' ORDER BY review DESC LIMIT 1
Database: restaurant
Note: El Cerrito refers to city = 'el cerrito';
Question: Which county is El Cerrito from?
SQL: SELECT county FROM geographic WHERE city = 'el cerrito'
Database: restaurant
Note: Irving Street refers to street_name = 'irving';
Question: How many restaurants are on Irving Street?
SQL: SELECT count(id_restaurant) FROM LOCATION WHERE street_name = 'irving'
Database: restaurant
Note: restaurant refers to label;
Question: Provide a list of restaurants from Marin county.
SQL: SELECT generalinfo.label FROM generalinfo INNER JOIN geographic ON generalinfo.city = geographic.city WHERE geographic.county = 'marin county'
Database: restaurant
Note: address refers to street_num, street_name; Peking Duck restaurant refers to label = 'peking duck restaurant';
Question: What is the address of the Peking Duck restaurant?
SQL: SELECT LOCATION.street_name FROM generalinfo INNER JOIN LOCATION ON generalinfo.id_restaurant = LOCATION.id_restaurant WHERE generalinfo.label = 'peking duck restaurant'
Database: restaurant
Note: street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10;
Question: List all the streets with more than 10 restaurants in Alameda county.
SQL: SELECT LOCATION.street_name FROM geographic INNER JOIN LOCATION ON geographic.city = LOCATION.city WHERE geographic.county = 'alameda county' GROUP BY LOCATION.street_name HAVING count(LOCATION.id_restaurant) > 10
Database: restaurant
Note: Greek restaurant refers to food_type = 'greek';
Question: What are the regions with Greek restaurants?
SQL: SELECT DISTINCT geographic.region FROM geographic INNER JOIN generalinfo ON geographic.city = generalinfo.city WHERE generalinfo.food_type = 'greek'
Database: restaurant
Note: restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown';
Question: List all of the restaurant addresses from an unknown region.
SQL: SELECT LOCATION.street_name FROM geographic INNER JOIN LOCATION ON geographic.city = LOCATION.city WHERE geographic.region = 'unknown'
Database: restaurant
Note: 8440 Murray Ave refers to street_num = 8440 and street_name = 'murray ave';
Question: What is the review of the restaurant at 8440 Murray Ave?
SQL: SELECT generalinfo.review FROM LOCATION INNER JOIN generalinfo ON LOCATION.id_restaurant = generalinfo.id_restaurant WHERE LOCATION.street_name = 'murray ave' AND LOCATION.street_num = 8440
Database: restaurant
Note: type refers to food_type; most common refers to max(count(food_type));
Question: What type of restaurant is most common in Monterey county?
SQL: SELECT generalinfo.food_type FROM geographic INNER JOIN generalinfo ON geographic.city = generalinfo.city WHERE geographic.county = 'Monterey' GROUP BY generalinfo.food_type ORDER BY count(generalinfo.food_type) DESC LIMIT 1
Database: restaurant
Note: street refers to street_name; San Francisco refers to city = 'san francisco'; burger restaurant refers to food_type = 'burgers'; the most burger restaurants refers to max(count(street_name where food_type = 'burgers' and city = 'san francisco'));
Question: Which street in San Francisco has the most burger restaurants?
SQL: SELECT LOCATION.street_name FROM generalinfo INNER JOIN LOCATION ON generalinfo.id_restaurant = LOCATION.id_restaurant WHERE generalinfo.city = 'san francisco' AND generalinfo.food_type = 'burgers' GROUP BY LOCATION.street_name ORDER BY count(LOCATION.id_restaurant) DESC LIMIT 1
Database: restaurant
Note: 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real';
Question: What is the region of 1149 El Camino Real?
SQL: SELECT geographic.region FROM LOCATION INNER JOIN geographic ON LOCATION.city = geographic.city WHERE LOCATION.street_num = 1149 AND LOCATION.street_name = 'el camino real'
Database: restaurant
Note: Sankee restaurant refers to label = 'sankee';
Question: What is the county of the Sankee restaurant?
SQL: SELECT geographic.county FROM generalinfo INNER JOIN geographic ON generalinfo.city = geographic.city WHERE generalinfo.label = 'sankee'
Database: restaurant
Question: How many streets with restaurants are there in the Northern California region?
SQL: SELECT count(geographic.city) FROM geographic INNER JOIN LOCATION ON geographic.city = LOCATION.city WHERE geographic.region = 'northern california'
Database: restaurant
Note: restaurant refers to label; Park St refers to street_name = 'park st';
Question: List all of the restaurants on Park St.
SQL: SELECT generalinfo.label FROM LOCATION INNER JOIN generalinfo ON LOCATION.id_restaurant = generalinfo.id_restaurant WHERE LOCATION.street_name = 'park st'
Database: restaurant
Note: Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100%;
Question: What percentage of restaurants are from the Bay Area?
SQL: SELECT cast(sum(iif(geographic.region = 'bay area', 1, 0)) AS REAL) * 100 / count(LOCATION.id_restaurant) FROM geographic INNER JOIN LOCATION ON geographic.city = LOCATION.city
Database: restaurant
Note: Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review));
Question: List all the average reviews of Chinese restaurants for each county from highest to lowest.
SQL: SELECT avg(generalinfo.review) FROM generalinfo INNER JOIN geographic ON generalinfo.city = geographic.city WHERE generalinfo.food_type = 'chinese' GROUP BY generalinfo.id_restaurant ORDER BY avg(generalinfo.review) DESC
Database: restaurant
Question: List street names in San Francisco city.
SQL: SELECT street_name FROM LOCATION WHERE city = 'San Francisco'
Database: restaurant
Question: List restaurant ids located in Danville city.
SQL: SELECT id_restaurant FROM LOCATION WHERE city = 'Danville'
Database: restaurant
Note: the Bay Area refers to region = 'bay area';
Question: How many cities are located in the Bay Area?
SQL: SELECT count(city) FROM geographic WHERE region = 'bay area'
Database: restaurant
Note: unknown county refers to county = 'unknown';
Question: How many labels of the restaurant have an unknown country?
SQL: SELECT count(generalinfo.label) FROM generalinfo INNER JOIN geographic ON generalinfo.city = geographic.city WHERE geographic.county = 'unknown'
Database: restaurant
Question: Please indicate the street names of restaurants with food type is American.
SQL: SELECT LOCATION.street_name FROM LOCATION INNER JOIN generalinfo ON LOCATION.city = generalinfo.city WHERE generalinfo.food_type = 'American'
Database: restaurant
Note: Santa Cruz refers to county = 'Santa Cruz county';
Question: Please indicate which labels have the city located in Santa Cruz.
SQL: SELECT generalinfo.label FROM generalinfo INNER JOIN geographic ON generalinfo.city = geographic.city WHERE geographic.county = 'Santa Cruz county'
Database: restaurant
Note: 430 Broadway refers to street_num = 430 and street_name = 'Broadway';
Question: Give the review of the restaurant at 430, Broadway.
SQL: SELECT generalinfo.review FROM generalinfo INNER JOIN LOCATION ON generalinfo.id_restaurant = LOCATION.id_restaurant WHERE LOCATION.street_name = 'Broadway' AND LOCATION.street_num = 430
Database: restaurant
Note: address refers to street_num, street_name; the most popular review refers to max(review);
Question: Indicate the address of the restaurant with the most popular reviews.
SQL: SELECT LOCATION.street_num, LOCATION.street_name FROM generalinfo INNER JOIN LOCATION ON generalinfo.id_restaurant = LOCATION.id_restaurant ORDER BY generalinfo.review DESC LIMIT 1
Database: restaurant
Note: Italian food refers to food_type = 'Italian';
Question: Which country has the most restaurants with Italian food?
SQL: SELECT geographic.county FROM generalinfo INNER JOIN geographic ON generalinfo.city = geographic.city WHERE generalinfo.food_type = 'Italian' GROUP BY geographic.county ORDER BY count(generalinfo.id_restaurant) DESC LIMIT 1
Database: restaurant
Note: Napa Valley refers to region = 'Napa Valley'; percentage = divide(count(id_restaurant where region = 'Napa Valley'), count(id_restaurant)) * 100%;
Question: Find the percentage of restaurant in Napa Valley.
SQL: SELECT cast(sum(iif(region = 'Napa Valley', 1, 0)) AS REAL) * 100 / count(region) FROM geographic
Database: restaurant
Note: Bay Area refers to region = 'bay area';
Question: How many of the cities are in a Bay Area?
SQL: SELECT count(city) FROM geographic WHERE region = 'bay area'
Database: restaurant
Note: unknown county refers to county = 'unknown';
Question: List down the cities with unknown country.
SQL: SELECT city FROM geographic WHERE county = 'unknown'
Database: restaurant
Note: Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county';
Question: What is the city located in Bay Area of Santa Clara?
SQL: SELECT city FROM geographic WHERE region = 'bay area' AND county = 'santa clara county'
Database: restaurant
Note: Sunnyvale refers to city = 'sunnyvale';
Question: List down the restaurant ID of restaurants located in Sunnyvale.
SQL: SELECT id_restaurant FROM LOCATION WHERE city = 'sunnyvale'
Database: restaurant
Note: street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad';
Question: Among the restaurants on street number below 1000, how many of them are in Railroad St.?
SQL: SELECT count(city) FROM LOCATION WHERE street_name = 'railroad' AND street_num < 1000
Database: restaurant
Note: name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco';
Question: What is the name of the 24 hour diner at San Francisco?
SQL: SELECT label FROM generalinfo WHERE food_type = '24 hour diner' AND city = 'san francisco'
Database: restaurant
Note: Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz';
Question: Give the review of the restaurant located in Ocean St., Santa Cruz.
SQL: SELECT generalinfo.review FROM LOCATION INNER JOIN generalinfo ON LOCATION.id_restaurant = generalinfo.id_restaurant WHERE generalinfo.city = 'santa cruz' AND LOCATION.street_name = 'ocean st'
Database: restaurant
Note: street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7;
Question: Give the street number of a bar in Oakland with a 2.7 review.
SQL: SELECT LOCATION.street_num FROM generalinfo INNER JOIN LOCATION ON generalinfo.id_restaurant = LOCATION.id_restaurant WHERE generalinfo.review = 2.7 AND LOCATION.city = 'oakland' AND generalinfo.food_type = 'bar'
Database: restaurant
Note: bakery refers to food_type = 'bakery'; University Avenue refers to street_name = 'university ave.'; Palo Alto refers to city = 'palo alto';
Question: Among the bakeries, what is total number of bakery located at University Avenue, Palo Alto?
SQL: SELECT count(LOCATION.id_restaurant) FROM LOCATION INNER JOIN generalinfo ON LOCATION.id_restaurant = generalinfo.id_restaurant WHERE generalinfo.food_type = 'bakery' AND generalinfo.city = 'palo alto' AND LOCATION.street_name = 'university ave.'
Database: restaurant
Note: winery refers to food_type = 'winery'; street number refers to street_num; "Tulocay Winery" refers to label = 'Tulocay winery';
Question: Among the listed winery, what is the street number of the winery named "Tulocay Winery"?
SQL: SELECT LOCATION.street_num FROM LOCATION INNER JOIN generalinfo ON LOCATION.id_restaurant = generalinfo.id_restaurant WHERE generalinfo.label = 'Tulocay winery' AND generalinfo.food_type = 'winery'