output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MIN("passengers") FROM "busiest_domestic_routes_from_lex_april_2" WHERE "airport"='dallas/fort worth international (dfw)'; |
## Task
Generate a SQL query to answer the following question:
`What is the least passengers from the Dallas/Fort Worth International (DFW) airport?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "busiest_domestic_routes_from_lex_april_2" (
"rank" re... |
SELECT "city" FROM "busiest_domestic_routes_from_lex_april_2" WHERE "rank">6 AND "airport"='st. petersburg/clearwater (pie)'; |
## Task
Generate a SQL query to answer the following question:
`What city is ranked greater than 6, and the airport is St. Petersburg/Clearwater (PIE)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "busiest_domestic_routes_from_lex_april_2" (
"rank" ... |
SELECT COUNT("rank") FROM "busiest_domestic_routes_from_lex_april_2" WHERE "passengers"='79,290'; |
## Task
Generate a SQL query to answer the following question:
`What is the total rank of the airport that has 79,290 passengers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "busiest_domestic_routes_from_lex_april_2" (
"rank" real,
"city" text,
... |
SELECT "winner" FROM "men_s_nordic_combined" WHERE "country"='norway' AND "fis_nordic_world_ski_championships"='1924'; |
## Task
Generate a SQL query to answer the following question:
`Which Winner has a Country of norway, and a FIS Nordic World Ski Championships of 1924?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_nordic_combined" (
"winner" text,
"country... |
SELECT "country" FROM "men_s_nordic_combined" WHERE "fis_nordic_world_ski_championships"='1948, 1950'; |
## Task
Generate a SQL query to answer the following question:
`Which Country has a FIS Nordic World Ski Championships of 1948, 1950?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_nordic_combined" (
"winner" text,
"country" text,
"winter_... |
SELECT "holmenkollen" FROM "men_s_nordic_combined" WHERE "country"='norway' AND "winner"='tom sandberg'; |
## Task
Generate a SQL query to answer the following question:
`Which Holmenkollen has a Country of norway, and a Winner of tom sandberg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_nordic_combined" (
"winner" text,
"country" text,
"win... |
SELECT "fis_nordic_world_ski_championships" FROM "men_s_nordic_combined" WHERE "winter_olympics"='1960'; |
## Task
Generate a SQL query to answer the following question:
`Which FIS Nordic World Ski Championships has Winter Olympics of 1960?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_nordic_combined" (
"winner" text,
"country" text,
"winter_... |
SELECT "country" FROM "men_s_nordic_combined" WHERE "winter_olympics"='1948'; |
## Task
Generate a SQL query to answer the following question:
`Which Country has a Winter Olympics of 1948?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_nordic_combined" (
"winner" text,
"country" text,
"winter_olympics" text,
"fis_no... |
SELECT "winner" FROM "men_s_nordic_combined" WHERE "winter_olympics"='1968'; |
## Task
Generate a SQL query to answer the following question:
`Which Winner has a Winter Olympics of 1968?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_nordic_combined" (
"winner" text,
"country" text,
"winter_olympics" text,
"fis_nor... |
SELECT "result" FROM "schedule" WHERE "attendance"='43,279'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game when the attendance was 43,279?`
### 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... |
SELECT AVG("attendance") FROM "uefa_cup_winners_cup" WHERE "date"='1 october 1998'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Attendance, when Date is 1 October 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "uefa_cup_winners_cup" (
"date" text,
"round" text,
"opponent" text,
"ve... |
SELECT "opponent" FROM "uefa_cup_winners_cup" WHERE "date"='17 september 1998'; |
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when Date is 17 September 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "uefa_cup_winners_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
... |
SELECT "opponent" FROM "uefa_cup_winners_cup" WHERE "date"='8 april 1999'; |
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when Date is 8 April 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "uefa_cup_winners_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"re... |
SELECT "high_points" FROM "regular_season" WHERE "opponent"='los angeles'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE HIGHEST POINTS FOR LOS ANGELES?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_point... |
SELECT "score_f_a" FROM "pre_season_friendly_match_details" WHERE "result"='d'; |
## Task
Generate a SQL query to answer the following question:
`What was the Score F-A when the result was D?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_friendly_match_details" (
"date" text,
"opponents" text,
"venue" text,
"res... |
SELECT "date" FROM "pre_season_friendly_match_details" WHERE "venue"='a' AND "opponents"='leicester city'; |
## Task
Generate a SQL query to answer the following question:
`On which date did they play Leicester City in Venue A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_friendly_match_details" (
"date" text,
"opponents" text,
"venue" tex... |
SELECT "result" FROM "pre_season_friendly_match_details" WHERE "venue"='h'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game played in Venue H?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_friendly_match_details" (
"date" text,
"opponents" text,
"venue" text,
... |
SELECT "result" FROM "pre_season_friendly_match_details" WHERE "date"='17 july 2008'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game played on 17 July 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_friendly_match_details" (
"date" text,
"opponents" text,
"venue" te... |
SELECT "passenger" FROM "season_by_season" WHERE "wins"='16'; |
## Task
Generate a SQL query to answer the following question:
`What Passenger has 16 Wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season" (
"passenger" text,
"points" real,
"races" real,
"wins" text,
"second" text,
"thir... |
SELECT "time_of_broadcast" FROM "broadcasting" WHERE "picture_format"='4:3' AND "hours"='20:30' AND "days_of_the_week"='monday, wednesday, friday'; |
## Task
Generate a SQL query to answer the following question:
`Name the Time of broadcast has a Picture format of 4:3, and Hours of 20:30, and Days of the week of monday, wednesday, friday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "broadcasting"... |
SELECT "days_of_the_week" FROM "broadcasting" WHERE "time_of_broadcast"='january–february, june 2002'; |
## Task
Generate a SQL query to answer the following question:
`Which Days of the week has a Time of broadcast in january–february, june 2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "broadcasting" (
"small_season_number" real,
"time_of_broa... |
SELECT "outcome" FROM "grand_slam" WHERE "championship"='us championships' AND "score_in_the_final"='5–7, 6–1, 6–3, 6–3'; |
## Task
Generate a SQL query to answer the following question:
`Which Outcome has a Championship of us championships, and a Score in the final of 5–7, 6–1, 6–3, 6–3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam" (
"outcome" text,
"yea... |
SELECT "outcome" FROM "grand_slam" WHERE "year">1939 AND "opponent_in_the_final"='frank kovacs'; |
## Task
Generate a SQL query to answer the following question:
`Which Outcome has a Year larger than 1939, and an Opponent in the final of frank kovacs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam" (
"outcome" text,
"year" real,
"c... |
SELECT "surface" FROM "grand_slam" WHERE "opponent_in_the_final"='don mcneill' AND "year"=1940; |
## Task
Generate a SQL query to answer the following question:
`Which Surface has an Opponent in the final of don mcneill, and a Year of 1940?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam" (
"outcome" text,
"year" real,
"championshi... |
SELECT SUM("year") FROM "grand_slam" WHERE "opponent_in_the_final"='welby van horn'; |
## Task
Generate a SQL query to answer the following question:
`How many years have an Opponent in the final of welby van horn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam" (
"outcome" text,
"year" real,
"championship" text,
"sur... |
SELECT "score" FROM "final_leaderboard" WHERE "player"='dick metz'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of player dick metz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" re... |
SELECT "season" FROM "bezirksliga" WHERE "west"='ev bad wörishofen'; |
## Task
Generate a SQL query to answer the following question:
`Which season had EV Bad Wörishofen in the West?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bezirksliga" (
"season" text,
"north" text,
"south" text,
"east" text,
"west" text... |
SELECT "south" FROM "bezirksliga" WHERE "season"='2004-05'; |
## Task
Generate a SQL query to answer the following question:
`Who was in the South in the 2004-05 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bezirksliga" (
"season" text,
"north" text,
"south" text,
"east" text,
"west" text
);
... |
SELECT "south" FROM "bezirksliga" WHERE "west"='ev bad wörishofen'; |
## Task
Generate a SQL query to answer the following question:
`Who was in the South when EV Bad Wörishofen was in the West?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bezirksliga" (
"season" text,
"north" text,
"south" text,
"east" text,
... |
SELECT "south" FROM "bezirksliga" WHERE "west"='tsv kottern' AND "east"='ehf passau'; |
## Task
Generate a SQL query to answer the following question:
`Who was in the South when TSV Kottern was in the West and EHF Passau was in the East?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bezirksliga" (
"season" text,
"north" text,
"sou... |
SELECT "east" FROM "bezirksliga" WHERE "south"='tus geretsried ii'; |
## Task
Generate a SQL query to answer the following question:
`Who was in the East when TUS Geretsried II was in the South?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bezirksliga" (
"season" text,
"north" text,
"south" text,
"east" text,
... |
SELECT "west" FROM "bezirksliga" WHERE "east"='esv gebensbach'; |
## Task
Generate a SQL query to answer the following question:
`Who was in the West when ESV Gebensbach was in the East?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bezirksliga" (
"season" text,
"north" text,
"south" text,
"east" text,
"w... |
SELECT AVG("gold") FROM "medal_table" WHERE "nation"='hungary' AND "bronze">1; |
## Task
Generate a SQL query to answer the following question:
`What is the average Gold, when Nation is Hungary, and when Bronze is greater than 1?`
### 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"... |
SELECT AVG("total") FROM "medal_table" WHERE "nation"='soviet union' AND "gold">9; |
## Task
Generate a SQL query to answer the following question:
`What is the average Total, when Nation is Soviet Union, and when Gold is greater than 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"g... |
SELECT COUNT("bronze") FROM "medal_table" WHERE "silver">0 AND "gold">3 AND "rank"='1'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Bronze, when Silver is greater than 0, when Gold is greater than 3, and when Rank is 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" ... |
SELECT MAX("bronze") FROM "medal_table" WHERE "total"<3 AND "silver"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Bronze, when Total is less than 3, and when Silver is less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gol... |
SELECT AVG("total") FROM "medal_table" WHERE "silver">4 AND "gold">16; |
## Task
Generate a SQL query to answer the following question:
`What is the average Total, when Silver is greater than 4, and when Gold is greater than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
... |
SELECT SUM("silver") FROM "medal_table" WHERE "total"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Silver, when Total is less than 1?`
### 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,
"bron... |
SELECT "day_4" FROM "first_semester" WHERE "day_2"='paaq'; |
## Task
Generate a SQL query to answer the following question:
`What is day 4 when day 2 is PAAQ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_semester" (
"day_1" text,
"day_2" text,
"day_3" text,
"day_4" text,
"day_5" text,
"wedne... |
SELECT "other" FROM "religion" WHERE "christianity"='10.24%'; |
## Task
Generate a SQL query to answer the following question:
`What is the other value associated with a Christianity value of 10.24%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "religion" (
"ethnicity" text,
"islam" text,
"christianity" tex... |
SELECT "judaism" FROM "religion" WHERE "other"='0.13%' AND "buddhism"='0.01%'; |
## Task
Generate a SQL query to answer the following question:
`What is the Judaism percentage associated with Buddhism at 0.01% and Other at 0.13%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "religion" (
"ethnicity" text,
"islam" text,
"chri... |
SELECT "atheism" FROM "religion" WHERE "other"='0.08%'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage of Atheism associated with an other percentage of 0.08%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "religion" (
"ethnicity" text,
"islam" text,
"christian... |
SELECT "buddhism" FROM "religion" WHERE "christianity"='52.32%'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage of Buddhists associated with a Christianity percentage of 52.32%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "religion" (
"ethnicity" text,
"islam" text,
"... |
SELECT "judaism" FROM "religion" WHERE "christianity"='2.51%'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage of Judaism associated with Christianity at 2.51%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "religion" (
"ethnicity" text,
"islam" text,
"christianity" te... |
SELECT "other" FROM "religion" WHERE "atheism"='1.86%'; |
## Task
Generate a SQL query to answer the following question:
`What is the value of other religions associated with atheism at 1.86%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "religion" (
"ethnicity" text,
"islam" text,
"christianity" text... |
SELECT "no_2" FROM "female_names" WHERE "no_9"='mia'; |
## Task
Generate a SQL query to answer the following question:
`What is No. 2, when No. 9 is Mia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5"... |
SELECT "no_7" FROM "female_names" WHERE "no_4"='madison' AND "no_10"='amelia'; |
## Task
Generate a SQL query to answer the following question:
`What is No. 7, when No. 4 is Madison, and when No. 10 is Amelia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3... |
SELECT "no_1" FROM "female_names" WHERE "no_2"='emma' AND "no_7"='olivia'; |
## Task
Generate a SQL query to answer the following question:
`What is No.1, when No. 2 is Emma, and when No. 7 is Olivia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" tex... |
SELECT "no_5" FROM "female_names" WHERE "no_2"='olivia' AND "no_4"='ava' AND "no_6"='abigail'; |
## Task
Generate a SQL query to answer the following question:
`What is No. 5, when No. 2 is Olivia, when No. 4 is Ava, and when No. 6 is Abigail?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"n... |
SELECT "no_3" FROM "female_names" WHERE "no_7"='abigail' AND "no_2"='olivia'; |
## Task
Generate a SQL query to answer the following question:
`What is No. 3, when No. 7 is Abigail, and when No. 2 is Olivia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3"... |
SELECT "no_3" FROM "female_names" WHERE "no_7"='abigail' AND "no_4"='ava'; |
## Task
Generate a SQL query to answer the following question:
`What is No. 3, when No. 7 is Abigail, and when No. 4 is Ava?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" te... |
SELECT COUNT("laps") FROM "moto_gp_classification" WHERE "grid">14 AND "rider"='sylvain guintoli'; |
## Task
Generate a SQL query to answer the following question:
`How many Laps have Grid larger than 14, and a Rider of sylvain guintoli?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
... |
SELECT SUM("grid") FROM "moto_gp_classification" WHERE "laps"=24 AND "rider"='marco melandri'; |
## Task
Generate a SQL query to answer the following question:
`Which Grid has Laps of 24, and a Rider of marco melandri?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
... |
SELECT MIN("grid") FROM "moto_gp_classification" WHERE "laps"<24 AND "time"='retirement'; |
## Task
Generate a SQL query to answer the following question:
`Which Grid has Laps smaller than 24, and a Time of retirement?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" rea... |
SELECT MAX("grid") FROM "moto_gp_classification" WHERE "rider"='randy de puniet' AND "laps"<24; |
## Task
Generate a SQL query to answer the following question:
`Which Grid has a Rider of randy de puniet, and Laps smaller than 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"lap... |
SELECT "surface" FROM "singles" WHERE "week"='march 17'; |
## Task
Generate a SQL query to answer the following question:
`What was the type of surface played on for the week of March 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_... |
SELECT "tournament" FROM "singles" WHERE "week"='august 4'; |
## Task
Generate a SQL query to answer the following question:
`What was the tournament for the week of August 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text... |
SELECT "tournament" FROM "singles" WHERE "finalist"='richard krajicek'; |
## Task
Generate a SQL query to answer the following question:
`Which tournament had Richard Krajicek as a finalist?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" t... |
SELECT "date" FROM "playoffs" WHERE "home"='detroit'; |
## Task
Generate a SQL query to answer the following question:
`On what date did Detroit play at home?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"att... |
SELECT "home" FROM "playoffs" WHERE "date"='june 9'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team on June 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendanc... |
SELECT "money" FROM "final_round" WHERE "score"='68-67-69-76=280'; |
## Task
Generate a SQL query to answer the following question:
`What was the money value that went along with the score of 68-67-69-76=280?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text... |
SELECT "score" FROM "final_round" WHERE "money"='9,000' AND "player"='leonard thompson'; |
## Task
Generate a SQL query to answer the following question:
`What score did Leonard Thompson have when he won $9,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
... |
SELECT "date" FROM "game_log" WHERE "record"='15-14-4'; |
## Task
Generate a SQL query to answer the following question:
`What date had a record of 15-14-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"record" text
);
### SQL
G... |
SELECT COUNT("game") FROM "game_log" WHERE "opponent"='montreal canadiens'; |
## Task
Generate a SQL query to answer the following question:
`What is the fame number when the Montreal Canadiens were the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score... |
SELECT "score" FROM "game_log" WHERE "game"=35; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of game 35?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given ... |
SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "college"='miami (fl)'; |
## Task
Generate a SQL query to answer the following question:
`What is the average oveall pick for players from the college of Miami (FL)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" re... |
SELECT "name" FROM "washington_redskins_draft_history" WHERE "overall"<224 AND "round"<6 AND "pick"=15 AND "college"='nebraska'; |
## Task
Generate a SQL query to answer the following question:
`Which player was drafted overall from the college of Nebraska in a round under 6, pick of 15, and overall under 224?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_dra... |
SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "round"=10 AND "name"='terry daniels'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall draft pick number for terry daniels who was picked in round 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" re... |
SELECT SUM("round") FROM "washington_redskins_draft_history" WHERE "college"='tennessee' AND "overall">153 AND "pick"<14; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the rounds where the draft pick came from the college of tennessee and had an overall pick number bigger than 153 and a pick less than 14?`
### Database Schema
This query will run on a database whose schema is represented in this strin... |
SELECT "position" FROM "washington_redskins_draft_history" WHERE "overall"=133; |
## Task
Generate a SQL query to answer the following question:
`What position did the draft pick number play that was overall pick number 133?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick"... |
SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "round"=8; |
## Task
Generate a SQL query to answer the following question:
`What is the overall pick number for the player who was picked on round 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real... |
SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall">226 AND "pick"<12 AND "position"='ot'; |
## Task
Generate a SQL query to answer the following question:
`What college did the player who had the position of OT come from who was pick number less than 12 and a overall pick number bigger than 226?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE ... |
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "position_in_table"='pre-season' AND "replaced_by"='thomas thomasberg'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE APPOINTMENT DATE WITH A PRE-SEASON POSITION, AND REPLACED BY THOMAS THOMASBERG?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing... |
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='ac horsens'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE APPOINTMENT DATE FOR AC HORSENS?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
... |
SELECT "team" FROM "managerial_changes" WHERE "position_in_table"='12th' AND "replaced_by"='ove pedersen'; |
## Task
Generate a SQL query to answer the following question:
`WHAT TEAM HAS 12TH TABLE POSITION AND REPLACED BY OVE PEDERSEN?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of... |
SELECT "score" FROM "regular_season" WHERE "decision"='niittymaki' AND "visitor"='calgary'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when Calgary was visiting team and Niittymaki had the decision?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"sco... |
SELECT "score" FROM "regular_season" WHERE "decision"='biron' AND "visitor"='philadelphia' AND "date"='march 1'; |
## Task
Generate a SQL query to answer the following question:
`What is the score when Biron got the decision and Philadelphia was the visitor on March 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"date" text,
"visitor" text... |
SELECT AVG("attendance") FROM "regular_season" WHERE "home"='pittsburgh'; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance when Pittsburgh is the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
... |
SELECT AVG("attendance") FROM "schedule" WHERE "date"='october 10, 1971' AND "week">4; |
## Task
Generate a SQL query to answer the following question:
`What was the Attendance after Week 4 on October 10, 1971?`
### 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,
"a... |
SELECT COUNT("attendance") FROM "schedule" WHERE "opponent"='new orleans saints'; |
## Task
Generate a SQL query to answer the following question:
`What was the Attendance in the game against the New Orleans Saints?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" ... |
SELECT "date" FROM "schedule" WHERE "attendance">'44,000' AND "week"=7; |
## Task
Generate a SQL query to answer the following question:
`What is the Date in Week 7 with an Attendance greater than 44,000?`
### 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" t... |
SELECT "eagle_riders" FROM "characters" WHERE "japanese_voice_actor"='katsuji mori'; |
## Task
Generate a SQL query to answer the following question:
`What is the Eagle Riders character voiced by Japanese voice actor Katsuji Mori?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"gatchaman" text,
"battle_of_the_planets" ... |
SELECT "voice_actor_eagle_riders" FROM "characters" WHERE "bird_uniform"='condor'; |
## Task
Generate a SQL query to answer the following question:
`Which Voice Actor for Eagle Riders had a bird uniform of condor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"gatchaman" text,
"battle_of_the_planets" text,
"g_forc... |
SELECT "weapon" FROM "characters" WHERE "battle_of_the_planets"='jason'; |
## Task
Generate a SQL query to answer the following question:
`Which weapon was used when the Battle of the Planets was Jason?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"gatchaman" text,
"battle_of_the_planets" text,
"g_force... |
SELECT "voice_actor_adv_tv_sentai_ova_dub" FROM "characters" WHERE "gatchaman"='jun'; |
## Task
Generate a SQL query to answer the following question:
`Who was the voice actor (ADV TV/Sentai OVA dub) for the Gatchaman, jun?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"gatchaman" text,
"battle_of_the_planets" text,
... |
SELECT "japanese_voice_actor" FROM "characters" WHERE "mecha"='airplane'; |
## Task
Generate a SQL query to answer the following question:
`Which Japanese voice actor had the Mecha of airplane?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"gatchaman" text,
"battle_of_the_planets" text,
"g_force" text,
... |
SELECT "1st_leg" FROM "eighth_finals" WHERE "team_1"='drita'; |
## Task
Generate a SQL query to answer the following question:
`Which 1st leg has a Team 1 of drita?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eighth_finals" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
... |
SELECT "team_2" FROM "eighth_finals" WHERE "team_1"='vardar'; |
## Task
Generate a SQL query to answer the following question:
`Which Team 2 has a Team 1 of vardar?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eighth_finals" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
... |
SELECT "team_1" FROM "eighth_finals" WHERE "2nd_leg"='1–2'; |
## Task
Generate a SQL query to answer the following question:
`Which Team 1 has a 2nd leg of 1–2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eighth_finals" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
##... |
SELECT "years" FROM "f" WHERE "jersey_number_s"<3; |
## Task
Generate a SQL query to answer the following question:
`What years was the jersey number(s) smaller than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"position" text,... |
SELECT "position" FROM "f" WHERE "jersey_number_s"=40; |
## Task
Generate a SQL query to answer the following question:
`Which position was played by the player wearing jersey number 40?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"p... |
SELECT "jersey_number_s" FROM "f" WHERE "position"='sg' AND "from"='north carolina'; |
## Task
Generate a SQL query to answer the following question:
`What was the jersey number(s) when the position was SG from North Carolina?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f" (
"player" text,
"nationality" text,
"jersey_number_s" ... |
SELECT "nationality" FROM "f" WHERE "from"='cincinnati'; |
## Task
Generate a SQL query to answer the following question:
`Which nationality does Cincinnati belong to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"position" text,
"yea... |
SELECT "from" FROM "f" WHERE "jersey_number_s"=3; |
## Task
Generate a SQL query to answer the following question:
`Where is jersey number 3 from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"position" text,
"years" text,
"f... |
SELECT MIN("pick") FROM "first_round_selections" WHERE "position"='rhp' AND "hometown_school"='university of hawaii'; |
## Task
Generate a SQL query to answer the following question:
`What pick number was the rhp with a hometown/school of university of hawaii?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"te... |
SELECT "player" FROM "first_round_selections" WHERE "pick"=10; |
## Task
Generate a SQL query to answer the following question:
`What player was drafted number 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"hometown_s... |
SELECT "pick" FROM "first_round_selections" WHERE "hometown_school"='concordia college'; |
## Task
Generate a SQL query to answer the following question:
`What number pick was the player with the hometown school of concordia college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"... |
SELECT "date" FROM "season_schedule" WHERE "game"=66; |
## Task
Generate a SQL query to answer the following question:
`What is the date of game 66?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak" tex... |
SELECT "game" FROM "season_schedule" WHERE "date"='february 21'; |
## Task
Generate a SQL query to answer the following question:
`What is the game on February 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak"... |
SELECT AVG("draws") FROM "group_i" WHERE "goal_difference">2 AND "played"<30; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of draws that has a played entry of less than 30 and a goal difference greater than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_i" (
"position" re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.