output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT SUM("agricultural_panel") FROM "composition_of_the_15th_seanad" WHERE "nominated_by_the_taoiseach">6 AND "total">60; |
## Task
Generate a SQL query to answer the following question:
`Which Agricultural Panel has a Nominated by the Taoiseach larger than 6, and a Total larger than 60?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "composition_of_the_15th_seanad" (
"ad... |
SELECT "team_1" FROM "second_round" WHERE "team_2"='jac port-gentil'; |
## Task
Generate a SQL query to answer the following question:
`What is Team 1 when Team 2 is Jac Port-Gentil?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg"... |
SELECT "team_2" FROM "second_round" WHERE "2nd_leg"='0-0'; |
## Task
Generate a SQL query to answer the following question:
`What was Team 2 with a 2nd leg of 0-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);... |
SELECT "1st_leg" FROM "second_round" WHERE "2nd_leg"='1-3' AND "team_1"='es tunis'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1st leg of the Round that has a 2nd leg of 1-3 and Team 1 Es Tunis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" te... |
SELECT "winning_score" FROM "sunshine_tour_wins_6" WHERE "tournament"='joburg open 1' AND "date"='17 jan 2010'; |
## Task
Generate a SQL query to answer the following question:
`What is Winning Score, when Tournament is Joburg Open 1, and when Date is 17 Jan 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sunshine_tour_wins_6" (
"date" text,
"tournament"... |
SELECT "date" FROM "sunshine_tour_wins_6" WHERE "tournament"='alfred dunhill championship 1'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Tournament is Alfred Dunhill Championship 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sunshine_tour_wins_6" (
"date" text,
"tournament" text,
"winning_score... |
SELECT "tournament" FROM "sunshine_tour_wins_6" WHERE "margin_of_victory"='6 strokes'; |
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when Margin is Victory of 6 Strokes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sunshine_tour_wins_6" (
"date" text,
"tournament" text,
"winning_score" text,... |
SELECT "winning_score" FROM "sunshine_tour_wins_6" WHERE "date"='17 jan 2010'; |
## Task
Generate a SQL query to answer the following question:
`What is Winning Score, when Date is 17 Jan 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sunshine_tour_wins_6" (
"date" text,
"tournament" text,
"winning_score" text,
"marg... |
SELECT "tournament" FROM "sunshine_tour_wins_6" WHERE "runner_s_up"='garth mulroy'; |
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when Runner(s)-Up is Garth Mulroy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sunshine_tour_wins_6" (
"date" text,
"tournament" text,
"winning_score" text,
... |
SELECT "runner_s_up" FROM "sunshine_tour_wins_6" WHERE "margin_of_victory"='1 stroke' AND "tournament"='joburg open 1'; |
## Task
Generate a SQL query to answer the following question:
`What is Runner(s)-Up, when Margin of Victory is 1 Stroke, and when Tournament is Joburg Open 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sunshine_tour_wins_6" (
"date" text,
"to... |
SELECT SUM("points") FROM "career_summary" WHERE "poles"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the points sum of the series with less than 0 poles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" re... |
SELECT SUM("races") FROM "career_summary" WHERE "podiums">4 AND "season"='2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the races in the 2007 season, which has more than 4 podiums?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team"... |
SELECT SUM("poles") FROM "career_summary" WHERE "team"='la filière' AND "points"<162; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the poles of Team la filière, which has less than 162 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team... |
SELECT AVG("points") FROM "career_summary" WHERE "wins"<1 AND "season"='2012' AND "podiums"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of points in the 2012 season, which has less than 1 wins and less than 0 podiums?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" te... |
SELECT "pole" FROM "by_class" WHERE "class"='moto2'; |
## Task
Generate a SQL query to answer the following question:
`How many poles had a moto2 class?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_class" (
"class" text,
"season" text,
"race" real,
"podiums" real,
"pole" real
);
### SQL
Giv... |
SELECT SUM("cultural_and_educational_panel") FROM "composition_of_the_7th_seanad" WHERE "administrative_panel">1 AND "agricultural_panel"=11 AND "university_of_dublin"<3; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the Cultural and Educational Panels that have an Administrative Panel greater than 1, an Agricultural Panel of 11 and a University of Dublin smaller than 3?`
### Database Schema
This query will run on a database whose schema is represe... |
SELECT SUM("agricultural_panel") FROM "composition_of_the_7th_seanad" WHERE "industrial_and_commercial_panel"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Agricultural panels that have an Industrial and Commercial Panel smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "composition_of_the_7th_seanad" (
"admi... |
SELECT MIN("national_university_of_ireland") FROM "composition_of_the_7th_seanad" WHERE "cultural_and_educational_panel"=0 AND "labour_panel"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of National University of Ireland that has a Cultural and Educational Panel of 0, and a Labour Panel smaller than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABL... |
SELECT COUNT("industrial_and_commercial_panel") FROM "composition_of_the_7th_seanad" WHERE "labour_panel">1 AND "nominated_by_the_taoiseach"<11 AND "cultural_and_educational_panel"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the total of Industrial and Commercial Panels that have a Labour Panel greater than 1, a Nominated by the Taoiseach lesss than 11 and a Cultural and Educational Panel smaller than 0`
### Database Schema
This query will run on a database whose sch... |
SELECT MAX("goals") FROM "players" WHERE "minutes"=2428; |
## Task
Generate a SQL query to answer the following question:
`What was the highest number of goals when 2428 minutes were played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"player" text,
"position" text,
"gp_gs" text,
"minute... |
SELECT "minutes" FROM "players" WHERE "goals">4 AND "assists"=3; |
## Task
Generate a SQL query to answer the following question:
`What is the number of minutes when there are more than 4 goals and 3 assists?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"player" text,
"position" text,
"gp_gs" text,... |
SELECT COUNT("assists") FROM "players" WHERE "position"='striker' AND "goals"<4 AND "player"='edmundo rodriguez' AND "minutes"<473; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of assists when Edmundo Rodriguez is playing the position of striker, less than 4 goals were scored, and the minutes were less than 473?`
### Database Schema
This query will run on a database whose schema is represented in this s... |
SELECT MIN("erp_w") FROM "translators" WHERE "frequency_m_hz"='89.3 fm'; |
## Task
Generate a SQL query to answer the following question:
`What is the least ERP W when the freguency MHz is 89.3 fm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" t... |
SELECT AVG("erp_w") FROM "translators" WHERE "call_sign"='k216fo'; |
## Task
Generate a SQL query to answer the following question:
`Call sign k216fo has what average ERP W?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" rea... |
SELECT "city_of_license" FROM "translators" WHERE "call_sign"='k248am'; |
## Task
Generate a SQL query to answer the following question:
`What city does call sign K248am have its license in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
... |
SELECT "call_sign" FROM "translators" WHERE "erp_w">197; |
## Task
Generate a SQL query to answer the following question:
`What call sign has ERP W greater than 197?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" r... |
SELECT "points" FROM "career_summary" WHERE "season">2011 AND "series"='macau grand prix'; |
## Task
Generate a SQL query to answer the following question:
`How many points did Costa score in the Macau Grand Prix since 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"ra... |
SELECT "team" FROM "career_summary" WHERE "races"='1' AND "position"='1st'; |
## Task
Generate a SQL query to answer the following question:
`Which teams had the 1st position and entered 1 race?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"w... |
SELECT "points" FROM "career_summary" WHERE "wins"='3' AND "team"='carlin'; |
## Task
Generate a SQL query to answer the following question:
`How many points did Carlin have when they had 3 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"... |
SELECT SUM("points") FROM "laf_s_campeonato_paulista" WHERE "against"<43 AND "position"<1; |
## Task
Generate a SQL query to answer the following question:
`How many Points have an Against smaller than 43, and a Position smaller than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laf_s_campeonato_paulista" (
"position" real,
"team" tex... |
SELECT COUNT("drawn") FROM "laf_s_campeonato_paulista" WHERE "position"=7 AND "points">18; |
## Task
Generate a SQL query to answer the following question:
`How many Drawn have a Position of 7, and Points larger than 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laf_s_campeonato_paulista" (
"position" real,
"team" text,
"points" re... |
SELECT COUNT("against") FROM "laf_s_campeonato_paulista" WHERE "team"='hespanha' AND "points"<30; |
## Task
Generate a SQL query to answer the following question:
`How many Against have a Team of hespanha, and Points smaller than 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laf_s_campeonato_paulista" (
"position" real,
"team" text,
"poin... |
SELECT AVG("points") FROM "laf_s_campeonato_paulista" WHERE "drawn"=3 AND "played"<22; |
## Task
Generate a SQL query to answer the following question:
`Which Points is the average one that has Drawn of 3, and a Played smaller than 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laf_s_campeonato_paulista" (
"position" real,
"team" ... |
SELECT SUM("played") FROM "laf_s_campeonato_paulista" WHERE "against">37 AND "lost"=15 AND "points"<11; |
## Task
Generate a SQL query to answer the following question:
`How much Played has an Against larger than 37, and a Lost of 15, and Points smaller than 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laf_s_campeonato_paulista" (
"position" real,... |
SELECT "artist" FROM "1990s" WHERE "spoofed_title"='miscue 911'; |
## Task
Generate a SQL query to answer the following question:
`Which artist has the Spoofed title Miscue 911?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1990s" (
"spoofed_title" text,
"actual_title" text,
"writer" text,
"artist" text,
"... |
SELECT "spoofed_title" FROM "1990s" WHERE "date"='february 1998'; |
## Task
Generate a SQL query to answer the following question:
`Which Spoofed title is from February 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1990s" (
"spoofed_title" text,
"actual_title" text,
"writer" text,
"artist" text,
"issu... |
SELECT "artist" FROM "1990s" WHERE "date"='june 1992'; |
## Task
Generate a SQL query to answer the following question:
`Which artist has a Spoofed title in June 1992?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1990s" (
"spoofed_title" text,
"actual_title" text,
"writer" text,
"artist" text,
"... |
SELECT AVG("laps") FROM "125cc_classification" WHERE "manufacturer"='ktm' AND "time_retired"='+56.440' AND "grid"<11; |
## Task
Generate a SQL query to answer the following question:
`What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "125cc_classification" (
"ride... |
SELECT MAX("grid") FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "time_retired"='+1.660'; |
## Task
Generate a SQL query to answer the following question:
`What was the highest grid value for riders with manufacturer of Aprilia and time of +1.660?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "125cc_classification" (
"rider" text,
"manuf... |
SELECT "round" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "opponent"='aleksander emelianenko'; |
## Task
Generate a SQL query to answer the following question:
`What Round against Aleksander Emelianenko had a time of 5:00?`
### 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,... |
SELECT "venue" FROM "list_of_games" WHERE "home"='irfu all-stars' AND "season"=1958; |
## Task
Generate a SQL query to answer the following question:
`In 1958, what has the IRFU All-Stars Home Venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_games" (
"season" real,
"date" text,
"venue" text,
"city" text,
"visitor"... |
SELECT "date" FROM "list_of_games" WHERE "venue"='exhibition stadium'; |
## Task
Generate a SQL query to answer the following question:
`On what Date was the Venue at Exhibition Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_games" (
"season" real,
"date" text,
"venue" text,
"city" text,
"visitor... |
SELECT MAX("attendance") FROM "list_of_games" WHERE "season"<1957 AND "venue"='varsity stadium'; |
## Task
Generate a SQL query to answer the following question:
`Before 1957, what was the largest in Attendance at Varsity Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_games" (
"season" real,
"date" text,
"venue" text,
"city... |
SELECT "time" FROM "round_three" WHERE "score"='65-19'; |
## Task
Generate a SQL query to answer the following question:
`What is the Time with a Score that is 65-19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"g... |
SELECT "time" FROM "round_three" WHERE "away"='broadview hawks'; |
## Task
Generate a SQL query to answer the following question:
`What is the Time with an Away that is broadview hawks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" ... |
SELECT SUM("position") FROM "campeonato_paulista" WHERE "against"=32 AND "difference"='18' AND "drawn">4; |
## Task
Generate a SQL query to answer the following question:
`Which Position has an Against of 32, and a Difference of 18, and a Drawn larger than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" t... |
SELECT MAX("position") FROM "campeonato_paulista" WHERE "against"<49 AND "drawn"=4; |
## Task
Generate a SQL query to answer the following question:
`Which Position has an Against smaller than 49, and a Drawn of 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
... |
SELECT MAX("played") FROM "campeonato_paulista" WHERE "drawn"=5 AND "team"='palmeiras' AND "position"<6; |
## Task
Generate a SQL query to answer the following question:
`Which Played has a Drawn of 5, and a Team of palmeiras, and a Position smaller than 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" te... |
SELECT "team" FROM "game_log" WHERE "date"='november 17'; |
## Task
Generate a SQL query to answer the following question:
`What team played on November 17?`
### 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_rebo... |
SELECT "comp" FROM "post_season" WHERE "r_yds"='2'; |
## Task
Generate a SQL query to answer the following question:
`What is the comp when the ryds is 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "post_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" tex... |
SELECT "r_att" FROM "post_season" WHERE "comp"='48'; |
## Task
Generate a SQL query to answer the following question:
`What is the RAtt when the comp is 48?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "post_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" te... |
SELECT "r_att" FROM "post_season" WHERE "long"='73'; |
## Task
Generate a SQL query to answer the following question:
`What is the RAtt when the long is 73?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "post_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" te... |
SELECT "r_yds" FROM "post_season" WHERE "r_att"='2' AND "comp"='41'; |
## Task
Generate a SQL query to answer the following question:
`What is the RYds when the RAtt was 2, and the comp is 41?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "post_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate... |
SELECT "long" FROM "post_season" WHERE "r_yds"='18'; |
## Task
Generate a SQL query to answer the following question:
`What is the Long when the ryds is 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "post_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" te... |
SELECT "r_avg" FROM "post_season" WHERE "r_att"='3'; |
## Task
Generate a SQL query to answer the following question:
`What is the RAvg when the ratt is 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "post_season" (
"year" text,
"team" text,
"comp" text,
"long" text,
"rate" text,
"r_att" tex... |
SELECT "runner_s_up" FROM "senior_pga_tour_wins_9" WHERE "tournament"='merrill lynch/golf digest commemorative pro-am'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Runner-up for the merrill lynch/golf digest commemorative pro-am tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senior_pga_tour_wins_9" (
"date" text,
"tournam... |
SELECT "margin_of_victory" FROM "senior_pga_tour_wins_9" WHERE "winning_score"='–14 (70-68-67=205)'; |
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory when the winning score was –14 (70-68-67=205)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senior_pga_tour_wins_9" (
"date" text,
"tournament" text,
... |
SELECT "margin_of_victory" FROM "senior_pga_tour_wins_9" WHERE "winning_score"='–10 (69-68-74-67=278)'; |
## Task
Generate a SQL query to answer the following question:
`Who were the runner(s)-up when the winning score was –10 (69-68-74-67=278)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senior_pga_tour_wins_9" (
"date" text,
"tournament" text,
... |
SELECT "runner_s_up" FROM "senior_pga_tour_wins_9" WHERE "margin_of_victory"='2 strokes' AND "tournament"='mazda senior tournament players championship'; |
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up for the mazda senior tournament players championship tournament when the margin of victory was 2 strokes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senior_pga_t... |
SELECT "last_title" FROM "teams" WHERE "home_ground_a"='sydney cricket ground'; |
## Task
Generate a SQL query to answer the following question:
`When was the last title of the team with a home ground of Sydney cricket ground?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"team_name_sponsored_name" text,
"home_ground_... |
SELECT COUNT("attendance") FROM "schedule" WHERE "week"=15; |
## Task
Generate a SQL query to answer the following question:
`How many people were in attendance for the game week 15?`
### 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,
"at... |
SELECT MAX("attendance") FROM "schedule" WHERE "opponent"='buffalo bills' AND "week">14; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of people in attendance in the game against the Buffalo Bills in a week later than 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,... |
SELECT AVG("week") FROM "schedule" WHERE "attendance">'63,866' AND "date"='september 7, 1981'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Week when there were more than 63,866 people in attendance on September 7, 1981?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" tex... |
SELECT AVG("attendance") FROM "schedule" WHERE "date"='november 1, 1981'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Attendance for the game on November 1, 1981?`
### 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" tex... |
SELECT "position" FROM "supplemental_first_round_selections" WHERE "team"='chicago cubs'; |
## Task
Generate a SQL query to answer the following question:
`What position is played by the player from the Chicago Cubs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "supplemental_first_round_selections" (
"pick" real,
"player" text,
"team"... |
SELECT "player" FROM "supplemental_first_round_selections" WHERE "position"='outfielder' AND "pick"<42; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the Outfielder that was picked prior to Pick 42?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "supplemental_first_round_selections" (
"pick" real,
"player" text,
... |
SELECT "week_of" FROM "october" WHERE "semi_finalists"='anke huber chanda rubin' AND "runner_up"='meredith mcgrath larisa savchenko'; |
## Task
Generate a SQL query to answer the following question:
`What is the Week when anke huber chanda rubin shows for Semi finalists, and the Runner-up is meredith mcgrath larisa savchenko?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
... |
SELECT "semi_finalists" FROM "october" WHERE "runner_up"='katrina adams zina garrison-jackson'; |
## Task
Generate a SQL query to answer the following question:
`What is the Semi finalists when the Runner-up was katrina adams zina garrison-jackson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
"week_of" text,
"tier" text,
"winner... |
SELECT "winner" FROM "october" WHERE "semi_finalists"='anke huber chanda rubin'; |
## Task
Generate a SQL query to answer the following question:
`What is the Winner when anke huber chanda rubin was semi finalist?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
"week_of" text,
"tier" text,
"winner" text,
"runner_up... |
SELECT "tier" FROM "october" WHERE "runner_up"='chanda rubin caroline vis'; |
## Task
Generate a SQL query to answer the following question:
`What is the Tier when the runner-up is chanda rubin caroline vis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
"week_of" text,
"tier" text,
"winner" text,
"runner_up"... |
SELECT "week_of" FROM "october" WHERE "winner"='mary joe fernández 6–4, 7–5'; |
## Task
Generate a SQL query to answer the following question:
`What is the Week when the winner was mary joe fernández 6–4, 7–5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
"week_of" text,
"tier" text,
"winner" text,
"runner_up"... |
SELECT "runner_up" FROM "october" WHERE "tier"='tier ii' AND "winner"='gigi fernández natalia zvereva 5–7, 6–1, 6–4'; |
## Task
Generate a SQL query to answer the following question:
`What is the Runner-up with the tier was tier ii, and a Winner of gigi fernández natalia zvereva 5–7, 6–1, 6–4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
"week_of" text,
... |
SELECT "week_num" FROM "performances" WHERE "result"='safe' AND "theme"='dolly parton'; |
## Task
Generate a SQL query to answer the following question:
`Which week had safe as the result and Dolly Parton as the theme?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
... |
SELECT "week_num" FROM "performances" WHERE "original_artist"='the beatles' AND "order_num"<10; |
## Task
Generate a SQL query to answer the following question:
`On which week was the beatles the original artist and the order # smaller than 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"son... |
SELECT "week_num" FROM "performances" WHERE "result"='safe' AND "song_choice"='\" across the universe \"'; |
## Task
Generate a SQL query to answer the following question:
`On which week was the result safe and the song choice " across the universe "?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_ch... |
SELECT "original_artist" FROM "performances" WHERE "order_num"=5; |
## Task
Generate a SQL query to answer the following question:
`Which original artist had 5 as their order #?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" t... |
SELECT "nominee" FROM "1997_broadway_revival" WHERE "category"='outstanding director of a musical'; |
## Task
Generate a SQL query to answer the following question:
`Which nominee was nominated in the Outstanding Director of a Musical category?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1997_broadway_revival" (
"year" real,
"award" text,
"ca... |
SELECT "result" FROM "1997_broadway_revival" WHERE "nominee"='brent spiner'; |
## Task
Generate a SQL query to answer the following question:
`What is the result for Brent Spiner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1997_broadway_revival" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result"... |
SELECT MIN("games") FROM "rebounds" WHERE "name"='shaun stonerook'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of games for Shaun Stonerook?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
... |
SELECT MAX("total") FROM "medal_leaders" WHERE "bronze"<1 AND "silver"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the highest total number of medals of the nation with less than 1 bronzes and less than 0 silver medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_leaders" (
"nation"... |
SELECT SUM("week") FROM "schedule" WHERE "attendance"='49,980'; |
## Task
Generate a SQL query to answer the following question:
`Total weeks of 49,980 attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### S... |
SELECT AVG("attendance") FROM "schedule" WHERE "date"='december 22, 1980'; |
## Task
Generate a SQL query to answer the following question:
`Mean attendance for December 22, 1980?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
... |
SELECT "attendance" FROM "schedule" WHERE "week"=4; |
## Task
Generate a SQL query to answer the following question:
`Overall attendance for week 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
... |
SELECT "2007" FROM "singles_performance_timeline" WHERE "1999"='3r'; |
## Task
Generate a SQL query to answer the following question:
`What was in 2007 that has a 3r of 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1996" text,
"1997" text,
"1998" text,
... |
SELECT "2007" FROM "singles_performance_timeline" WHERE "2004"='2r' AND "2010"='a'; |
## Task
Generate a SQL query to answer the following question:
`What was in 2007 that is from 2004 0f 2r and 2010 of A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1996" text,
"1997" text,
... |
SELECT "2001" FROM "singles_performance_timeline" WHERE "2006"='2r' AND "2010"='a'; |
## Task
Generate a SQL query to answer the following question:
`What is in 2001, that has the year 2006, 2r, and in 2010 an A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1996" text,
"1997" ... |
SELECT "award" FROM "awards_and_nominations" WHERE "year">1947 AND "category"='best actor in a leading role'; |
## Task
Generate a SQL query to answer the following question:
`Who was awarded after 1947 in the category of, the best actor in a leading role?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
... |
SELECT "opponent" FROM "kickboxing_record" WHERE "method"='tko' AND "location"='elgin, illinois, usa' AND "date"='2001-02-11'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Method of tko, and a Location of elgin, illinois, usa on 2001-02-11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kickboxing_record" (
"date" text,
"result" tex... |
SELECT AVG("round") FROM "kickboxing_record" WHERE "location"='auckland, new zealand' AND "method"='tko' AND "date"='1994-11-24'; |
## Task
Generate a SQL query to answer the following question:
`Which Round has a Location of auckland, new zealand, and a Method of tko on 1994-11-24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,... |
SELECT MAX("round") FROM "kickboxing_record" WHERE "result"='loss'; |
## Task
Generate a SQL query to answer the following question:
`Which highest Round has a Result of loss?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"location" text,
"meth... |
SELECT "location" FROM "kickboxing_record" WHERE "method"='decision'; |
## Task
Generate a SQL query to answer the following question:
`Which Location has a Method of decision?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kickboxing_record" (
"date" text,
"result" text,
"opponent" text,
"location" text,
"metho... |
SELECT "tournament" FROM "grand_slam_singles_performance_timeline" WHERE "2004"='1r' AND "2007"='1r'; |
## Task
Generate a SQL query to answer the following question:
`What tournament has 1r as a 2004, and 1r as a 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam_singles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" ... |
SELECT "2012" FROM "grand_slam_singles_performance_timeline" WHERE "2010"='q2' AND "tournament"='wimbledon'; |
## Task
Generate a SQL query to answer the following question:
`What 2012 has q2 as the 2010, and wimbledon as the tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam_singles_performance_timeline" (
"tournament" text,
"2002" text... |
SELECT "2006" FROM "grand_slam_singles_performance_timeline" WHERE "2010"='grand slam tournaments'; |
## Task
Generate a SQL query to answer the following question:
`What 2006 has grand slam tournaments of 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam_singles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" text,
... |
SELECT "2006" FROM "grand_slam_singles_performance_timeline" WHERE "2005"='grand slam tournaments'; |
## Task
Generate a SQL query to answer the following question:
`What 2006 has grand slam tournaments of 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam_singles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" text,
... |
SELECT "2006" FROM "grand_slam_singles_performance_timeline" WHERE "2007"='q2'; |
## Task
Generate a SQL query to answer the following question:
`What 2006 has q2 as the 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam_singles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" text,
"2005" text,
... |
SELECT "losses" FROM "seasons" WHERE "awards"='mike miller (smoy)'; |
## Task
Generate a SQL query to answer the following question:
`What are the losses where the award is Mike Miller (Smoy)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "seasons" (
"season" text,
"conference" text,
"division" text,
"finish" te... |
SELECT "winpct" FROM "seasons" WHERE "wins"='46'; |
## Task
Generate a SQL query to answer the following question:
`Where the wins are 46, what is the win%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "seasons" (
"season" text,
"conference" text,
"division" text,
"finish" text,
"wins" text,... |
SELECT "conference" FROM "seasons" WHERE "awards"='vancouver grizzlies'; |
## Task
Generate a SQL query to answer the following question:
`Where the Vancouver Grizzlies is the awards, what is the conference?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "seasons" (
"season" text,
"conference" text,
"division" text,
"... |
SELECT MAX("1987") FROM "elections_to_the_legislative_assembly_of" WHERE "1995"<1995 AND "1999"<9; |
## Task
Generate a SQL query to answer the following question:
`What is the highest 1987 value with a 1995 value less than 1995 and a 1999 less than 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "elections_to_the_legislative_assembly_of" (
"party... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.