output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "time_elapsed" FROM "1990s" WHERE "closest_approach"='14 february 2011';
## Task Generate a SQL query to answer the following question: `What Time elapsed has 14 February 2011 as the Closest approach?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1990s" ( "spacecraft" text, "destination" text, "launched" text, "closest_approach" text, "time_elapsed" text ); ### SQL Given the database schema, here is the SQL query that answers `What Time elapsed has 14 February 2011 as the Closest approach?`: ```sql
SELECT "launched" FROM "1990s" WHERE "time_elapsed"='1991 days (5 yr, 5 mo, 12 d)';
## Task Generate a SQL query to answer the following question: `What Launched has Time elapsed of 1991 days (5 yr, 5 mo, 12 d)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1990s" ( "spacecraft" text, "destination" text, "launched" text, "closest_approach" text, "time_elapsed" text ); ### SQL Given the database schema, here is the SQL query that answers `What Launched has Time elapsed of 1991 days (5 yr, 5 mo, 12 d)?`: ```sql
SELECT "closest_approach" FROM "1990s" WHERE "launched"='3 july 1998';
## Task Generate a SQL query to answer the following question: `With a Launched of 3 July 1998 what is the Closest approach?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1990s" ( "spacecraft" text, "destination" text, "launched" text, "closest_approach" text, "time_elapsed" text ); ### SQL Given the database schema, here is the SQL query that answers `With a Launched of 3 July 1998 what is the Closest approach?`: ```sql
SELECT "launched" FROM "1990s" WHERE "spacecraft"='ulysses' AND "time_elapsed"='491 days (1 yr, 4 mo, 3 d)';
## Task Generate a SQL query to answer the following question: `What Launched has both a Spacecraft of Ulysses and 491 days (1 yr, 4 mo, 3 d) as Time elapsed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1990s" ( "spacecraft" text, "destination" text, "launched" text, "closest_approach" text, "time_elapsed" text ); ### SQL Given the database schema, here is the SQL query that answers `What Launched has both a Spacecraft of Ulysses and 491 days (1 yr, 4 mo, 3 d) as Time elapsed?`: ```sql
SELECT "karen_handel" FROM "republican_primary" WHERE "eric_johnson"='13%' AND "undecided"='22%';
## Task Generate a SQL query to answer the following question: `What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "republican_primary" ( "poll_source" text, "dates_administered" text, "john_oxendine" text, "karen_handel" text, "nathan_deal" text, "eric_johnson" text, "ray_mc_berry" text, "undecided" text ); ### SQL Given the database schema, here is the SQL query that answers `What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%?`: ```sql
SELECT "poll_source" FROM "republican_primary" WHERE "nathan_deal"='13%' AND "john_oxendine"='28%';
## Task Generate a SQL query to answer the following question: `In what poll is Nathan Deal at 13% and John Oxendine at 28%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "republican_primary" ( "poll_source" text, "dates_administered" text, "john_oxendine" text, "karen_handel" text, "nathan_deal" text, "eric_johnson" text, "ray_mc_berry" text, "undecided" text ); ### SQL Given the database schema, here is the SQL query that answers `In what poll is Nathan Deal at 13% and John Oxendine at 28%?`: ```sql
SELECT "eric_johnson" FROM "republican_primary" WHERE "karen_handel"='12%';
## Task Generate a SQL query to answer the following question: `What is Eric Johnson at in the poll where Karen Handel is at 12%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "republican_primary" ( "poll_source" text, "dates_administered" text, "john_oxendine" text, "karen_handel" text, "nathan_deal" text, "eric_johnson" text, "ray_mc_berry" text, "undecided" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Eric Johnson at in the poll where Karen Handel is at 12%?`: ```sql
SELECT "poll_source" FROM "republican_primary" WHERE "john_oxendine"='32%';
## Task Generate a SQL query to answer the following question: `In what poll is John Oxendine at 32%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "republican_primary" ( "poll_source" text, "dates_administered" text, "john_oxendine" text, "karen_handel" text, "nathan_deal" text, "eric_johnson" text, "ray_mc_berry" text, "undecided" text ); ### SQL Given the database schema, here is the SQL query that answers `In what poll is John Oxendine at 32%?`: ```sql
SELECT "john_oxendine" FROM "republican_primary" WHERE "karen_handel"='38%';
## Task Generate a SQL query to answer the following question: `What is John Oxendine at in the poll where Karen Handel is at 38%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "republican_primary" ( "poll_source" text, "dates_administered" text, "john_oxendine" text, "karen_handel" text, "nathan_deal" text, "eric_johnson" text, "ray_mc_berry" text, "undecided" text ); ### SQL Given the database schema, here is the SQL query that answers `What is John Oxendine at in the poll where Karen Handel is at 38%?`: ```sql
SELECT "karen_handel" FROM "republican_primary" WHERE "poll_source"='insideradvantage' AND "john_oxendine"='15%';
## Task Generate a SQL query to answer the following question: `What is Karen Handel polling at in the Insideradvantage poll where John Oxendine is at 15%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "republican_primary" ( "poll_source" text, "dates_administered" text, "john_oxendine" text, "karen_handel" text, "nathan_deal" text, "eric_johnson" text, "ray_mc_berry" text, "undecided" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Karen Handel polling at in the Insideradvantage poll where John Oxendine is at 15%?`: ```sql
SELECT "score" FROM "winners" WHERE "year"='1991';
## Task Generate a SQL query to answer the following question: `What was the 1991 score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" text, "venue" text, "winner" text, "country" text, "score" text, "runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the 1991 score?`: ```sql
SELECT "venue" FROM "winners" WHERE "winner"='gary cowan' AND "year"='1966';
## Task Generate a SQL query to answer the following question: `Where was the 1966 competition with a winner of Gary Cowan held?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" text, "venue" text, "winner" text, "country" text, "score" text, "runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the 1966 competition with a winner of Gary Cowan held?`: ```sql
SELECT "runner_up" FROM "winners" WHERE "venue"='minikahda club';
## Task Generate a SQL query to answer the following question: `Who was the runner-up of the competition played at Minikahda Club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" text, "venue" text, "winner" text, "country" text, "score" text, "runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the runner-up of the competition played at Minikahda Club?`: ```sql
SELECT MAX("year") FROM "us_chamber_lobbying_2002_2012" WHERE "next_highest_spender"='aarp' AND "us_cham_spending"='$39,805,000' AND "us_cham_rank">1;
## Task Generate a SQL query to answer the following question: `Which Year is the highest one that has a Next Highest Spender of aarp, and a US Cham Spending of $39,805,000, and a US Cham Rank larger than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "us_chamber_lobbying_2002_2012" ( "year" real, "us_cham_rank" real, "us_cham_spending" text, "next_highest_spender" text, "next_highest_amount" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Year is the highest one that has a Next Highest Spender of aarp, and a US Cham Spending of $39,805,000, and a US Cham Rank larger than 1?`: ```sql
SELECT MIN("us_cham_rank") FROM "us_chamber_lobbying_2002_2012" WHERE "next_highest_spender"='national assn of realtors' AND "year"<2012;
## Task Generate a SQL query to answer the following question: `Which US Cham Rank is the lowest one that has a Next Highest Spender of national assn of realtors, and a Year smaller than 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "us_chamber_lobbying_2002_2012" ( "year" real, "us_cham_rank" real, "us_cham_spending" text, "next_highest_spender" text, "next_highest_amount" text ); ### SQL Given the database schema, here is the SQL query that answers `Which US Cham Rank is the lowest one that has a Next Highest Spender of national assn of realtors, and a Year smaller than 2012?`: ```sql
SELECT MIN("year") FROM "us_chamber_lobbying_2002_2012" WHERE "us_cham_rank"<1;
## Task Generate a SQL query to answer the following question: `Which Year is the lowest one that has a US Cham Rank smaller than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "us_chamber_lobbying_2002_2012" ( "year" real, "us_cham_rank" real, "us_cham_spending" text, "next_highest_spender" text, "next_highest_amount" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Year is the lowest one that has a US Cham Rank smaller than 1?`: ```sql
SELECT "score_in_final" FROM "women_s_doubles_111" WHERE "tournament_name"='eckerd open';
## Task Generate a SQL query to answer the following question: `What was the Score in Final of the Eckerd Open Tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_111" ( "date" text, "tournament_name" text, "location" text, "partner" text, "score_in_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Score in Final of the Eckerd Open Tournament?`: ```sql
SELECT "partner" FROM "women_s_doubles_111" WHERE "tournament_name"='united airlines tournament (1)';
## Task Generate a SQL query to answer the following question: `Who was the Partner in the United Airlines Tournament (1)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_111" ( "date" text, "tournament_name" text, "location" text, "partner" text, "score_in_final" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Partner in the United Airlines Tournament (1)?`: ```sql
SELECT "score_in_final" FROM "women_s_doubles_111" WHERE "date"='february 19, 1989';
## Task Generate a SQL query to answer the following question: `What was the Score in Final on February 19, 1989?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_111" ( "date" text, "tournament_name" text, "location" text, "partner" text, "score_in_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Score in Final on February 19, 1989?`: ```sql
SELECT "points" FROM "festivali_i_k_ng_s_46" WHERE "place"=9;
## Task Generate a SQL query to answer the following question: `What are the Points when the Place is 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "festivali_i_k_ng_s_46" ( "draw" real, "singer" text, "song" text, "points" real, "place" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the Points when the Place is 9?`: ```sql
SELECT COUNT("place") FROM "festivali_i_k_ng_s_46" WHERE "singer"='mariza ikonomi' AND "points">20;
## Task Generate a SQL query to answer the following question: `What is the total for the place when the singer is Mariza Ikonomi when points are larger than 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "festivali_i_k_ng_s_46" ( "draw" real, "singer" text, "song" text, "points" real, "place" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total for the place when the singer is Mariza Ikonomi when points are larger than 20?`: ```sql
SELECT AVG("total_tc_s") FROM "2000s" WHERE "strongest_storm"='zoe' AND "season"='totals';
## Task Generate a SQL query to answer the following question: `What is the average total TCs of the season where the strongest storm was Zoe and the season was totals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "season" text, "total_td_s" real, "total_tc_s" real, "total_stc_s" real, "strongest_storm" text, "deaths" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average total TCs of the season where the strongest storm was Zoe and the season was totals?`: ```sql
SELECT "double_non_suited_match" FROM "match_the_dealer" WHERE "suited_match"='13:1';
## Task Generate a SQL query to answer the following question: `With a Suited Match of 13:1, what is the Double Non-Suited Match?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_the_dealer" ( "number_of_decks" real, "non_suited_match" text, "double_non_suited_match" text, "suited_match" text, "suited_non_suited_match" text, "double_suited_match" text, "house_edge" text ); ### SQL Given the database schema, here is the SQL query that answers `With a Suited Match of 13:1, what is the Double Non-Suited Match?`: ```sql
SELECT "suited_match" FROM "match_the_dealer" WHERE "house_edge"='2.99%';
## Task Generate a SQL query to answer the following question: `What's the Suited Match with a 2.99% House Edge?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_the_dealer" ( "number_of_decks" real, "non_suited_match" text, "double_non_suited_match" text, "suited_match" text, "suited_non_suited_match" text, "double_suited_match" text, "house_edge" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the Suited Match with a 2.99% House Edge?`: ```sql
SELECT "double_non_suited_match" FROM "match_the_dealer" WHERE "non_suited_match"='3:1' AND "house_edge"='3.53%';
## Task Generate a SQL query to answer the following question: `With a house edge of 3.53% and a Non-Suited Matched of 3:1, name the Double Non-Suited Match.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_the_dealer" ( "number_of_decks" real, "non_suited_match" text, "double_non_suited_match" text, "suited_match" text, "suited_non_suited_match" text, "double_suited_match" text, "house_edge" text ); ### SQL Given the database schema, here is the SQL query that answers `With a house edge of 3.53% and a Non-Suited Matched of 3:1, name the Double Non-Suited Match.`: ```sql
SELECT "non_suited_match" FROM "match_the_dealer" WHERE "number_of_decks">6;
## Task Generate a SQL query to answer the following question: `Name the Non-Suited Match that has greater than 6 Number of Decks.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_the_dealer" ( "number_of_decks" real, "non_suited_match" text, "double_non_suited_match" text, "suited_match" text, "suited_non_suited_match" text, "double_suited_match" text, "house_edge" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Non-Suited Match that has greater than 6 Number of Decks.`: ```sql
SELECT "suited_non_suited_match" FROM "match_the_dealer" WHERE "house_edge"='2.99%';
## Task Generate a SQL query to answer the following question: `Name the Suited & Non-Suited Match with a 2.99% for House Edge.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_the_dealer" ( "number_of_decks" real, "non_suited_match" text, "double_non_suited_match" text, "suited_match" text, "suited_non_suited_match" text, "double_suited_match" text, "house_edge" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Suited & Non-Suited Match with a 2.99% for House Edge.`: ```sql
SELECT "double_non_suited_match" FROM "match_the_dealer" WHERE "non_suited_match"='4:1' AND "house_edge"='3.63%';
## Task Generate a SQL query to answer the following question: `With a House Edge of 3.63% and a Non-Suited Match of 4:1, what is the Double Non-Suited Match?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_the_dealer" ( "number_of_decks" real, "non_suited_match" text, "double_non_suited_match" text, "suited_match" text, "suited_non_suited_match" text, "double_suited_match" text, "house_edge" text ); ### SQL Given the database schema, here is the SQL query that answers `With a House Edge of 3.63% and a Non-Suited Match of 4:1, what is the Double Non-Suited Match?`: ```sql
SELECT SUM("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<0;
## Task Generate a SQL query to answer the following question: `Wins smaller than 0 had what sum of year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `Wins smaller than 0 had what sum of year?`: ```sql
SELECT MIN("wins") FROM "motorcycle_grand_prix_results" WHERE "class"='125cc' AND "year"<1966;
## Task Generate a SQL query to answer the following question: `Class of 125cc, and a Year smaller than 1966 had what lowest wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `Class of 125cc, and a Year smaller than 1966 had what lowest wins?`: ```sql
SELECT AVG("year") FROM "motorcycle_grand_prix_results" WHERE "class"='500cc' AND "wins"<0;
## Task Generate a SQL query to answer the following question: `Class of 500cc, and a Wins smaller than 0 had what average year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `Class of 500cc, and a Wins smaller than 0 had what average year?`: ```sql
SELECT MAX("laps") FROM "race" WHERE "driver"='kazuki nakajima' AND "grid">19;
## Task Generate a SQL query to answer the following question: `What are the highest laps Kazuki Nakajima did with a Grid larger than 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the highest laps Kazuki Nakajima did with a Grid larger than 19?`: ```sql
SELECT "constructor" FROM "race" WHERE "grid"=17;
## Task Generate a SQL query to answer the following question: `Which Constructor has a Grid of 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Constructor has a Grid of 17?`: ```sql
SELECT "driver" FROM "race" WHERE "grid">2 AND "constructor"='bmw sauber' AND "time_retired"='+15.037';
## Task Generate a SQL query to answer the following question: `Who drives a BMW Sauber with a Grid larger than 2 and a Time/Retired of +15.037?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Who drives a BMW Sauber with a Grid larger than 2 and a Time/Retired of +15.037?`: ```sql
SELECT AVG("year") FROM "other_film_projects" WHERE "participation_as"='actor, film editor';
## Task Generate a SQL query to answer the following question: `Participation as of actor, film editor has what average year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_film_projects" ( "year" real, "english_title" text, "original_title" text, "country" text, "length" text, "participation_as" text ); ### SQL Given the database schema, here is the SQL query that answers `Participation as of actor, film editor has what average year?`: ```sql
SELECT "odds" FROM "race_history" WHERE "finish"='1/4h';
## Task Generate a SQL query to answer the following question: `What were the odds for the finish of 1/4h?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_history" ( "date" text, "track" text, "race" text, "purse_hi" text, "finish" text, "time" text, "last_1_4" real, "odds" text, "driver" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the odds for the finish of 1/4h?`: ```sql
SELECT MIN("last_1_4") FROM "race_history" WHERE "time"='1:53.2' AND "odds"='*1.30';
## Task Generate a SQL query to answer the following question: `What is the lowest last quarter with a time of 1:53.2 and odds of *1.30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_history" ( "date" text, "track" text, "race" text, "purse_hi" text, "finish" text, "time" text, "last_1_4" real, "odds" text, "driver" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest last quarter with a time of 1:53.2 and odds of *1.30?`: ```sql
SELECT AVG("gold") FROM "medal_table" WHERE "total"=11 AND "silver">2;
## Task Generate a SQL query to answer the following question: `What is the average number of Gold when the total is 11 with more than 2 silver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number of Gold when the total is 11 with more than 2 silver?`: ```sql
SELECT COUNT("rank") FROM "medal_table" WHERE "total"<2 AND "silver">0;
## Task Generate a SQL query to answer the following question: `What is the total rank with more than 0 silver and less than 2 medals total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total rank with more than 0 silver and less than 2 medals total?`: ```sql
SELECT "bronze" FROM "medal_table" WHERE "total"<2;
## Task Generate a SQL query to answer the following question: `What is the value of bronze with less than 2 in total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the value of bronze with less than 2 in total?`: ```sql
SELECT COUNT("rank") FROM "medal_table" WHERE "total">2 AND "bronze"<4;
## Task Generate a SQL query to answer the following question: `What number of rank has more than 2 medals in total with less than 4 bronze?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What number of rank has more than 2 medals in total with less than 4 bronze?`: ```sql
SELECT "building" FROM "approved_and_proposed" WHERE "status"='proposed' AND "floors"=32;
## Task Generate a SQL query to answer the following question: `what is a building that is proposed and will have 32 floors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "approved_and_proposed" ( "rank" real, "building" text, "city" text, "height_m_ft" text, "floors" real, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `what is a building that is proposed and will have 32 floors?`: ```sql
SELECT AVG("best") FROM "qualifying_results" WHERE "name"='marcus marshall';
## Task Generate a SQL query to answer the following question: `What is the best time for marcus marshall?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the best time for marcus marshall?`: ```sql
SELECT MAX("best") FROM "qualifying_results" WHERE "team"='rusport' AND "qual_2"='1:10.166';
## Task Generate a SQL query to answer the following question: `What is the best time for a rusport driver with a qual 2 time of 1:10.166?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the best time for a rusport driver with a qual 2 time of 1:10.166?`: ```sql
SELECT "team" FROM "qualifying_results" WHERE "qual_2"='58.385';
## Task Generate a SQL query to answer the following question: `What team had a qual 2 time of 58.385?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" real ); ### SQL Given the database schema, here is the SQL query that answers `What team had a qual 2 time of 58.385?`: ```sql
SELECT COUNT("university_of_dublin") FROM "composition_of_the_20th_seanad" WHERE "agricultural_panel"=0 AND "nominated_by_the_taoiseach">0 AND "industrial_and_commercial_panel"<0;
## Task Generate a SQL query to answer the following question: `What is the total for University of Dublin, having a panel of 0 for agricultural, was nominated by Taoiseach more than 0, and an industrial and commercial panel less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition_of_the_20th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total for University of Dublin, having a panel of 0 for agricultural, was nominated by Taoiseach more than 0, and an industrial and commercial panel less than 0?`: ```sql
SELECT AVG("agricultural_panel") FROM "composition_of_the_20th_seanad" WHERE "national_university_of_ireland"<0;
## Task Generate a SQL query to answer the following question: `What is the average for the agricultural panel that has a National University of Ireland less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition_of_the_20th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average for the agricultural panel that has a National University of Ireland less than 0?`: ```sql
SELECT MIN("university_of_dublin") FROM "composition_of_the_20th_seanad" WHERE "administrative_panel"=3 AND "cultural_and_educational_panel"<2;
## Task Generate a SQL query to answer the following question: `What is the lowest number for the University of Dublin, having and administrative panel of 3, and a Cultural and Educational panel less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition_of_the_20th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number for the University of Dublin, having and administrative panel of 3, and a Cultural and Educational panel less than 2?`: ```sql
SELECT "record" FROM "schedule" WHERE "game_site"='memorial stadium' AND "date"='september 19, 1965';
## Task Generate a SQL query to answer the following question: `What was the record at Memorial Stadium on September 19, 1965?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the record at Memorial Stadium on September 19, 1965?`: ```sql
SELECT MAX("attendance") FROM "schedule" WHERE "game_site"='memorial stadium' AND "date"='december 12, 1965';
## Task Generate a SQL query to answer the following question: `What is the largest attendance at Memorial Stadium on December 12, 1965?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest attendance at Memorial Stadium on December 12, 1965?`: ```sql
SELECT MAX("extra_points") FROM "scoring_leaders" WHERE "player"='herman everhardus' AND "field_goals">0;
## Task Generate a SQL query to answer the following question: `Which Extra points is the highest one that has a Player of herman everhardus, and a Field goals larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Extra points is the highest one that has a Player of herman everhardus, and a Field goals larger than 0?`: ```sql
SELECT SUM("extra_points") FROM "scoring_leaders" WHERE "points"<12 AND "player"='chuck bernard' AND "touchdowns">1;
## Task Generate a SQL query to answer the following question: `Which Extra points has Points smaller than 12, and a Player of chuck bernard, and Touchdowns larger than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Extra points has Points smaller than 12, and a Player of chuck bernard, and Touchdowns larger than 1?`: ```sql
SELECT SUM("field_goals") FROM "scoring_leaders" WHERE "touchdowns"<3 AND "player"='willis ward' AND "extra_points"<0;
## Task Generate a SQL query to answer the following question: `How many Field goals have Touchdowns smaller than 3, and a Player of willis ward, and an Extra points smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Field goals have Touchdowns smaller than 3, and a Player of willis ward, and an Extra points smaller than 0?`: ```sql
SELECT AVG("extra_points") FROM "scoring_leaders" WHERE "points"<6;
## Task Generate a SQL query to answer the following question: `Whicih Extra points are the average ones that have Points smaller than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Whicih Extra points are the average ones that have Points smaller than 6?`: ```sql
SELECT "position" FROM "draft_picks" WHERE "round"=7;
## Task Generate a SQL query to answer the following question: `Which position is round 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `Which position is round 7?`: ```sql
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "position"='goaltender';
## Task Generate a SQL query to answer the following question: `Which college has a position of goaltender?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `Which college has a position of goaltender?`: ```sql
SELECT MAX("round") FROM "draft_picks" WHERE "player"='darryl fedorak';
## Task Generate a SQL query to answer the following question: `What is Darryl Fedorak's highest round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Darryl Fedorak's highest round?`: ```sql
SELECT "nationality" FROM "draft_picks" WHERE "round">8;
## Task Generate a SQL query to answer the following question: `What nationality has a higher round than 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `What nationality has a higher round than 8?`: ```sql
SELECT "connection_with_australia" FROM "music" WHERE "connection_with_america"='born in the u.s.; mother is u.s. citizen';
## Task Generate a SQL query to answer the following question: `What is the connection with Australia when the connection with America shows born in the u.s.; mother is u.s. citizen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "music" ( "name" text, "born_died" text, "notable_for" text, "connection_with_australia" text, "connection_with_america" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the connection with Australia when the connection with America shows born in the u.s.; mother is u.s. citizen?`: ```sql
SELECT "notable_for" FROM "music" WHERE "connection_with_australia"='born in australia' AND "name"='rick springfield';
## Task Generate a SQL query to answer the following question: `What is the person born in Australia, rick springfield notable for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "music" ( "name" text, "born_died" text, "notable_for" text, "connection_with_australia" text, "connection_with_america" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the person born in Australia, rick springfield notable for?`: ```sql
SELECT "born_died" FROM "music" WHERE "connection_with_australia"='family moved to australia at age 6';
## Task Generate a SQL query to answer the following question: `What is the Born–Died for the person whose family moved to Australia at age 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "music" ( "name" text, "born_died" text, "notable_for" text, "connection_with_australia" text, "connection_with_america" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Born–Died for the person whose family moved to Australia at age 6?`: ```sql
SELECT MAX("date") FROM "2000s" WHERE "cores_per_die_dies_per_module"='2 / 1' AND "clock"='1.4-1.6ghz';
## Task Generate a SQL query to answer the following question: `What is the latest date with Cores per die / Dies per module of 2 / 1, and a Clock of 1.4-1.6ghz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "date" real, "name" text, "developer" text, "clock" text, "process" text, "cores_per_die_dies_per_module" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the latest date with Cores per die / Dies per module of 2 / 1, and a Clock of 1.4-1.6ghz?`: ```sql
SELECT "process" FROM "2000s" WHERE "date">2000 AND "clock"='1.4-1.6ghz';
## Task Generate a SQL query to answer the following question: `Which process has a date later than 2000 and a Clock of 1.4-1.6ghz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "date" real, "name" text, "developer" text, "clock" text, "process" text, "cores_per_die_dies_per_module" text ); ### SQL Given the database schema, here is the SQL query that answers `Which process has a date later than 2000 and a Clock of 1.4-1.6ghz?`: ```sql
SELECT "date" FROM "2000s" WHERE "clock"='0.8-1.6ghz';
## Task Generate a SQL query to answer the following question: `Which date has a Clock of 0.8-1.6ghz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "date" real, "name" text, "developer" text, "clock" text, "process" text, "cores_per_die_dies_per_module" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date has a Clock of 0.8-1.6ghz?`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='may 21';
## Task Generate a SQL query to answer the following question: `What was the record on May 21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record on May 21?`: ```sql
SELECT "date" FROM "game_log" WHERE "attendance"='24,976';
## Task Generate a SQL query to answer the following question: `On what date was the attendance 24,976?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was the attendance 24,976?`: ```sql
SELECT "date" FROM "game_log" WHERE "record"='21-26';
## Task Generate a SQL query to answer the following question: `On what date was the record 21-26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was the record 21-26?`: ```sql
SELECT "attendance" FROM "game_log" WHERE "loss"='prokopec (2-7)';
## Task Generate a SQL query to answer the following question: `How many were in attendance with a loss of Prokopec (2-7)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many were in attendance with a loss of Prokopec (2-7)?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "date"='may 20';
## Task Generate a SQL query to answer the following question: `Who was the opponent on May 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent on May 20?`: ```sql
SELECT "tournament" FROM "tournament_results" WHERE "date"='apr 6';
## Task Generate a SQL query to answer the following question: `What is the tournament on Apr 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the tournament on Apr 6?`: ```sql
SELECT "1st_prize" FROM "tournament_results" WHERE "location"='scotland';
## Task Generate a SQL query to answer the following question: `What is the 1st prize of the tournament in Scotland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1st prize of the tournament in Scotland?`: ```sql
SELECT "location" FROM "tournament_results" WHERE "tournament"='sea pines heritage classic';
## Task Generate a SQL query to answer the following question: `What is the location of the Sea Pines Heritage Classic tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location of the Sea Pines Heritage Classic tournament?`: ```sql
SELECT "score" FROM "tournament_results" WHERE "tournament"='tournament players championship';
## Task Generate a SQL query to answer the following question: `What is the score of the Tournament Players Championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the Tournament Players Championship?`: ```sql
SELECT "1st_prize" FROM "tournament_results" WHERE "tournament"='u.s. open';
## Task Generate a SQL query to answer the following question: `What is the 1st prize at the U.S. Open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1st prize at the U.S. Open?`: ```sql
SELECT AVG("1st_prize") FROM "tournament_results" WHERE "score"='279 (–9)';
## Task Generate a SQL query to answer the following question: `What is the average first prize of the tournament with a score of 279 (–9)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average first prize of the tournament with a score of 279 (–9)?`: ```sql
SELECT MIN("1st_prize") FROM "tournament_results" WHERE "location"='california' AND "tournament"='mercedes championships';
## Task Generate a SQL query to answer the following question: `What is the lowest first prize of the Mercedes Championships tournament in California?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest first prize of the Mercedes Championships tournament in California?`: ```sql
SELECT AVG("capacity") FROM "teams_and_venues" WHERE "team"='kommunalnik';
## Task Generate a SQL query to answer the following question: `What is the average capacity for the venue where the team kommunalnik played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_1999" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average capacity for the venue where the team kommunalnik played?`: ```sql
SELECT "position_in_1999" FROM "teams_and_venues" WHERE "venue"='central, gomel';
## Task Generate a SQL query to answer the following question: `What is the position of the team that played at the venue, Central, Gomel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_1999" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of the team that played at the venue, Central, Gomel?`: ```sql
SELECT "position_in_1999" FROM "teams_and_venues" WHERE "capacity">'6,500';
## Task Generate a SQL query to answer the following question: `What is the position of the team that played at the venue with more than 6,500 capacity?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_1999" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of the team that played at the venue with more than 6,500 capacity?`: ```sql
SELECT MIN("assists") FROM "points_for_the_2007_08_season" WHERE "pims"=70 AND "goals"<19;
## Task Generate a SQL query to answer the following question: `What is the smallest number of assists with 70 Pims and less than 19 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "points_for_the_2007_08_season" ( "name" text, "pld" real, "goals" real, "assists" real, "points" real, "pims" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest number of assists with 70 Pims and less than 19 goals?`: ```sql
SELECT MIN("assists") FROM "points_for_the_2007_08_season" WHERE "name"='ben duggan' AND "points"<7;
## Task Generate a SQL query to answer the following question: `What is the smallest number of assists for Ben Duggan with less than 7 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "points_for_the_2007_08_season" ( "name" text, "pld" real, "goals" real, "assists" real, "points" real, "pims" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest number of assists for Ben Duggan with less than 7 points?`: ```sql
SELECT "year" FROM "division_1" WHERE "national_champion"='rhode island';
## Task Generate a SQL query to answer the following question: `In what Year was Rhode Island the National Champion?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_1" ( "year" text, "national_champion" text, "runner_up" text, "location" text, "host" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Year was Rhode Island the National Champion?`: ```sql
SELECT "runner_up" FROM "division_1" WHERE "host"='monroe county sports commission';
## Task Generate a SQL query to answer the following question: `What was the Runner-up in the Monroe County Sports Commission?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_1" ( "year" text, "national_champion" text, "runner_up" text, "location" text, "host" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Runner-up in the Monroe County Sports Commission?`: ```sql
SELECT "location" FROM "division_1" WHERE "runner_up"='tbd';
## Task Generate a SQL query to answer the following question: `At what Location was the Runner-up TBD?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_1" ( "year" text, "national_champion" text, "runner_up" text, "location" text, "host" text ); ### SQL Given the database schema, here is the SQL query that answers `At what Location was the Runner-up TBD?`: ```sql
SELECT "location" FROM "division_1" WHERE "host"='robert morris university (illinois)' AND "national_champion"='lindenwood';
## Task Generate a SQL query to answer the following question: `At what Location did Robert Morris University (Illinois) Host the Lindenwood National Chamption?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_1" ( "year" text, "national_champion" text, "runner_up" text, "location" text, "host" text ); ### SQL Given the database schema, here is the SQL query that answers `At what Location did Robert Morris University (Illinois) Host the Lindenwood National Chamption?`: ```sql
SELECT "runner_up" FROM "division_1" WHERE "national_champion"='ohio' AND "location"='tucson, az';
## Task Generate a SQL query to answer the following question: `What was the Runner-up with Ohio as the National Champion in Tucson, AZ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_1" ( "year" text, "national_champion" text, "runner_up" text, "location" text, "host" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Runner-up with Ohio as the National Champion in Tucson, AZ?`: ```sql
SELECT "graphics" FROM "comparison_table" WHERE "vram"='512mb';
## Task Generate a SQL query to answer the following question: `Which graphics spec has a VRAM spec of 512MB?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_table" ( "model" text, "processor" text, "memory" text, "storage" text, "graphics" text, "vram" text, "display_resolution" text, "msrp" text ); ### SQL Given the database schema, here is the SQL query that answers `Which graphics spec has a VRAM spec of 512MB?`: ```sql
SELECT "msrp" FROM "comparison_table" WHERE "storage"='128-512 gb ssd';
## Task Generate a SQL query to answer the following question: `What is the MSRP for the laptop with storage of 128-512 GB SSD?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_table" ( "model" text, "processor" text, "memory" text, "storage" text, "graphics" text, "vram" text, "display_resolution" text, "msrp" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the MSRP for the laptop with storage of 128-512 GB SSD?`: ```sql
SELECT "opponent" FROM "playoffs" WHERE "game"=5;
## Task Generate a SQL query to answer the following question: `Name the opponent for game 5` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the opponent for game 5`: ```sql
SELECT "status" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "name"='cadeby';
## Task Generate a SQL query to answer the following question: `What status is shown for Cadeby?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_civil_parishes_and_unparished_ar" ( "name" text, "status" text, "population" real, "district" text, "former_local_authority" text ); ### SQL Given the database schema, here is the SQL query that answers `What status is shown for Cadeby?`: ```sql
SELECT "former_local_authority" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "name"='ecclesfield';
## Task Generate a SQL query to answer the following question: `What is the Former local authority for Ecclesfield?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_civil_parishes_and_unparished_ar" ( "name" text, "status" text, "population" real, "district" text, "former_local_authority" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Former local authority for Ecclesfield?`: ```sql
SELECT "status" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "name"='mexborough';
## Task Generate a SQL query to answer the following question: `What is the Status of Mexborough?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_civil_parishes_and_unparished_ar" ( "name" text, "status" text, "population" real, "district" text, "former_local_authority" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Status of Mexborough?`: ```sql
SELECT "status" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "district"='doncaster' AND "former_local_authority"='doncaster rural district' AND "population"=203;
## Task Generate a SQL query to answer the following question: `What is the Status for the District of doncaster, and a Former local authority of doncaster rural district, with a Population of 203?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_civil_parishes_and_unparished_ar" ( "name" text, "status" text, "population" real, "district" text, "former_local_authority" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Status for the District of doncaster, and a Former local authority of doncaster rural district, with a Population of 203?`: ```sql
SELECT "score" FROM "regular_season" WHERE "date"='december 1';
## Task Generate a SQL query to answer the following question: `What is the score on December 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score on December 1?`: ```sql
SELECT "skip" FROM "teams" WHERE "second"='oliver dupont';
## Task Generate a SQL query to answer the following question: `Which skip has Oliver Dupont as a second?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which skip has Oliver Dupont as a second?`: ```sql
SELECT "second" FROM "teams" WHERE "third"='jean-michel arsenault';
## Task Generate a SQL query to answer the following question: `Which second's third is Jean-Michel Arsenault?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which second's third is Jean-Michel Arsenault?`: ```sql
SELECT "skip" FROM "teams" WHERE "third"='steffen walstad';
## Task Generate a SQL query to answer the following question: `Which skip's third is Steffen Walstad?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which skip's third is Steffen Walstad?`: ```sql
SELECT "skip" FROM "teams" WHERE "second"='martin hejhal';
## Task Generate a SQL query to answer the following question: `Which skip's second is Martin Hejhal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which skip's second is Martin Hejhal?`: ```sql
SELECT "skip" FROM "teams" WHERE "lead"='gordon mcdougall';
## Task Generate a SQL query to answer the following question: `Which skip's lead is Gordon McDougall?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which skip's lead is Gordon McDougall?`: ```sql
SELECT "second" FROM "teams" WHERE "skip"='chris plys';
## Task Generate a SQL query to answer the following question: `Which second's skip is Chris Plys?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which second's skip is Chris Plys?`: ```sql