output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "score" FROM "january" WHERE "leading_scorer"='tyrone hill , 20 points'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Leading Scorer is Tyrone Hill , 20 Points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
... |
SELECT "home" FROM "january" WHERE "score"='103-93'; |
## Task
Generate a SQL query to answer the following question:
`What is Home, when Score is 103-93?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"a... |
SELECT "attendance" FROM "january" WHERE "home"='cleveland' AND "date"='january 30'; |
## Task
Generate a SQL query to answer the following question:
`What is Attendance, when Home is Cleveland, and when Date is January 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home... |
SELECT "leading_scorer" FROM "january" WHERE "attendance"='gund arena 20,562' AND "record"='20-10'; |
## Task
Generate a SQL query to answer the following question:
`What is Leading Scorer, when Attendance is Gund Arena 20,562, and when Record is 20-10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score... |
SELECT "score" FROM "january" WHERE "date"='january 12'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Date is January 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
... |
SELECT "score" FROM "january" WHERE "attendance"='gund arena 20,562' AND "date"='january 27'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Attendance is Gund Arena 20,562, and when Date is January 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text... |
SELECT SUM("top_10") FROM "summary" WHERE "cuts_made"<10 AND "top_5"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Top-10(s), when Cuts made is less than 10, and when Top-5 is less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
... |
SELECT MIN("top_25") FROM "summary" WHERE "events"=10 AND "wins">0; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Top-25, when Events is 10, and when Wins is greater than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real... |
SELECT MIN("top_5") FROM "summary" WHERE "top_25"<4 AND "cuts_made"<7; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Top-5, when Top-25 is less than 4, and when Cuts made is less than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"t... |
SELECT "height" FROM "roster" WHERE "year"='junior' AND "name"='meghan austin'; |
## Task
Generate a SQL query to answer the following question:
`What is the Height of Junior Meghan Austin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"height" text,
"position" text,
"year" text,
"home_town" text
)... |
SELECT "position" FROM "roster" WHERE "name"='martina wood'; |
## Task
Generate a SQL query to answer the following question:
`What is Martina Wood's Position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"height" text,
"position" text,
"year" text,
"home_town" text
);
### SQL
G... |
SELECT "name" FROM "roster" WHERE "home_town"='charlotte, nc'; |
## Task
Generate a SQL query to answer the following question:
`What is the Name of the Player from Charlotte, NC?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"height" text,
"position" text,
"year" text,
"home_town"... |
SELECT "position" FROM "roster" WHERE "height"='6-2' AND "name"='martina wood'; |
## Task
Generate a SQL query to answer the following question:
`What is 6-2 Martina Wood's Position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"height" text,
"position" text,
"year" text,
"home_town" text
);
### S... |
SELECT "position" FROM "roster" WHERE "home_town"='temple hills, md'; |
## Task
Generate a SQL query to answer the following question:
`What is the Position of the Player from Temple Hills, MD?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"height" text,
"position" text,
"year" text,
"hom... |
SELECT "name" FROM "roster" WHERE "year"='junior' AND "home_town"='fayetteville, nc'; |
## Task
Generate a SQL query to answer the following question:
`What is the Name of the Junior from Fayetteville, NC?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"height" text,
"position" text,
"year" text,
"home_to... |
SELECT "rank" FROM "most_career_wickets" WHERE "player"='jo angel (wa)'; |
## Task
Generate a SQL query to answer the following question:
`What rank has jo angel (wa) as the player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
"av... |
SELECT "average" FROM "most_career_wickets" WHERE "rank"='1'; |
## Task
Generate a SQL query to answer the following question:
`What average has 1 as rhe rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
"average" text... |
SELECT "rank" FROM "most_career_wickets" WHERE "player"='andy bichel (qld)'; |
## Task
Generate a SQL query to answer the following question:
`What rank has andy bichel (qld) as the player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
... |
SELECT "average" FROM "most_career_wickets" WHERE "rank"='2'; |
## Task
Generate a SQL query to answer the following question:
`What is the average that has 2 for the rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
"... |
SELECT "player" FROM "most_career_wickets" WHERE "average"='24.21'; |
## Task
Generate a SQL query to answer the following question:
`What playee has 24.21 as the average?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
"average... |
SELECT "average" FROM "most_career_wickets" WHERE "s_wicket"='441'; |
## Task
Generate a SQL query to answer the following question:
`What is the average that has 441 as wicket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_career_wickets" (
"rank" text,
"s_wicket" text,
"player" text,
"matches" text,
"a... |
SELECT "elected" FROM "races_and_results" WHERE "party"='republican' AND "incumbent"='dave reichert'; |
## Task
Generate a SQL query to answer the following question:
`What was the year Elected of Republican Incumbent Dave Reichert?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races_and_results" (
"district" text,
"incumbent" text,
"party" text,... |
SELECT "results" FROM "races_and_results" WHERE "district"='washington 2'; |
## Task
Generate a SQL query to answer the following question:
`What were the Results in the Washington 2 District?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races_and_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" ... |
SELECT "2008_candidates" FROM "races_and_results" WHERE "elected"<1994 AND "incumbent"='jim mcdermott'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2008 Candidates Elected before 1994 with Incumbent Jim McDermott?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races_and_results" (
"district" text,
"incumbent" text,
... |
SELECT "incumbent" FROM "races_and_results" WHERE "results"='68% 32%'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Incumbent with Results of 68% 32%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races_and_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
... |
SELECT "district" FROM "races_and_results" WHERE "party"='republican' AND "incumbent"='cathy mcmorris'; |
## Task
Generate a SQL query to answer the following question:
`What District had Republican Incumbent Cathy McMorris?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races_and_results" (
"district" text,
"incumbent" text,
"party" text,
"electe... |
SELECT MAX("total") FROM "medals_table" WHERE "bronze"<4 AND "gold"=1 AND "nation"='italy'; |
## Task
Generate a SQL query to answer the following question:
`What was Italy's highest total when there were less than 4 bronze and 1 gold?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,... |
SELECT SUM("total") FROM "medals_table" WHERE "bronze">4; |
## Task
Generate a SQL query to answer the following question:
`How many totals had more than 4 bronze?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"... |
SELECT MIN("total") FROM "medals_table" WHERE "nation"='austria' AND "gold">3; |
## Task
Generate a SQL query to answer the following question:
`What was Austria's lowest total when the gold was more than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" rea... |
SELECT "year_s_won" FROM "made_the_cut" WHERE "to_par"='+5'; |
## Task
Generate a SQL query to answer the following question:
`What are the years won when the to par is +5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_... |
SELECT AVG("total") FROM "made_the_cut" WHERE "player"='tiger woods'; |
## Task
Generate a SQL query to answer the following question:
`What is the average total for Tiger Woods?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par... |
SELECT "country" FROM "made_the_cut" WHERE "total"=295; |
## Task
Generate a SQL query to answer the following question:
`Which country had a total of 295?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
... |
SELECT "finish" FROM "made_the_cut" WHERE "to_par"='+18'; |
## Task
Generate a SQL query to answer the following question:
`What is the finish when the to par is +18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par... |
SELECT SUM("no_result") FROM "summary_of_results" WHERE "matches">16 AND "wins"<46; |
## Task
Generate a SQL query to answer the following question:
`How many total No Results occured when the team had less than 46 wins and more than 16 matches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary_of_results" (
"matches" real,
"w... |
SELECT AVG("losses") FROM "summary_of_results" WHERE "wins">46; |
## Task
Generate a SQL query to answer the following question:
`When the team had more than 46 wins, what were the average losses?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary_of_results" (
"matches" real,
"wins" real,
"losses" real,
... |
SELECT COUNT("no_result") FROM "summary_of_results" WHERE "wins"<6; |
## Task
Generate a SQL query to answer the following question:
`How many total No Results are recorded for less than 6 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary_of_results" (
"matches" real,
"wins" real,
"losses" real,
"no_r... |
SELECT "interview_subject" FROM "1992" WHERE "date"='11-92'; |
## Task
Generate a SQL query to answer the following question:
`What Interview subject was on a Date that is 11-92?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1992" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_sub... |
SELECT MIN("games") FROM "points" WHERE "team"='aris thessaloniki' AND "points"<120; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest game number with Aris Thessaloniki with points smaller than 120?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "points" (
"rank" real,
"name" text,
"team" text,
... |
SELECT AVG("games") FROM "points" WHERE "rank">2 AND "team"='olympiacos' AND "points">113; |
## Task
Generate a SQL query to answer the following question:
`What is the game average that has a rank larger than 2 with team Olympiacos and points larger than 113?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "points" (
"rank" real,
"name" te... |
SELECT "result" FROM "season_schedule" WHERE "opponent"='buffalo bills'; |
## Task
Generate a SQL query to answer the following question:
`Which result was there when the opponents were the Buffalo Bills?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"res... |
SELECT COUNT("purse") FROM "tournament_results" WHERE "location"='iowa'; |
## Task
Generate a SQL query to answer the following question:
`What was the Purse ($) total for Iowa?`
### 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,
"purse" real,
"winne... |
SELECT "date" FROM "tournament_results" WHERE "score"='195 (-21)'; |
## Task
Generate a SQL query to answer the following question:
`When did the Score of 195 (-21) happen?`
### 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,
"purse" real,
"winn... |
SELECT "date" FROM "tournament_results" WHERE "winner"='scott hoch (2)'; |
## Task
Generate a SQL query to answer the following question:
`When did Scott Hoch (2) win?`
### 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,
"purse" real,
"winner" text,
... |
SELECT "second" FROM "2000_01_to_date" WHERE "fifth"='western australia' AND "sixth"='south australia' AND "fourth"='tasmania'; |
## Task
Generate a SQL query to answer the following question:
`What team placed second during the season where Western Australia placed fifth, South Australia placed sixth, and Tasmania placed fourth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "20... |
SELECT "sixth" FROM "2000_01_to_date" WHERE "fourth"='western australia' AND "first"='tasmania'; |
## Task
Generate a SQL query to answer the following question:
`What team placed sixth during the season where Western Australia placed fourth and Tasmania placed first?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_01_to_date" (
"season" text... |
SELECT "sixth" FROM "2000_01_to_date" WHERE "second"='tasmania' AND "fourth"='western australia'; |
## Task
Generate a SQL query to answer the following question:
`What team placed sixth during the season where Tasmania placed second and Western Australia placed fourth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_01_to_date" (
"season" tex... |
SELECT "fifth" FROM "2000_01_to_date" WHERE "second"='victoria' AND "first"='tasmania' AND "sixth"='south australia'; |
## Task
Generate a SQL query to answer the following question:
`What team placed fifth during the season where Victoria placed second, Tasmania placed first, and South Australia placed sixth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_01_to_d... |
SELECT MIN("lost") FROM "campeonato_paulista" WHERE "position">2 AND "points"=4 AND "drawn">2; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of losses for a position greater than 2 with 4 points and more than 2 draws?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position"... |
SELECT COUNT("points") FROM "campeonato_paulista" WHERE "difference"='2' AND "position"<4; |
## Task
Generate a SQL query to answer the following question:
`How many points occurred with a difference of 2 for position less than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points... |
SELECT MAX("points") FROM "campeonato_paulista" WHERE "position"<3 AND "lost"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of points for a position less than 3 and less than 1 loss?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" tex... |
SELECT "date" FROM "premier_division" WHERE "attendance">'39,058' AND "opponent"='motherwell'; |
## Task
Generate a SQL query to answer the following question:
`Which date's attendance was more than 39,058 with an opponent of Motherwell?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "premier_division" (
"date" text,
"opponent" text,
"venue"... |
SELECT "1st_leg" FROM "preliminary_round_ii" WHERE "2nd_leg"='0-2'; |
## Task
Generate a SQL query to answer the following question:
`In the round that had a 2nd leg score of 0-2, what did they score for the 1st leg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preliminary_round_ii" (
"team_num1" text,
"agg" text,... |
SELECT "agg" FROM "preliminary_round_ii" WHERE "team_num2"='estudiantes'; |
## Task
Generate a SQL query to answer the following question:
`When Estudiantes was team #2, what was their agg. value?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preliminary_round_ii" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1s... |
SELECT "2nd_leg" FROM "preliminary_round_ii" WHERE "team_num1"='tsv bayer 04 leverkusen'; |
## Task
Generate a SQL query to answer the following question:
`Who played against TSV bayer 04 leverkusen when they were team #1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preliminary_round_ii" (
"team_num1" text,
"agg" text,
"team_num2" t... |
SELECT "team_num2" FROM "preliminary_round_ii" WHERE "team_num1"='hapoel tel aviv'; |
## Task
Generate a SQL query to answer the following question:
`Who played against Hapoel tel aviv when they were team #1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preliminary_round_ii" (
"team_num1" text,
"agg" text,
"team_num2" text,
"... |
SELECT "div" FROM "seasons" WHERE "conf"='western' AND "div_finish"='2nd' AND "head_coach"='rick adelman'; |
## Task
Generate a SQL query to answer the following question:
`what is the division in the western conference that finished 2nd in their division under rick adelman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "seasons" (
"season" text,
"team" ... |
SELECT "2013_bafa_adult_flag_division" FROM "bafa_national_leagues" WHERE "location"='aylesbury'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2013 BAFA adult flag division in Aylesbury?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bafa_national_leagues" (
"team" text,
"location" text,
"years_in_senior_adult_... |
SELECT "2013_bafa_junior_division" FROM "bafa_national_leagues" WHERE "2013_bafa_adult_division"='national central' AND "location"='birkenhead'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2013 BAFA junior division with a 2013 BAFA adult division in national central in the Birkenhead location?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bafa_national_leagues"... |
SELECT "format" FROM "release_history" WHERE "label"='kontor records' AND "catalog"='kontor446'; |
## Task
Generate a SQL query to answer the following question:
`Records from Kontor Records from the catalog of Kontor446 was released in what format?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
... |
SELECT "date" FROM "release_history" WHERE "label"='wrongun'; |
## Task
Generate a SQL query to answer the following question:
`What date was the release that was Wrongun as the label?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,... |
SELECT "date" FROM "release_history" WHERE "catalog"='nebdj068'; |
## Task
Generate a SQL query to answer the following question:
`Catalog Nebdj068 was released when?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
... |
SELECT "format" FROM "release_history" WHERE "date"='april 11, 2005' AND "catalog"='nebt068'; |
## Task
Generate a SQL query to answer the following question:
`In what format was the release from the Nebt068 catalog on April 11, 2005 in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" t... |
SELECT "region" FROM "release_history" WHERE "date"='2005' AND "label"='playground music scandinavia'; |
## Task
Generate a SQL query to answer the following question:
`What region has the date of 2005 and Playground Music Scandinavia as a label?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" t... |
SELECT "result" FROM "first_division" WHERE "venue"='filbert street'; |
## Task
Generate a SQL query to answer the following question:
`What is the Result with a Venue that is filbert street?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_division" (
"date" text,
"opponent" text,
"venue" text,
"result" text,... |
SELECT "date" FROM "schedule" WHERE "opponent"='bye'; |
## Task
Generate a SQL query to answer the following question:
`When did the Texans play BYE?`
### 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,
"attendance" text
);
### SQL
G... |
SELECT "opponent" FROM "schedule" WHERE "attendance"='70,724'; |
## Task
Generate a SQL query to answer the following question:
`Who did the Texans play when there were 70,724 people in attendance?`
### 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"... |
SELECT "novelty" FROM "new_taxa" WHERE "status"='jr synonym of protosialis casca'; |
## Task
Generate a SQL query to answer the following question:
`Who has the status of jr synonym of protosialis casca?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_taxa" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"un... |
SELECT "authors" FROM "new_taxa" WHERE "name"='mongolbittacus'; |
## Task
Generate a SQL query to answer the following question:
`Which writer is named mongolbittacus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_taxa" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
"loca... |
SELECT "score" FROM "second_round" WHERE "attendance"='359'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the game that had 359 people in attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"match_no" text,
"home_team" text,
"score" text,
"a... |
SELECT "home_team" FROM "second_round" WHERE "score"='0-1'; |
## Task
Generate a SQL query to answer the following question:
`What is the home team of the game that ended with a score of 0-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"match_no" text,
"home_team" text,
"score" text,
"... |
SELECT "attendance" FROM "second_round" WHERE "match_no"='31'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended Match No. 31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"match_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attenda... |
SELECT "home_team" FROM "second_round" WHERE "match_no"='23'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Home Team for Match No. 23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"match_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attenda... |
SELECT "score" FROM "second_round" WHERE "attendance"='1,125'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the game with 1,125 people in attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"match_no" text,
"home_team" text,
"score" text,
"awa... |
SELECT "country" FROM "tv_channels" WHERE "launched"='april 3, 1990'; |
## Task
Generate a SQL query to answer the following question:
`What is the Country with a Launched that is april 3, 1990?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tv_channels" (
"channel" text,
"country" text,
"type" text,
"launched" te... |
SELECT "launched" FROM "tv_channels" WHERE "country"='spain'; |
## Task
Generate a SQL query to answer the following question:
`What is the Launched from a Country that is spain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tv_channels" (
"channel" text,
"country" text,
"type" text,
"launched" text,
"d... |
SELECT MIN("order") FROM "list_of_ministers_for_small_business" WHERE "minister"='joe hockey'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest order with a Minister that is joe hockey?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_ministers_for_small_business" (
"order" real,
"minister" text,
"p... |
SELECT "years_in_orlando" FROM "o" WHERE "nationality"='united states' AND "player"='doug overton'; |
## Task
Generate a SQL query to answer the following question:
`Which Years in Orlando has a Nationality of united states, and a Player of doug overton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"nationality" text,
"posi... |
SELECT "years_in_orlando" FROM "o" WHERE "nationality"='united states' AND "position"='center' AND "player"='jawann oldham'; |
## Task
Generate a SQL query to answer the following question:
`Which Years in Orlando has a Nationality of united states, a Position of center, and a Player of jawann oldham?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"nat... |
SELECT "years_in_orlando" FROM "o" WHERE "player"='bo outlaw'; |
## Task
Generate a SQL query to answer the following question:
`Which Years in Orlando has a Player of bo outlaw?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
... |
SELECT "years_in_orlando" FROM "o" WHERE "school_club_team"='seattle'; |
## Task
Generate a SQL query to answer the following question:
`Which Years in Orlando has a School/Club Team of seattle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando... |
SELECT "nationality" FROM "o" WHERE "position"='center' AND "years_in_orlando"='2010–2012'; |
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a Position of center, and a Years in Orlando of 2010–2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" te... |
SELECT "nationality" FROM "o" WHERE "school_club_team"='seattle'; |
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a School/Club Team of seattle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" tex... |
SELECT "date" FROM "schedule" WHERE "game_site"='candlestick park'; |
## Task
Generate a SQL query to answer the following question:
`When did they play at Candlestick 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,
"record" text,
"ga... |
SELECT AVG("top_10") FROM "summary" WHERE "events"<57 AND "top_5"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of top-10s for events under 57 and 0 top-5s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"to... |
SELECT AVG("top_10") FROM "summary" WHERE "cuts_made">12 AND "wins"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of top-10s for events with more than 12 cuts made and 0 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"t... |
SELECT AVG("top_25") FROM "summary" WHERE "top_10"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of top-25s for events with less than 2 top-10s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
... |
SELECT "works_number" FROM "locomotives" WHERE "builder"='canadian engine & machinery company' AND "number"<3; |
## Task
Generate a SQL query to answer the following question:
`Which Works number has a Builder of canadian engine & machinery company, and a Number smaller than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives" (
"number" real,
"bui... |
SELECT "works_number" FROM "locomotives" WHERE "builder"='avonside engine company' AND "type"='4-6-0' AND "number"<12 AND "date"='december 1871'; |
## Task
Generate a SQL query to answer the following question:
`Which Works number has a Builder of avonside engine company, and a Type of 4-6-0, and a Number smaller than 12, and a Date of december 1871?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE ... |
SELECT "type" FROM "locomotives" WHERE "builder"='avonside engine company' AND "number"=9; |
## Task
Generate a SQL query to answer the following question:
`Which Type has a Builder of avonside engine company, and a Number of 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives" (
"number" real,
"builder" text,
"type" text,
"... |
SELECT "date" FROM "locomotives" WHERE "type"='4-6-0' AND "number">11; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Type of 4-6-0, and a Number larger than 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives" (
"number" real,
"builder" text,
"type" text,
"date" text,... |
SELECT "builder" FROM "locomotives" WHERE "date"='early 1871'; |
## Task
Generate a SQL query to answer the following question:
`Which Builder has a Date of early 1871?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives" (
"number" real,
"builder" text,
"type" text,
"date" text,
"works_number" tex... |
SELECT "home" FROM "round_four" WHERE "score"='42-64'; |
## Task
Generate a SQL query to answer the following question:
`What ist he Home with a Score that is 42-64?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"gr... |
SELECT "home" FROM "round_four" WHERE "time"='12:00'; |
## Task
Generate a SQL query to answer the following question:
`What is the Home with a Time that is 12:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"gro... |
SELECT "ground" FROM "round_four" WHERE "score"='49-80'; |
## Task
Generate a SQL query to answer the following question:
`What is the Ground with a Score that is 49-80?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"... |
SELECT MIN("march") FROM "schedule_and_results" WHERE "record"='22-12-6'; |
## Task
Generate a SQL query to answer the following question:
`What's the smallest March when the record is 22-12-6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text,
"score" te... |
SELECT "record" FROM "schedule_and_results" WHERE "march"=26; |
## Task
Generate a SQL query to answer the following question:
`Which record's march was 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text
);
##... |
SELECT "lost" FROM "league_table" WHERE "losing_bonus"='4'; |
## Task
Generate a SQL query to answer the following question:
`What is the Lost with a Losing Bonus that is 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for... |
SELECT "points" FROM "league_table" WHERE "tries_for"='21'; |
## Task
Generate a SQL query to answer the following question:
`What is the Points with a Tries For that is 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for... |
SELECT "lost" FROM "league_table" WHERE "try_bonus"='try bonus'; |
## Task
Generate a SQL query to answer the following question:
`What is the Lost with a Try Bonus that is try bonus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"point... |
SELECT MAX("total") FROM "medal_table" WHERE "rank"='12' AND "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Total for the rank 12, and gold less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.