output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "date" FROM "1988" WHERE "centerfold_model"='shannon long'; |
## Task
Generate a SQL query to answer the following question:
`When was Shannon Long the Centerfold model?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1988" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" te... |
SELECT "centerfold_model" FROM "1988" WHERE "date"='5-88'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Centerfold model on 5-88?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1988" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
... |
SELECT "date" FROM "1988" WHERE "20_questions"='judge reinhold'; |
## Task
Generate a SQL query to answer the following question:
`On which date was the interview subject 20 Questions of Judge Reinhold?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1988" (
"date" text,
"cover_model" text,
"centerfold_model" te... |
SELECT "centerfold_model" FROM "1988" WHERE "interview_subject"='bruce willis'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Centerfild model that used Bruce Willis as her Interview subject?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1988" (
"date" text,
"cover_model" text,
"centerfold_mod... |
SELECT "series" FROM "series_details" WHERE "launch_date"='23 february 2013'; |
## Task
Generate a SQL query to answer the following question:
`What is Series, when Launch Date is 23 February 2013?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_details" (
"series" text,
"host" text,
"launch_date" text,
"finale_date... |
SELECT "series" FROM "series_details" WHERE "days">99 AND "prize"='€50,000'; |
## Task
Generate a SQL query to answer the following question:
`What is Series, when Days is greater than 99, and when Prize is €50,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_details" (
"series" text,
"host" text,
"launch_date" t... |
SELECT "series" FROM "series_details" WHERE "winner"='jetmir salaj'; |
## Task
Generate a SQL query to answer the following question:
`What is Series, when Winner is Jetmir Salaj?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_details" (
"series" text,
"host" text,
"launch_date" text,
"finale_date" text,
... |
SELECT MAX("days") FROM "series_details" WHERE "launch_date"='23 january 2010'; |
## Task
Generate a SQL query to answer the following question:
`What is Highest Days, when Launch Date is 23 January 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_details" (
"series" text,
"host" text,
"launch_date" text,
"finale... |
SELECT MIN("rank") FROM "points" WHERE "name"='jeremiah massey' AND "games"<20; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Rank, when Name is Jeremiah Massey, and when Games is less than 20?`
### 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 MIN("games") FROM "points" WHERE "name"='jeremiah massey' AND "points"<340; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Games, when Name is Jeremiah Massey, and when Points is less than 340?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "points" (
"rank" real,
"name" text,
"team" t... |
SELECT MIN("points") FROM "points" WHERE "games">20 AND "team"='partizan belgrade'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Points, when Games is greater than 20, and when Team is Partizan Belgrade?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "points" (
"rank" real,
"name" text,
"tea... |
SELECT "games" FROM "points" WHERE "points"<340 AND "rank">3; |
## Task
Generate a SQL query to answer the following question:
`What is Games, when Points is less than 340, and when Rank is greater than 3?`
### 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,
"game... |
SELECT SUM("rank") FROM "points" WHERE "name"='will solomon' AND "games">21; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Rank, when Name is Will Solomon, and when Games is greater than 21?`
### 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 "first_leg" FROM "borussia_m_nchengladbach" WHERE "opposition"='twente'; |
## Task
Generate a SQL query to answer the following question:
`What was the first leg score in the match against Twente?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "borussia_m_nchengladbach" (
"round" text,
"opposition" text,
"first_leg" tex... |
SELECT "first_leg" FROM "borussia_m_nchengladbach" WHERE "round"='2nd'; |
## Task
Generate a SQL query to answer the following question:
`What was the first leg score in the 2nd round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "borussia_m_nchengladbach" (
"round" text,
"opposition" text,
"first_leg" text,
"secon... |
SELECT SUM("bills_points") FROM "schedule" WHERE "date"='nov. 11'; |
## Task
Generate a SQL query to answer the following question:
`What were the Bills points on Nov. 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bills_points" real,
... |
SELECT MIN("bills_first_downs") FROM "schedule" WHERE "date"='oct. 29' AND "bills_points">23; |
## Task
Generate a SQL query to answer the following question:
`What was the Bills first downs on Oct. 29 with more the 23 Bills points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"res... |
SELECT "attendance" FROM "season_schedule" WHERE "date"='december 6'; |
## Task
Generate a SQL query to answer the following question:
`What was the Bill's attendance on December 6?`
### 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,
"result" text,
"attend... |
SELECT "date" FROM "season_schedule" WHERE "week"<12 AND "opponent"='houston oilers'; |
## Task
Generate a SQL query to answer the following question:
`On what date did the Bills play the Houston Oilers before week 12?`
### 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,
"re... |
SELECT "result" FROM "season_schedule" WHERE "attendance"='42,308'; |
## Task
Generate a SQL query to answer the following question:
`Which team won on the day when attendance was 42,308?`
### 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,
"result" text,
... |
SELECT "week" FROM "season_schedule" WHERE "date"='december 13'; |
## Task
Generate a SQL query to answer the following question:
`What week of the season was December 13?`
### 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,
"result" text,
"attendance"... |
SELECT MAX("points") FROM "campeonato_paulista" WHERE "position"=2 AND "drawn">3; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Points in Position 2 with more than 3 Drawn games?`
### 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" r... |
SELECT "difference" FROM "campeonato_paulista" WHERE "position"=5; |
## Task
Generate a SQL query to answer the following question:
`What is the goal Difference at Position 5?`
### 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" real,
"played" real,
"dra... |
SELECT AVG("played") FROM "campeonato_paulista" WHERE "position">3 AND "against"<27 AND "lost"<6; |
## Task
Generate a SQL query to answer the following question:
`What is the average games Played with positions higher than 3 that have goals Against less than 27 and a Lost games smaller than 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeona... |
SELECT MAX("points") FROM "campeonato_paulista" WHERE "lost"=8; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Points with a Lost total of 8?`
### 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" real,
"played" real... |
SELECT AVG("points") FROM "campeonato_paulista" WHERE "lost">20; |
## Task
Generate a SQL query to answer the following question:
`Which average Points has a Lost higher than 20?`
### 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" real,
"played" real,
... |
SELECT SUM("cuts_made") FROM "summary" WHERE "top_10"<2; |
## Task
Generate a SQL query to answer the following question:
`What are the Cuts made with a Top-10 smaller than 2?`
### 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,
"top_10" real,
"top_... |
SELECT AVG("top_25") FROM "summary" WHERE "top_10"=8 AND "events"=45; |
## Task
Generate a SQL query to answer the following question:
`What is the Top-25 with a Top-10 of 8, and an Events of 45?`
### 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,
"top_10" real,
... |
SELECT AVG("top_25") FROM "summary" WHERE "events"=20 AND "wins">2; |
## Task
Generate a SQL query to answer the following question:
`What is the Top-25 with an Events of 20, and a Wins larger than 2?`
### 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,
"top_10"... |
SELECT MAX("top_10") FROM "summary" WHERE "top_25"<18 AND "top_5"=6 AND "cuts_made"<20; |
## Task
Generate a SQL query to answer the following question:
`Which Top-10 has a Top-25 smaller than 18, and a Top-5 of 6, and a Cuts made smaller than 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,... |
SELECT "to_par" FROM "first_round_thursday" WHERE "score"<68 AND "country"='england'; |
## Task
Generate a SQL query to answer the following question:
`What is Top Par, when Score is less than 68, and when Country is England?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_thursday" (
"place" text,
"player" text,
"countr... |
SELECT SUM("score") FROM "first_round_thursday" WHERE "player"='vijay singh'; |
## Task
Generate a SQL query to answer the following question:
`What is Sum of Score, when Player is Vijay Singh?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_thursday" (
"place" text,
"player" text,
"country" text,
"score" real,... |
SELECT SUM("score") FROM "first_round_thursday" WHERE "place"='t2' AND "player"='justin leonard'; |
## Task
Generate a SQL query to answer the following question:
`What is Sum of Score, when Place is T2, and when Player is Justin Leonard?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_thursday" (
"place" text,
"player" text,
"count... |
SELECT "place" FROM "first_round_thursday" WHERE "score"<67 AND "country"='south africa'; |
## Task
Generate a SQL query to answer the following question:
`What is Place, when Score is less than 67, and when Country is South Africa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_thursday" (
"place" text,
"player" text,
"cou... |
SELECT "8_00" FROM "tuesday" WHERE "9_00"='american idol'; |
## Task
Generate a SQL query to answer the following question:
`What show was on at 8:00 when american idol was on at 9:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tuesday" (
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00"... |
SELECT "8_30" FROM "tuesday" WHERE "9_30"='dancing with the stars: the results'; |
## Task
Generate a SQL query to answer the following question:
`What was on at 8:30 when dancing with the stars: the results was on at 9:30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tuesday" (
"8_00" text,
"8_30" text,
"9_00" text,
"9_30... |
SELECT "8_30" FROM "tuesday" WHERE "9_00"='dancing with the stars: the results'; |
## Task
Generate a SQL query to answer the following question:
`What was on at 8:30 when dancing with the stars: the results was on at 9:30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tuesday" (
"8_00" text,
"8_30" text,
"9_00" text,
"9_30... |
SELECT "10_00" FROM "tuesday" WHERE "8_00"='ncis'; |
## Task
Generate a SQL query to answer the following question:
`What was on at 10:00 when ncis was on at 8:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tuesday" (
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
### ... |
SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "laps"=379; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Team that has the Laps of 379?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"clas... |
SELECT "tournament" FROM "pga_tour_wins_21" WHERE "margin_of_victory"='4 strokes'; |
## Task
Generate a SQL query to answer the following question:
`What is the Tournament with a Margin of victory that was 4 strokes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_21" (
"date" text,
"tournament" text,
"winning_score... |
SELECT "1999" FROM "singles_performance_timeline" WHERE "1998"='2r'; |
## Task
Generate a SQL query to answer the following question:
`What is 1999, when 1998 is 2R?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1993" text,
"1994" text,
"1995" text,
"1996" te... |
SELECT "1998" FROM "singles_performance_timeline" WHERE "1994"='grand slam tournaments'; |
## Task
Generate a SQL query to answer the following question:
`What is 1998, when 1994 is Grand Slam Tournaments?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1993" text,
"1994" text,
"199... |
SELECT "2009" FROM "singles_performance_timeline" WHERE "2000"='1r' AND "1998"='3r'; |
## Task
Generate a SQL query to answer the following question:
`What is 2009, when 2000 is 1R, and when 1998 is 3R?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1993" text,
"1994" text,
"19... |
SELECT "2009" FROM "singles_performance_timeline" WHERE "2008"='1r' AND "tournament"='french open'; |
## Task
Generate a SQL query to answer the following question:
`What is 2009, when 2008 is 1R, and when Tournament is French Open?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1993" text,
"19... |
SELECT "2009" FROM "singles_performance_timeline" WHERE "2004"='2r' AND "1993"='a'; |
## Task
Generate a SQL query to answer the following question:
`What is 2009, when 2004 is 2R, and when 1993 is A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1993" text,
"1994" text,
"199... |
SELECT AVG("gold") FROM "medals_table" WHERE "total">12; |
## Task
Generate a SQL query to answer the following question:
`What is the average amount of gold medals for a country with more than 12 total medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"g... |
SELECT "visitor" FROM "november" WHERE "home"='nets'; |
## Task
Generate a SQL query to answer the following question:
`Who were the Visitor when the Nets were the Home team?`
### 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,
"leadin... |
SELECT "leading_scorer" FROM "november" WHERE "score"='80–112'; |
## Task
Generate a SQL query to answer the following question:
`What Leading scorer had a Score of 80–112?`
### 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" te... |
SELECT "tournament" FROM "pga_tour_wins_16" WHERE "margin_of_victory"='2 strokes' AND "date"='sep 20, 1981'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the tournament played on Sep 20, 1981, ending with a margin of vicroty of 2 strokes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_16" (
"date" text,
... |
SELECT "winning_score" FROM "pga_tour_wins_16" WHERE "date"='jul 4, 1982'; |
## Task
Generate a SQL query to answer the following question:
`For the tournament played on Jul 4, 1982, what was the winning score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_16" (
"date" text,
"tournament" text,
"winning_sco... |
SELECT "winning_score" FROM "pga_tour_wins_16" WHERE "tournament"='andy williams-san diego open invitational'; |
## Task
Generate a SQL query to answer the following question:
`What was the winning score for the Andy Williams-San Diego Open Invitational tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_16" (
"date" text,
"tournament" t... |
SELECT "runner_s_up" FROM "pga_tour_wins_16" WHERE "date"='jun 3, 1973'; |
## Task
Generate a SQL query to answer the following question:
`Who was the runner(s)-up for the tournament played on Jun 3, 1973?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_16" (
"date" text,
"tournament" text,
"winning_score"... |
SELECT "winning_score" FROM "pga_tour_wins_16" WHERE "date"='jul 14, 1973'; |
## Task
Generate a SQL query to answer the following question:
`What was the winning score for the tournament played on Jul 14, 1973?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_16" (
"date" text,
"tournament" text,
"winning_sco... |
SELECT "tournament" FROM "pga_tour_wins_16" WHERE "runner_s_up"='gil morgan'; |
## Task
Generate a SQL query to answer the following question:
`In which tournament was Gil Morgan the runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_16" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_... |
SELECT MAX("attendance") FROM "schedule" WHERE "opponent"='atlanta falcons' AND "week"<10; |
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance when the Atlanta Falcons played for a week smaller than 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opp... |
SELECT "result" FROM "performances_results" WHERE "theme"='dolly parton'; |
## Task
Generate a SQL query to answer the following question:
`What is the Result when the Theme was by Dolly Parton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"theme" text,
"song_choice" text,
"o... |
SELECT "order_num" FROM "performances_results" WHERE "song_choice"='\" you''re so vain \"'; |
## Task
Generate a SQL query to answer the following question:
`What is the Order # when the song choice was " you're so vain "?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"theme" text,
"song_choice" ... |
SELECT "theme" FROM "performances_results" WHERE "original_artist"='carole king' AND "week_num"='hollywood'; |
## Task
Generate a SQL query to answer the following question:
`What is the Theme when the Original artist was carole king, and a Week # shows hollywood?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"them... |
SELECT "result" FROM "performances_results" WHERE "song_choice"='\"beautiful\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the Result when the Song choice was "beautiful"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"theme" text,
"song_choice" text,
... |
SELECT "week_num" FROM "performances_results" WHERE "order_num"='7' AND "song_choice"='\" let it be \"'; |
## Task
Generate a SQL query to answer the following question:
`What Week # that is there an Order # of 7, and the Song choice was " let it be "?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"theme" text,... |
SELECT "song_choice" FROM "performances_results" WHERE "order_num"='4'; |
## Task
Generate a SQL query to answer the following question:
`What is the Song choice when there is an Order # of 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances_results" (
"week_num" text,
"theme" text,
"song_choice" text,
"o... |
SELECT "proto_oceanic" FROM "animals" WHERE "animal"='louse'; |
## Task
Generate a SQL query to answer the following question:
`What proto-oceanic has louse as the animal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "animals" (
"animal" text,
"proto_austronesian" text,
"proto_malayo_polynesian" text,
"pr... |
SELECT SUM("delegates") FROM "96pct_of_precincts_reporting" WHERE "counties_carries"=4 AND "state_delegate">'1,903'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of delegate that have 4 counties carries and more than 1,903 state delegates?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "96pct_of_precincts_reporting" (
"ca... |
SELECT "home_team" FROM "first_round_proper" WHERE "away_team"='oxford united'; |
## Task
Generate a SQL query to answer the following question:
`What is the Home team with an Away team that is oxford united?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
... |
SELECT "home_team" FROM "first_round_proper" WHERE "away_team"='wrexham'; |
## Task
Generate a SQL query to answer the following question:
`What is the Home team with an Away team that is wrexham?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_... |
SELECT MIN("gold") FROM "medal_table" WHERE "silver"=7 AND "bronze"<7; |
## Task
Generate a SQL query to answer the following question:
`Which Gold has a Silver of 7, and a Bronze smaller than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
... |
SELECT SUM("bronze") FROM "medal_table" WHERE "silver"=15 AND "gold"<20; |
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Silver of 15, and a Gold smaller than 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
... |
SELECT MIN("bronze") FROM "medal_table" WHERE "silver"=7 AND "total">25; |
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Silver of 7, and a Total larger than 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
... |
SELECT SUM("gold") FROM "medal_table" WHERE "bronze">1 AND "total">80; |
## Task
Generate a SQL query to answer the following question:
`Which Gold has a Bronze larger than 1, and a Total larger than 80?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" ... |
SELECT COUNT("total") FROM "medal_table" WHERE "silver">8 AND "bronze"=20 AND "gold"<20; |
## Task
Generate a SQL query to answer the following question:
`Which Total has a Silver larger than 8, and a Bronze of 20, and a Gold smaller than 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"go... |
SELECT "total" FROM "results_pool_c" WHERE "set_4"='na' AND "score"='3-0' AND "set_2"='26-24'; |
## Task
Generate a SQL query to answer the following question:
`What is the total of NA for set 4, a score of 3-0 and a 26-24 for set 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_pool_c" (
"date" text,
"score" text,
"set_1" text,
... |
SELECT "total" FROM "results_pool_c" WHERE "score"='3-0' AND "set_3"='25-18' AND "set_2"='25-12'; |
## Task
Generate a SQL query to answer the following question:
`What is the total of the 3-0 score with a set 2 of 25-12 and a set 3 of 25-18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_pool_c" (
"date" text,
"score" text,
"set_1" te... |
SELECT "set_5" FROM "results_pool_c" WHERE "set_2"='26-24' AND "set_1"='27-25'; |
## Task
Generate a SQL query to answer the following question:
`What is the set 5 of the match with a set 2 of 26-24 and a set 1 of 27-25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_pool_c" (
"date" text,
"score" text,
"set_1" text,
... |
SELECT COUNT("silver") FROM "overall" WHERE "total"=76; |
## Task
Generate a SQL query to answer the following question:
`Who has a total number of 76 silver medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"t... |
SELECT "score" FROM "first_round_proper" WHERE "home_team"='ipswich town' AND "tie_no"='replay'; |
## Task
Generate a SQL query to answer the following question:
`What score has ipswich town as the home team, and replay as the tie no.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score... |
SELECT "score" FROM "first_round_proper" WHERE "home_team"='grays athletic'; |
## Task
Generate a SQL query to answer the following question:
`What score has grays athletic as the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" tex... |
SELECT "date" FROM "first_round_proper" WHERE "tie_no"='6'; |
## Task
Generate a SQL query to answer the following question:
`What date has 6 as the tie no.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text... |
SELECT "fastest_lap" FROM "race_calendar" WHERE "winning_team"='team brm' AND "race"=1 AND "pole_position"='leanne tander' AND "circuit"='phillip island'; |
## Task
Generate a SQL query to answer the following question:
`What is Fastest Lap, when Winning Team is Team BRM, when Race is 1, when Pole Position is Leanne Tander, and when Circuit is Phillip Island?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE ... |
SELECT "fastest_lap" FROM "race_calendar" WHERE "round"='5' AND "winning_driver"='james winslow'; |
## Task
Generate a SQL query to answer the following question:
`What is Fastest Lap, when Round is 5, and when Winning Driver is James Winslow?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"round" text,
"race" real,
"circuit" ... |
SELECT "date" FROM "race_calendar" WHERE "fastest_lap"='james winslow' AND "race"=1 AND "winning_driver"='leanne tander'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Fastest Lap is James Winslow, when Race is 1, and when Winning Driver is Leanne Tander?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"round" text,
... |
SELECT "pole_position" FROM "race_calendar" WHERE "circuit"='adelaide street circuit' AND "winning_team"='piccola scuderia corse'; |
## Task
Generate a SQL query to answer the following question:
`What is Pole Position, when Circuit is Adelaide Street Circuit, and when Winning Team is Piccola Scuderia Corse?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"round" ... |
SELECT "country" FROM "tournaments" WHERE "location"='trestles'; |
## Task
Generate a SQL query to answer the following question:
`What country was the game played in when the location was trestles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"ev... |
SELECT "date" FROM "tournaments" WHERE "location"='bells beach'; |
## Task
Generate a SQL query to answer the following question:
`What date was the game played when it was located at bells beach?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"even... |
SELECT "country" FROM "tournaments" WHERE "date"='april 11-april 21'; |
## Task
Generate a SQL query to answer the following question:
`What country was the game played when it was played from April 11-April 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" tex... |
SELECT "runner_up" FROM "tournaments" WHERE "location"='bells beach'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Runner-up when the game was played at Bells Beach?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"event" ... |
SELECT "accolade" FROM "reception" WHERE "publication"='under the radar'; |
## Task
Generate a SQL query to answer the following question:
`Which Accolade had a publication of Under the Radar?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "reception" (
"publication" text,
"country" text,
"accolade" text,
"year" real,
... |
SELECT "year" FROM "reception" WHERE "publication"='pazz & jop'; |
## Task
Generate a SQL query to answer the following question:
`Which year had a publication of Pazz & Jop?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "reception" (
"publication" text,
"country" text,
"accolade" text,
"year" real,
"rank" ... |
SELECT COUNT("district") FROM "match_up_summary" WHERE "democratic"='nicholas von stein'; |
## Task
Generate a SQL query to answer the following question:
`How many districts featured the democrat nicholas von stein?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "match_up_summary" (
"district" real,
"incumbent" text,
"2008_status" text... |
SELECT "incumbent" FROM "match_up_summary" WHERE "democratic"='mike carroll'; |
## Task
Generate a SQL query to answer the following question:
`Which incumbent's democratic candidate was mike carroll?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "match_up_summary" (
"district" real,
"incumbent" text,
"2008_status" text,
... |
SELECT "democratic_ticket" FROM "1962_state_election_results" WHERE "liberal_ticket"='edward r. dudley'; |
## Task
Generate a SQL query to answer the following question:
`Who ran under the Democratic ticket when Edward R. Dudley ran under the Liberal ticket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1962_state_election_results" (
"office" text,
"r... |
SELECT "democratic_ticket" FROM "1962_state_election_results" WHERE "socialist_labor_ticket"='john emanuel'; |
## Task
Generate a SQL query to answer the following question:
`When John Emanuel ran under the Socialist Labor ticket who ran under the Democratic ticket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1962_state_election_results" (
"office" text,
... |
SELECT "office" FROM "1962_state_election_results" WHERE "socialist_workers_ticket"='sylvia weinstein'; |
## Task
Generate a SQL query to answer the following question:
`What was the office up for election when Sylvia Weinstein ran under the Socialist Workers ticket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1962_state_election_results" (
"office" ... |
SELECT "socialist_labor_ticket" FROM "1962_state_election_results" WHERE "democratic_ticket"='robert m. morgenthau'; |
## Task
Generate a SQL query to answer the following question:
`Who ran under the Socialist Labor ticket when Robert M. Morgenthau ran for the Democratic ticket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1962_state_election_results" (
"office" ... |
SELECT "socialist_workers_ticket" FROM "1962_state_election_results" WHERE "republican_ticket"='john p. lomenzo'; |
## Task
Generate a SQL query to answer the following question:
`When Republican ticket was John P. Lomenzo who ran for the Socialist Workers ticket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1962_state_election_results" (
"office" text,
"repu... |
SELECT SUM("area_km_2") FROM "area_and_population" WHERE "pop_density_people_km_2">91 AND "member_state"='italy' AND "population_in_millions"<58.8; |
## Task
Generate a SQL query to answer the following question:
`What is the area km2 of the area with a pop density people/km2 larger than 91, is a member state of Italy, and had less than 58.8 population in millions?`
### Database Schema
This query will run on a database whose schema is represented in this string:
... |
SELECT "area_pct_of_eu" FROM "area_and_population" WHERE "population_in_millions"=16.4; |
## Task
Generate a SQL query to answer the following question:
`What is the area % of EU with 16.4 population in millions?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "area_and_population" (
"member_state" text,
"population_in_millions" real,
... |
SELECT COUNT("area_km_2") FROM "area_and_population" WHERE "population_in_millions">4.2 AND "member_state"='czech republic'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of area km2 with a 4.2 population in millions and is a member state of the Czech Republic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "area_and_population" (
... |
SELECT SUM("pop_density_people_km_2") FROM "area_and_population" WHERE "population_pct_of_eu"='0.1%' AND "area_pct_of_eu"='0.1%' AND "population_in_millions">0.5; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the pop density people/km2 with a population % of EU of 0.1%, an area % of EU of 0.1%, and has more than 0.5 population in millions?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CR... |
SELECT MIN("area_km_2") FROM "area_and_population" WHERE "member_state"='czech republic' AND "population_in_millions"<10.3; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest area km2 of the member state of the Czech Republic and has a population in millions lesss than 10.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "area_and_population"... |
SELECT COUNT("height") FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "spike"<340 AND "name"='gilberto godoy filho' AND "weight"<85; |
## Task
Generate a SQL query to answer the following question:
`Weighing less than 85, with less than 340 Spikes, what is Gilberto Godoy Filho's Height`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" (
"name"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.