output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1876 AND "district"='south carolina 3'; |
## Task
Generate a SQL query to answer the following question:
`Which Result has a First elected of 1876, and a District of south carolina 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,... |
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected">1876 AND "incumbent"='john s. richardson'; |
## Task
Generate a SQL query to answer the following question:
`Which Result has a First elected larger than 1876, and an Incumbent of john s. richardson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"di... |
SELECT "incumbent" FROM "ohio" WHERE "party"='republican' AND "first_elected"<1864; |
## Task
Generate a SQL query to answer the following question:
`Who is the incumbent that is a republican and first elected before 1864?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"f... |
SELECT "district" FROM "ohio" WHERE "party"='democratic' AND "incumbent"='francis c. le blond'; |
## Task
Generate a SQL query to answer the following question:
`What district is the democratic Francis C. Le Blond from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" r... |
SELECT SUM("first_elected") FROM "ohio" WHERE "result"='re-elected' AND "district"='ohio 4'; |
## Task
Generate a SQL query to answer the following question:
`In the Ohio 4 district, that is the first elected date that has a result of re-elected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"pa... |
SELECT "party" FROM "ohio" WHERE "district"='ohio 6'; |
## Task
Generate a SQL query to answer the following question:
`What is the party in Ohio 6 District?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text... |
SELECT "to_par" FROM "winners" WHERE "year"=1994; |
## Task
Generate a SQL query to answer the following question:
`Which To par has a Year of 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"to_par" t... |
SELECT "country" FROM "winners" WHERE "margin_of_victory"='2 strokes'; |
## Task
Generate a SQL query to answer the following question:
`Which Country has a Margin of victory of 2 strokes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score"... |
SELECT MIN("year") FROM "winners" WHERE "to_par"='β1'; |
## Task
Generate a SQL query to answer the following question:
`Which Year is the lowest one that has a To par of β1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"scor... |
SELECT "margin_of_victory" FROM "winners" WHERE "year">1994 AND "to_par"='β14' AND "score"='69-67-69-69=274'; |
## Task
Generate a SQL query to answer the following question:
`Which Margin of victory has a Year larger than 1994, and a To par of β14, and a Score of 69-67-69-69=274?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"dates... |
SELECT "record" FROM "schedule" WHERE "location"='astrodome'; |
## Task
Generate a SQL query to answer the following question:
`What was the record after the game at the Astrodome?`
### 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,
"location" text,
"time... |
SELECT "record" FROM "schedule" WHERE "opponent"='houston oilers'; |
## Task
Generate a SQL query to answer the following question:
`What was the record after the game against the Houston Oilers?`
### 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,
"location" tex... |
SELECT AVG("total") FROM "group_3_balls_2_ropes" WHERE "nation"='belarus' AND "e_score"<8.2; |
## Task
Generate a SQL query to answer the following question:
`What is the average total score of Belarus, which had an E score less than 8.2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_3_balls_2_ropes" (
"nation" text,
"t_score" real,
... |
SELECT SUM("total") FROM "group_3_balls_2_ropes" WHERE "t_score">8 AND "e_score"<8.4; |
## Task
Generate a SQL query to answer the following question:
`What is the total of the team with a T score greater than 8 and an E score less than 8.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_3_balls_2_ropes" (
"nation" text,
"t_sco... |
SELECT "t_score" FROM "group_3_balls_2_ropes" WHERE "e_score"=6.625; |
## Task
Generate a SQL query to answer the following question:
`What is the T score of the team with an E score of 6.625?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_3_balls_2_ropes" (
"nation" text,
"t_score" real,
"a_score" real,
"e... |
SELECT COUNT("total") FROM "group_3_balls_2_ropes" WHERE "nation"='poland' AND "e_score">7.725; |
## Task
Generate a SQL query to answer the following question:
`What is the total of Poland, which has an E score greater than 7.725?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_3_balls_2_ropes" (
"nation" text,
"t_score" real,
"a_score... |
SELECT SUM("total") FROM "group_3_balls_2_ropes" WHERE "t_score"<6.8; |
## Task
Generate a SQL query to answer the following question:
`What is the total of the team with a T score less than 6.8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_3_balls_2_ropes" (
"nation" text,
"t_score" real,
"a_score" real,
... |
SELECT "date" FROM "international_goals" WHERE "competition"='2012 afc challenge cup' AND "venue"='dasarath rangasala stadium, kathmandu'; |
## Task
Generate a SQL query to answer the following question:
`What date has a competition of 2012 afc challenge cup, and dasarath rangasala stadium, kathmandu as the venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"dat... |
SELECT "social_liberal_party_b" FROM "opinion_polls" WHERE "conservative_people_s_party_c"='4.5%'; |
## Task
Generate a SQL query to answer the following question:
`Which Social Liberal Party has 4.5% of the Conservative People's Party?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "opinion_polls" (
"polling_firm" text,
"date" text,
"venstre_v"... |
SELECT "opposition" FROM "opinion_polls" WHERE "social_democrats_a"='31.1%'; |
## Task
Generate a SQL query to answer the following question:
`What opposition do 31.1% of Social Democrats have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "opinion_polls" (
"polling_firm" text,
"date" text,
"venstre_v" text,
"social_demo... |
SELECT "liberal_alliance_i" FROM "opinion_polls" WHERE "polling_firm"='capacent' AND "socialist_people_s_party_f"='13.0%'; |
## Task
Generate a SQL query to answer the following question:
`What is the Liberal Alliance that is backed by the Polling Firm, Capacent, and 13.0% of the Socialist People's Party?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "opinion_polls" (
"po... |
SELECT "position" FROM "nfl_draft" WHERE "round">14 AND "school_club_team"='north texas'; |
## Task
Generate a SQL query to answer the following question:
`Which Position has a Round larger than 14, and a School/Club Team of north texas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" tex... |
SELECT "round" FROM "nfl_draft" WHERE "player"='anthony christnovich'; |
## Task
Generate a SQL query to answer the following question:
`Which Round has a Player of anthony christnovich?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_... |
SELECT MIN("round") FROM "nfl_draft" WHERE "school_club_team"='virginia'; |
## Task
Generate a SQL query to answer the following question:
`Which Round is the lowest one that has a School/Club Team of virginia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"posit... |
SELECT "leading_scorer" FROM "november" WHERE "date"='2006-11-22'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the leading scorer on 2006-11-22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading... |
SELECT "leading_scorer" FROM "november" WHERE "record"='9β6'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the leading scorer when the record was 9β6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
... |
SELECT "attendance" FROM "november" WHERE "visitor"='warriors' AND "date"='2006-11-04'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of people in Attendance when Visitor was the warriors on 2006-11-04?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" text,
"visitor" text,
"scor... |
SELECT "visitor" FROM "november" WHERE "attendance">'16,182' AND "record"='6β3'; |
## Task
Generate a SQL query to answer the following question:
`What team was the visitor when there were more than 16,182 people in attendance and the record was 6β3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" text,
"visito... |
SELECT "visitor" FROM "november" WHERE "date"='2006-11-04'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the visitor on 2006-11-04?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer... |
SELECT "leading_scorer" FROM "november" WHERE "score"='89β102'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the Leading scorer when the Score was 89β102?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text... |
SELECT MAX("year") FROM "settlements_by_population" WHERE "population">'13,012' AND "borough"='richmondshire'; |
## Task
Generate a SQL query to answer the following question:
`Which Year is the highest one that has a Population larger than 13,012, and a Borough of richmondshire?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "settlements_by_population" (
"rank... |
SELECT SUM("population") FROM "settlements_by_population" WHERE "town"='norton'; |
## Task
Generate a SQL query to answer the following question:
`How many people live in Norton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "settlements_by_population" (
"rank" real,
"town" text,
"population" real,
"year" real,
"borough" t... |
SELECT "year" FROM "settlements_by_population" WHERE "borough"='harrogate' AND "rank"<6 AND "definition"='civil parish'; |
## Task
Generate a SQL query to answer the following question:
`Which Year has a Borough of harrogate, and a Rank smaller than 6, and a Definition of civil parish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "settlements_by_population" (
"rank" re... |
SELECT "definition" FROM "settlements_by_population" WHERE "rank"<12 AND "town"='tadcaster'; |
## Task
Generate a SQL query to answer the following question:
`Which Definition has a Rank smaller than 12, and a Town of tadcaster?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "settlements_by_population" (
"rank" real,
"town" text,
"populati... |
SELECT MIN("rank") FROM "settlements_by_population" WHERE "borough"='richmondshire' AND "population">'8,178'; |
## Task
Generate a SQL query to answer the following question:
`Which Rank is the lowest one that has a Borough of richmondshire, and a Population larger than 8,178?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "settlements_by_population" (
"rank" ... |
SELECT "bronze" FROM "medal_table" WHERE "nation"='bulgaria'; |
## Task
Generate a SQL query to answer the following question:
`How many bronze medals did Bulgaria receive?`
### 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" real,
"bronze" real,... |
SELECT "to_par" FROM "fourth_round" WHERE "player"='phil mickelson'; |
## Task
Generate a SQL query to answer the following question:
`What was Phil Mickelson's score to par?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
... |
SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "overall"<268 AND "round"=1; |
## Task
Generate a SQL query to answer the following question:
`What name has an overall less than 268, and 1 as the round?`
### 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" ... |
SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "name"='james britt' AND "round">2; |
## Task
Generate a SQL query to answer the following question:
`How many pick #'s have james britt as the name, with a round greater than 2?`
### 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" r... |
SELECT "score" FROM "game_log" WHERE "date"='november 15'; |
## Task
Generate a SQL query to answer the following question:
`what is the score on november 15`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Give... |
SELECT MAX("wins") FROM "leaders" WHERE "country"='united states' AND "player"='andy bean' AND "rank"<4; |
## Task
Generate a SQL query to answer the following question:
`Which Wins is the highest one that has a Country of united states, and a Player of andy bean, and a Rank smaller than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank"... |
SELECT "country" FROM "leaders" WHERE "rank"=5; |
## Task
Generate a SQL query to answer the following question:
`Which Country has a Rank of 5?`
### 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,
"events" real,
"wins" rea... |
SELECT MIN("earnings") FROM "leaders" WHERE "rank"<1; |
## Task
Generate a SQL query to answer the following question:
`Which Earnings ($) is the lowest one that has a Rank smaller than 1?`
### 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,
"earning... |
SELECT "score" FROM "game_log" WHERE "opponent"='expos' AND "date"='september 13'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the game on September 13 when the Expos were the 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... |
SELECT "opponent" FROM "game_log" WHERE "date"='september 3'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on the September 3 game?`
### 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,
"save" text
);
... |
SELECT "save" FROM "game_log" WHERE "date"='september 15'; |
## Task
Generate a SQL query to answer the following question:
`What is the save of the game on September 15?`
### 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,
"save" text
);
... |
SELECT "game_site" FROM "schedule" WHERE "week">14; |
## Task
Generate a SQL query to answer the following question:
`Which Game site has a Week larger than 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,
"game_site" text,... |
SELECT "date" FROM "schedule" WHERE "game_site"='jeppesen stadium'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Game site of jeppesen stadium?`
### 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,
"game_site" ... |
SELECT "game_site" FROM "schedule" WHERE "attendance"='27,189'; |
## Task
Generate a SQL query to answer the following question:
`Which Game site has 27,189 Attendances ?`
### 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,
"game_site" text,
... |
SELECT "date" FROM "schedule" WHERE "attendance"='15,557'; |
## Task
Generate a SQL query to answer the following question:
`When is it has 15,557 Attendances?`
### 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,
"game_site" text,
"atte... |
SELECT MIN("round") FROM "atlanta_falcons_draft_history" WHERE "name"='lance moon' AND "overall"<171; |
## Task
Generate a SQL query to answer the following question:
`With an Overall less than 171, what is the Round pick of Lance Moon?`
### 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,
"... |
SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "pick_num"=10; |
## Task
Generate a SQL query to answer the following question:
`What is the Name of draft Pick #10?`
### 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,
"... |
SELECT COUNT("round") FROM "jacksonville_jaguars_draft_history" WHERE "position"='defensive end'; |
## Task
Generate a SQL query to answer the following question:
`How many Rounds have a Defensive End Pick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"nam... |
SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='shinya aoki'; |
## Task
Generate a SQL query to answer the following question:
`What was the time when Shinya Aoki was the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"metho... |
SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "record"='1-0'; |
## Task
Generate a SQL query to answer the following question:
`Which method was used in round 1 with a record of 1-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"met... |
SELECT "rank" FROM "grand_prix_motorcycle_racing_results" WHERE "team"='suzuki' AND "points"<16; |
## Task
Generate a SQL query to answer the following question:
`Which rank has a team of Suzuki with under 16 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
... |
SELECT "class" FROM "grand_prix_motorcycle_racing_results" WHERE "rank"='5th'; |
## Task
Generate a SQL query to answer the following question:
`Which class has a rank of 5th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"ran... |
SELECT "team" FROM "grand_prix_motorcycle_racing_results" WHERE "class"='500cc' AND "rank"='16th'; |
## Task
Generate a SQL query to answer the following question:
`Which team has a class of 500cc and rank of 16th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"p... |
SELECT "team" FROM "grand_prix_motorcycle_racing_results" WHERE "points"=16 AND "rank"='14th'; |
## Task
Generate a SQL query to answer the following question:
`Which team has 16 points and ranks 14th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" re... |
SELECT "dance" FROM "highest_and_lowest_scoring_performances" WHERE "worst_dancer_s"='priscilla presley' AND "worst_score"='21'; |
## Task
Generate a SQL query to answer the following question:
`What is the dance that has priscilla presley is the worst dancer(s), and the worst score of 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_and_lowest_scoring_performances" (
... |
SELECT "best_score" FROM "highest_and_lowest_scoring_performances" WHERE "dance"='freestyle'; |
## Task
Generate a SQL query to answer the following question:
`What is the best score of the dance freestyle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_and_lowest_scoring_performances" (
"dance" text,
"best_dancer_s" text,
"best_sc... |
SELECT "dance" FROM "highest_and_lowest_scoring_performances" WHERE "worst_dancer_s"='marissa jaret winokur'; |
## Task
Generate a SQL query to answer the following question:
`Which dance has the worst dancer(s) as marissa jaret winokur?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_and_lowest_scoring_performances" (
"dance" text,
"best_dancer_s" t... |
SELECT AVG("points") FROM "regular_season" WHERE "opponent"='vancouver canucks'; |
## Task
Generate a SQL query to answer the following question:
`Which Points have an Opponent of vancouver canucks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
... |
SELECT COUNT("points") FROM "regular_season" WHERE "score"='3β0'; |
## Task
Generate a SQL query to answer the following question:
`How many Points have a Score of 3β0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
... |
SELECT SUM("game") FROM "regular_season" WHERE "points"<10 AND "october">12 AND "opponent"='@ washington capitals'; |
## Task
Generate a SQL query to answer the following question:
`Which Game has Points smaller than 10, and an October larger than 12, and an Opponent of @ washington capitals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" r... |
SELECT "record" FROM "regular_season" WHERE "points">0 AND "score"='7β3'; |
## Task
Generate a SQL query to answer the following question:
`Which Record has Points larger than 0, and a Score of 7β3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" t... |
SELECT "date" FROM "game_log" WHERE "game">5; |
## Task
Generate a SQL query to answer the following question:
`On what date was the game more than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"hig... |
SELECT "series" FROM "game_log" WHERE "date"='may 16'; |
## Task
Generate a SQL query to answer the following question:
`Which series was on May 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds"... |
SELECT "date" FROM "statewide" WHERE "jurisdiction"='oregon'; |
## Task
Generate a SQL query to answer the following question:
`Name the date for oregon jurisdiction`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statewide" (
"date" text,
"jurisdiction" text,
"ronald_reagan" text,
"george_h_w_bush" text,
... |
SELECT "john_b_anderson" FROM "statewide" WHERE "phil_crane"='0%' AND "ronald_reagan"='43%'; |
## Task
Generate a SQL query to answer the following question:
`Name the john b. anderson for ronald reagan of 43% and phil crane of 0%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statewide" (
"date" text,
"jurisdiction" text,
"ronald_reagan"... |
SELECT "howard_baker" FROM "statewide" WHERE "george_h_w_bush"='66%'; |
## Task
Generate a SQL query to answer the following question:
`Name the howard bake when bush had 66%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statewide" (
"date" text,
"jurisdiction" text,
"ronald_reagan" text,
"george_h_w_bush" text,
... |
SELECT "george_h_w_bush" FROM "statewide" WHERE "ronald_reagan"='43%'; |
## Task
Generate a SQL query to answer the following question:
`Name the george bush for ronald reagan of 43%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statewide" (
"date" text,
"jurisdiction" text,
"ronald_reagan" text,
"george_h_w_bush"... |
SELECT "howard_baker" FROM "statewide" WHERE "ronald_reagan"='72%'; |
## Task
Generate a SQL query to answer the following question:
`Name the howard baker for ronald reagan of 72%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statewide" (
"date" text,
"jurisdiction" text,
"ronald_reagan" text,
"george_h_w_bush... |
SELECT SUM("goals") FROM "references" WHERE "season"='2004/05'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of goals for the 2004/05 Season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"season" text,
"club" text,
"country" text,
"competition" text,
"ca... |
SELECT MIN("caps") FROM "references" WHERE "club"='sbv excelsior'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest caps for the Club of SBV Excelsior?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"season" text,
"club" text,
"country" text,
"competition" text,... |
SELECT "season" FROM "references" WHERE "caps"<36 AND "club"='nac breda'; |
## Task
Generate a SQL query to answer the following question:
`Which season has Caps lower than 36 for the Club of NAC Breda?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"season" text,
"club" text,
"country" text,
"competitio... |
SELECT "opponents_in_the_final" FROM "doubles_11_4_7" WHERE "partner"='daniella dominikovic'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponents in the final have a Partner of daniella dominikovic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_11_4_7" (
"outcome" text,
"date" text,
"tournament" text,... |
SELECT "date" FROM "doubles_11_4_7" WHERE "partner"='daniella dominikovic'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Partner of daniella dominikovic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_11_4_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
... |
SELECT "surface" FROM "doubles_11_4_7" WHERE "partner"='pemra ΓΆzgen'; |
## Task
Generate a SQL query to answer the following question:
`Which Surface has a Partner of pemra ΓΆzgen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_11_4_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"par... |
SELECT "date" FROM "doubles_11_4_7" WHERE "opponents_in_the_final"='valeria casillo lilly raffa'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has Opponents in the final of valeria casillo lilly raffa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_11_4_7" (
"outcome" text,
"date" text,
"tournament" text... |
SELECT "date" FROM "doubles_11_4_7" WHERE "partner"='daniella dominikovic'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Partner of daniella dominikovic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_11_4_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
... |
SELECT MIN("drawn") FROM "managers" WHERE "nationality"='england' AND "matches"<510 AND "lost"=4 AND "win_pct"<28.6; |
## Task
Generate a SQL query to answer the following question:
`Nationality of england, and a Matches smaller than 510, and a Lost of 4, and a Win % smaller than 28.6 had what lowest drawn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managers" (
... |
SELECT MIN("lost") FROM "managers" WHERE "win_pct">47.1 AND "matches"<145; |
## Task
Generate a SQL query to answer the following question:
`Win % larger than 47.1, and a Matches smaller than 145 had what lowest lost?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managers" (
"nationality" text,
"matches" real,
"drawn" r... |
SELECT MAX("lost") FROM "managers" WHERE "matches"=15 AND "win_pct"<20; |
## Task
Generate a SQL query to answer the following question:
`Matches of 15, and a Win % smaller than 20 had what highest lost?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managers" (
"nationality" text,
"matches" real,
"drawn" real,
"los... |
SELECT SUM("matches") FROM "managers" WHERE "nationality"='england' AND "lost">39 AND "win_pct"=28.7 AND "drawn"<37; |
## Task
Generate a SQL query to answer the following question:
`Nationality of england, and a Lost larger than 39, and a Win % of 28.7, and a Drawn smaller than 37 had what sum of matches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managers" (
"... |
SELECT COUNT("matches") FROM "managers" WHERE "drawn"<24 AND "lost"<17 AND "win_pct"<31.25; |
## Task
Generate a SQL query to answer the following question:
`Drawn smaller than 24, and a Lost smaller than 17, and a Win % smaller than 31.25 had how many total number of matches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managers" (
"natio... |
SELECT SUM("win_pct") FROM "managers" WHERE "lost"=18; |
## Task
Generate a SQL query to answer the following question:
`Lost of 18 had what sum of win %?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managers" (
"nationality" text,
"matches" real,
"drawn" real,
"lost" real,
"win_pct" real
);
###... |
SELECT "date" FROM "game_log" WHERE "record"='5-31'; |
## Task
Generate a SQL query to answer the following question:
`When was the score 5-31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" te... |
SELECT "2nd_leg" FROM "sixteenth_finals" WHERE "team_num1"='kk bosna'; |
## Task
Generate a SQL query to answer the following question:
`What is the second leg that has kk bosna?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sixteenth_finals" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd... |
SELECT "1st_leg" FROM "sixteenth_finals" WHERE "team_num1"='hapoel jerusalem'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1st leg that has hapoel jerusalem?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sixteenth_finals" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
... |
SELECT "1st_leg" FROM "sixteenth_finals" WHERE "team_num1"='hemofarm'; |
## Task
Generate a SQL query to answer the following question:
`Which 1st leg that has hemofarm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sixteenth_finals" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" tex... |
SELECT "team_num1" FROM "sixteenth_finals" WHERE "1st_leg"='70 - 59'; |
## Task
Generate a SQL query to answer the following question:
`WHich Team#1 has 70 - 59 as a 1st leg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sixteenth_finals" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_le... |
SELECT "name" FROM "passing" WHERE "avg_g"=201.3; |
## Task
Generate a SQL query to answer the following question:
`Who averaged 201.3 yards passing per game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "passing" (
"name" text,
"gp_gs" text,
"effic" real,
"att_cmp_int" text,
"avg_g" real
);... |
SELECT COUNT("avg_g") FROM "passing" WHERE "att_cmp_int"='143β269β16' AND "effic"<116.9; |
## Task
Generate a SQL query to answer the following question:
`How many players had an Att-Cmp-Int of 143β269β16, and an efficiency of less than 116.9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "passing" (
"name" text,
"gp_gs" text,
"effic"... |
SELECT "att_cmp_int" FROM "passing" WHERE "effic"=117.4; |
## Task
Generate a SQL query to answer the following question:
`What is the Att-Cmp-Int for the player with a efficiency of 117.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "passing" (
"name" text,
"gp_gs" text,
"effic" real,
"att_cmp_int"... |
SELECT SUM("legs_won") FROM "statistics" WHERE "100"<84 AND "legs_lost"<14 AND "played"<3; |
## Task
Generate a SQL query to answer the following question:
`How many legs were won by the player who had less than 84 100+, less than 14 legs lost, and less than 3 played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"player" tex... |
SELECT COUNT("legs_lost") FROM "statistics" WHERE "high_checkout"<76 AND "played"<3; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of legs lost of the player with a high checkout less than 76 and less than 3 played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"player" text,... |
SELECT "played" FROM "statistics" WHERE "180s"=7 AND "140">28; |
## Task
Generate a SQL query to answer the following question:
`What is the number played of the player with 7 180s and a 140+ greater than 28?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won"... |
SELECT SUM("legs_lost") FROM "statistics" WHERE "legs_won">8 AND "played"=4 AND "180s"<6 AND "100">46; |
## Task
Generate a SQL query to answer the following question:
`What is the number of legs lost of the player with more than 8 legs won, 4 played, less than 6 180s, and a 100+ greater than 46?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics"... |
SELECT AVG("legs_won") FROM "statistics" WHERE "high_checkout">96 AND "played">5 AND "3_dart_average"<95.61; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of legs won of the player with a high checkout greater than 96, more than 5 played, and a smaller than 95.61 3-dart average?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CR... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.