output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "title" FROM "discography" WHERE "track_number"='07' AND "record_label"='emi' AND "release_date"='21 april 2006'; |
## Task
Generate a SQL query to answer the following question:
`Name The Title which has a Track number of 07, and a Record label of emi on 21 april 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "discography" (
"release_date" text,
"album_ti... |
SELECT "tie_no" FROM "fifth_round_proper" WHERE "away_team"='wrexham'; |
## Task
Generate a SQL query to answer the following question:
`WHAT'S THE TIE NUMBER WITH AN AWAY TEAM OF WREXHAM?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team"... |
SELECT "away_team" FROM "fifth_round_proper" WHERE "home_team"='leicester city'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE AWAY TEAM WITH HOME OF LEICESTER CITY?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" ... |
SELECT "away_team" FROM "fifth_round_proper" WHERE "home_team"='leeds united'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE AWAY TEAM WHEN HOME IS LEEDS UNITED?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" te... |
SELECT "away_team" FROM "fifth_round_proper" WHERE "tie_no"='1'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE AWAY TEAM WITH A TIE NUMBER 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
... |
SELECT SUM("total") FROM "fourth_division" WHERE "club"='darlington' AND "league_goals"='13' AND "league_cup_goals"='1'; |
## Task
Generate a SQL query to answer the following question:
`Which Total has a Club of darlington, and a League goals of 13, and a League Cup goals of 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_division" (
"club" text,
"league_goa... |
SELECT "club" FROM "fourth_division" WHERE "league_cup_goals"='0' AND "fa_cup_goals"='1' AND "total">11 AND "league_goals"='13'; |
## Task
Generate a SQL query to answer the following question:
`Which Club has a League Cup goals of 0, and a FA Cup goals of 1, and a Total larger than 11, and a League goals of 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_division" (
... |
SELECT "league_cup_goals" FROM "fourth_division" WHERE "total">14 AND "league_goals"='14' AND "fa_cup_goals"='0'; |
## Task
Generate a SQL query to answer the following question:
`Which League Cup goals have a Total larger than 14, and a League goals of 14, and a FA Cup goals of 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_division" (
"club" text,
"... |
SELECT AVG("total") FROM "fourth_division" WHERE "fa_cup_goals"='1' AND "league_goals"='4 + 7'; |
## Task
Generate a SQL query to answer the following question:
`Which Total has an FA Cup goals of 1, and a League goals of 4 + 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_division" (
"club" text,
"league_goals" text,
"fa_cup_goals"... |
SELECT "event" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "round"='n/a' AND "record"='8-1'; |
## Task
Generate a SQL query to answer the following question:
`What event had a win, record of 8-1 and n/a round?`
### 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"... |
SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='submission (rear naked choke)' AND "opponent"='karl knothe'; |
## Task
Generate a SQL query to answer the following question:
`What event was the opponent Karl Knothe and had a submission (rear naked choke)?`
### 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,... |
SELECT "record" FROM "mixed_martial_arts_record" WHERE "method"='decision' AND "res"='win'; |
## Task
Generate a SQL query to answer the following question:
`What's the record for the match when the res was a win and the method was a decision?`
### 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" ... |
SELECT "round" FROM "mixed_martial_arts_record" WHERE "record"='4-1'; |
## Task
Generate a SQL query to answer the following question:
`What round had a record of 4-1?`
### 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,
"event" te... |
SELECT "record" FROM "mixed_martial_arts_record" WHERE "round"='n/a' AND "event"='ucs 2 - battle at the barn'; |
## Task
Generate a SQL query to answer the following question:
`What's the record of the UCS 2 - Battle at the Barn when the round was n/a?`
### 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,
"o... |
SELECT "round" FROM "mixed_martial_arts_record" WHERE "record"='8-2'; |
## Task
Generate a SQL query to answer the following question:
`What round had a record of 8-2?`
### 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,
"event" te... |
SELECT "opponent" FROM "game_log" WHERE "record"='17-19-4'; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent when the record is 17-19-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... |
SELECT "score" FROM "game_log" WHERE "game"=37; |
## Task
Generate a SQL query to answer the following question:
`What is the score of game 37?`
### 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 "record" FROM "game_log" WHERE "date"='1/17/1980'; |
## Task
Generate a SQL query to answer the following question:
`What is the record on 1/17/1980?`
### 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
Giv... |
SELECT "date" FROM "game_log" WHERE "game"=3; |
## Task
Generate a SQL query to answer the following question:
`What date was game number 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds... |
SELECT "record" FROM "game_log" WHERE "high_rebounds"='george hill (11)'; |
## Task
Generate a SQL query to answer the following question:
`What is the record when George Hill (11) had the high rebounds?`
### 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,
"... |
SELECT MAX("game") FROM "game_log" WHERE "date"='november 19'; |
## Task
Generate a SQL query to answer the following question:
`What number game happened on November 19?`
### 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,
"... |
SELECT "high_rebounds" FROM "game_log" WHERE "game"=12; |
## Task
Generate a SQL query to answer the following question:
`Who had the high rebounds for game 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"hig... |
SELECT "manager" FROM "summaries" WHERE "home_city"='osijek'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the manager in the city of Osijek?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summaries" (
"team" text,
"manager" text,
"home_city" text,
"stadium" text,
... |
SELECT "team" FROM "summaries" WHERE "stadium"='stadion maksimir'; |
## Task
Generate a SQL query to answer the following question:
`What is the team at Stadion Maksimir?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summaries" (
"team" text,
"manager" text,
"home_city" text,
"stadium" text,
"capacity" real
... |
SELECT "home_city" FROM "summaries" WHERE "stadium"='gradski stadion u poljudu'; |
## Task
Generate a SQL query to answer the following question:
`What is the home city when the stadium was Gradski Stadion U Poljudu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summaries" (
"team" text,
"manager" text,
"home_city" text,
"s... |
SELECT "home_city" FROM "summaries" WHERE "manager"='mladen frančić'; |
## Task
Generate a SQL query to answer the following question:
`What is the home city when Mladen Frančić is the manager?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summaries" (
"team" text,
"manager" text,
"home_city" text,
"stadium" text... |
SELECT "opponent" FROM "1998" WHERE "attendance"='80,079'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the attendance was 80,079?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1998" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance... |
SELECT "opponent" FROM "1998" WHERE "attendance"='31,002'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the attendance was 31,002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1998" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance... |
SELECT "opponent" FROM "1998" WHERE "site"='legion field • birmingham, al'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when they played at the legion field • birmingham, al site?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1998" (
"date" text,
"opponent" text,
"site" text,
... |
SELECT "site" FROM "1998" WHERE "opponent"='louisville'; |
## Task
Generate a SQL query to answer the following question:
`On which site was the game against Louisville played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1998" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendanc... |
SELECT "attendance" FROM "1998" WHERE "date"='september 12'; |
## Task
Generate a SQL query to answer the following question:
`What was the total attendance on September 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1998" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text... |
SELECT SUM("broadcasts_tv_1") FROM "anime" WHERE "series"='3 4' AND "us_release_date"='27 december 2006'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Broadcasts (TV) 1, when Series is "3 4", and when US Release Date is "27 December 2006"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "anime" (
"series" text,
"tit... |
SELECT COUNT("broadcasts_tv_1") FROM "anime" WHERE "aired_in_japan_3"='5 january 2003 to 30 march 2003'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Broadcasts (TV) 1, when Aired in Japan 3 is "5 January 2003 to 30 March 2003"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "anime" (
"series" text,
"titl... |
SELECT "episodes_tv_extra_2" FROM "anime" WHERE "broadcasts_tv_1"<13 AND "directors"='shigehito takayanagi'; |
## Task
Generate a SQL query to answer the following question:
`What is Episodes (TV+extra) 2, when Broadcasts (TV) 1 is less than 13, and when Directors is "Shigehito Takayanagi"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "anime" (
"series" tex... |
SELECT MIN("pick") FROM "first_round_selections" WHERE "position"='of' AND "team"='chicago white sox'; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest pick when the position was OF with the Chicago White Sox?`
### 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,
"t... |
SELECT "affiliation" FROM "2013_2014_teams" WHERE "school"='university of maryland'; |
## Task
Generate a SQL query to answer the following question:
`What is the affiliation of the University of Maryland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_2014_teams" (
"school" text,
"location" text,
"founded" real,
"affiliati... |
SELECT MIN("founded") FROM "2013_2014_teams" WHERE "nickname"='cardinals'; |
## Task
Generate a SQL query to answer the following question:
`What school has the nickname of Cardinals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_2014_teams" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
... |
SELECT "nickname" FROM "2013_2014_teams" WHERE "location"='fairfax, va'; |
## Task
Generate a SQL query to answer the following question:
`What is the nickname of the school located in Fairfax, VA?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_2014_teams" (
"school" text,
"location" text,
"founded" real,
"affil... |
SELECT "house" FROM "vocabulary_comparison" WHERE "four"='opat'; |
## Task
Generate a SQL query to answer the following question:
`What is "house", when "four" is "opat"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vocabulary_comparison" (
"english" text,
"three" text,
"four" text,
"person" text,
"house"... |
SELECT "house" FROM "vocabulary_comparison" WHERE "what"='ano' AND "three"='tulo'; |
## Task
Generate a SQL query to answer the following question:
`What is "house", when "what" is "ano", and when "three" is "tulo"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vocabulary_comparison" (
"english" text,
"three" text,
"four" text,... |
SELECT "english" FROM "vocabulary_comparison" WHERE "house"='balay' AND "three"='tatlo' AND "four"='apat'; |
## Task
Generate a SQL query to answer the following question:
`What is the language, when "house" is "balay", when "three" is "tatlo", and when "four" is "apat"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vocabulary_comparison" (
"english" text... |
SELECT "what" FROM "vocabulary_comparison" WHERE "person"='tawo' AND "three"='tuyo' AND "coconut"='niyog'; |
## Task
Generate a SQL query to answer the following question:
`What is "what", when "person" is "tawo", when "three" is "tuyo", and when "coconut" is "niyog"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vocabulary_comparison" (
"english" text,
... |
SELECT "english" FROM "vocabulary_comparison" WHERE "what"='ango'; |
## Task
Generate a SQL query to answer the following question:
`What is the language, when "what" is "ango"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vocabulary_comparison" (
"english" text,
"three" text,
"four" text,
"person" text,
"h... |
SELECT "opponent" FROM "singles_7" WHERE "date"='august 20, 2006'; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent for the game played on august 20, 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" ... |
SELECT "surface" FROM "singles_7" WHERE "opponent"='estrella cabeza candela'; |
## Task
Generate a SQL query to answer the following question:
`On which Surface will Estrella Cabeza Candela play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
... |
SELECT "opponent" FROM "schedule" WHERE "date"='december 16, 1989'; |
## Task
Generate a SQL query to answer the following question:
`What was the opponent on December 16, 1989?`
### 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" rea... |
SELECT MAX("attendance") FROM "schedule" WHERE "date"='november 12, 1989'; |
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance on November 12, 1989?`
### 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,
"atten... |
SELECT "week" FROM "schedule" WHERE "date"='december 10, 1989'; |
## Task
Generate a SQL query to answer the following question:
`What was the week on December 10, 1989?`
### 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 COUNT("league_position") FROM "scottish_premier_league" WHERE "attendance"='14,673' AND "match_day">26; |
## Task
Generate a SQL query to answer the following question:
`What is the league position number when the attendance was 14,673 with a match day larger than 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scottish_premier_league" (
"match_day" ... |
SELECT "men_s_singles" FROM "previous_winners" WHERE "mixed_doubles"='kevin cao melody liang'; |
## Task
Generate a SQL query to answer the following question:
`Which men's singles has mixed doubles with Kevin Cao Melody Liang?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" real,
"men_s_singles" text,
"women_s_sin... |
SELECT "men_s_singles" FROM "previous_winners" WHERE "mixed_doubles"='chen hung-ling chou chia-chi'; |
## Task
Generate a SQL query to answer the following question:
`Which men's singles has mixed doubles with Chen Hung-Ling Chou Chia-Chi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" real,
"men_s_singles" text,
"women... |
SELECT AVG("attendance") FROM "game_log" WHERE "date"='february 27'; |
## Task
Generate a SQL query to answer the following question:
`What attendance is dated february 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"re... |
SELECT "date" FROM "game_log" WHERE "points"=37; |
## Task
Generate a SQL query to answer the following question:
`What date has 37 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
... |
SELECT "team" FROM "season_schedule" WHERE "game">55 AND "date"='february 24'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Team that was played against on February 24 and a game after game 55?`
### 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" ... |
SELECT "name" FROM "heats" WHERE "lane"<4 AND "mark"='52.64'; |
## Task
Generate a SQL query to answer the following question:
`what is the name when the lane is less than 4 and mark is 52.64?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"country" text,
"... |
SELECT COUNT("lane") FROM "heats" WHERE "heat"=3 AND "name"='cxhristy ekpukhon ihunaegbo'; |
## Task
Generate a SQL query to answer the following question:
`what is the number of times that the heat is 3 and the name is cxhristy ekpukhon ihunaegbo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" ... |
SELECT "score" FROM "group_1" WHERE "time"='18:00' AND "venue"='african union'; |
## Task
Generate a SQL query to answer the following question:
`Name the Score which has a Time of 18:00 and a Venue of african union?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_1" (
"match_no" real,
"date" text,
"time" text,
"score"... |
SELECT "venue" FROM "group_1" WHERE "score"='8 – 1'; |
## Task
Generate a SQL query to answer the following question:
`Name the Venue which has a Score of 8 – 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_1" (
"match_no" real,
"date" text,
"time" text,
"score" text,
"venue" text,
"ma... |
SELECT "2nd_leg" FROM "first_round" WHERE "1st_leg"='sgm basso molise (molise)'; |
## Task
Generate a SQL query to answer the following question:
`What is 2nd Leg, when 1st Leg is "SGM Basso Molise (Molise)"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" tex... |
SELECT "2nd_leg" FROM "first_round" WHERE "team_1"='h'; |
## Task
Generate a SQL query to answer the following question:
`What is 2nd Leg, when Team 1 is "H"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
##... |
SELECT "batsmen" FROM "records" WHERE "year"='2002'; |
## Task
Generate a SQL query to answer the following question:
`Who are the Batsmen from the year 2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "records" (
"score" text,
"batsmen" text,
"against" text,
"location" text,
"year" text
);
#... |
SELECT "score" FROM "records" WHERE "year"='1948'; |
## Task
Generate a SQL query to answer the following question:
`What score did the year 1948 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "records" (
"score" text,
"batsmen" text,
"against" text,
"location" text,
"year" text
);
### SQ... |
SELECT "batsmen" FROM "records" WHERE "year"='1982'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Batsman from the year 1982?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "records" (
"score" text,
"batsmen" text,
"against" text,
"location" text,
"year" text
);
##... |
SELECT "score" FROM "records" WHERE "year"='1929'; |
## Task
Generate a SQL query to answer the following question:
`What is the score in 1929?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "records" (
"score" text,
"batsmen" text,
"against" text,
"location" text,
"year" text
);
### SQL
Given ... |
SELECT "batsmen" FROM "records" WHERE "location"='the brit oval'; |
## Task
Generate a SQL query to answer the following question:
`Who was the batsmen at the Brit Oval location?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "records" (
"score" text,
"batsmen" text,
"against" text,
"location" text,
"year" te... |
SELECT "built" FROM "references" WHERE "county"='kent'; |
## Task
Generate a SQL query to answer the following question:
`What year was the bridge in Kent built?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
... |
SELECT "county" FROM "references" WHERE "location"='east providence'; |
## Task
Generate a SQL query to answer the following question:
`In which county is East Providence?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
### ... |
SELECT "county" FROM "references" WHERE "built"='1884'; |
## Task
Generate a SQL query to answer the following question:
`What county had a bridge biult in 1884?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
... |
SELECT "place" FROM "final_round" WHERE "score"='68-73-66-74=281'; |
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with a Score of 68-73-66-74=281?`
### 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"... |
SELECT "place" FROM "final_round" WHERE "money">'122,100' AND "score"='68-70-68-74=280'; |
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with 122,100 Money and a Score of 68-70-68-74=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,
"countr... |
SELECT "country" FROM "final_round" WHERE "score"='71-69-70-71=281'; |
## Task
Generate a SQL query to answer the following question:
`What Country's Player scored 71-69-70-71=281?`
### 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,
"to_par" t... |
SELECT "to_par" FROM "final_round" WHERE "place"='t5' AND "player"='vijay singh'; |
## Task
Generate a SQL query to answer the following question:
`What is T5 Place Vijay Singh's To par?`
### 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,
"to_par" text,
... |
SELECT "score" FROM "second_round" WHERE "player"='bob murphy'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Player is "Bob Murphy"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" te... |
SELECT "player" FROM "second_round" WHERE "to_par"='+1' AND "country"='united states' AND "score"='71-70=141'; |
## Task
Generate a SQL query to answer the following question:
`What is Player, when To Par is "+1", when Country is "United States", and when Score is "71-70=141"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"play... |
SELECT "score" FROM "second_round" WHERE "place"='t8' AND "player"='orville moody'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Place is "T8", and when Player is "Orville Moody"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
... |
SELECT "score" FROM "second_round" WHERE "player"='deane beman'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Player is "Deane Beman"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" t... |
SELECT "country" FROM "second_round" WHERE "player"='jack nicklaus'; |
## Task
Generate a SQL query to answer the following question:
`What is Country, when Player is "Jack Nicklaus"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_pa... |
SELECT "country" FROM "second_round" WHERE "place"='1'; |
## Task
Generate a SQL query to answer the following question:
`What is the Country, when Place is "1"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
)... |
SELECT "result" FROM "awards" WHERE "category"='best urban/alternative performance' AND "year">2003; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE RESULT FOR best urban/alternative performance, IN 2003 OR GREATER?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards" (
"year" real,
"category" text,
"genre" text,
... |
SELECT "title" FROM "awards" WHERE "category"='best r&b song'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE TITLE WITH CATEGORY OF best r&b song?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards" (
"year" real,
"category" text,
"genre" text,
"title" text,
"result" tex... |
SELECT "result" FROM "awards" WHERE "year"=2003 AND "category"='best urban/alternative performance'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE RESULT FOR 2003, IN best urban/alternative performance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards" (
"year" real,
"category" text,
"genre" text,
"title" t... |
SELECT SUM("year") FROM "awards" WHERE "title"='floetic'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE YEAR OF FLOETIC?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards" (
"year" real,
"category" text,
"genre" text,
"title" text,
"result" text
);
### SQL
Given th... |
SELECT "high_assists" FROM "game_log" WHERE "record"='2-4'; |
## Task
Generate a SQL query to answer the following question:
`Who had the highest assists when the nuggets record was 2-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,
"team" text,
"score" text,
"hig... |
SELECT "high_assists" FROM "game_log" WHERE "game"=3; |
## Task
Generate a SQL query to answer the following question:
`Who had the highest assists in game 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"hig... |
SELECT "home_team" FROM "round_of_16" WHERE "home_team_score"='22.15 (147)'; |
## Task
Generate a SQL query to answer the following question:
`What is Home Team, when Home Team Score is 22.15 (147)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"... |
SELECT "time" FROM "round_of_16" WHERE "ground"='waverley park' AND "away_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`What is Time, when Ground is Waverley Park, and when Away Team is Footscray?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"home_team" text,
"home_team_score" text,
... |
SELECT "away_team" FROM "round_of_16" WHERE "ground"='waverley park' AND "away_team_score"='10.14 (74)'; |
## Task
Generate a SQL query to answer the following question:
`What is Away Team, when Ground is Waverley Park, and when Away Team Score is 10.14 (74)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"home_team" text,
"home_team_sco... |
SELECT "ground" FROM "round_of_16" WHERE "away_team"='sydney'; |
## Task
Generate a SQL query to answer the following question:
`What is Ground, when Away Team is Sydney?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_scor... |
SELECT "date" FROM "round_of_16" WHERE "home_team"='richmond'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Home Team is Richmond?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_scor... |
SELECT "home_team_score" FROM "round_of_16" WHERE "time"='12:00 pm' AND "ground"='waverley park'; |
## Task
Generate a SQL query to answer the following question:
`What is Home Team Score, when Time is 12:00 PM, and when Ground is Waverley Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"home_team" text,
"home_team_score" tex... |
SELECT MAX("year") FROM "women_s_doubles_13_finals_13_titles" WHERE "championship"='us open'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest year for the US Open?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_doubles_13_finals_13_titles" (
"outcome" text,
"year" real,
"championship" text,
"... |
SELECT "result" FROM "season_schedule" WHERE "week"=16; |
## Task
Generate a SQL query to answer the following question:
`What is Result, when Week is 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"score" text,
"result" text,
"att... |
SELECT "record" FROM "season_schedule" WHERE "attendance"='30,110'; |
## Task
Generate a SQL query to answer the following question:
`What is Record, when Attendance is 30,110?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"score" text,
"result" te... |
SELECT "date" FROM "season_schedule" WHERE "opponent"='at saskatchewan roughriders'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Opponent is At Saskatchewan Roughriders?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"score" te... |
SELECT "grades" FROM "schools" WHERE "2007_api"=734; |
## Task
Generate a SQL query to answer the following question:
`Which grades have a 2007 API of 734?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schools" (
"school_name" text,
"address" text,
"students" real,
"grades" text,
"2007_api" rea... |
SELECT "school_name" FROM "schools" WHERE "students"<389 AND "grades"='10-12'; |
## Task
Generate a SQL query to answer the following question:
`Which School name has students smaller than 389, and grades of 10-12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schools" (
"school_name" text,
"address" text,
"students" real,
... |
SELECT "grades" FROM "schools" WHERE "students"<430 AND "2007_api"=510; |
## Task
Generate a SQL query to answer the following question:
`Which grades have students smaller than 430, and a 2007 API of 510?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schools" (
"school_name" text,
"address" text,
"students" real,
... |
SELECT "score" FROM "round_19" WHERE "home_team"='cairns taipans'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game where the home team was the cairns taipans?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_19" (
"date" text,
"home_team" text,
"score" text,
... |
SELECT "score" FROM "round_19" WHERE "home_team"='adelaide 36ers'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game where the adelaide 36ers were the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_19" (
"date" text,
"home_team" text,
"score" text,
... |
SELECT "score" FROM "round_19" WHERE "venue"='cairns convention centre'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game where the venue was cairns convention centre?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_19" (
"date" text,
"home_team" text,
"score" text,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.