output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "circuit" FROM "calendar" WHERE "round">5; |
## Task
Generate a SQL query to answer the following question:
`Which circuit had a round larger than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" real,
"race_name" text,
"circuit" text,
"city_state" text,
"date" tex... |
SELECT "story" FROM "conan_dark_horse_comics" WHERE "date"='october 19, 2011'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the story published on October 19, 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"s... |
SELECT "issue" FROM "conan_dark_horse_comics" WHERE "date"='august 17, 2011'; |
## Task
Generate a SQL query to answer the following question:
`What Issue number was released on August 17, 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"story" text,... |
SELECT "story" FROM "conan_dark_horse_comics" WHERE "issue"='#8'; |
## Task
Generate a SQL query to answer the following question:
`What story title was included in Issue #8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"story" text,
"colo... |
SELECT "young_classification" FROM "jersey_progress" WHERE "general_classification"='christian vande velde' AND "team_classification"='team columbia' AND "sprint_classification"='mark cavendish'; |
## Task
Generate a SQL query to answer the following question:
`Which young classification has general classification of Christian Vande Velde for Team Columbia and Mark Cavendish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"s... |
SELECT "mountains_classification" FROM "jersey_progress" WHERE "general_classification"='mark cavendish' AND "team_classification"='garmin-chipotle-h30'; |
## Task
Generate a SQL query to answer the following question:
`What mountains classification corresponds to Mark Cavendish and the Garmin-Chipotle-H30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage_winner" text,
"genera... |
SELECT "stage_winner" FROM "jersey_progress" WHERE "sprint_classification"='mark cavendish' AND "team_classification"='garmin-chipotle-h30' AND "young_classification"='mark cavendish'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner for a Sprint Classification and Young Classification to Mark Cavendish and Garmin-Chipotle-H30 for team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress"... |
SELECT MIN("population_2010_census") FROM "list_of_cities" WHERE "population_2000_census">'117,594' AND "municipality"='gimpo' AND "rank"<45; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest population (2010 Census) that has a rank smaller than 45, municipality of gimpo, and populaion (2000 Census) larger than 117,594?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREAT... |
SELECT MIN("population_2000_census") FROM "list_of_cities" WHERE "municipality"='suwon' AND "population_2010_census">'1,071,913'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest population (2000 Census) that has a population (2010 Census) larger than 1,071,913 and municipality of Suwon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_cit... |
SELECT MAX("population_2000_census") FROM "list_of_cities" WHERE "population_2005_census">'157,632' AND "rank"=43 AND "population_2010_census">'231,271'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest population (2000 Census) that has a rank of 43, population (2010 Census) larger than 231,271, and population (2005 Census) larger than 157,632?`
### Database Schema
This query will run on a database whose schema is represented in this... |
SELECT COUNT("rank") FROM "list_of_cities" WHERE "population_2000_census"='167,231' AND "population_2005_census"<'193,398'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of rank that has population (2005 Census) smaller than 193,398 and population (2000 Census) of 167,231?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_cit... |
SELECT MIN("rank") FROM "brazil_s_40_busiest_airports_by_passenge" WHERE "capacity_in_use"='197,13%' AND "capacity">'1,010,000'; |
## Task
Generate a SQL query to answer the following question:
`Who had the lowest rank for a capacity of 197,13% and a capacity larger than 1,010,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazil_s_40_busiest_airports_by_passenge" (
"rank"... |
SELECT AVG("capacity") FROM "brazil_s_40_busiest_airports_by_passenge" WHERE "total_passengers"<'8,261,355' AND "capacity_in_use"='126,06%'; |
## Task
Generate a SQL query to answer the following question:
`What is the average capacity for less than 8,261,355 passengers, and 126,06% in use?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazil_s_40_busiest_airports_by_passenge" (
"rank" re... |
SELECT "outcome" FROM "doubles_10" WHERE "partner"='mark dickson' AND "opponents_in_the_final"='hans gildemeister belus prajoux'; |
## Task
Generate a SQL query to answer the following question:
`Which outcome has a partner named Mark Dickson, with the opponents of Hans Gildemeister Belus Prajoux?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_10" (
"outcome" text,
"da... |
SELECT "format" FROM "release_history" WHERE "catalog"='vcrd 103'; |
## Task
Generate a SQL query to answer the following question:
`What is the Format with a Catalog that is vcrd 103?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"c... |
SELECT "region" FROM "release_history" WHERE "catalog"='vlmx 1087-3'; |
## Task
Generate a SQL query to answer the following question:
`What is the Region with a Catalog that is vlmx 1087-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
... |
SELECT "format" FROM "release_history" WHERE "label"='electropolis' AND "date"='2002'; |
## Task
Generate a SQL query to answer the following question:
`What is the Format with a Label of electropolis and a Date that is 2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
... |
SELECT "result" FROM "schedule" WHERE "attendance">'60,705' AND "week"<13; |
## Task
Generate a SQL query to answer the following question:
`Which result's attendance was more than 60,705 when the week number is less than 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" ... |
SELECT COUNT("cultural_and_educational_panel") FROM "composition_of_the_9th_seanad" WHERE "university_of_dublin"=3 AND "labour_panel">11; |
## Task
Generate a SQL query to answer the following question:
`How many in the cultural and educational panel have a university of Dublin of 3 & A labor panel larger than 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "composition_of_the_9th_seana... |
SELECT "margin" FROM "one_day_international" WHERE "match_date"='oct 17, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is Margin, when Match Date is Oct 17, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
... |
SELECT "team_b" FROM "one_day_international" WHERE "s_no">17; |
## Task
Generate a SQL query to answer the following question:
`What is Team (B), when S No is greater than 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
... |
SELECT COUNT("s_no") FROM "one_day_international" WHERE "margin"='16 runs'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of S No(s), when the Margin is 16 runs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
... |
SELECT MAX("s_no") FROM "one_day_international" WHERE "match_date"='nov 1, 2003'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest S No, when the Match Date is Nov 1, 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"w... |
SELECT "team_b" FROM "one_day_international" WHERE "s_no"<18 AND "margin"='8 wickets' AND "match_date"='oct 30, 1989'; |
## Task
Generate a SQL query to answer the following question:
`What is Team (B), when S No is less than 18, when Margin is 8 Wickets, and when Match Date is Oct 30, 1989?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "one_day_international" (
"s_no... |
SELECT MAX("week") FROM "schedule" WHERE "date"='december 14, 1986' AND "attendance"<'47,096'; |
## Task
Generate a SQL query to answer the following question:
`When was the last time, since December 14, 1986, that the attendance was lower than 47,096?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opp... |
SELECT "outcome" FROM "doubles_finals" WHERE "surface"='indoor/carpet' AND "date"='13 october 1996'; |
## Task
Generate a SQL query to answer the following question:
`What is the Surface of indoor/carpet Outcome on 13 October 1996`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_finals" (
"outcome" text,
"date" text,
"tournament" text,
"s... |
SELECT "outcome" FROM "doubles_finals" WHERE "tournament"='johannesburg, south africa'; |
## Task
Generate a SQL query to answer the following question:
`What the Outcome for the Tournament of Johannesburg, South Africa`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_finals" (
"outcome" text,
"date" text,
"tournament" text,
... |
SELECT "launch_site" FROM "block_iif" WHERE "rocket"='delta iv'; |
## Task
Generate a SQL query to answer the following question:
`What is the launch site of the delta iv rocket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satelli... |
SELECT "type" FROM "block_iif" WHERE "date"='unknown' AND "satellite"='gps iif-10'; |
## Task
Generate a SQL query to answer the following question:
`What is the type of the gps iif-10 satellite with an unknown date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_sit... |
SELECT "type" FROM "block_iif" WHERE "satellite"='gps iif-10'; |
## Task
Generate a SQL query to answer the following question:
`What is the type of the gps iif-10 satellite?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite... |
SELECT "launch_site" FROM "block_iif" WHERE "date"='unknown' AND "rocket"='delta iv' AND "satellite"='gps iif-10'; |
## Task
Generate a SQL query to answer the following question:
`What is the launch site of the delta iv rocket with an unknown date and a gps iif-10 satellite?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "block_iif" (
"date" text,
"rocket" text,... |
SELECT "date" FROM "block_iif" WHERE "satellite"='gps iif-7'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the gps iif-7 satellite?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite"... |
SELECT "finish" FROM "indy_500_results" WHERE "year"=1992; |
## Task
Generate a SQL query to answer the following question:
`What was the finish for 1992?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text
);
### S... |
SELECT "finish" FROM "indy_500_results" WHERE "engine"='buick' AND "start"='16th'; |
## Task
Generate a SQL query to answer the following question:
`What was Andretti's finish for the year he had a Buick engine and started 16th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engi... |
SELECT "finish" FROM "indy_500_results" WHERE "engine"='buick' AND "start"='16th'; |
## Task
Generate a SQL query to answer the following question:
`What was Andretti's finish the year he started 16th with a Buick engine?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" tex... |
SELECT SUM("year") FROM "past_winners" WHERE "men_s_doubles"='györgy vörös gábor petrovits' AND "men_s_singles"='györgy vörös'; |
## Task
Generate a SQL query to answer the following question:
`How many years were there a men's double of györgy vörös gábor petrovits and a men's single of györgy vörös?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"year" real,
... |
SELECT SUM("drawn") FROM "campeonato_paulista" WHERE "points"=6 AND "against">16; |
## Task
Generate a SQL query to answer the following question:
`Which Drawn has a Points of 6, and a Against larger than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"pl... |
SELECT AVG("points") FROM "campeonato_paulista" WHERE "difference"='3' AND "played"<10; |
## Task
Generate a SQL query to answer the following question:
`Which Points has a Difference of 3, and a Played smaller than 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
... |
SELECT SUM("points") FROM "campeonato_paulista" WHERE "team"='são paulo athletic' AND "position">5; |
## Task
Generate a SQL query to answer the following question:
`Which Points has a Team of são paulo athletic, and a Position larger than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"poi... |
SELECT MIN("position") FROM "campeonato_paulista" WHERE "played">9 AND "points"<11 AND "drawn"<0; |
## Task
Generate a SQL query to answer the following question:
`Which Position has a Played larger than 9, and a Points smaller than 11, and a Drawn smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" rea... |
SELECT SUM("track") FROM "1997_reissue_bonus_tracks" WHERE "catalogue"='47-9465'; |
## Task
Generate a SQL query to answer the following question:
`What track has a catalogue of 47-9465?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1997_reissue_bonus_tracks" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" ... |
SELECT "track" FROM "1997_reissue_bonus_tracks" WHERE "time"='2:30'; |
## Task
Generate a SQL query to answer the following question:
`What track has a time of 2:30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1997_reissue_bonus_tracks" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
... |
SELECT "catalogue" FROM "1997_reissue_bonus_tracks" WHERE "recorded"='9/10/67' AND "release_date"='1/9/68'; |
## Task
Generate a SQL query to answer the following question:
`What catalogue was recorded on 9/10/67 and a release date of 1/9/68?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1997_reissue_bonus_tracks" (
"track" real,
"recorded" text,
"cata... |
SELECT "rank" FROM "all_time_medal_tables" WHERE "bronze"<7 AND "nation"='norway'; |
## Task
Generate a SQL query to answer the following question:
`Where does Norway rank in total medals among countries with fewer than 7 bronzes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "all_time_medal_tables" (
"rank" text,
"nation" text,
... |
SELECT "inns" FROM "best_batting_strike_rate" WHERE "runs"=435; |
## Task
Generate a SQL query to answer the following question:
`What is the Inns of 435 Runs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "best_batting_strike_rate" (
"player" text,
"team" text,
"inns" real,
"runs" real,
"balls" real
);
##... |
SELECT AVG("1st_place") FROM "total_team_ranking_open_section" WHERE "rank">10; |
## Task
Generate a SQL query to answer the following question:
`What is the average 1st place with a Rank that is larger than 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "total_team_ranking_open_section" (
"rank" real,
"country" text,
"1st... |
SELECT "week_of" FROM "november" WHERE "runner_up"='lori mcneil'; |
## Task
Generate a SQL query to answer the following question:
`What week was the Runner-up Lori McNeil?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"week_of" text,
"tier" text,
"winner" text,
"runner_up" text,
"semi_finalists... |
SELECT "winner" FROM "november" WHERE "runner_up"='jing-qian yi'; |
## Task
Generate a SQL query to answer the following question:
`When the runner-up was Jing-qian Yi, who was the winner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"week_of" text,
"tier" text,
"winner" text,
"runner_up" text,
... |
SELECT "musical_guest_song_performed" FROM "series_2" WHERE "who_knows_the_most_about_the_guest_host_panelists"='nancy sorrell and samia smith'; |
## Task
Generate a SQL query to answer the following question:
`Who was the musical guest when the panelists were Nancy Sorrell and Samia Smith?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"... |
SELECT "guest_host" FROM "series_2" WHERE "episode_number"<6 AND "who_knows_the_most_about_the_guest_host_panelists"='jade goody and kenzie'; |
## Task
Generate a SQL query to answer the following question:
`Who was the guest host for episode numbers under 6 and panelists of Jade Goody and Kenzie?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2" (
"episode_number" real,
"air_date"... |
SELECT "who_knows_the_most_about_the_guest_host_panelists" FROM "series_2" WHERE "episode_number"=4; |
## Task
Generate a SQL query to answer the following question:
`Who were the panelists on episode number 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_so... |
SELECT MAX("episode_number") FROM "series_2" WHERE "guest_host"='jamie oliver'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest episode number in which Jamie Oliver guest-hosted?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host... |
SELECT "score" FROM "march" WHERE "home"='cavaliers' AND "leading_scorer"='lebron james (46)'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the home game for the Cavaliers where Lebron James (46) was the lead scorer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"date" text,
"visitor" text,
... |
SELECT "leading_scorer" FROM "march" WHERE "visitor"='bulls'; |
## Task
Generate a SQL query to answer the following question:
`Who was the leading scorer against the visiting team Bulls?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"lead... |
SELECT "date" FROM "march" WHERE "home"='rockets'; |
## Task
Generate a SQL query to answer the following question:
`What date was the game played against the home team Rockets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"lea... |
SELECT "date" FROM "conan_dark_horse_comics" WHERE "penciller"='tomás giorello' AND "title"='cimmeria'; |
## Task
Generate a SQL query to answer the following question:
`What was the Date of the Cimmeria Issue for which the Penciller was Tomás Giorello?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text... |
SELECT "date" FROM "conan_dark_horse_comics" WHERE "title"='homecoming'; |
## Task
Generate a SQL query to answer the following question:
`When did the Issue with the Title Homecoming come out?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"pencille... |
SELECT AVG("match") FROM "first_league" WHERE "lost">0 AND "points">6 AND "team"='legia warszawa' AND "draw"<0; |
## Task
Generate a SQL query to answer the following question:
`Which average match has a lost greater than 0, points greater than 6, legia warszawa as the team, and a draw less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_league" (
... |
SELECT "draw" FROM "first_league" WHERE "lost"<6 AND "points"=28; |
## Task
Generate a SQL query to answer the following question:
`What draw has a lost less than 6 with 28 as the points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_league" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lo... |
SELECT AVG("lost") FROM "first_league" WHERE "match"<14; |
## Task
Generate a SQL query to answer the following question:
`Which average lost that has a match less than 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_league" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" re... |
SELECT "match" FROM "second_league" WHERE "team"='skra warszawa'; |
## Task
Generate a SQL query to answer the following question:
`What is the Match for skra warszawa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
### SQ... |
SELECT "draw" FROM "second_league" WHERE "team"='skra warszawa'; |
## Task
Generate a SQL query to answer the following question:
`What is the Draw for skra warszawa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
### SQL... |
SELECT "lost" FROM "second_league" WHERE "points"='dissolved'; |
## Task
Generate a SQL query to answer the following question:
`What is the Lost when the points were dissolved?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" te... |
SELECT "draw" FROM "second_league" WHERE "match"='10' AND "team"='skra warszawa'; |
## Task
Generate a SQL query to answer the following question:
`What is the Draw for match 10, and the team was skra warszawa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" tex... |
SELECT "draw" FROM "second_league" WHERE "team"='tramwajarz łódź'; |
## Task
Generate a SQL query to answer the following question:
`What is the Draw for the team of tramwajarz łódź?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" t... |
SELECT "draw" FROM "second_league" WHERE "team"='tramwajarz łódź'; |
## Task
Generate a SQL query to answer the following question:
`What is the Draw for the team tramwajarz łódź?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text... |
SELECT "location" FROM "newly_named_dinosaurs" WHERE "novelty"='gen'; |
## Task
Generate a SQL query to answer the following question:
`What is the Location when the novelty is gen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
... |
SELECT "unit" FROM "newly_named_dinosaurs" WHERE "status"='nomen oblitum'; |
## Task
Generate a SQL query to answer the following question:
`What shows for Unit with a status of nomen oblitum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" t... |
SELECT "location" FROM "newly_named_dinosaurs" WHERE "name"='telmatosaurus'; |
## Task
Generate a SQL query to answer the following question:
`What is the Location when the name is telmatosaurus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" ... |
SELECT "status" FROM "newly_named_dinosaurs" WHERE "novelty"='gen et sp' AND "name"='haplocanthosaurus'; |
## Task
Generate a SQL query to answer the following question:
`What is the Status with a novelty of gen et sp, and the name is haplocanthosaurus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,... |
SELECT COUNT("league_cup") FROM "top_scorers_in_order_of_league_goals" WHERE "total"<25 AND "league">19; |
## Task
Generate a SQL query to answer the following question:
`How many League cups had a total less than 25 and a league larger than 19?`
### 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"... |
SELECT COUNT("fa_trophy") FROM "top_scorers_in_order_of_league_goals" WHERE "player"='ceri williams' AND "total"<19; |
## Task
Generate a SQL query to answer the following question:
`How many FA trophies did Ceri Williams get with a smaller total than 19?`
### 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" t... |
SELECT "city" FROM "mutual_intelligibility" WHERE "average"=6.85; |
## Task
Generate a SQL query to answer the following question:
`Which City has an Average of 6.85?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mutual_intelligibility" (
"city" text,
"comprehension_of_danish" text,
"comprehension_of_swedish" t... |
SELECT MIN("average") FROM "mutual_intelligibility" WHERE "city"='bergen, norway'; |
## Task
Generate a SQL query to answer the following question:
`What is the Average of bergen, norway?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mutual_intelligibility" (
"city" text,
"comprehension_of_danish" text,
"comprehension_of_swedis... |
SELECT "comprehension_of_danish" FROM "mutual_intelligibility" WHERE "average"<6.85 AND "comprehension_of_norwegian"='4.13'; |
## Task
Generate a SQL query to answer the following question:
`Which Comprehension of Danish has an Average smaller than 6.85, and a Comprehension of Norwegian of 4.13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mutual_intelligibility" (
"city"... |
SELECT "attendance" FROM "schedule" WHERE "date"='november 18, 1990'; |
## Task
Generate a SQL query to answer the following question:
`What are the Attendance numbers for november 18, 1990?`
### 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,
"reco... |
SELECT "date" FROM "schedule" WHERE "week">7 AND "record"='9–1'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date for a week higher than 7 with a record of 9–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... |
SELECT "result" FROM "schedule" WHERE "attendance">'53,731' AND "week"=5; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game with an attendance over 53,731 after week 5?`
### 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,
... |
SELECT AVG("week") FROM "schedule" WHERE "date"='november 12, 1989'; |
## Task
Generate a SQL query to answer the following question:
`What is the average week of a game 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,
"at... |
SELECT "set_5" FROM "pool_b" WHERE "set_3"='25-23' AND "set_4"='23-25'; |
## Task
Generate a SQL query to answer the following question:
`What is the Set 5 with a Set 3 that is 25-23 and a Set 4 that is 23-25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_b" (
"game" real,
"date" text,
"set_1" text,
"set_2" te... |
SELECT SUM("game") FROM "pool_b" WHERE "set_4"='25-21' AND "set_3"='25-23'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the Game with a Set 4 of 25-21 and a Set 3 of 25-23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_b" (
"game" real,
"date" text,
"set_1" text,
"set_2" te... |
SELECT "set_5" FROM "pool_b" WHERE "game"=59; |
## Task
Generate a SQL query to answer the following question:
`What is the Set 5 with a Game that is 59?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_b" (
"game" real,
"date" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" ... |
SELECT "nation" FROM "international_results" WHERE "competition"='preseason' AND "year"<2011 AND "club"='chivas de guadalajara'; |
## Task
Generate a SQL query to answer the following question:
`What shows for nation when the Competition is preseason, Year less than 2011, and a Club of chivas de guadalajara?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_results" (
... |
SELECT "result" FROM "international_results" WHERE "club"='club universidad de guadalajara'; |
## Task
Generate a SQL query to answer the following question:
`What was the Result for the club universidad de guadalajara?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
... |
SELECT "nation" FROM "international_results" WHERE "year"=2012 AND "competition"='preseason' AND "result"='w 0–3'; |
## Task
Generate a SQL query to answer the following question:
`What is the Nation with 2012 as the year, and a Competition of preseason, and a Result of w 0–3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_results" (
"year" real,
"... |
SELECT AVG("year") FROM "international_results" WHERE "competition"='friendly' AND "club"='everton'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Year when the Competition was friendly, and a Club of everton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_results" (
"year" real,
"competition" t... |
SELECT "competition" FROM "international_results" WHERE "club"='costa rica u-20'; |
## Task
Generate a SQL query to answer the following question:
`What is the Competition when the Club was costa rica u-20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"n... |
SELECT "club" FROM "international_results" WHERE "nation"='mexico' AND "year"=2010 AND "competition"='preseason' AND "result"='w 0–1'; |
## Task
Generate a SQL query to answer the following question:
`What is the Club of mexico, Year of 2010, and a Competition of preseason, and a Result of w 0–1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_results" (
"year" real,
"... |
SELECT MIN("total") FROM "medal_table" WHERE "nation"='sweden'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest total when the nation is Sweden?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze... |
SELECT AVG("total") FROM "medal_table" WHERE "silver"<1 AND "rank"='15'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Total when silver is less than 1, and the rank is 15?`
### 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,
"s... |
SELECT COUNT("bronze") FROM "medal_table" WHERE "rank"='11' AND "total"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Bronze when rank is 11, and the 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" re... |
SELECT "name" FROM "olympic_roster" WHERE "2012_club"='deportivo nacional'; |
## Task
Generate a SQL query to answer the following question:
`Which name's 2012 club was deportivo nacional?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "olympic_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2012_cl... |
SELECT "name" FROM "olympic_roster" WHERE "2012_club"='deportivo nacional'; |
## Task
Generate a SQL query to answer the following question:
`Which name's 2012 club was deportivo nacional?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "olympic_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2012_cl... |
SELECT "weight" FROM "olympic_roster" WHERE "2012_club"='san pedro'; |
## Task
Generate a SQL query to answer the following question:
`Which weight was attached to the 2012 club San Pedro?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "olympic_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"... |
SELECT MAX("year") FROM "filmography" WHERE "director"='no'; |
## Task
Generate a SQL query to answer the following question:
`What year is the latest year that has no under director?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "filmography" (
"year" real,
"film" text,
"director" text,
"producer" text,
... |
SELECT "director" FROM "filmography" WHERE "year"=2014 AND "writer"='yes'; |
## Task
Generate a SQL query to answer the following question:
`With yes under writer and in 2014, what is the director?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "filmography" (
"year" real,
"film" text,
"director" text,
"producer" text,
... |
SELECT "writer" FROM "filmography" WHERE "film"='run'; |
## Task
Generate a SQL query to answer the following question:
`Who is the writer of the film Run?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "filmography" (
"year" real,
"film" text,
"director" text,
"producer" text,
"writer" text
);
###... |
SELECT MAX("goals") FROM "list_of_top_association_football_goal_sc" WHERE "matches"<208 AND "rank">12; |
## Task
Generate a SQL query to answer the following question:
`What is the most goals made for a person with less than 208 matches and ranked lower than 12?`
### 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" (
... |
SELECT "years" FROM "list_of_top_association_football_goal_sc" WHERE "matches">158 AND "rank">9 AND "goals"<84; |
## Task
Generate a SQL query to answer the following question:
`In what years was there a rank lower than 9, under 84 goals, and more than 158 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"... |
SELECT "hdtv" FROM "conto_tv_teleitalia" WHERE "television_service"='r-light'; |
## Task
Generate a SQL query to answer the following question:
`What is the HDTV status of the r-light television service?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conto_tv_teleitalia" (
"television_service" text,
"country" text,
"language... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.