output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "notes" FROM "achievements" WHERE "venue"='toronto, canada';
## Task Generate a SQL query to answer the following question: `What were the notes in Toronto, Canada?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the notes in Toronto, Canada?`: ```sql
SELECT MAX("points") FROM "motorcycle_grand_prix_results" WHERE "class"='125cc' AND "team"='mv agusta' AND "year">1957;
## Task Generate a SQL query to answer the following question: `Name the most points for class of 125cc and team of mv agusta with year more than 1957` ### 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 `Name the most points for class of 125cc and team of mv agusta with year more than 1957`: ```sql
SELECT "zx_spectrum" FROM "titles_by_beyond_software" WHERE "year">1984 AND "genre"='arcade/strategy';
## Task Generate a SQL query to answer the following question: `Which ZX Spectrum has a Year larger than 1984, and a Genre of arcade/strategy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "titles_by_beyond_software" ( "title" text, "genre" text, "c_64" text, "zx_spectrum" text, "others" text, "year" real, "format" text ); ### SQL Given the database schema, here is the SQL query that answers `Which ZX Spectrum has a Year larger than 1984, and a Genre of arcade/strategy?`: ```sql
SELECT COUNT("year") FROM "titles_by_beyond_software" WHERE "title"='kriegspiel';
## Task Generate a SQL query to answer the following question: `How many years have a Title of kriegspiel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "titles_by_beyond_software" ( "title" text, "genre" text, "c_64" text, "zx_spectrum" text, "others" text, "year" real, "format" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years have a Title of kriegspiel?`: ```sql
SELECT "zx_spectrum" FROM "titles_by_beyond_software" WHERE "c_64"='c64' AND "title"='ankh';
## Task Generate a SQL query to answer the following question: `Which ZX Spectrum has a C=64 of c64, and a Title of ankh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "titles_by_beyond_software" ( "title" text, "genre" text, "c_64" text, "zx_spectrum" text, "others" text, "year" real, "format" text ); ### SQL Given the database schema, here is the SQL query that answers `Which ZX Spectrum has a C=64 of c64, and a Title of ankh?`: ```sql
SELECT "title" FROM "titles_by_beyond_software" WHERE "others"='amstrad cpc' AND "genre"='arcade';
## Task Generate a SQL query to answer the following question: `Which Title has Others of amstrad cpc, and a Genre of arcade?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "titles_by_beyond_software" ( "title" text, "genre" text, "c_64" text, "zx_spectrum" text, "others" text, "year" real, "format" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Title has Others of amstrad cpc, and a Genre of arcade?`: ```sql
SELECT "result" FROM "schedule" WHERE "attendance"='12,000';
## Task Generate a SQL query to answer the following question: `What was the result when the attendance was 12,000?` ### 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, "venue" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result when the attendance was 12,000?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "week"<5 AND "date"='no game scheduled';
## Task Generate a SQL query to answer the following question: `What was the attendance for weeks prior to 5 when there was no game scheduled?` ### 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, "venue" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance for weeks prior to 5 when there was no game scheduled?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "venue"='lakeside park';
## Task Generate a SQL query to answer the following question: `What was the attendance number for the venue of Lakeside Park?` ### 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, "venue" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance number for the venue of Lakeside Park?`: ```sql
SELECT MAX("week") FROM "schedule" WHERE "venue"='league park' AND "date"='november 25, 1920';
## Task Generate a SQL query to answer the following question: `What is the largest week number for the venue of League Park for the date of November 25, 1920?` ### 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, "venue" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest week number for the venue of League Park for the date of November 25, 1920?`: ```sql
SELECT "surname" FROM "player_roster" WHERE "first"='michael';
## Task Generate a SQL query to answer the following question: `What is Michael's surname?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Michael's surname?`: ```sql
SELECT "first" FROM "player_roster" WHERE "bats"='r' AND "throws"='l' AND "d_o_b"='12 october 1977';
## Task Generate a SQL query to answer the following question: `Which First has Bats of r, and Throws of l, and a DOB of 12 october 1977?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `Which First has Bats of r, and Throws of l, and a DOB of 12 october 1977?`: ```sql
SELECT "d_o_b" FROM "player_roster" WHERE "surname"='maat';
## Task Generate a SQL query to answer the following question: `When was Maat born?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `When was Maat born?`: ```sql
SELECT "bats" FROM "player_roster" WHERE "first"='todd';
## Task Generate a SQL query to answer the following question: `How many bats does Todd have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `How many bats does Todd have?`: ```sql
SELECT "position" FROM "player_roster" WHERE "d_o_b"='13 may 1987';
## Task Generate a SQL query to answer the following question: `Which Position has a DOB of 13 may 1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Position has a DOB of 13 may 1987?`: ```sql
SELECT "bats" FROM "player_roster" WHERE "throws"='r' AND "d_o_b"='22 may 1973';
## Task Generate a SQL query to answer the following question: `Which Bats have Throws of r, and a DOB of 22 may 1973?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Bats have Throws of r, and a DOB of 22 may 1973?`: ```sql
SELECT "croatia" FROM "2005" WHERE "friendly"='world cup 2006 qualifier' AND "149"=152;
## Task Generate a SQL query to answer the following question: `Which Croatia has a Friendly of world cup 2006 qualifier, and a 149 of 152?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005" ( "149" real, "9_february" text, "friendly" text, "israel" text, "croatia" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Croatia has a Friendly of world cup 2006 qualifier, and a 149 of 152?`: ```sql
SELECT "production_company" FROM "2006" WHERE "producer_s"='sam mccarthy';
## Task Generate a SQL query to answer the following question: `For which production company did Sam Mccarthy produce?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2006" ( "rank" text, "film" text, "director_s" text, "producer_s" text, "writer_s" text, "production_company" text ); ### SQL Given the database schema, here is the SQL query that answers `For which production company did Sam Mccarthy produce?`: ```sql
SELECT "director_s" FROM "2006" WHERE "writer_s"='dana dorian';
## Task Generate a SQL query to answer the following question: `Who was the director that worked with Dana Dorian as the writer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2006" ( "rank" text, "film" text, "director_s" text, "producer_s" text, "writer_s" text, "production_company" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the director that worked with Dana Dorian as the writer?`: ```sql
SELECT "film" FROM "2006" WHERE "rank"='nominated' AND "director_s"='dana dorian';
## Task Generate a SQL query to answer the following question: `Which film, directed by Dana Dorian, was nominated?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2006" ( "rank" text, "film" text, "director_s" text, "producer_s" text, "writer_s" text, "production_company" text ); ### SQL Given the database schema, here is the SQL query that answers `Which film, directed by Dana Dorian, was nominated?`: ```sql
SELECT SUM("december") FROM "schedule_and_results" WHERE "opponent"='vancouver canucks' AND "game"<33;
## Task Generate a SQL query to answer the following question: `What is the sum for December against the vancouver canucks earlier than game 33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum for December against the vancouver canucks earlier than game 33?`: ```sql
SELECT SUM("december") FROM "schedule_and_results" WHERE "record"='22-12-5';
## Task Generate a SQL query to answer the following question: `What is the sum for December when the record was 22-12-5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum for December when the record was 22-12-5?`: ```sql
SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "team"='norton' AND "wins"<0;
## Task Generate a SQL query to answer the following question: `When is the earliest year associated with team norton and 0 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 `When is the earliest year associated with team norton and 0 wins?`: ```sql
SELECT COUNT("year") FROM "motorcycle_grand_prix_results" WHERE "wins"=0 AND "team"='ajs' AND "points"<12;
## Task Generate a SQL query to answer the following question: `What is the year that there were 0 wins, team AJS, and under 12 points?` ### 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 `What is the year that there were 0 wins, team AJS, and under 12 points?`: ```sql
SELECT AVG("year") FROM "awards_and_nominations" WHERE "award_ceremony"='drama desk award' AND "category"='outstanding featured actress in a musical';
## Task Generate a SQL query to answer the following question: `What year is associated with a drama desk award ceremony and a Category of outstanding featured actress in a musical?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award_ceremony" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What year is associated with a drama desk award ceremony and a Category of outstanding featured actress in a musical?`: ```sql
SELECT AVG("loss") FROM "rushing" WHERE "long">12 AND "name"='opponents' AND "gain">1751;
## Task Generate a SQL query to answer the following question: `What is the average Loss for the long of more than 12 with a name of opponents with a Gain larger than 1751?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rushing" ( "name" text, "gp_gs" text, "gain" real, "loss" real, "long" real, "avg_g" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Loss for the long of more than 12 with a name of opponents with a Gain larger than 1751?`: ```sql
SELECT "winner_2nd" FROM "2001_02_season_as_a_three_year_old" WHERE "race"='caulfield guineas';
## Task Generate a SQL query to answer the following question: `Who was the winner/2nd place finisher in the Caulfield Guineas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2001_02_season_as_a_three_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "time" text, "jockey" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner/2nd place finisher in the Caulfield Guineas?`: ```sql
SELECT "jockey" FROM "2001_02_season_as_a_three_year_old" WHERE "group"='g3';
## Task Generate a SQL query to answer the following question: `Which jockey had a group of G3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2001_02_season_as_a_three_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "time" text, "jockey" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `Which jockey had a group of G3?`: ```sql
SELECT "time" FROM "2001_02_season_as_a_three_year_old" WHERE "group"='g2' AND "race"='hobartville stakes';
## Task Generate a SQL query to answer the following question: `What was the time for the G2 group at the Hobartville Stakes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2001_02_season_as_a_three_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "time" text, "jockey" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the time for the G2 group at the Hobartville Stakes?`: ```sql
SELECT "airport" FROM "destinations" WHERE "city"='perth';
## Task Generate a SQL query to answer the following question: `Which airport has perth as the city?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "state_territory" text, "iata" text, "icao" text, "airport" text, "begin" text ); ### SQL Given the database schema, here is the SQL query that answers `Which airport has perth as the city?`: ```sql
SELECT "city" FROM "destinations" WHERE "state_territory"='tasmania' AND "icao"='ymhb';
## Task Generate a SQL query to answer the following question: `Which city has tasmania as the state/territory and a ICAO of ymhb?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "state_territory" text, "iata" text, "icao" text, "airport" text, "begin" text ); ### SQL Given the database schema, here is the SQL query that answers `Which city has tasmania as the state/territory and a ICAO of ymhb?`: ```sql
SELECT "airport" FROM "destinations" WHERE "icao"='ybcg';
## Task Generate a SQL query to answer the following question: `Which airport has an ICAO of ybcg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "state_territory" text, "iata" text, "icao" text, "airport" text, "begin" text ); ### SQL Given the database schema, here is the SQL query that answers `Which airport has an ICAO of ybcg?`: ```sql
SELECT "iata" FROM "destinations" WHERE "state_territory"='new south wales' AND "begin"='july 2009';
## Task Generate a SQL query to answer the following question: `What is the IATA that has new south wales as the state/territory beginning on july 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "state_territory" text, "iata" text, "icao" text, "airport" text, "begin" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the IATA that has new south wales as the state/territory beginning on july 2009?`: ```sql
SELECT "iata" FROM "destinations" WHERE "state_territory"='queensland' AND "icao"='ybrk';
## Task Generate a SQL query to answer the following question: `What IATA has queensland as the state/territory and an ICAO of ybrk?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "state_territory" text, "iata" text, "icao" text, "airport" text, "begin" text ); ### SQL Given the database schema, here is the SQL query that answers `What IATA has queensland as the state/territory and an ICAO of ybrk?`: ```sql
SELECT "begin" FROM "destinations" WHERE "state_territory"='victoria' AND "icao"='ymml';
## Task Generate a SQL query to answer the following question: `What begin has victoria as the state/territory and a ICA0 of ymml?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "state_territory" text, "iata" text, "icao" text, "airport" text, "begin" text ); ### SQL Given the database schema, here is the SQL query that answers `What begin has victoria as the state/territory and a ICA0 of ymml?`: ```sql
SELECT "visitor" FROM "march" WHERE "date"='march 27';
## Task Generate a SQL query to answer the following question: `Who was the visitor on March 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the visitor on March 27?`: ```sql
SELECT "record" FROM "march" WHERE "date"='march 14';
## Task Generate a SQL query to answer the following question: `What was the record on March 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record on March 14?`: ```sql
SELECT "format" FROM "fm_stations" WHERE "frequency"='99.5 fm';
## Task Generate a SQL query to answer the following question: `What format is at frequency 99.5 FM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fm_stations" ( "frequency" text, "name" text, "format" text, "call_sign" text, "covered_location" text ); ### SQL Given the database schema, here is the SQL query that answers `What format is at frequency 99.5 FM?`: ```sql
SELECT "format" FROM "fm_stations" WHERE "call_sign"='dzfe';
## Task Generate a SQL query to answer the following question: `What format has the call sign DZFE?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fm_stations" ( "frequency" text, "name" text, "format" text, "call_sign" text, "covered_location" text ); ### SQL Given the database schema, here is the SQL query that answers `What format has the call sign DZFE?`: ```sql
SELECT "covered_location" FROM "fm_stations" WHERE "frequency"='90.7 fm';
## Task Generate a SQL query to answer the following question: `What covered location has a frequency of 90.7 FM` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fm_stations" ( "frequency" text, "name" text, "format" text, "call_sign" text, "covered_location" text ); ### SQL Given the database schema, here is the SQL query that answers `What covered location has a frequency of 90.7 FM`: ```sql
SELECT "frequency" FROM "fm_stations" WHERE "name"='104.3 business radio';
## Task Generate a SQL query to answer the following question: `What is the frequency of 104.3 business radio?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fm_stations" ( "frequency" text, "name" text, "format" text, "call_sign" text, "covered_location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the frequency of 104.3 business radio?`: ```sql
SELECT "name" FROM "fm_stations" WHERE "call_sign"='dwys';
## Task Generate a SQL query to answer the following question: `What name has the call sign DWYS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fm_stations" ( "frequency" text, "name" text, "format" text, "call_sign" text, "covered_location" text ); ### SQL Given the database schema, here is the SQL query that answers `What name has the call sign DWYS?`: ```sql
SELECT "name" FROM "villages" WHERE "dcsf_number"=3373;
## Task Generate a SQL query to answer the following question: `Who has a DCSF number of 3373?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "villages" ( "name" text, "faith" text, "type" text, "intake" real, "dcsf_number" real, "ofsted_number" real ); ### SQL Given the database schema, here is the SQL query that answers `Who has a DCSF number of 3373?`: ```sql
SELECT AVG("intake") FROM "villages" WHERE "type"='primary' AND "ofsted_number"=117433 AND "dcsf_number">3335;
## Task Generate a SQL query to answer the following question: `What is the average primary intake with an Ofsted number of 117433 and a DCSF number greater than 3335?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "villages" ( "name" text, "faith" text, "type" text, "intake" real, "dcsf_number" real, "ofsted_number" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average primary intake with an Ofsted number of 117433 and a DCSF number greater than 3335?`: ```sql
SELECT MIN("ofsted_number") FROM "villages" WHERE "type"='primary' AND "faith"='ce' AND "intake"=30 AND "dcsf_number"<3349;
## Task Generate a SQL query to answer the following question: `What is the lowest Ofsted number for a primary with a CE faith, intake of 30 and a DCSF number lower than 3349?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "villages" ( "name" text, "faith" text, "type" text, "intake" real, "dcsf_number" real, "ofsted_number" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Ofsted number for a primary with a CE faith, intake of 30 and a DCSF number lower than 3349?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "result"='w 37-14';
## Task Generate a SQL query to answer the following question: `Can you tell me the Opponent that has the Result of w 37-14?` ### 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, "venue" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the Opponent that has the Result of w 37-14?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "date"='october 11, 1953';
## Task Generate a SQL query to answer the following question: `Can you tell me the Opponent that has the Date of october 11, 1953?` ### 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, "venue" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the Opponent that has the Date of october 11, 1953?`: ```sql
SELECT "established" FROM "professional_sports" WHERE "championships">0 AND "league"='west coast league';
## Task Generate a SQL query to answer the following question: `What year was the West Coast League established than the championships are greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_sports" ( "club" text, "sport" text, "league" text, "venue" text, "established" real, "championships" real ); ### SQL Given the database schema, here is the SQL query that answers `What year was the West Coast League established than the championships are greater than 0?`: ```sql
SELECT MAX("established") FROM "professional_sports" WHERE "championships"=0 AND "venue"='apple bowl';
## Task Generate a SQL query to answer the following question: `During the Apple Bowl having 0 championships, what was the established year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_sports" ( "club" text, "sport" text, "league" text, "venue" text, "established" real, "championships" real ); ### SQL Given the database schema, here is the SQL query that answers `During the Apple Bowl having 0 championships, what was the established year?`: ```sql
SELECT "sport" FROM "professional_sports" WHERE "venue"='wildcat stadium';
## Task Generate a SQL query to answer the following question: `What sport happened at Wildcat Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_sports" ( "club" text, "sport" text, "league" text, "venue" text, "established" real, "championships" real ); ### SQL Given the database schema, here is the SQL query that answers `What sport happened at Wildcat Stadium?`: ```sql
SELECT MAX("championships") FROM "professional_sports" WHERE "league"='evergreen premier league';
## Task Generate a SQL query to answer the following question: `How many championships does Evergreen Premier League have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_sports" ( "club" text, "sport" text, "league" text, "venue" text, "established" real, "championships" real ); ### SQL Given the database schema, here is the SQL query that answers `How many championships does Evergreen Premier League have?`: ```sql
SELECT "position" FROM "atlanta_falcons_draft_history" WHERE "round">10 AND "name"='shawn mccarthy';
## Task Generate a SQL query to answer the following question: `Which Position has a Round larger than 10, and a Name of shawn mccarthy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Position has a Round larger than 10, and a Name of shawn mccarthy?`: ```sql
SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "name"='tory epps' AND "round">8;
## Task Generate a SQL query to answer the following question: `How many Pick #s have a Name of tory epps, and a Round larger than 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Pick #s have a Name of tory epps, and a Round larger than 8?`: ```sql
SELECT "visitor" FROM "schedule" WHERE "record"='5-2-0';
## Task Generate a SQL query to answer the following question: `Which team was the visitor with a record of 5-2-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which team was the visitor with a record of 5-2-0?`: ```sql
SELECT "score" FROM "schedule" WHERE "date"='november 3';
## Task Generate a SQL query to answer the following question: `What is the score for the November 3 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the score for the November 3 game?`: ```sql
SELECT "others" FROM "opinion_polls" WHERE "martin"='9%' AND "source"='ogm/news';
## Task Generate a SQL query to answer the following question: `What percent of others did ogm/news count when MARTIN had 9%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polls" ( "source" text, "date" text, "martin" text, "gr_ne" text, "others" text, "undecided" text ); ### SQL Given the database schema, here is the SQL query that answers `What percent of others did ogm/news count when MARTIN had 9%?`: ```sql
SELECT "undecided" FROM "opinion_polls" WHERE "others"='4%';
## Task Generate a SQL query to answer the following question: `What is the Undecided the others was 4%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polls" ( "source" text, "date" text, "martin" text, "gr_ne" text, "others" text, "undecided" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Undecided the others was 4%?`: ```sql
SELECT "undecided" FROM "opinion_polls" WHERE "date"='2009-05-24';
## Task Generate a SQL query to answer the following question: `What is the Undecided on 2009-05-24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polls" ( "source" text, "date" text, "martin" text, "gr_ne" text, "others" text, "undecided" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Undecided on 2009-05-24?`: ```sql
SELECT "date" FROM "opinion_polls" WHERE "undecided"='–' AND "martin"='7–9%';
## Task Generate a SQL query to answer the following question: `What is the Date that has MARTIN of 7–9% and no Undecided?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polls" ( "source" text, "date" text, "martin" text, "gr_ne" text, "others" text, "undecided" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date that has MARTIN of 7–9% and no Undecided?`: ```sql
SELECT "date" FROM "opinion_polls" WHERE "martin"='8%';
## Task Generate a SQL query to answer the following question: `What is the Date when MARTIN had 8%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polls" ( "source" text, "date" text, "martin" text, "gr_ne" text, "others" text, "undecided" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date when MARTIN had 8%?`: ```sql
SELECT COUNT("attendance") FROM "summary" WHERE "game"<3 AND "date"='october 31';
## Task Generate a SQL query to answer the following question: `Which Attendance has a Game smaller than 3, and a Date of october 31?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Attendance has a Game smaller than 3, and a Date of october 31?`: ```sql
SELECT "rank" FROM "best_figures_in_a_match" WHERE "player"='charles eady' AND "bowling"='12/63';
## Task Generate a SQL query to answer the following question: `What is rank of player Charles Eady and a Bowling of 12/63?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_figures_in_a_match" ( "rank" text, "bowling" text, "player" text, "opponent" text, "venue" text, "season" text ); ### SQL Given the database schema, here is the SQL query that answers `What is rank of player Charles Eady and a Bowling of 12/63?`: ```sql
SELECT "opponent" FROM "doubles_37_17_20" WHERE "surface"='hard' AND "outcome"='winner' AND "partnering"='jordan kerr';
## Task Generate a SQL query to answer the following question: `Who was the Opponent partnering with Jordan Kerr, on a hard surface that was the winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_37_17_20" ( "outcome" text, "date" text, "surface" text, "partnering" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Opponent partnering with Jordan Kerr, on a hard surface that was the winner?`: ```sql
SELECT AVG("year") FROM "engines" WHERE "power"='bhp (kw)' AND "trim"='ls/2lt';
## Task Generate a SQL query to answer the following question: `What's the Year Average that has a Power of BHP (KW) and Trim of LS/2LT?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "year" real, "trim" text, "engine" text, "power" text, "torque" text, "epa_2008_city" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the Year Average that has a Power of BHP (KW) and Trim of LS/2LT?`: ```sql
SELECT "engine" FROM "engines" WHERE "year">2006 AND "power"='bhp (kw)';
## Task Generate a SQL query to answer the following question: `Which Engine has a Year that's Larger than 2006 and Power of BHP (KW)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "year" real, "trim" text, "engine" text, "power" text, "torque" text, "epa_2008_city" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Engine has a Year that's Larger than 2006 and Power of BHP (KW)?`: ```sql
SELECT "torque" FROM "engines" WHERE "power"='hp (kw)';
## Task Generate a SQL query to answer the following question: `What Torque has a Power of HP (KW)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "year" real, "trim" text, "engine" text, "power" text, "torque" text, "epa_2008_city" text ); ### SQL Given the database schema, here is the SQL query that answers `What Torque has a Power of HP (KW)?`: ```sql
SELECT AVG("year") FROM "engines" WHERE "trim"='ls/lt' AND "power"='hp (kw)';
## Task Generate a SQL query to answer the following question: `What's the Year average that's got Trim of LS/LT and Power of HP (KW)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "year" real, "trim" text, "engine" text, "power" text, "torque" text, "epa_2008_city" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the Year average that's got Trim of LS/LT and Power of HP (KW)?`: ```sql
SELECT "college" FROM "atlanta_falcons_draft_history" WHERE "overall"=17;
## Task Generate a SQL query to answer the following question: `Name the college with overall of 17` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the college with overall of 17`: ```sql
SELECT MIN("overall") FROM "atlanta_falcons_draft_history" WHERE "name"='tony baker';
## Task Generate a SQL query to answer the following question: `Name the least overall for tony baker` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least overall for tony baker`: ```sql
SELECT "visitor" FROM "regular_season" WHERE "home"='winnipeg';
## Task Generate a SQL query to answer the following question: `Who was the visiting team when Winnipeg was the home team?` ### 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 `Who was the visiting team when Winnipeg was the home team?`: ```sql
SELECT "score" FROM "regular_season" WHERE "decision"='peeters' AND "record"='29–3–11';
## Task Generate a SQL query to answer the following question: `What was the score of the game with a decision of Peeters and a record of 29–3–11?` ### 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 was the score of the game with a decision of Peeters and a record of 29–3–11?`: ```sql
SELECT "label" FROM "release_history" WHERE "country"='united kingdom' AND "catalogue_num"='hvnlp26cd';
## Task Generate a SQL query to answer the following question: `What is the Label of Catalogue # HVNLP26CD from United Kingdom?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_num" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Label of Catalogue # HVNLP26CD from United Kingdom?`: ```sql
SELECT "country" FROM "release_history" WHERE "catalogue_num"='asw 50248 (724385024825)';
## Task Generate a SQL query to answer the following question: `What Country is Catalogue # ASW 50248 (724385024825) from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_num" text ); ### SQL Given the database schema, here is the SQL query that answers `What Country is Catalogue # ASW 50248 (724385024825) from?`: ```sql
SELECT "winning_team" FROM "races" WHERE "name"='south pacific trophy';
## Task Generate a SQL query to answer the following question: `Who is the winning team of the South Pacific Trophy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "races" ( "round" text, "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_car" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the winning team of the South Pacific Trophy?`: ```sql
SELECT "attendance" FROM "game_log" WHERE "loss"='gonzález (0–3)';
## Task Generate a SQL query to answer the following question: `Loss of gonzález (0–3) had what attendance?` ### 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 `Loss of gonzález (0–3) had what attendance?`: ```sql
SELECT "date" FROM "game_log" WHERE "record"='92–70';
## Task Generate a SQL query to answer the following question: `Record of 92–70 had what date?` ### 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 `Record of 92–70 had what date?`: ```sql
SELECT "record" FROM "game_log" WHERE "loss"='kendrick (11–8)';
## Task Generate a SQL query to answer the following question: `Loss of kendrick (11–8) had what record?` ### 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 `Loss of kendrick (11–8) had what record?`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='september 28';
## Task Generate a SQL query to answer the following question: `Date of september 28 had what record?` ### 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 `Date of september 28 had what record?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "attendance"='23,150';
## Task Generate a SQL query to answer the following question: `Attendance of 23,150 had what opponent?` ### 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 `Attendance of 23,150 had what opponent?`: ```sql
SELECT "score" FROM "game_log" WHERE "attendance"='36,796';
## Task Generate a SQL query to answer the following question: `Attendance of 36,796 had what score?` ### 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 `Attendance of 36,796 had what score?`: ```sql
SELECT SUM("long") FROM "rushing" WHERE "name"='derrick locke';
## Task Generate a SQL query to answer the following question: `What is the sum of Long for derrick locke?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rushing" ( "name" text, "gp_gs" text, "gain" real, "loss" real, "long" real, "avg_g" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of Long for derrick locke?`: ```sql
SELECT MIN("loss") FROM "rushing" WHERE "name"='derrick locke' AND "gain">319;
## Task Generate a SQL query to answer the following question: `What is the lowest Loss with Gain larger than 319 for derrick locke?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rushing" ( "name" text, "gp_gs" text, "gain" real, "loss" real, "long" real, "avg_g" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Loss with Gain larger than 319 for derrick locke?`: ```sql
SELECT "club" FROM "overview" WHERE "head_coach"='wojciech kamiński';
## Task Generate a SQL query to answer the following question: `Head Coach of wojciech kamiński is what club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overview" ( "club" text, "sport" text, "founded" real, "league" text, "venue" text, "head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `Head Coach of wojciech kamiński is what club?`: ```sql
SELECT "league" FROM "overview" WHERE "sport"='football' AND "venue"='stadion polonii';
## Task Generate a SQL query to answer the following question: `Sport of football, and a Venue of stadion polonii is what league?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overview" ( "club" text, "sport" text, "founded" real, "league" text, "venue" text, "head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `Sport of football, and a Venue of stadion polonii is what league?`: ```sql
SELECT "league" FROM "overview" WHERE "sport"='gaelic football and hurling';
## Task Generate a SQL query to answer the following question: `Sport of gaelic football and hurling is what league?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overview" ( "club" text, "sport" text, "founded" real, "league" text, "venue" text, "head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `Sport of gaelic football and hurling is what league?`: ```sql
SELECT "club" FROM "overview" WHERE "venue"='pepsi arena';
## Task Generate a SQL query to answer the following question: `Venue of Pepsi arena involved what club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overview" ( "club" text, "sport" text, "founded" real, "league" text, "venue" text, "head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `Venue of Pepsi arena involved what club?`: ```sql
SELECT MAX("earnings") FROM "leaders" WHERE "player"='tom watson' AND "rank">2;
## Task Generate a SQL query to answer the following question: `What is the highest earnings for Tom watson who had a ranking larger than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest earnings for Tom watson who had a ranking larger than 2?`: ```sql
SELECT MAX("rank") FROM "leaders" WHERE "earnings"='4,263,133';
## Task Generate a SQL query to answer the following question: `What is the highest rank for the player who earns $4,263,133?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest rank for the player who earns $4,263,133?`: ```sql
SELECT AVG("wins") FROM "leaders" WHERE "rank">3 AND "earnings"='3,707,586';
## Task Generate a SQL query to answer the following question: `What is the average number of wins for the player with a rank larger than 3 and earnings of $3,707,586?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number of wins for the player with a rank larger than 3 and earnings of $3,707,586?`: ```sql
SELECT MAX("wins") FROM "leaders" WHERE "player"='tom watson' AND "earnings"<'4,974,845';
## Task Generate a SQL query to answer the following question: `What is the highest number of wins for Tom Watson who earns less than $4,974,845?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of wins for Tom Watson who earns less than $4,974,845?`: ```sql
SELECT MAX("earnings") FROM "leaders" WHERE "player"='curtis strange';
## Task Generate a SQL query to answer the following question: `What is the highest earnings for curtis strange?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest earnings for curtis strange?`: ```sql
SELECT AVG("year") FROM "nascar_nationwide_series" WHERE "avg_start"<6.3 AND "wins"<0;
## Task Generate a SQL query to answer the following question: `What is the average year with an average start smaller than 6.3 and fewer than 0 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average year with an average start smaller than 6.3 and fewer than 0 wins?`: ```sql
SELECT "second" FROM "group_b2" WHERE "skip"='barbora vojtusova';
## Task Generate a SQL query to answer the following question: `Which Second has a Skip of barbora vojtusova?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Second has a Skip of barbora vojtusova?`: ```sql
SELECT "skip" FROM "group_b2" WHERE "lead"='marju velga';
## Task Generate a SQL query to answer the following question: `Which Skip did marju velga lead?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Skip did marju velga lead?`: ```sql
SELECT "lead" FROM "group_b2" WHERE "second"='katrin kuusk';
## Task Generate a SQL query to answer the following question: `Which Lead has a Second of katrin kuusk?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Lead has a Second of katrin kuusk?`: ```sql
SELECT "third" FROM "group_b2" WHERE "skip"='ellen vogt';
## Task Generate a SQL query to answer the following question: `Which Third has a Skip of ellen vogt?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Third has a Skip of ellen vogt?`: ```sql
SELECT "third" FROM "group_b2" WHERE "second"='agnieszka ogrodniczek';
## Task Generate a SQL query to answer the following question: `Which Third has a Second of agnieszka ogrodniczek?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Third has a Second of agnieszka ogrodniczek?`: ```sql
SELECT "skip" FROM "group_b2" WHERE "nation"='spain';
## Task Generate a SQL query to answer the following question: `What is Spain's skip?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Spain's skip?`: ```sql
SELECT "per_capita_income" FROM "vermont_counties_ranked_by_per_capita_in" WHERE "number_of_households">'116,716,292' AND "median_household_income"='$42,706';
## Task Generate a SQL query to answer the following question: `What is the Per capita income associated with over 116,716,292 households and a Median household income of $42,706?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vermont_counties_ranked_by_per_capita_in" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Per capita income associated with over 116,716,292 households and a Median household income of $42,706?`: ```sql
SELECT "per_capita_income" FROM "vermont_counties_ranked_by_per_capita_in" WHERE "median_household_income"='$55,800';
## Task Generate a SQL query to answer the following question: `What is the Per capita income associated with a Median household income of $55,800?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vermont_counties_ranked_by_per_capita_in" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Per capita income associated with a Median household income of $55,800?`: ```sql