output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "opponent" FROM "singles_5_5_runners_up" WHERE "score"='2β6, 6β4, 3β6'; |
## Task
Generate a SQL query to answer the following question:
`What is the Opponent with a Score that is 2β6, 6β4, 3β6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_5_5_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"... |
SELECT "outcome" FROM "singles_5_5_runners_up" WHERE "date"='may 5, 2012'; |
## Task
Generate a SQL query to answer the following question:
`What is the Outcome with a Date that is may 5, 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_5_5_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surf... |
SELECT "outcome" FROM "singles_5_5_runners_up" WHERE "opponent"='jelena jankoviΔ'; |
## Task
Generate a SQL query to answer the following question:
`What is the Outcome with an Opponent that is jelena jankoviΔ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_5_5_runners_up" (
"outcome" text,
"date" text,
"tournament" text... |
SELECT "tournament" FROM "singles_5_5_runners_up" WHERE "score"='2β6, 6β4, 3β6'; |
## Task
Generate a SQL query to answer the following question:
`What is the Tournament with a Score that is 2β6, 6β4, 3β6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_5_5_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
... |
SELECT COUNT("week") FROM "schedule" WHERE "date"='november 13, 1955' AND "attendance">'33,982'; |
## Task
Generate a SQL query to answer the following question:
`Which week was on November 13, 1955 when the attendance was over 33,982?`
### 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,
"res... |
SELECT "japanese_name" FROM "provinces_under_japanese_colonial_rule" WHERE "korean_name"='chungcheong-bukdo'; |
## Task
Generate a SQL query to answer the following question:
`What is the Japanese name of the Province with a Korean name of Chungcheong-Bukdo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "provinces_under_japanese_colonial_rule" (
"japanese_nam... |
SELECT "hanja_kanji" FROM "provinces_under_japanese_colonial_rule" WHERE "kana"='γ‘γ
γγγγ»γγ©γ'; |
## Task
Generate a SQL query to answer the following question:
`What is the Hanja/Kanji of the Province with a Kana of γ‘γ
γγγγ»γγ©γ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "provinces_under_japanese_colonial_rule" (
"japanese_name" text,
"kana"... |
SELECT "kana" FROM "provinces_under_japanese_colonial_rule" WHERE "korean_name"='chungcheong-namdo'; |
## Task
Generate a SQL query to answer the following question:
`What is the Kana of the Province with a Korean name of Chungcheong-Namdo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "provinces_under_japanese_colonial_rule" (
"japanese_name" text,
... |
SELECT "hangul" FROM "provinces_under_japanese_colonial_rule" WHERE "kana"='γΈγγγγͺγγ©γ'; |
## Task
Generate a SQL query to answer the following question:
`What is the Hangul of the Province with a Kana of γΈγγγγͺγγ©γ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "provinces_under_japanese_colonial_rule" (
"japanese_name" text,
"kana" text,... |
SELECT "hangul" FROM "provinces_under_japanese_colonial_rule" WHERE "kana"='γ‘γ
γγγγͺγγ©γ'; |
## Task
Generate a SQL query to answer the following question:
`What is the Hangul of the Province with a Kana of γ‘γ
γγγγͺγγ©γ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "provinces_under_japanese_colonial_rule" (
"japanese_name" text,
"kana" text... |
SELECT "hanja_kanji" FROM "provinces_under_japanese_colonial_rule" WHERE "korean_name"='chungcheong-bukdo'; |
## Task
Generate a SQL query to answer the following question:
`What is the Hanja/Kanji of the Province with a Korean name of Chungcheong-Bukdo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "provinces_under_japanese_colonial_rule" (
"japanese_name"... |
SELECT "oct" FROM "temperature" WHERE "nov"='51/30'; |
## Task
Generate a SQL query to answer the following question:
`What were the Oct. temperatures for the city that had Nov. temperatures of 51/30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "temperature" (
"city" text,
"jan" text,
"feb" text,
... |
SELECT "feb" FROM "temperature" WHERE "city"='east stroudsburg'; |
## Task
Generate a SQL query to answer the following question:
`What were the Feb temperatures in East Stroudsburg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "temperature" (
"city" text,
"jan" text,
"feb" text,
"mar" text,
"apr" text,
... |
SELECT SUM("comp") FROM "statistics" WHERE "comppct"=65.4 AND "att"<451; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of completions that led to completion percentages of 65.4 and attempts under 451?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"year" text,
"comp" real... |
SELECT MAX("td_s") FROM "statistics" WHERE "yards"=574 AND "comp">54; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of touchdowns that had yards of 574 and completions over 54?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"year" text,
"comp" real,
"att" ... |
SELECT "regular_season" FROM "year_by_year" WHERE "playoffs"='conference semifinals'; |
## Task
Generate a SQL query to answer the following question:
`What regular season did the team reach the conference semifinals in the playoffs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"leagu... |
SELECT COUNT("division") FROM "year_by_year" WHERE "regular_season"='2nd, northeast' AND "year"<2008; |
## Task
Generate a SQL query to answer the following question:
`When the regular season of 2nd, Northeast and the year was less than 2008 what was the total number of Division?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" re... |
SELECT "division" FROM "year_by_year" WHERE "regular_season"='5th, northeast'; |
## Task
Generate a SQL query to answer the following question:
`What division was the regular season 5th, Northeast?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" t... |
SELECT "result" FROM "awards" WHERE "nomination"='jam hsiao' AND "year"=2012; |
## Task
Generate a SQL query to answer the following question:
`What was the result when Jam Hsiao was nominated in 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards" (
"year" real,
"award" text,
"category" text,
"nomination" text,
... |
SELECT "award" FROM "awards" WHERE "category"='best music video'; |
## Task
Generate a SQL query to answer the following question:
`Which award is in the category of best music video?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards" (
"year" real,
"award" text,
"category" text,
"nomination" text,
"resu... |
SELECT "attendance" FROM "schedule" WHERE "result"='l 29β23'; |
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Result of l 29β23?`
### 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" text
... |
SELECT "date" FROM "schedule" WHERE "week"=1; |
## Task
Generate a SQL query to answer the following question:
`When has a Week of 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the... |
SELECT "week" FROM "schedule" WHERE "opponent"='at seattle seahawks'; |
## Task
Generate a SQL query to answer the following question:
`Which Week has an Opponent of at seattle seahawks?`
### 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,
"attendan... |
SELECT "result" FROM "schedule" WHERE "date"='october 15, 1995'; |
## Task
Generate a SQL query to answer the following question:
`Name the Result on october 15, 1995?`
### 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" text
);
##... |
SELECT "opponent" FROM "schedule" WHERE "week">2 AND "date"='november 19, 1995'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Week larger than 2 on november 19, 1995?`
### 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 "record_conf" FROM "automatic_bids" WHERE "conference"='wac'; |
## Task
Generate a SQL query to answer the following question:
`What is the recorded conference that was a Wac Conference?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "automatic_bids" (
"school" text,
"conference" text,
"record_conf" text,
"... |
SELECT "conference" FROM "automatic_bids" WHERE "school"='wichita state'; |
## Task
Generate a SQL query to answer the following question:
`What conference has the Wichita State school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "automatic_bids" (
"school" text,
"conference" text,
"record_conf" text,
"berth" text,
... |
SELECT "rank" FROM "achievements_competitions" WHERE "place"='burghley'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank for Burghley?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements_competitions" (
"competition" text,
"place" text,
"year" real,
"horse" text,
"rank" te... |
SELECT "horse" FROM "achievements_competitions" WHERE "competition"='badminton horse trials'; |
## Task
Generate a SQL query to answer the following question:
`What horse was at the Badminton Horse Trials?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements_competitions" (
"competition" text,
"place" text,
"year" real,
"horse" te... |
SELECT MIN("rank") FROM "list_of_top_association_football_goal_sc" WHERE "matches"<285 AND "name"='des dickson' AND "goals"<219; |
## Task
Generate a SQL query to answer the following question:
`What was Des Dickson's lowest rank for matches smaller than 285 and less than 219 goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank... |
SELECT AVG("goals") FROM "list_of_top_association_football_goal_sc" WHERE "matches"=644 AND "rank">3; |
## Task
Generate a SQL query to answer the following question:
`How many goals on average had 644 matches and a rank bigger than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text... |
SELECT COUNT("rank") FROM "list_of_top_association_football_goal_sc" WHERE "matches"=205; |
## Task
Generate a SQL query to answer the following question:
`How many ranks had 205 matches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"matches" real,
... |
SELECT MAX("rank") FROM "list_of_top_association_football_goal_sc" WHERE "name"='jimmy jones' AND "matches"<285; |
## Task
Generate a SQL query to answer the following question:
`What was Jimmy Jones' rank when the matches were smaller than 285?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,... |
SELECT "date" FROM "april" WHERE "home"='hornets'; |
## Task
Generate a SQL query to answer the following question:
`Which date had the Hornets as the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" tex... |
SELECT "to_par" FROM "pga_tour_wins_8" WHERE "winning_score"='64-69-67-66=266'; |
## Task
Generate a SQL query to answer the following question:
`What is the To par score corresponding to the winning score of 64-69-67-66=266?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_8" (
"date" text,
"tournament" text,
"wi... |
SELECT "to_par" FROM "pga_tour_wins_8" WHERE "margin_of_victory"='1 stroke'; |
## Task
Generate a SQL query to answer the following question:
`What was the To par score for the tournament with a margin of victory of 1 stroke?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_8" (
"date" text,
"tournament" text,
... |
SELECT "winning_score" FROM "pga_tour_wins_8" WHERE "margin_of_victory"='7 strokes'; |
## Task
Generate a SQL query to answer the following question:
`What was the winning score for the tournament with a margin of victory of 7 strokes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_8" (
"date" text,
"tournament" text,
... |
SELECT SUM("december") FROM "schedule_and_results" WHERE "record"='6-3-1'; |
## Task
Generate a SQL query to answer the following question:
`What day in December was the game that resulted in a record of 6-3-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent"... |
SELECT SUM("attendance") FROM "season_schedule" WHERE "opponent"='oakland raiders' AND "week">7; |
## Task
Generate a SQL query to answer the following question:
`How many were in attendance against the Oakland Raiders after week 7?`
### 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,
... |
SELECT AVG("attendance") FROM "season_schedule" WHERE "opponent"='new york jets'; |
## Task
Generate a SQL query to answer the following question:
`What is the average attendance for the New York Jets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
... |
SELECT COUNT("week") FROM "season_schedule" WHERE "date"='september 21, 1969' AND "attendance"<'26,243'; |
## Task
Generate a SQL query to answer the following question:
`On what week were there 26,243 in attendance on September 21, 1969?`
### 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,
"r... |
SELECT "opponent_team" FROM "pre_season_friendlies" WHERE "match">2 AND "location"='pasir gudang, malaysia'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at Pasir Gudang, Malaysia with a match larger than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_friendlies" (
"match" real,
"date" text,
"tourna... |
SELECT "opponent_team" FROM "pre_season_friendlies" WHERE "match"<3; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at the match smaller than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_friendlies" (
"match" real,
"date" text,
"tournament" text,
"location" ... |
SELECT "location" FROM "pre_season_friendlies" WHERE "opponent_team"='police s.a.'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game when Police S.A. was the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_friendlies" (
"match" real,
"date" text,
"tournament" text,
"locati... |
SELECT MIN("league") FROM "top_scorers_in_order_of_league_goals" WHERE "fa_cup">0 AND "player"='simon read' AND "league_cup">1; |
## Task
Generate a SQL query to answer the following question:
`Which League has a FA Cup larger than 0, and a Player of simon read, and a League Cup larger than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_scorers_in_order_of_league_goals" (... |
SELECT COUNT("total") FROM "top_scorers_in_order_of_league_goals" WHERE "league_cup">3 AND "league"<16; |
## Task
Generate a SQL query to answer the following question:
`What kind of Total that has a League Cup larger than 3, and a League smaller than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_scorers_in_order_of_league_goals" (
"player" tex... |
SELECT MIN("league") FROM "top_scorers_in_order_of_league_goals" WHERE "league_cup"<0; |
## Task
Generate a SQL query to answer the following question:
`Which League has a League Cup smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_scorers_in_order_of_league_goals" (
"player" text,
"club" text,
"league" real,
"fa... |
SELECT MAX("league") FROM "top_scorers_in_order_of_league_goals" WHERE "total"<16 AND "player"='ken mckenna' AND "league_cup">0; |
## Task
Generate a SQL query to answer the following question:
`Which League has a Total smaller than 16, a Player of ken mckenna and a League Cup larger than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_scorers_in_order_of_league_goals" (
... |
SELECT AVG("fa_cup") FROM "top_scorers_in_order_of_league_goals" WHERE "league_cup">3 AND "league"<16; |
## Task
Generate a SQL query to answer the following question:
`Which FA Cup that has a League Cup larger than 3 and a League smaller than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_scorers_in_order_of_league_goals" (
"player" text,
"c... |
SELECT COUNT("list_entry_number") FROM "oldham" WHERE "location"='platting road, lydgate'; |
## Task
Generate a SQL query to answer the following question:
`How many list entry numbers are located in Platting Road, Lydgate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "oldham" (
"name" text,
"location" text,
"type" text,
"completed" ... |
SELECT "type" FROM "oldham" WHERE "list_entry_number"=1356677; |
## Task
Generate a SQL query to answer the following question:
`Which type has list entry number of 1356677?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "oldham" (
"name" text,
"location" text,
"type" text,
"completed" text,
"list_entry_nu... |
SELECT "completed" FROM "oldham" WHERE "type"='church' AND "list_entry_number"=1068071; |
## Task
Generate a SQL query to answer the following question:
`What is the completed date of the church with list entry number 1068071?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "oldham" (
"name" text,
"location" text,
"type" text,
"compl... |
SELECT "scorers" FROM "uefa_cup" WHERE "opponent"='neuchΓ’tel xamax' AND "date"='10 december 1985'; |
## Task
Generate a SQL query to answer the following question:
`Who were the scorers in the game against neuchΓ’tel xamax played on 10 December 1985?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "uefa_cup" (
"date" text,
"opponent" text,
"venue"... |
SELECT "date" FROM "uefa_cup" WHERE "scorers"='hegarty'; |
## Task
Generate a SQL query to answer the following question:
`What date was the game played in where hegarty was the scorer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "uefa_cup" (
"date" text,
"opponent" text,
"venue" text,
"result" text... |
SELECT "callsign" FROM "see_also" WHERE "icao"='sco'; |
## Task
Generate a SQL query to answer the following question:
`Who is the callsign that has ICAO of SCO?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"airlines" text,
"iata" text,
"icao" text,
"callsign" text,
"commenced_opera... |
SELECT "commenced_operations" FROM "see_also" WHERE "icao"='slk'; |
## Task
Generate a SQL query to answer the following question:
`Who is the commenced operations that has icao of slk?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"airlines" text,
"iata" text,
"icao" text,
"callsign" text,
"com... |
SELECT "callsign" FROM "see_also" WHERE "commenced_operations"<1976; |
## Task
Generate a SQL query to answer the following question:
`Who is the call sign that has a commenced operation before 1976?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"airlines" text,
"iata" text,
"icao" text,
"callsign" t... |
SELECT "hdtv" FROM "others" WHERE "content"='music'; |
## Task
Generate a SQL query to answer the following question:
`What is the HDTV of the Music Content Channel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "others" (
"television_service" text,
"country" text,
"language" text,
"content" text,... |
SELECT "television_service" FROM "others" WHERE "content"='cartomanzia'; |
## Task
Generate a SQL query to answer the following question:
`What is the Television Service offering Cartomanzia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "others" (
"television_service" text,
"country" text,
"language" text,
"content"... |
SELECT "country" FROM "others" WHERE "content"='televendite'; |
## Task
Generate a SQL query to answer the following question:
`What Country's content is Televendite?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "others" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv... |
SELECT "country" FROM "others" WHERE "content"='tv locale'; |
## Task
Generate a SQL query to answer the following question:
`What Country's Content is TV Locale?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "others" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" ... |
SELECT SUM("gold") FROM "medals_table" WHERE "silver">1 AND "rank">1 AND "total">4 AND "bronze">4; |
## Task
Generate a SQL query to answer the following question:
`How many golds had a silver of more than 1, rank more than 1, total of more than 4 when the bronze was also more than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"... |
SELECT SUM("rank") FROM "medals_table" WHERE "gold"=2 AND "total">4; |
## Task
Generate a SQL query to answer the following question:
`What is the total of rank when gold is 2 and total is more than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver"... |
SELECT SUM("bronze") FROM "medals_table" WHERE "gold"<1 AND "silver">1; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of bronze when gold is less than 1 and silver is more than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"go... |
SELECT SUM("rank") FROM "medals_table" WHERE "silver">1 AND "gold"=2 AND "total">4; |
## Task
Generate a SQL query to answer the following question:
`What is the total of rank when silver is more than 1, gold is 2, and total is more than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
... |
SELECT AVG("wins") FROM "summary" WHERE "top_25"=3 AND "top_5">1; |
## Task
Generate a SQL query to answer the following question:
`What is the Wins with a Top-25 of 3, and a Top-5 larger than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" re... |
SELECT "cuts_made" FROM "summary" WHERE "top_5"<3 AND "top_25"<6 AND "events"=10; |
## Task
Generate a SQL query to answer the following question:
`Which Cuts made has a Top-5 smaller than 3, and a Top-25 smaller than 6, and an Events of 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,... |
SELECT "tournament" FROM "summary" WHERE "cuts_made"<9 AND "events"=10; |
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a Cuts made smaller than 9, and an Events of 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_... |
SELECT SUM("points") FROM "motorcycle_grand_prix_results" WHERE "class"='250cc' AND "rank"='13th' AND "year">1955; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Points for 250cc class, ranked 13th, later than 1955?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"... |
SELECT "class" FROM "motorcycle_grand_prix_results" WHERE "year">1958 AND "points"=4; |
## Task
Generate a SQL query to answer the following question:
`What is the Class for a year later than 1958, with 4 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
... |
SELECT AVG("year") FROM "motorcycle_grand_prix_results" WHERE "points">3 AND "team"='mv agusta' AND "rank"='10th'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Year when there were more than 3 points, for MV Agusta and ranked 10th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
... |
SELECT "team" FROM "motorcycle_grand_prix_results" WHERE "class"='350cc' AND "points"<13 AND "year"=1959; |
## Task
Generate a SQL query to answer the following question:
`What Team has a Class of 350cc, with less than 13 points in 1959?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" t... |
SELECT "event" FROM "tournaments" WHERE "location"='manly beach'; |
## Task
Generate a SQL query to answer the following question:
`Which event was held at Manly Beach?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"event" text,
"winner" text,
"... |
SELECT "location" FROM "tournaments" WHERE "country"='australia' AND "event"='havaianas beachley classic'; |
## Task
Generate a SQL query to answer the following question:
`What was the location of the Havaianas Beachley Classic, held in Australia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" tex... |
SELECT "event" FROM "tournaments" WHERE "country"='brazil'; |
## Task
Generate a SQL query to answer the following question:
`Which event was held in Brazil?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"event" text,
"winner" text,
"runne... |
SELECT "region" FROM "first_and_second_rounds" WHERE "host"='university of colorado'; |
## Task
Generate a SQL query to answer the following question:
`The University of Colorado hosted what region?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"... |
SELECT "city" FROM "first_and_second_rounds" WHERE "venue"='peterson gym'; |
## Task
Generate a SQL query to answer the following question:
`Peterson Gym is in what city?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
##... |
SELECT "state" FROM "first_and_second_rounds" WHERE "region"='mideast' AND "host"='university of tennessee'; |
## Task
Generate a SQL query to answer the following question:
`Mideast region host University of Tennessee is in what state?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"... |
SELECT "city" FROM "first_and_second_rounds" WHERE "region"='east' AND "venue"='university hall (university of virginia)'; |
## Task
Generate a SQL query to answer the following question:
`What city is east region venue University Hall (University of Virginia) in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"ve... |
SELECT "venue" FROM "first_and_second_rounds" WHERE "host"='stanford university'; |
## Task
Generate a SQL query to answer the following question:
`What is the venue at Stanford University?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state... |
SELECT "venue" FROM "first_and_second_rounds" WHERE "city"='seattle'; |
## Task
Generate a SQL query to answer the following question:
`What is the venue in Seattle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
##... |
SELECT "team" FROM "2007" WHERE "race_name"='tour de santa catarina'; |
## Task
Generate a SQL query to answer the following question:
`What team won the Tour de Santa Catarina?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007" (
"date" text,
"race_name" text,
"location" text,
"uci_rating" real,
"winner" text... |
SELECT AVG("uci_rating") FROM "2007" WHERE "team"='relax-gam'; |
## Task
Generate a SQL query to answer the following question:
`What is Relax-Gam's average UCI Rating?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007" (
"date" text,
"race_name" text,
"location" text,
"uci_rating" real,
"winner" text,
... |
SELECT MIN("uci_rating") FROM "2007" WHERE "race_name"='vuelta a ecuador'; |
## Task
Generate a SQL query to answer the following question:
`What is Vuelta a Ecuador's lowest UCI Rating?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007" (
"date" text,
"race_name" text,
"location" text,
"uci_rating" real,
"winner" ... |
SELECT "result" FROM "schedule" WHERE "attendance"='54,110'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game attended by 54,110?`
### 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,
"attenda... |
SELECT "date" FROM "schedule" WHERE "attendance"='45,122'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the game attended by 45,122?`
### 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,
"attendanc... |
SELECT MIN("week") FROM "schedule" WHERE "attendance"='60,233'; |
## Task
Generate a SQL query to answer the following question:
`What is the earliest week with a game attended by 60,233?`
### 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 MAX("week") FROM "schedule" WHERE "result"='l 12β7'; |
## Task
Generate a SQL query to answer the following question:
`What is the latest week with a game with a result of l 12β7?`
### 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 "runner_s_up" FROM "pga_tour_wins_6" WHERE "tournament"='mci classic'; |
## Task
Generate a SQL query to answer the following question:
`What is Runner(s)-up, when Tournament is MCI Classic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_6" (
"date" text,
"tournament" text,
"winning_score" text,
"marg... |
SELECT "winning_score" FROM "pga_tour_wins_6" WHERE "date"='jul 27, 1997'; |
## Task
Generate a SQL query to answer the following question:
`What is Winning Score, when Date is Jul 27, 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_6" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_o... |
SELECT "winning_score" FROM "pga_tour_wins_6" WHERE "runner_s_up"='ted purdy'; |
## Task
Generate a SQL query to answer the following question:
`What is Winning Score, when Runner(s)-up is Ted Purdy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_6" (
"date" text,
"tournament" text,
"winning_score" text,
"mar... |
SELECT AVG("founded") FROM "institutions" WHERE "type"='ru/vh' AND "control"='private' AND "enrollment">'10,894' AND "location"='troy, new york'; |
## Task
Generate a SQL query to answer the following question:
`With 10,894 students enrolled, in what year was this private RU/VH institution located in Troy, New York founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "institutions" (
"locatio... |
SELECT AVG("enrollment") FROM "institutions" WHERE "control"='public' AND "location"='golden, colorado' AND "founded">1874; |
## Task
Generate a SQL query to answer the following question:
`What is the enrollment number for the public institution in Golden, Colorado founded after 1874?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "institutions" (
"location" text,
"contr... |
SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "year"<2007 AND "class"='gts'; |
## Task
Generate a SQL query to answer the following question:
`Which Team has a Year smaller than 2007, and a Class of gts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" tex... |
SELECT SUM("year") FROM "24_hours_of_le_mans_results" WHERE "co_drivers"='jΓ©rΓ΄me policand christopher campbell'; |
## Task
Generate a SQL query to answer the following question:
`In what year Year has a Co-Drivers of jΓ©rΓ΄me policand christopher campbell?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"... |
SELECT "language" FROM "tv_services_for_sky_italia_costumers" WHERE "content"='monoscopio'; |
## Task
Generate a SQL query to answer the following question:
`What is Language, when Content is Monoscopio?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tv_services_for_sky_italia_costumers" (
"television_service" text,
"country" text,
"lang... |
SELECT "television_service" FROM "tv_services_for_sky_italia_costumers" WHERE "content"='presentazione'; |
## Task
Generate a SQL query to answer the following question:
`What is Television Service, when Content is Presentazione?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tv_services_for_sky_italia_costumers" (
"television_service" text,
"country" ... |
SELECT "package_option" FROM "tv_services_for_sky_italia_costumers" WHERE "television_service"='sky inside'; |
## Task
Generate a SQL query to answer the following question:
`What is Package/Option, when Television Service is Sky Inside?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tv_services_for_sky_italia_costumers" (
"television_service" text,
"count... |
SELECT "package_option" FROM "tv_services_for_sky_italia_costumers" WHERE "television_service"='sky inside'; |
## Task
Generate a SQL query to answer the following question:
`What is Package/Option, when Television Service is Sky Inside?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tv_services_for_sky_italia_costumers" (
"television_service" text,
"count... |
SELECT MIN("draw") FROM "references" WHERE "song"='\"the innocent days\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Draw, when the Song is "The Innocent Days"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"draw" real,
"song" text,
"performer" text,
"points" re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.