output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "rank" FROM "grand_prix_motorcycle_racing_results" WHERE "team"='yamaha' AND "points"=3; |
## Task
Generate a SQL query to answer the following question:
`What is team Yamaha with 3 points ranked?`
### 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" r... |
SELECT "years" FROM "list_of_top_association_football_goal_sc" WHERE "rank"<8 AND "matches"=447; |
## Task
Generate a SQL query to answer the following question:
`What years did the player ranked less than 8 and had 447 matches play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" t... |
SELECT "time" FROM "mixed_martial_arts_record" WHERE "record"='15-7'; |
## Task
Generate a SQL query to answer the following question:
`What is the Time with a Record that is 15-7?`
### 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,
"method" text,... |
SELECT "event" FROM "mixed_martial_arts_record" WHERE "time"='3:06'; |
## Task
Generate a SQL query to answer the following question:
`What is the Event with a Time that is 3:06?`
### 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,
"method" text,
... |
SELECT "silver" FROM "medal_table" WHERE "nation"='turkey'; |
## Task
Generate a SQL query to answer the following question:
`How many silvers did Turkey get?`
### 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,
"total" r... |
SELECT "position" FROM "nfl_draft" WHERE "player"='denard walker'; |
## Task
Generate a SQL query to answer the following question:
`What position does Denard Walker play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" te... |
SELECT "pick_num" FROM "nfl_draft" WHERE "position"='wide receiver' AND "college"='michigan state'; |
## Task
Generate a SQL query to answer the following question:
`What was the pick number for the wide receiver drafted from Michigan State?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" te... |
SELECT "player" FROM "nfl_draft" WHERE "college"='kent state'; |
## Task
Generate a SQL query to answer the following question:
`Which player came from Kent State?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
)... |
SELECT COUNT("bronze") FROM "men" WHERE "silver"=4 AND "gold">2; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of bronze medals, and 4 silver medals, and 2 gold medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"rank" real,
"nation" text,
"gold" real,
"... |
SELECT "tournament" FROM "doubles_11_3_8" WHERE "score"='2β6 6β4 [10β8]'; |
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a score of 2β6 6β4 [10β8]?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_11_3_8" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
... |
SELECT "tournament" FROM "doubles_11_3_8" WHERE "score"='6(4)β7 2β6'; |
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a Score of 6(4)β7 2β6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_11_3_8" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"par... |
SELECT "score" FROM "doubles_11_3_8" WHERE "opponents_in_the_final"='vitalia diatchenko irena pavlovic'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of the match where Opponents in the Final was Vitalia Diatchenko Irena Pavlovic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_11_3_8" (
"outcome" text,
"da... |
SELECT "high_rebounds" FROM "game_log" WHERE "game"=62; |
## Task
Generate a SQL query to answer the following question:
`What is the High rebounds with a Game that is 62?`
### 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" t... |
SELECT "team" FROM "game_log" WHERE "score"='l 79β92 (ot)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Team with a Score that is l 79β92 (ot)?`
### 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"... |
SELECT "coach" FROM "p_premier_r_runner_up_m_minor_premier_f_" WHERE "details"='2012 gold coast titans season'; |
## Task
Generate a SQL query to answer the following question:
`Who is the coach of the 2012 Gold Coast Titans season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "p_premier_r_runner_up_m_minor_premier_f_" (
"competition" text,
"ladder_position"... |
SELECT "coach" FROM "p_premier_r_runner_up_m_minor_premier_f_" WHERE "details"='2010 gold coast titans season'; |
## Task
Generate a SQL query to answer the following question:
`Who is the coach of the 2010 Gold Coast Titans season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "p_premier_r_runner_up_m_minor_premier_f_" (
"competition" text,
"ladder_position"... |
SELECT "captain_s" FROM "p_premier_r_runner_up_m_minor_premier_f_" WHERE "competition"='2012 nrl season'; |
## Task
Generate a SQL query to answer the following question:
`Who is the captain of the 2012 NRL season competition?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "p_premier_r_runner_up_m_minor_premier_f_" (
"competition" text,
"ladder_position"... |
SELECT COUNT("wins") FROM "summary" WHERE "tournament"='pga championship' AND "events">10; |
## Task
Generate a SQL query to answer the following question:
`How many wins were in the PGA Championship when there were more than 10 events?`
### 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" rea... |
SELECT MIN("cuts_made") FROM "summary" WHERE "wins">0; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of cuts when there were more than 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,
"top_5" real,
"top_... |
SELECT COUNT("rank") FROM "list_of_top_association_football_goal_sc" WHERE "years"='1996β2007' AND "goals">108; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Rank for 1996β2007, when there are more than 108 goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" rea... |
SELECT MIN("rank") FROM "list_of_top_association_football_goal_sc" WHERE "goals">124 AND "name"='jeff cunningham'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Rank when the goals are less than 124 for Jeff Cunningham?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"... |
SELECT COUNT("rank") FROM "list_of_top_association_football_goal_sc" WHERE "goals"=100 AND "matches"<300; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Rank with 100 goals, and less than 300 matches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"na... |
SELECT MAX("rank") FROM "list_of_top_association_football_goal_sc" WHERE "name"='jason kreis' AND "matches"<305; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Rank for Jason Kreis, with less than 305 matches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" te... |
SELECT MIN("wins") FROM "summary" WHERE "top_10">8; |
## Task
Generate a SQL query to answer the following question:
`What is the least number of wins when the top 10 is more than 8?`
### 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" r... |
SELECT COUNT("cuts_made") FROM "summary" WHERE "top_5"=2 AND "events"=12; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of cuts made when the top-5 is 2, and there are 12 events?`
### 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 AVG("top_5") FROM "summary" WHERE "top_25"=1 AND "wins"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the mean number in the top 5 when the top 25 is 1 and there's fewer than 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("events") FROM "summary" WHERE "top_5"=1; |
## Task
Generate a SQL query to answer the following question:
`What is the mean number of events when top-5 is 1?`
### 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_25... |
SELECT SUM("top_25") FROM "summary" WHERE "events">91; |
## Task
Generate a SQL query to answer the following question:
`How many top-25s are associated with more than 91 events?`
### 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 MIN("wins") FROM "summary" WHERE "top_10">9; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Wins with a Top-10 that is larger than 9?`
### 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("cuts_made") FROM "summary" WHERE "top_10">9; |
## Task
Generate a SQL query to answer the following question:
`What is the average Cuts that were made with a Top-10 that is larger than 9?`
### 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 "record" FROM "schedule" WHERE "attendance"='64,053'; |
## Task
Generate a SQL query to answer the following question:
`Which record has 64,053 as the 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,
"game_site" text,
"final_score" ... |
SELECT "date" FROM "schedule" WHERE "game_site"='rich stadium' AND "week"=1; |
## Task
Generate a SQL query to answer the following question:
`Which date has rich stadium as the game site for week 1?`
### 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,
"game_site" text,
... |
SELECT "date" FROM "schedule" WHERE "week"=1; |
## Task
Generate a SQL query to answer the following question:
`Which date has 1 as the week?`
### 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,
"game_site" text,
"final_score" text,
"reco... |
SELECT "title" FROM "studio_albums" WHERE "riaa_sales_certification"='gold'; |
## Task
Generate a SQL query to answer the following question:
`Which Title was awarded the gold RIAA Sales Certification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "studio_albums" (
"year" real,
"title" text,
"label" text,
"riaa_sales_cer... |
SELECT SUM("year") FROM "studio_albums" WHERE "riaa_sales_certification"='gold' AND "title"='lost without your love' AND "billboard_200_peak">26; |
## Task
Generate a SQL query to answer the following question:
`For how many years did the song "Lost Without Your Love" win the gold RIAA Sales Certification, and have a Billboard 200 Peak greater than 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABL... |
SELECT "riaa_sales_certification" FROM "studio_albums" WHERE "billboard_200_peak"<18 AND "year"<1972; |
## Task
Generate a SQL query to answer the following question:
`Before the Year 1972, what RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak less than 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "studio_albums" (
"... |
SELECT "riaa_sales_certification" FROM "studio_albums" WHERE "billboard_200_peak"=21; |
## Task
Generate a SQL query to answer the following question:
`What RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak of 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "studio_albums" (
"year" real,
"title" text,
... |
SELECT SUM("billboard_200_peak") FROM "studio_albums" WHERE "year">1971; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the Billboard 200 Peak scores after the Year 1971?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "studio_albums" (
"year" real,
"title" text,
"label" text,
"ria... |
SELECT SUM("billboard_200_peak") FROM "studio_albums" WHERE "title"='bread'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the Billboard 200 Peak scores given to the song with the Title Bread?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "studio_albums" (
"year" real,
"title" text,
"... |
SELECT COUNT("gold") FROM "medals_table" WHERE "silver"=1 AND "bronze"=1 AND "nation"='austria'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of gold when the silver is 1, bronze is 1, and the nation is Austria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"... |
SELECT "nation" FROM "medals_table" WHERE "bronze"=2 AND "rank"=9; |
## Task
Generate a SQL query to answer the following question:
`What nation has 2 bronze and a rank of 9?`
### 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 MAX("gold") FROM "medals_table" WHERE "bronze"=1 AND "rank"=5; |
## Task
Generate a SQL query to answer the following question:
`What is the highest gold when bronze is 1, and rank is 5?`
### 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,
... |
SELECT MIN("gold") FROM "medals_table" WHERE "bronze"=0 AND "total"<2 AND "silver"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest gold when there are 0 bronze and the total is less than 2, and silver is less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"n... |
SELECT SUM("rank") FROM "medals_table" WHERE "total"=3 AND "nation"='australia'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of rank when total is 3 and the nation is Australia?`
### 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,
"silve... |
SELECT "rank" FROM "list_of_top_association_football_goal_sc" WHERE "goals"<66; |
## Task
Generate a SQL query to answer the following question:
`What is the Rank with a Goal number smaller than 66?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" tex... |
SELECT "spoofed_title" FROM "2010s" WHERE "issue">509 AND "actual_title"='parks and recreation'; |
## Task
Generate a SQL query to answer the following question:
`What is the spoofed title for Parks and Recreation with an issue larger than 509?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010s" (
"spoofed_title" text,
"actual_title" text,
... |
SELECT "actual_title" FROM "2010s" WHERE "artist"='tom richmond' AND "issue"<508 AND "writer"='desmond devlin'; |
## Task
Generate a SQL query to answer the following question:
`What was the actual title of the show that had an issue number less than 508, was written by Desmond Devlin, and for which Tom Richmond was the artist?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CR... |
SELECT SUM("issue") FROM "2010s" WHERE "spoofed_title"='ho-hum land'; |
## Task
Generate a SQL query to answer the following question:
`What issue was the spoofed title Ho-Hum land?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010s" (
"spoofed_title" text,
"actual_title" text,
"writer" text,
"artist" text,
"i... |
SELECT "artist" FROM "2010s" WHERE "actual_title"='game of thrones'; |
## Task
Generate a SQL query to answer the following question:
`Game of Thrones was done by which artist?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010s" (
"spoofed_title" text,
"actual_title" text,
"writer" text,
"artist" text,
"issue... |
SELECT "surface" FROM "singles_9_2_7" WHERE "outcome"='runner-up' AND "date"='24 february 1997'; |
## Task
Generate a SQL query to answer the following question:
`What is the Surface when Todd Woodbridge was the runner-up, and a Date of 24 february 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_9_2_7" (
"outcome" text,
"date" text... |
SELECT "opponent" FROM "singles_9_2_7" WHERE "outcome"='runner-up' AND "date"='26 august 1996'; |
## Task
Generate a SQL query to answer the following question:
`What is the Opponent when Todd Woodbridge was the runner-up, and a Date of 26 august 1996?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_9_2_7" (
"outcome" text,
"date" text,... |
SELECT "surface" FROM "singles_9_2_7" WHERE "score"='4β6, 6β3, 6β7 (5β7)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Surface when the score was 4β6, 6β3, 6β7 (5β7)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_9_2_7" (
"outcome" text,
"date" text,
"championship" text,
"surf... |
SELECT "score" FROM "singles_9_2_7" WHERE "surface"='hard' AND "championship"='new haven , usa'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score when there was a hard surface and the Championship is new haven , usa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_9_2_7" (
"outcome" text,
"date" text,
... |
SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "birthdate"='june 30, 1981'; |
## Task
Generate a SQL query to answer the following question:
`Which Position player was born June 30, 1981?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" t... |
SELECT "2005_2006_team" FROM "list_of_united_states_national_ice_hocke" WHERE "name"='phil kessel'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2005-2006 team for player Phil Kessel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"na... |
SELECT SUM("goals_for") FROM "european_records" WHERE "drawn">10; |
## Task
Generate a SQL query to answer the following question:
`What is the total sum of the goals at competitions with more than 10 draws?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_records" (
"competition" text,
"appearances" real,
... |
SELECT MAX("wins") FROM "2003_ladder" WHERE "byes">2; |
## Task
Generate a SQL query to answer the following question:
`For the teams that had more than 2 Byes, what was the highest number of Wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_ladder" (
"ballarat_fl" text,
"wins" real,
"byes" r... |
SELECT COUNT("draws") FROM "2003_ladder" WHERE "losses"<4 AND "wins"<16; |
## Task
Generate a SQL query to answer the following question:
`For the teams that had fewer than 4 Losses, and less than 16 Wins, what was the total number of Draws?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_ladder" (
"ballarat_fl" text,
... |
SELECT AVG("wins") FROM "2003_ladder" WHERE "losses"<1; |
## Task
Generate a SQL query to answer the following question:
`For the teams that had less than 1 loss, what was the average number of Wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_ladder" (
"ballarat_fl" text,
"wins" real,
"byes" r... |
SELECT MIN("draws") FROM "2003_ladder" WHERE "byes"<1; |
## Task
Generate a SQL query to answer the following question:
`For the teams that had fewer than 1 Byes, what was the lowest number of Draws?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_ladder" (
"ballarat_fl" text,
"wins" real,
"byes" ... |
SELECT MAX("draws") FROM "2003_ladder" WHERE "ballarat_fl"='sebastapol' AND "against"<1802; |
## Task
Generate a SQL query to answer the following question:
`What was the highest number of Draws scored by Sebastapol when the value for Against was less than 1802?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_ladder" (
"ballarat_fl" text... |
SELECT "season" FROM "2000s_incorporation" WHERE "opponent"='zenit st. petersburg'; |
## Task
Generate a SQL query to answer the following question:
`What is the Season when the Opponent was zenit st. petersburg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s_incorporation" (
"season" text,
"competition" text,
"round" text,... |
SELECT "opponent" FROM "2000s_incorporation" WHERE "round"='q2' AND "season"='2005β06'; |
## Task
Generate a SQL query to answer the following question:
`What is the Opponent with a Round of q2, in the 2005β06 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s_incorporation" (
"season" text,
"competition" text,
"round" text... |
SELECT "competition" FROM "2000s_incorporation" WHERE "season"='2002β03' AND "opponent"='zenit st. petersburg'; |
## Task
Generate a SQL query to answer the following question:
`What is the Competition for Season 2002β03, and the Opponent was zenit st. petersburg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s_incorporation" (
"season" text,
"competitio... |
SELECT "round" FROM "2000s_incorporation" WHERE "series"='5th place' AND "season"='2006β07'; |
## Task
Generate a SQL query to answer the following question:
`What is the Round when the series shows 5th place, and a Season of 2006β07?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s_incorporation" (
"season" text,
"competition" text,
... |
SELECT "series" FROM "2000s_incorporation" WHERE "competition"='uefa cup' AND "season"='2006β07' AND "round"='group' AND "opponent"='az'; |
## Task
Generate a SQL query to answer the following question:
`What is the Series for the uefa cup, in the 2006β07 season, and a Round of group, and an opponent of az?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s_incorporation" (
"season" t... |
SELECT "flag" FROM "current_fleet" WHERE "ship"='aidavita'; |
## Task
Generate a SQL query to answer the following question:
`Which Flag did the Ship Aidavita have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_fleet" (
"ship" text,
"built" real,
"builder" text,
"entered_service_for_aida" text,
... |
SELECT "set_5" FROM "results_pool_a" WHERE "total"='77 - 65'; |
## Task
Generate a SQL query to answer the following question:
`What shows for Set 5 when the Total was 77 - 65?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" ... |
SELECT "set_3" FROM "results_pool_a" WHERE "total"='98 - 92'; |
## Task
Generate a SQL query to answer the following question:
`What is the Set 3 when the Total was 98 - 92?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" tex... |
SELECT "total" FROM "results_pool_a" WHERE "set_3"='25-15'; |
## Task
Generate a SQL query to answer the following question:
`What is the Total when the Set 3 was 25-15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,... |
SELECT "set_3" FROM "results_pool_a" WHERE "total"='62 - 75'; |
## Task
Generate a SQL query to answer the following question:
`What is the Set 3 when the Total was 62 - 75?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" tex... |
SELECT "score" FROM "results_pool_a" WHERE "set_2"='25-20' AND "total"='75 - 49'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score when Set 2 shows 25-20, and a Total of 75 - 49?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2"... |
SELECT "ethernet_ports" FROM "appliances" WHERE "name"='m1500'; |
## Task
Generate a SQL query to answer the following question:
`What is the ethernet ports of the m1500 appliance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appliances" (
"name" text,
"processor" text,
"hard_drive" text,
"ethernet_ports" ... |
SELECT "ethernet_ports" FROM "appliances" WHERE "name"='u150'; |
## Task
Generate a SQL query to answer the following question:
`What is the ethernet ports of the u150 appliance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appliances" (
"name" text,
"processor" text,
"hard_drive" text,
"ethernet_ports" t... |
SELECT "dimensions" FROM "appliances" WHERE "name"='u50'; |
## Task
Generate a SQL query to answer the following question:
`What is the dimensions of the u50 appliance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appliances" (
"name" text,
"processor" text,
"hard_drive" text,
"ethernet_ports" text,
... |
SELECT "ethernet_ports" FROM "appliances" WHERE "name"='u10'; |
## Task
Generate a SQL query to answer the following question:
`What is the ethernet ports of the u10 appliance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appliances" (
"name" text,
"processor" text,
"hard_drive" text,
"ethernet_ports" te... |
SELECT COUNT("silver") FROM "medals_table" WHERE "bronze"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Silver medals for the Nation with less than 1 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" r... |
SELECT COUNT("gold") FROM "medals_table" WHERE "bronze">1 AND "total">4; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Gold medals for the Nation with more than 1 Bronze and more the 4 Total medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
... |
SELECT COUNT("gold") FROM "medals_table" WHERE "bronze">3; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Gold medals for the Nation with more than 3 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" rea... |
SELECT MIN("gold") FROM "medals_table" WHERE "nation"='great britain' AND "total">2; |
## Task
Generate a SQL query to answer the following question:
`How many Gold medals did Great Britain with a Total of more than 2 medals receive?`
### 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" ... |
SELECT AVG("silver") FROM "medals_table" WHERE "rank"<1; |
## Task
Generate a SQL query to answer the following question:
`How many Silver medals did the Nation with a Rank of less than 1 receive?`
### 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 AVG("total") FROM "topscorers" WHERE "fa_cup"=1 AND "fa_trophy">0; |
## Task
Generate a SQL query to answer the following question:
`What is the average total with 1 FA cup and more than 0 FA trophies?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "topscorers" (
"player" text,
"club" text,
"league" real,
"fa_cu... |
SELECT "club" FROM "topscorers" WHERE "fa_trophy">2 AND "fa_cup">2; |
## Task
Generate a SQL query to answer the following question:
`Which club had more than 2 FA trophies and more than 2 FA cups?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "topscorers" (
"player" text,
"club" text,
"league" real,
"fa_cup" re... |
SELECT "opponent" FROM "game_log" WHERE "record"='11β4β1'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the Maroons record was 11β4β1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"number" real,
"result" text,
"date" text,
"score" text,
"opp... |
SELECT "result" FROM "game_log" WHERE "date"='january 5, 1926'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game on January 5, 1926?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"number" real,
"result" text,
"date" text,
"score" text,
"opponent... |
SELECT "date" FROM "lpga_tour_8" WHERE "margin_of_victory"='2 strokes'; |
## Task
Generate a SQL query to answer the following question:
`What date had a margin victory of 2 strokes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory... |
SELECT "margin_of_victory" FROM "lpga_tour_8" WHERE "tournament"='semgroup championship'; |
## Task
Generate a SQL query to answer the following question:
`What is the margin of victory in a semgroup championship?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_8" (
"date" text,
"tournament" text,
"winning_score" text,
"marg... |
SELECT "winning_score" FROM "lpga_tour_8" WHERE "margin_of_victory"='2 strokes'; |
## Task
Generate a SQL query to answer the following question:
`What was the winning score with a margin victory of 2 strokes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_8" (
"date" text,
"tournament" text,
"winning_score" text,
... |
SELECT MAX("pct_pct") FROM "season_by_season_results" WHERE "goals_against"<229; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Pct %, when Goals Against is less than 229?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season_results" (
"season" text,
"games" real,
"lost" real,
... |
SELECT AVG("goals_for") FROM "season_by_season_results" WHERE "playoffs"='lost in round 2' AND "games"<81; |
## Task
Generate a SQL query to answer the following question:
`What is the average Goals, when Playoffs is Lost in Round 2, and when Games is less than 81?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season_results" (
"season" text,
... |
SELECT SUM("goals_against") FROM "season_by_season_results" WHERE "lost"=45 AND "points">68; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Goals Against, when Lost is 45, and when Points is greater than 68?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season_results" (
"season" text,
"games... |
SELECT AVG("lost") FROM "season_by_season_results" WHERE "games"<82 AND "points"<95 AND "pct_pct"<0.506; |
## Task
Generate a SQL query to answer the following question:
`What is the average Lost, when Games is less than 82, when Points is less than 95, and when Pct % is less than 0.506?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season_resul... |
SELECT "class" FROM "fleet" WHERE "livery"='wessex trains pink'; |
## Task
Generate a SQL query to answer the following question:
`What is the Class when Wessex Trains Pink is the Livery?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fleet" (
"number" real,
"class" real,
"name" text,
"livery" text,
"notes"... |
SELECT "livery" FROM "fleet" WHERE "number"=31468; |
## Task
Generate a SQL query to answer the following question:
`What is the Livery when the Number is 31468?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fleet" (
"number" real,
"class" real,
"name" text,
"livery" text,
"notes" text
);
###... |
SELECT "skip" FROM "teams" WHERE "nation"='germany'; |
## Task
Generate a SQL query to answer the following question:
`What was the Skip for Germany?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text,
"alternate" text,
... |
SELECT "club" FROM "teams" WHERE "nation"='great britain'; |
## Task
Generate a SQL query to answer the following question:
`What was the club for Great Britain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text,
"alternate" ... |
SELECT "alternate" FROM "teams" WHERE "second"='magnus swartling'; |
## Task
Generate a SQL query to answer the following question:
`Who is the alternate for Magnus Swartling as Second?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text... |
SELECT "club" FROM "teams" WHERE "lead"='jamie korab'; |
## Task
Generate a SQL query to answer the following question:
`Which club has Jamie Korab as Lead?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text,
"alternate" t... |
SELECT "lead" FROM "teams" WHERE "third"='hans frauenlob'; |
## Task
Generate a SQL query to answer the following question:
`Which Lead has Hans Frauenlob as a Third?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text,
"altern... |
SELECT "home_captain" FROM "england_in_australia_1903_4" WHERE "result"='aus by 218 runs'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Home captain when the Result was Aus by 218 runs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "england_in_australia_1903_4" (
"date" text,
"home_captain" text,
"away_c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.