output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT MIN("till_aligarh") FROM "toll_rates" WHERE "vehicle_category"='Multi-axle Vehicle';
## Task Generate a SQL query to answer the following question: `If the vehicle category is multi-axle vehicle, what is the till aligarh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "toll_rates" ( "vehicle_category" text, "till_aligarh" real, "till_mathura" real, "till_agra" real, "for_round_trip" real ); ### SQL Given the database schema, here is the SQL query that answers `If the vehicle category is multi-axle vehicle, what is the till aligarh?`: ```sql
SELECT MIN("game") FROM "regular_season" WHERE "high_assists"='S. Johnson (3)';
## Task Generate a SQL query to answer the following question: `What's the lowest number of a game where S. Johnson (3) did the most high assists?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the lowest number of a game where S. Johnson (3) did the most high assists?`: ```sql
SELECT "opponent" FROM "regular_season" WHERE "date"='July 12';
## Task Generate a SQL query to answer the following question: `Who was the game on July 12 played against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the game on July 12 played against?`: ```sql
SELECT "record" FROM "regular_season" WHERE "high_rebounds"='McWilliams (8)';
## Task Generate a SQL query to answer the following question: `What was the record in the game where McWilliams (8) did the most high rebounds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record in the game where McWilliams (8) did the most high rebounds?`: ```sql
SELECT "opponent" FROM "regular_season" WHERE "date"='July 7';
## Task Generate a SQL query to answer the following question: `Who was the game on July 7 played against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the game on July 7 played against?`: ```sql
SELECT "owner" FROM "table1_1979203_1" WHERE "callsign"='WLIW';
## Task Generate a SQL query to answer the following question: `what is the owner of the callsign wliw` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1979203_1" ( "virtual" text, "callsign" text, "affiliation" text, "branding" text, "channel" text, "programming" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the owner of the callsign wliw`: ```sql
SELECT COUNT("callsign") FROM "table1_1979203_1" WHERE "branding"='Telemundo 47';
## Task Generate a SQL query to answer the following question: `how many callsigns are for the branding telemundo 47` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1979203_1" ( "virtual" text, "callsign" text, "affiliation" text, "branding" text, "channel" text, "programming" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `how many callsigns are for the branding telemundo 47`: ```sql
SELECT "virtual" FROM "table1_1979203_1" WHERE "callsign"='WNET';
## Task Generate a SQL query to answer the following question: `what is the virtual callsign if is wnet` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1979203_1" ( "virtual" text, "callsign" text, "affiliation" text, "branding" text, "channel" text, "programming" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the virtual callsign if is wnet`: ```sql
SELECT "branding" FROM "table1_1979203_1" WHERE "virtual"='13.1';
## Task Generate a SQL query to answer the following question: `what is the name of the branding where the virtual is 13.1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1979203_1" ( "virtual" text, "callsign" text, "affiliation" text, "branding" text, "channel" text, "programming" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the name of the branding where the virtual is 13.1`: ```sql
SELECT MIN("district") FROM "list" WHERE "residence"='Newtown Square';
## Task Generate a SQL query to answer the following question: `Name the district for newtown square` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "district" real, "representative" text, "party" text, "residence" text, "counties_represented" text, "term_ends" real, "first_elected" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the district for newtown square`: ```sql
SELECT "party" FROM "list" WHERE "residence"='Bensalem';
## Task Generate a SQL query to answer the following question: `Name the party for bensalem` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "district" real, "representative" text, "party" text, "residence" text, "counties_represented" text, "term_ends" real, "first_elected" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the party for bensalem`: ```sql
SELECT COUNT("term_ends") FROM "list" WHERE "residence"='Bethlehem';
## Task Generate a SQL query to answer the following question: `Name the term ends for bethlehem` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "district" real, "representative" text, "party" text, "residence" text, "counties_represented" text, "term_ends" real, "first_elected" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the term ends for bethlehem`: ```sql
SELECT COUNT("district") FROM "list" WHERE "representative"='Rob Teplitz';
## Task Generate a SQL query to answer the following question: `Name the total number of districts for rob teplitz` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "district" real, "representative" text, "party" text, "residence" text, "counties_represented" text, "term_ends" real, "first_elected" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of districts for rob teplitz`: ```sql
SELECT "result" FROM "contestants" WHERE "background"='Business major';
## Task Generate a SQL query to answer the following question: `What was the result for the contestant whose background was as a business major?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "contestant" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result for the contestant whose background was as a business major?`: ```sql
SELECT "background" FROM "contestants" WHERE "result"='11th place';
## Task Generate a SQL query to answer the following question: `What was the background of the contestant whose result was 11th place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "contestant" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the background of the contestant whose result was 11th place?`: ```sql
SELECT COUNT("contestant") FROM "contestants" WHERE "background"='Internet dreamer';
## Task Generate a SQL query to answer the following question: `For how many contestants was the background internet dreamer? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "contestant" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `For how many contestants was the background internet dreamer? `: ```sql
SELECT "result" FROM "contestants" WHERE "background"='Small business owner';
## Task Generate a SQL query to answer the following question: `What was the result for the contestant who was a small business owner? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "contestant" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result for the contestant who was a small business owner? `: ```sql
SELECT "original_team" FROM "contestants" WHERE "result"='10th place';
## Task Generate a SQL query to answer the following question: `What team was the contestant who finished in 10th place originally on? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "contestant" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What team was the contestant who finished in 10th place originally on? `: ```sql
SELECT "hometown" FROM "contestants" WHERE "background"='Financial consultant';
## Task Generate a SQL query to answer the following question: `What is the hometown of the contestant whose background is as a financial consultant? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "contestant" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the hometown of the contestant whose background is as a financial consultant? `: ```sql
SELECT COUNT("rating") FROM "season_1" WHERE "rating_share_18_49"='3.8/10';
## Task Generate a SQL query to answer the following question: `If the rating/share is 3.8/10, what is the total number of rating?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1" ( "num" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_night" text ); ### SQL Given the database schema, here is the SQL query that answers `If the rating/share is 3.8/10, what is the total number of rating?`: ```sql
SELECT COUNT("share") FROM "season_1" WHERE "rank_night"='9';
## Task Generate a SQL query to answer the following question: `If the night rank is 9, what is the total share number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1" ( "num" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_night" text ); ### SQL Given the database schema, here is the SQL query that answers `If the night rank is 9, what is the total share number?`: ```sql
SELECT "episode" FROM "season_1" WHERE "rank_night"='9';
## Task Generate a SQL query to answer the following question: `What is the name of the episode with a night rank of 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1" ( "num" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_night" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the episode with a night rank of 9?`: ```sql
SELECT "rating" FROM "season_1" WHERE "rating_share_18_49"='2.0/6' AND "viewers_millions"='5.14';
## Task Generate a SQL query to answer the following question: `If the amount of viewers is 5.14 million and the rating/share is 2.0/6, what is the ranking?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1" ( "num" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_night" text ); ### SQL Given the database schema, here is the SQL query that answers `If the amount of viewers is 5.14 million and the rating/share is 2.0/6, what is the ranking?`: ```sql
SELECT "1890_census" FROM "urban_population_in_overseas_territories" WHERE "1920_census"=74000;
## Task Generate a SQL query to answer the following question: `For cities with a census of 74000 in 1920, what was their census in 1890?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "urban_population_in_overseas_territories" ( "rank" real, "city" text, "1890_census" text, "1910_census" real, "1920_census" real, "1930_census" real, "1940_census" real ); ### SQL Given the database schema, here is the SQL query that answers `For cities with a census of 74000 in 1920, what was their census in 1890?`: ```sql
SELECT "1920_census" FROM "urban_population_in_overseas_territories" WHERE "1940_census"=296000;
## Task Generate a SQL query to answer the following question: `For cities with a census of 296000 in 1940, what was their census in 1920?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "urban_population_in_overseas_territories" ( "rank" real, "city" text, "1890_census" text, "1910_census" real, "1920_census" real, "1930_census" real, "1940_census" real ); ### SQL Given the database schema, here is the SQL query that answers `For cities with a census of 296000 in 1940, what was their census in 1920?`: ```sql
SELECT COUNT("rank") FROM "urban_population_in_overseas_territories" WHERE "1940_census"=400000;
## Task Generate a SQL query to answer the following question: `How many cities had a census of 400000 in 1940?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "urban_population_in_overseas_territories" ( "rank" real, "city" text, "1890_census" text, "1910_census" real, "1920_census" real, "1930_census" real, "1940_census" real ); ### SQL Given the database schema, here is the SQL query that answers `How many cities had a census of 400000 in 1940?`: ```sql
SELECT COUNT("season_num") FROM "table1_19852975_3" WHERE "title"='\"The Night of the Feathered Fury\"';
## Task Generate a SQL query to answer the following question: `Name the season number for "the night of the feathered fury"` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19852975_3" ( "series_num" real, "season_num" real, "title" text, "director_s" text, "writer_s" text, "airdate" text, "production_code" real, "arties_disguises" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the season number for "the night of the feathered fury"`: ```sql
SELECT "writer_s" FROM "table1_19852975_3" WHERE "arties_disguises"='Swedish sailor';
## Task Generate a SQL query to answer the following question: `Name the writers for swedish sailor` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19852975_3" ( "series_num" real, "season_num" real, "title" text, "director_s" text, "writer_s" text, "airdate" text, "production_code" real, "arties_disguises" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the writers for swedish sailor`: ```sql
SELECT MAX("series_num") FROM "table1_19852975_3" WHERE "title"='\"The Night of the Flying Pie Plate\"';
## Task Generate a SQL query to answer the following question: `Name the series number for "the night of the flying pie plate"` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19852975_3" ( "series_num" real, "season_num" real, "title" text, "director_s" text, "writer_s" text, "airdate" text, "production_code" real, "arties_disguises" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the series number for "the night of the flying pie plate"`: ```sql
SELECT MIN("season_num") FROM "table1_19852975_3" WHERE "arties_disguises"='Herr Ostropolyer, pastry chef';
## Task Generate a SQL query to answer the following question: `Name the season number for herr ostropolyer, pastry chef` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19852975_3" ( "series_num" real, "season_num" real, "title" text, "director_s" text, "writer_s" text, "airdate" text, "production_code" real, "arties_disguises" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the season number for herr ostropolyer, pastry chef`: ```sql
SELECT "principal" FROM "list_of_high_schools_in_indiana" WHERE "school"='Northfield Junior-Senior High School';
## Task Generate a SQL query to answer the following question: `Name the principal of Northfield Junior-Senior High School.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_high_schools_in_indiana" ( "school" text, "city_town" text, "website" text, "size" real, "principal" text, "grades" text, "idoe_profile" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the principal of Northfield Junior-Senior High School.`: ```sql
SELECT "school" FROM "list_of_high_schools_in_indiana" WHERE "city_town"='North Manchester';
## Task Generate a SQL query to answer the following question: `What is the name of the school/s in North Manchester?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_high_schools_in_indiana" ( "school" text, "city_town" text, "website" text, "size" real, "principal" text, "grades" text, "idoe_profile" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the school/s in North Manchester?`: ```sql
SELECT "school" FROM "list_of_high_schools_in_indiana" WHERE "size"=604;
## Task Generate a SQL query to answer the following question: `Name the school/s with is size of 604.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_high_schools_in_indiana" ( "school" text, "city_town" text, "website" text, "size" real, "principal" text, "grades" text, "idoe_profile" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the school/s with is size of 604.`: ```sql
SELECT "idoe_profile" FROM "list_of_high_schools_in_indiana" WHERE "city_town"='North Manchester';
## Task Generate a SQL query to answer the following question: `What is the IDOE Profile in North Manchester?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_high_schools_in_indiana" ( "school" text, "city_town" text, "website" text, "size" real, "principal" text, "grades" text, "idoe_profile" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the IDOE Profile in North Manchester?`: ```sql
SELECT "grades" FROM "list_of_high_schools_in_indiana" WHERE "school"='Manchester Junior-Senior High School';
## Task Generate a SQL query to answer the following question: `What are the grades served at Manchester Junior-Senior High School?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_high_schools_in_indiana" ( "school" text, "city_town" text, "website" text, "size" real, "principal" text, "grades" text, "idoe_profile" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the grades served at Manchester Junior-Senior High School?`: ```sql
SELECT MIN("series_num") FROM "table1_19852975_4" WHERE "writer_s"='Max Ehrlich';
## Task Generate a SQL query to answer the following question: `Writer Max Ehrlich, what is the minimum series number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19852975_4" ( "series_num" real, "season_num" real, "title" text, "director_s" text, "writer_s" text, "airdate" text, "production_code" real, "arties_disguises" text ); ### SQL Given the database schema, here is the SQL query that answers `Writer Max Ehrlich, what is the minimum series number?`: ```sql
SELECT MAX("season_num") FROM "table1_19852975_4" WHERE "writer_s"='Denne Bart Petitclerc';
## Task Generate a SQL query to answer the following question: `From writer Denne Bart Petitclerc, what is the maximum season number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19852975_4" ( "series_num" real, "season_num" real, "title" text, "director_s" text, "writer_s" text, "airdate" text, "production_code" real, "arties_disguises" text ); ### SQL Given the database schema, here is the SQL query that answers `From writer Denne Bart Petitclerc, what is the maximum season number?`: ```sql
SELECT COUNT("series_num") FROM "table1_19852975_4" WHERE "writer_s"='Max Ehrlich';
## Task Generate a SQL query to answer the following question: `From writer Max Ehrlich, what is the total amount of series numbers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19852975_4" ( "series_num" real, "season_num" real, "title" text, "director_s" text, "writer_s" text, "airdate" text, "production_code" real, "arties_disguises" text ); ### SQL Given the database schema, here is the SQL query that answers `From writer Max Ehrlich, what is the total amount of series numbers?`: ```sql
SELECT "winning_driver" FROM "race_results" WHERE "rd"='3';
## Task Generate a SQL query to answer the following question: `Who is the winning driver when rd. is 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "rd" text, "race" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winning_driver" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the winning driver when rd. is 3?`: ```sql
SELECT COUNT("winning_driver") FROM "race_results" WHERE "winning_team"='Bryan Herta Autosport';
## Task Generate a SQL query to answer the following question: `How many winning drivers are there when the winning team is Bryan herta autosport?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "rd" text, "race" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winning_driver" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `How many winning drivers are there when the winning team is Bryan herta autosport?`: ```sql
SELECT "report" FROM "race_results" WHERE "rd"='9';
## Task Generate a SQL query to answer the following question: `Which report is where rd. is 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "rd" text, "race" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winning_driver" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Which report is where rd. is 9?`: ```sql
SELECT "fastest_lap" FROM "race_results" WHERE "race"='Texas' AND "winning_driver"='Dario Franchitti';
## Task Generate a SQL query to answer the following question: `Who held the fastest lap in the race in texas and dario franchitti is the winning driver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "rd" text, "race" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winning_driver" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Who held the fastest lap in the race in texas and dario franchitti is the winning driver?`: ```sql
SELECT MAX("ep") FROM "season_3_1960" WHERE "pixie_and_dixie"='\"Missile Bound Cat\"';
## Task Generate a SQL query to answer the following question: `What is top ep number for "missile bound cat"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_3_1960" ( "n" real, "ep" real, "huckleberry_hound" text, "pixie_and_dixie" text, "hokey_wolf" text, "air_date" text, "credited_animators" text ); ### SQL Given the database schema, here is the SQL query that answers `What is top ep number for "missile bound cat"?`: ```sql
SELECT COUNT("huckleberry_hound") FROM "season_3_1960" WHERE "air_date"='1960.09.18';
## Task Generate a SQL query to answer the following question: `How many Huckleberry Hound episodes were aired on 1960.09.18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_3_1960" ( "n" real, "ep" real, "huckleberry_hound" text, "pixie_and_dixie" text, "hokey_wolf" text, "air_date" text, "credited_animators" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Huckleberry Hound episodes were aired on 1960.09.18?`: ```sql
SELECT "credited_animators" FROM "season_3_1960" WHERE "huckleberry_hound"='\"Science Friction\"';
## Task Generate a SQL query to answer the following question: `Who animated "Science Friction"` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_3_1960" ( "n" real, "ep" real, "huckleberry_hound" text, "pixie_and_dixie" text, "hokey_wolf" text, "air_date" text, "credited_animators" text ); ### SQL Given the database schema, here is the SQL query that answers `Who animated "Science Friction"`: ```sql
SELECT "air_date" FROM "season_2_1959_60" WHERE "yogi_bear"='\"Rah Rah Bear\"';
## Task Generate a SQL query to answer the following question: `What is the air date of "Rah Rah Bear"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_2_1959_60" ( "n" real, "ep" real, "huckleberry_hound" text, "pixie_and_dixie" text, "yogi_bear" text, "air_date" text, "credited_animators" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the air date of "Rah Rah Bear"?`: ```sql
SELECT MIN("ep") FROM "season_2_1959_60" WHERE "huckleberry_hound"='\"Cop and Saucer\"';
## Task Generate a SQL query to answer the following question: `What episode includes "Cop and Saucer"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_2_1959_60" ( "n" real, "ep" real, "huckleberry_hound" text, "pixie_and_dixie" text, "yogi_bear" text, "air_date" text, "credited_animators" text ); ### SQL Given the database schema, here is the SQL query that answers `What episode includes "Cop and Saucer"?`: ```sql
SELECT "pixie_and_dixie" FROM "season_2_1959_60" WHERE "ep"=7;
## Task Generate a SQL query to answer the following question: `What is the Pixie and Dixie skit in episode 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_2_1959_60" ( "n" real, "ep" real, "huckleberry_hound" text, "pixie_and_dixie" text, "yogi_bear" text, "air_date" text, "credited_animators" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Pixie and Dixie skit in episode 7?`: ```sql
SELECT "yogi_bear" FROM "season_2_1959_60" WHERE "air_date"='1959.12.21';
## Task Generate a SQL query to answer the following question: `What is the Yogi Bear that aired on 1959.12.21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_2_1959_60" ( "n" real, "ep" real, "huckleberry_hound" text, "pixie_and_dixie" text, "yogi_bear" text, "air_date" text, "credited_animators" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Yogi Bear that aired on 1959.12.21?`: ```sql
SELECT "frequency" FROM "yes_fm_stations" WHERE "branding"='YES! FM 101.1';
## Task Generate a SQL query to answer the following question: `From brand Yes! FM 101.1, what was the frequency?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "yes_fm_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `From brand Yes! FM 101.1, what was the frequency?`: ```sql
SELECT "power_k_w" FROM "yes_fm_stations" WHERE "branding"='YES! FM 91.1 Boracay';
## Task Generate a SQL query to answer the following question: `If the branding is Yes! FM 91.1 Boracay, what is the power?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "yes_fm_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `If the branding is Yes! FM 91.1 Boracay, what is the power?`: ```sql
SELECT "branding" FROM "yes_fm_stations" WHERE "callsign"='DXYR';
## Task Generate a SQL query to answer the following question: `If the call sign is DXYR, what is the branding?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "yes_fm_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `If the call sign is DXYR, what is the branding?`: ```sql
SELECT "year" FROM "year_by_year" WHERE "playoffs"='Divisional Semifinals';
## Task Generate a SQL query to answer the following question: `When divisional semifinals are the playoffs what is the year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" text, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); ### SQL Given the database schema, here is the SQL query that answers `When divisional semifinals are the playoffs what is the year?`: ```sql
SELECT "regular_season" FROM "year_by_year" WHERE "playoffs"='Divisional Finals';
## Task Generate a SQL query to answer the following question: `When divisional finals are the playoffs what is the regular season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" text, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); ### SQL Given the database schema, here is the SQL query that answers `When divisional finals are the playoffs what is the regular season?`: ```sql
SELECT COUNT("division") FROM "year_by_year" WHERE "year"='1992';
## Task Generate a SQL query to answer the following question: `When 1992 is the year how many divisions are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" text, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); ### SQL Given the database schema, here is the SQL query that answers `When 1992 is the year how many divisions are there?`: ```sql
SELECT "league" FROM "year_by_year" WHERE "open_cup"='Final';
## Task Generate a SQL query to answer the following question: `When final is the open cup what is the league?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" text, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); ### SQL Given the database schema, here is the SQL query that answers `When final is the open cup what is the league?`: ```sql
SELECT "open_cup" FROM "year_by_year" WHERE "year"='1995';
## Task Generate a SQL query to answer the following question: `When 1995 is the year what is the open cup?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" text, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); ### SQL Given the database schema, here is the SQL query that answers `When 1995 is the year what is the open cup?`: ```sql
SELECT COUNT("division") FROM "year_by_year" WHERE "year"='2008';
## Task Generate a SQL query to answer the following question: `When 2008 is the year how many divisions are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" text, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); ### SQL Given the database schema, here is the SQL query that answers `When 2008 is the year how many divisions are there?`: ```sql
SELECT MIN("stumped") FROM "most_dismissals_in_test_career_wicketkee" WHERE "dismissals"=13;
## Task Generate a SQL query to answer the following question: `what is the least number of stumps in a game with 13 dismissals` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the least number of stumps in a game with 13 dismissals`: ```sql
SELECT COUNT("dismissals") FROM "most_dismissals_in_test_career_wicketkee" WHERE "innings"=8;
## Task Generate a SQL query to answer the following question: `what is the highest number of dismissals in a match with 8 innings` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the highest number of dismissals in a match with 8 innings`: ```sql
SELECT COUNT("rank") FROM "most_dismissals_in_test_career_wicketkee" WHERE "player"='Adam Gilchrist';
## Task Generate a SQL query to answer the following question: `what is the rank of adam gilchrist` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the rank of adam gilchrist`: ```sql
SELECT "location" FROM "table1_1987995_5" WHERE "team"='Twins';
## Task Generate a SQL query to answer the following question: `Where is the ballpark of the Twins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1987995_5" ( "ballpark" text, "location" text, "team" text, "opened" real, "closed" real, "demod" real, "current_status" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the ballpark of the Twins?`: ```sql
SELECT COUNT("location") FROM "table1_1987995_5" WHERE "ballpark"='Memorial Stadium';
## Task Generate a SQL query to answer the following question: `How many locations have been used for ballparks named Memorial Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1987995_5" ( "ballpark" text, "location" text, "team" text, "opened" real, "closed" real, "demod" real, "current_status" text ); ### SQL Given the database schema, here is the SQL query that answers `How many locations have been used for ballparks named Memorial Stadium?`: ```sql
SELECT MIN("closed") FROM "table1_1987995_5" WHERE "demod"=1994;
## Task Generate a SQL query to answer the following question: `When was the park demolished in 1994 closed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1987995_5" ( "ballpark" text, "location" text, "team" text, "opened" real, "closed" real, "demod" real, "current_status" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the park demolished in 1994 closed?`: ```sql
SELECT "flag" FROM "participants" WHERE "builder"='Green Marine';
## Task Generate a SQL query to answer the following question: `Which flag was on the Green Marine's boat?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "participants" ( "team_boat_name" text, "sail_no" text, "flag" text, "design_firm" text, "builder" text, "skipper" text ); ### SQL Given the database schema, here is the SQL query that answers `Which flag was on the Green Marine's boat?`: ```sql
SELECT "builder" FROM "participants" WHERE "skipper"='Ken Read';
## Task Generate a SQL query to answer the following question: `Who build the boat where Ken Read was the skipper?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "participants" ( "team_boat_name" text, "sail_no" text, "flag" text, "design_firm" text, "builder" text, "skipper" text ); ### SQL Given the database schema, here is the SQL query that answers `Who build the boat where Ken Read was the skipper?`: ```sql
SELECT COUNT("flag") FROM "participants" WHERE "design_firm"='Farr Yacht Design';
## Task Generate a SQL query to answer the following question: `Farr Yacht Design designed boats for how many country/flags?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "participants" ( "team_boat_name" text, "sail_no" text, "flag" text, "design_firm" text, "builder" text, "skipper" text ); ### SQL Given the database schema, here is the SQL query that answers `Farr Yacht Design designed boats for how many country/flags?`: ```sql
SELECT "builder" FROM "participants" WHERE "design_firm"='Botin Carkeek';
## Task Generate a SQL query to answer the following question: `Who were the builders of the boat designed by Botin Carkeek?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "participants" ( "team_boat_name" text, "sail_no" text, "flag" text, "design_firm" text, "builder" text, "skipper" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the builders of the boat designed by Botin Carkeek?`: ```sql
SELECT COUNT("location_s") FROM "table1_19897294_10" WHERE "family_families"='The Bailey Family';
## Task Generate a SQL query to answer the following question: `In how many locations was the episode with the Bailey family filmed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_10" ( "no_in_series" text, "no_in_season" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `In how many locations was the episode with the Bailey family filmed?`: ```sql
SELECT COUNT("no_in_season") FROM "table1_19897294_10" WHERE "family_families"='The Jeans Family';
## Task Generate a SQL query to answer the following question: `How many episodes with different season numbers had the Jeans family in them?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_10" ( "no_in_series" text, "no_in_season" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes with different season numbers had the Jeans family in them?`: ```sql
SELECT "original_air_date" FROM "table1_19897294_10" WHERE "family_families"='The Ririe Family';
## Task Generate a SQL query to answer the following question: `When did the episode with the Ririe family air for the first time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_10" ( "no_in_series" text, "no_in_season" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the episode with the Ririe family air for the first time?`: ```sql
SELECT "location_s" FROM "table1_19897294_10" WHERE "no_in_series"='US9';
## Task Generate a SQL query to answer the following question: `Where was the episode with series number US9 filmed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_10" ( "no_in_series" text, "no_in_season" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the episode with series number US9 filmed?`: ```sql
SELECT MIN("no_in_season") FROM "table1_19897294_10" WHERE "no_in_series"='US6';
## Task Generate a SQL query to answer the following question: `What's the season number of the episode with series number US6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_10" ( "no_in_series" text, "no_in_season" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the season number of the episode with series number US6?`: ```sql
SELECT "family_families" FROM "table1_19897294_11" WHERE "no_in_series"='US14';
## Task Generate a SQL query to answer the following question: `What family was featured in episode us14 of the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_11" ( "no_in_series" text, "no_in_season" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What family was featured in episode us14 of the series?`: ```sql
SELECT COUNT("location_s") FROM "table1_19897294_11" WHERE "family_families"='The Webb Family';
## Task Generate a SQL query to answer the following question: `How many locations featured the Webb Family?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_11" ( "no_in_series" text, "no_in_season" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many locations featured the Webb Family?`: ```sql
SELECT COUNT("no_in_season") FROM "table1_19897294_11" WHERE "no_in_series"='US17';
## Task Generate a SQL query to answer the following question: `What episode in the season was episode us17 in the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_11" ( "no_in_series" text, "no_in_season" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What episode in the season was episode us17 in the series?`: ```sql
SELECT COUNT("no_in_season") FROM "table1_19897294_11" WHERE "no_in_series"='US18';
## Task Generate a SQL query to answer the following question: `What episode in the season was episode us18 in the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_11" ( "no_in_series" text, "no_in_season" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What episode in the season was episode us18 in the series?`: ```sql
SELECT "no_in_series" FROM "table1_19897294_11" WHERE "family_families"='The Amaral Family';
## Task Generate a SQL query to answer the following question: `What episode in the series was the Amaral family featured?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_11" ( "no_in_series" text, "no_in_season" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What episode in the series was the Amaral family featured?`: ```sql
SELECT "round_winner" FROM "calendar" WHERE "entrant"='Craven Mild Racing';
## Task Generate a SQL query to answer the following question: `Who is the round winner when entrant is craven mild racing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "rd" real, "circuit" text, "city_state" text, "date" text, "format" text, "round_winner" text, "car" text, "entrant" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the round winner when entrant is craven mild racing?`: ```sql
SELECT "round_winner" FROM "calendar" WHERE "circuit"='Wanneroo Park';
## Task Generate a SQL query to answer the following question: `Who is the round winner of the wanneroo park circuit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "rd" real, "circuit" text, "city_state" text, "date" text, "format" text, "round_winner" text, "car" text, "entrant" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the round winner of the wanneroo park circuit?`: ```sql
SELECT "circuit" FROM "calendar" WHERE "format"='Two heats';
## Task Generate a SQL query to answer the following question: `Which circuit has two heats as the format?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "rd" real, "circuit" text, "city_state" text, "date" text, "format" text, "round_winner" text, "car" text, "entrant" text ); ### SQL Given the database schema, here is the SQL query that answers `Which circuit has two heats as the format?`: ```sql
SELECT "original_air_date" FROM "table1_19897294_16" WHERE "family_families"='The Potter Family';
## Task Generate a SQL query to answer the following question: `Name the original air date for the potter family` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_16" ( "no_in_series" text, "no_in_season" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the original air date for the potter family`: ```sql
SELECT COUNT("original_air_date") FROM "table1_19897294_9" WHERE "family_families"='The Ryder Family and The Schwartz Family';
## Task Generate a SQL query to answer the following question: `how many original air date where family/families is the ryder family and the schwartz family` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_9" ( "no_overall" text, "no_in_series" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `how many original air date where family/families is the ryder family and the schwartz family`: ```sql
SELECT "location_s" FROM "table1_19897294_9" WHERE "family_families"='The Abbas Family and The Pickering Family';
## Task Generate a SQL query to answer the following question: `where was the abbas family and the pickering family located` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_9" ( "no_overall" text, "no_in_series" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `where was the abbas family and the pickering family located`: ```sql
SELECT "class" FROM "state_farm_junior_college_player_of_the_" WHERE "position"='Forward';
## Task Generate a SQL query to answer the following question: `in which class is the position forward` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "state_farm_junior_college_player_of_the_" ( "season" text, "player" text, "junior_college" text, "state" text, "position" text, "class" text, "university" text ); ### SQL Given the database schema, here is the SQL query that answers `in which class is the position forward`: ```sql
SELECT "season" FROM "state_farm_junior_college_player_of_the_" WHERE "position"='Center';
## Task Generate a SQL query to answer the following question: `in which season the position was center` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "state_farm_junior_college_player_of_the_" ( "season" text, "player" text, "junior_college" text, "state" text, "position" text, "class" text, "university" text ); ### SQL Given the database schema, here is the SQL query that answers `in which season the position was center`: ```sql
SELECT "class" FROM "state_farm_junior_college_player_of_the_" WHERE "university"='Ohio State';
## Task Generate a SQL query to answer the following question: `in which class was the ohio state university` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "state_farm_junior_college_player_of_the_" ( "season" text, "player" text, "junior_college" text, "state" text, "position" text, "class" text, "university" text ); ### SQL Given the database schema, here is the SQL query that answers `in which class was the ohio state university`: ```sql
SELECT COUNT("family_families") FROM "table1_19897294_8" WHERE "no_overall"='UK30';
## Task Generate a SQL query to answer the following question: `Name the number of families for uk30` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_8" ( "no_overall" text, "no_in_series" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of families for uk30`: ```sql
SELECT MAX("no_in_series") FROM "table1_19897294_8" WHERE "family_families"='The Ward Family and The Wren Family';
## Task Generate a SQL query to answer the following question: `Name the number in series for in the ward family and the wren family` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_8" ( "no_overall" text, "no_in_series" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number in series for in the ward family and the wren family`: ```sql
SELECT "family_families" FROM "table1_19897294_8" WHERE "no_overall"='UK31';
## Task Generate a SQL query to answer the following question: `Name the family for uk31` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_8" ( "no_overall" text, "no_in_series" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the family for uk31`: ```sql
SELECT MIN("no_in_series") FROM "table1_19897294_8";
## Task Generate a SQL query to answer the following question: `Name the least number in series` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_8" ( "no_overall" text, "no_in_series" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least number in series`: ```sql
SELECT COUNT("location_s") FROM "table1_19897294_8" WHERE "no_overall"='UK32';
## Task Generate a SQL query to answer the following question: `Name the number of locations for uk32` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_8" ( "no_overall" text, "no_in_series" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of locations for uk32`: ```sql
SELECT "original_air_date" FROM "table1_19897294_5" WHERE "no_overall"='UK17';
## Task Generate a SQL query to answer the following question: `Name the air date for uk17` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_5" ( "no_overall" text, "no_in_series" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the air date for uk17`: ```sql
SELECT "family_families" FROM "table1_19897294_5" WHERE "no_overall"='UK17';
## Task Generate a SQL query to answer the following question: `Name the family/families uk17` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19897294_5" ( "no_overall" text, "no_in_series" real, "family_families" text, "location_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the family/families uk17`: ```sql
SELECT MAX("num") FROM "drivers_teams" WHERE "crew_chief"='Billy Wilburn';
## Task Generate a SQL query to answer the following question: `What is the number of the truck that has the crew chief Billy Wilburn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_teams" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of the truck that has the crew chief Billy Wilburn?`: ```sql
SELECT "num" FROM "drivers_teams" WHERE "listed_owner_s"='Stephen Germain';
## Task Generate a SQL query to answer the following question: `What number truck is owned by Stephen Germain?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_teams" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); ### SQL Given the database schema, here is the SQL query that answers `What number truck is owned by Stephen Germain?`: ```sql
SELECT "team" FROM "drivers_teams" WHERE "primary_sponsor_s"='D3 Outdoors';
## Task Generate a SQL query to answer the following question: `What team is sponsored by d3 Outdoors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_teams" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); ### SQL Given the database schema, here is the SQL query that answers `What team is sponsored by d3 Outdoors?`: ```sql
SELECT COUNT("team") FROM "drivers_teams" WHERE "listed_owner_s"='Jeff Wyler';
## Task Generate a SQL query to answer the following question: `How many teams does Jeff Wyler own?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_teams" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); ### SQL Given the database schema, here is the SQL query that answers `How many teams does Jeff Wyler own?`: ```sql
SELECT "primary_sponsor_s" FROM "drivers_teams" WHERE "crew_chief"='Rick Ren';
## Task Generate a SQL query to answer the following question: `Who is the primary sponsor for crew cheif Rick Ren's team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_teams" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the primary sponsor for crew cheif Rick Ren's team?`: ```sql
SELECT "primary_sponsor_s" FROM "drivers_teams" WHERE "listed_owner_s"='Bobby Dotter';
## Task Generate a SQL query to answer the following question: `Who sponsors owner Bobby Dotter's team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_teams" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); ### SQL Given the database schema, here is the SQL query that answers `Who sponsors owner Bobby Dotter's team?`: ```sql