output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("game") FROM "playoffs" WHERE "team"='at phoenix' AND "score"='107-119'; |
## Task
Generate a SQL query to answer the following question:
`Which Game has a Team of at phoenix, and a Score of 107-119?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"loc... |
SELECT "location_attendance" FROM "playoffs" WHERE "game">5; |
## Task
Generate a SQL query to answer the following question:
`Which Location Attendance has a Game larger than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_att... |
SELECT "team" FROM "playoffs" WHERE "score"='89-123'; |
## Task
Generate a SQL query to answer the following question:
`Which Team has a Score of 89-123?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"... |
SELECT AVG("game") FROM "playoffs" WHERE "date"='june 14'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Game with a Date that is june 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_a... |
SELECT "record" FROM "playoffs" WHERE "team"='detroit' AND "date"='june 10'; |
## Task
Generate a SQL query to answer the following question:
`What is the Record with a Team that is detroit and a Date that is june 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score... |
SELECT "location_attendance" FROM "playoffs" WHERE "record"='1-4'; |
## Task
Generate a SQL query to answer the following question:
`What is the Location Attendance with a Record that is 1-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"locat... |
SELECT "gdp_ppp_m_usd" FROM "demographics" WHERE "population_density_per_km"='254.7'; |
## Task
Generate a SQL query to answer the following question:
`How much is the GDP for a population density of 254.7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demographics" (
"country" text,
"area_km" text,
"population_2011_est" text,
"... |
SELECT "country" FROM "demographics" WHERE "population_density_per_km"='50.3'; |
## Task
Generate a SQL query to answer the following question:
`Which country has a population density of 50.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demographics" (
"country" text,
"area_km" text,
"population_2011_est" text,
"populat... |
SELECT "gdp_ppp_m_usd" FROM "demographics" WHERE "area_km"='61,395'; |
## Task
Generate a SQL query to answer the following question:
`How much is the GDP for an area of 61,395?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demographics" (
"country" text,
"area_km" text,
"population_2011_est" text,
"population_d... |
SELECT "population_density_per_km" FROM "demographics" WHERE "gdp_ppp_m_usd"='$188,112'; |
## Task
Generate a SQL query to answer the following question:
`How much is the population density with a GDP at $188,112?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demographics" (
"country" text,
"area_km" text,
"population_2011_est" text,... |
SELECT "gdp_ppp_m_usd" FROM "demographics" WHERE "area_km"='116'; |
## Task
Generate a SQL query to answer the following question:
`How much is the GDP for an area of 116?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demographics" (
"country" text,
"area_km" text,
"population_2011_est" text,
"population_dens... |
SELECT "country" FROM "demographics" WHERE "population_2011_est"='3,221,216'; |
## Task
Generate a SQL query to answer the following question:
`Which country has a population of 3,221,216?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demographics" (
"country" text,
"area_km" text,
"population_2011_est" text,
"population... |
SELECT COUNT("wins") FROM "summary" WHERE "top_5"<2 AND "events"=19; |
## Task
Generate a SQL query to answer the following question:
`What was Miller Barber wins with Top-5 less than 2 and 19 Events?`
### 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" ... |
SELECT AVG("wins") FROM "summary" WHERE "tournament"='pga championship' AND "top_5"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of Wins in a PGA Championship with a Top-5 less than 2?`
### 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" ... |
SELECT MAX("top_5") FROM "summary" WHERE "events"<4; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Top-5 ranking with Events less than 4?`
### 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" real,
... |
SELECT "week" FROM "schedule" WHERE "attendance"='65,272'; |
## Task
Generate a SQL query to answer the following question:
`Which week's game was attended by 65,272 people?`
### 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... |
SELECT "attendance" FROM "schedule" WHERE "week"=13; |
## Task
Generate a SQL query to answer the following question:
`How many people attended the game in week 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" text,
"result" text,
"attendance" t... |
SELECT MIN("week") FROM "schedule" WHERE "attendance"='65,904'; |
## Task
Generate a SQL query to answer the following question:
`During which week was the earliest game with an attendance of 65,904 people?`
### 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 MAX("height") FROM "team_roster" WHERE "position"='outside hitter'; |
## Task
Generate a SQL query to answer the following question:
`What height is the tallest for an outside hitter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_roster" (
"nationality" text,
"player" text,
"birth_date" text,
"height" real... |
SELECT MAX("silver") FROM "medal_table" WHERE "total"=27; |
## Task
Generate a SQL query to answer the following question:
`What is the highest silver rank with a total of 27?`
### 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 COUNT("silver") FROM "medal_table" WHERE "bronze"<1 AND "total"<2 AND "nation"='bulgaria'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Silver when Bronze was smaller than 1 with a total smaller than 2 in Bulgaria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"... |
SELECT "temperature_classification" FROM "operation" WHERE "glass_bulb_color"='purple'; |
## Task
Generate a SQL query to answer the following question:
`What is the temperature classification of a purple colored glass bulb?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "operation" (
"maximum_ceiling_temperature" text,
"temperature_rat... |
SELECT "color_code_with_fusible_link" FROM "operation" WHERE "temperature_classification"='ordinary'; |
## Task
Generate a SQL query to answer the following question:
`What is the color code with a temperature classification of ordinary?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "operation" (
"maximum_ceiling_temperature" text,
"temperature_rati... |
SELECT "temperature_rating" FROM "operation" WHERE "temperature_classification"='intermediate'; |
## Task
Generate a SQL query to answer the following question:
`What is the temperature rating of the intermediate temperature classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "operation" (
"maximum_ceiling_temperature" text,
"tempera... |
SELECT AVG("goals") FROM "club_career_stats" WHERE "team"='kairat' AND "season"='2002' AND "apps">29; |
## Task
Generate a SQL query to answer the following question:
`What is the average Goals for team Kairat, in the 2002 season with more than 29 apps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_career_stats" (
"season" text,
"team" text,
... |
SELECT "country" FROM "club_career_stats" WHERE "season"='2006-07'; |
## Task
Generate a SQL query to answer the following question:
`What is the Country for the 2006-07 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_career_stats" (
"season" text,
"team" text,
"country" text,
"league" text,
"level... |
SELECT AVG("apps") FROM "club_career_stats" WHERE "team"='kairat' AND "level">1; |
## Task
Generate a SQL query to answer the following question:
`What is the average Apps for the team Kairat with level larger than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_career_stats" (
"season" text,
"team" text,
"country" text... |
SELECT "laps" FROM "superbike_race_2_classification" WHERE "grid">11 AND "bike"='honda cbr1000rr' AND "time"='+42.633'; |
## Task
Generate a SQL query to answer the following question:
`How many laps did the rider with a grid larger than 11, a Honda cbr1000rr bike, and a time of +42.633?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_2_classification" (
... |
SELECT "rider" FROM "superbike_race_2_classification" WHERE "laps"=18 AND "grid"=25; |
## Task
Generate a SQL query to answer the following question:
`Who was teh rider with 18 laps and a grid of 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" t... |
SELECT "rider" FROM "superbike_race_2_classification" WHERE "time"='accident' AND "bike"='kawasaki zx-10r'; |
## Task
Generate a SQL query to answer the following question:
`Who was the rider who had an accident time and a kawasaki zx-10r bike?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"... |
SELECT "time" FROM "superbike_race_2_classification" WHERE "laps"<18 AND "grid">8 AND "rider"='loic napoleone'; |
## Task
Generate a SQL query to answer the following question:
`What is the time of rider Loic Napoleone, who had less than 18 laps and a grid greater than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_2_classification" (
"rider" ... |
SELECT "laps" FROM "superbike_race_2_classification" WHERE "grid">14 AND "time"='+33.150'; |
## Task
Generate a SQL query to answer the following question:
`How many laps did the rider with a grid larger than 14 and a time of +33.150 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bik... |
SELECT "away" FROM "round_one" WHERE "home"='guelph gargoyles'; |
## Task
Generate a SQL query to answer the following question:
`What is Away, when Home is Guelph Gargoyles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"gro... |
SELECT "home" FROM "round_one" WHERE "ground"='humber college north' AND "time"='15:00'; |
## Task
Generate a SQL query to answer the following question:
`What is Home, when Ground is Humber College North, and when Time is 15:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"date" text,
"time" text,
"home" text,
"away... |
SELECT "date" FROM "round_one" WHERE "away"='high park demons'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Away is High Park Demons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"gro... |
SELECT "date" FROM "round_one" WHERE "away"='high park demons'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Away is High Park Demons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"gro... |
SELECT "time" FROM "round_one" WHERE "away"='central blues'; |
## Task
Generate a SQL query to answer the following question:
`What is Time, when Away is Central Blues?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"ground... |
SELECT "cover" FROM "collections" WHERE "published"='may 27, 2009 (hc) may 20, 2009 (tpb)'; |
## Task
Generate a SQL query to answer the following question:
`What cover has a published date of May 27, 2009 (hc) May 20, 2009 (tpb)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "collections" (
"volume" text,
"series" text,
"title" text,
... |
SELECT "volume" FROM "collections" WHERE "isbn"='978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of the volume that has an ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "collections" (
"volume" text,
"seri... |
SELECT "series" FROM "collections" WHERE "isbn"='978-1-59582-523-0 (tpb)'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the series with an ISBN of 978-1-59582-523-0 (tpb)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "collections" (
"volume" text,
"series" text,
"title" text,
"... |
SELECT "volume" FROM "collections" WHERE "isbn"='978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)'; |
## Task
Generate a SQL query to answer the following question:
`What volume number has the ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "collections" (
"volume" text,
"series" text,
"title... |
SELECT "isbn" FROM "collections" WHERE "series"='conan the barbarian' AND "title"='queen of the black coast'; |
## Task
Generate a SQL query to answer the following question:
`What is the ISBN of the Conan the Barbarian series that has the title of Queen of the Black Coast?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "collections" (
"volume" text,
"series... |
SELECT "cover" FROM "collections" WHERE "title"='throne of aquilonia'; |
## Task
Generate a SQL query to answer the following question:
`What cover has Throne of Aquilonia as the title?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "collections" (
"volume" text,
"series" text,
"title" text,
"cover" text,
"publish... |
SELECT COUNT("games") FROM "assists" WHERE "name"='pablo prigioni' AND "rank"<4; |
## Task
Generate a SQL query to answer the following question:
`With a Rank of less than 4, what is Pablo Prigioni's total number of Games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assists" (
"rank" real,
"name" text,
"team" text,
"games... |
SELECT SUM("assists") FROM "assists" WHERE "games">25; |
## Task
Generate a SQL query to answer the following question:
`How many Assists for the Player with more than 25 Games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assists" (
"rank" real,
"name" text,
"team" text,
"games" real,
"assists"... |
SELECT COUNT("rank") FROM "assists" WHERE "games"=25 AND "team"='maccabi tel aviv'; |
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the Maccabi Tel Aviv Player with 25 Games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assists" (
"rank" real,
"name" text,
"team" text,
"games" real,
"as... |
SELECT AVG("assists") FROM "assists" WHERE "rank">3 AND "games"<25; |
## Task
Generate a SQL query to answer the following question:
`How many Assists for the Player with a Rank greater than 3 in less than 25 Games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assists" (
"rank" real,
"name" text,
"team" text,
... |
SELECT MIN("games") FROM "assists" WHERE "name"='terrell mcintyre' AND "rank">2; |
## Task
Generate a SQL query to answer the following question:
`How many Games for Rank 2 Terrell McIntyre?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assists" (
"rank" real,
"name" text,
"team" text,
"games" real,
"assists" real
);
### ... |
SELECT "venue" FROM "achievements" WHERE "year">2006 AND "position"='7th' AND "notes"='heptathlon'; |
## Task
Generate a SQL query to answer the following question:
`What is the Venue of the Heptathlon after 2006 where Tatyana Chernova comes in Position 7th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" ... |
SELECT SUM("year") FROM "achievements" WHERE "venue"='götzis, austria' AND "position"='1st'; |
## Task
Generate a SQL query to answer the following question:
`In what Year did Chernova come in 1st in Götzis, Austria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" ... |
SELECT "cover_model" FROM "2003" WHERE "date"='8-03'; |
## Task
Generate a SQL query to answer the following question:
`Which Cover Model was featured on 8-03?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
... |
SELECT "centerfold_model" FROM "2003" WHERE "interview_subject"='o.j. simpson'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Centerfold model when O.J. Simpson was the Interview Subject?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003" (
"date" text,
"cover_model" text,
"centerfold_model" ... |
SELECT "cover_model" FROM "2003" WHERE "centerfold_model"='marketa janska'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Cover model when the Centerfold Model was Marketa Janska?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003" (
"date" text,
"cover_model" text,
"centerfold_model" text... |
SELECT "cover_model" FROM "2003" WHERE "date"='11-03'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Cover model on 11-03?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_... |
SELECT "centerfold_model" FROM "2003" WHERE "date"='9-03'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Centerfold Model on 9-03?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
... |
SELECT "interview_subject" FROM "2003" WHERE "20_questions"='william h. macy'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Interview Subject when the 20 Questions was William H. Macy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003" (
"date" text,
"cover_model" text,
"centerfold_model" t... |
SELECT SUM("round") FROM "draft_class" WHERE "selection"=165; |
## Task
Generate a SQL query to answer the following question:
`How many rounds had a selection of 165?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_class" (
"round" real,
"selection" real,
"player" text,
"position" text,
"college" t... |
SELECT MAX("weight_kg") FROM "list_of_united_states_national_ice_hocke" WHERE "position"='d' AND "1990_1991_team"='chicago blackhawks'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Weight for the position of D, and the 1990–1991 Team was the chicago blackhawks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hock... |
SELECT AVG("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "position"='d' AND "birthplace"='new hope, minnesota'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Height for the Position of d, with a Birthplace of new hope, minnesota?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"p... |
SELECT "1990_1991_team" FROM "list_of_united_states_national_ice_hocke" WHERE "birthplace"='new york'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1990–1991 Team when the Birthplace shows as new york?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_n... |
SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "birthplace"='toledo, ohio'; |
## Task
Generate a SQL query to answer the following question:
`What is the Position when the person's birthplace was toledo, ohio?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey... |
SELECT "1990_1991_team" FROM "list_of_united_states_national_ice_hocke" WHERE "name"='joel otto'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1990–1991 Team that had Joel Otto?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" ... |
SELECT "t_c" FROM "gp2_series" WHERE "year">2007 AND "d_c"='21st'; |
## Task
Generate a SQL query to answer the following question:
`Which T.C. has a Year larger than 2007, and a D.C. of 21st?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gp2_series" (
"year" real,
"drivers" text,
"races" real,
"wins" real,
... |
SELECT "d_c" FROM "gp2_series" WHERE "races"<20 AND "points">0 AND "drivers"='christian vietoris' AND "wins"=1; |
## Task
Generate a SQL query to answer the following question:
`What kind of D.C. has Races smaller than 20, and Points larger than 0, and Drivers of christian vietoris, and Wins of 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gp2_series" (
"ye... |
SELECT MIN("races") FROM "gp2_series" WHERE "t_c"='3rd' AND "d_c"='7th'; |
## Task
Generate a SQL query to answer the following question:
`Which Races has a T.C. of 3rd, and a D.C. of 7th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gp2_series" (
"year" real,
"drivers" text,
"races" real,
"wins" real,
"poles" re... |
SELECT "2007" FROM "singles_performance_timeline" WHERE "2008"='grand slam tournaments'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2007 of the Grand Slam Tournaments in 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
... |
SELECT "tournament" FROM "singles_performance_timeline" WHERE "2011"='3r' AND "2010"='a'; |
## Task
Generate a SQL query to answer the following question:
`What is the Tournament with a 3r 2011 and A 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009... |
SELECT "2008" FROM "singles_performance_timeline" WHERE "2011"='2r' AND "2010"='a'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2008 of the 2r 2011 and A 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
"2009" text... |
SELECT "2010" FROM "singles_performance_timeline" WHERE "2011"='grand slam tournaments'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2010 of the Grand Slam Tournaments in 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2007" text,
"2008" text,
... |
SELECT COUNT("runners_up") FROM "performance_by_club" WHERE "winning_years"='2010'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of runners-up for a club with winning years of 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_by_club" (
"club" text,
"winners" real,
"run... |
SELECT "runners_up" FROM "performance_by_club" WHERE "club"='fc viktoria plzeň'; |
## Task
Generate a SQL query to answer the following question:
`Who were the runners-up for the FC Viktoria Plzeň club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_by_club" (
"club" text,
"winners" real,
"runners_up" real,
"winn... |
SELECT "con_gress" FROM "list" WHERE "date"='2010'; |
## Task
Generate a SQL query to answer the following question:
`Which congress was held in 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list" (
"district" text,
"con_gress" text,
"date" text,
"predecessor" text,
"winner" text
);
### ... |
SELECT "casting_at_c" FROM "alloys_for_mechanical_composition" WHERE "hardness"='22'; |
## Task
Generate a SQL query to answer the following question:
`What is the casting temperature for a hardness of 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "alloys_for_mechanical_composition" (
"usage" text,
"sn_sb_pct" text,
"liquid_at_... |
SELECT "hardness" FROM "alloys_for_mechanical_composition" WHERE "liquid_at_c"='243'; |
## Task
Generate a SQL query to answer the following question:
`What is the hardness for the alloy that is liquid at 243 degrees C?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "alloys_for_mechanical_composition" (
"usage" text,
"sn_sb_pct" text,... |
SELECT "sn_sb_pct" FROM "alloys_for_mechanical_composition" WHERE "liquid_at_c"='258'; |
## Task
Generate a SQL query to answer the following question:
`What is the Sn/Sb percentage that is liquid at 258 degrees C?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "alloys_for_mechanical_composition" (
"usage" text,
"sn_sb_pct" text,
"li... |
SELECT "remelting_at_c" FROM "alloys_for_mechanical_composition" WHERE "sn_sb_pct"='9.5/15'; |
## Task
Generate a SQL query to answer the following question:
`What is the remelting temperature for the alloy that has a Sn/Sb ratio of 9.5/15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "alloys_for_mechanical_composition" (
"usage" text,
"sn... |
SELECT "casting_at_c" FROM "alloys_for_mechanical_composition" WHERE "hardness"='21'; |
## Task
Generate a SQL query to answer the following question:
`What is the casting temperature for the alloy with hardness 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "alloys_for_mechanical_composition" (
"usage" text,
"sn_sb_pct" text,
"... |
SELECT MAX("laps") FROM "race" WHERE "grid"=16; |
## Task
Generate a SQL query to answer the following question:
`What's the most laps when grid is 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
... |
SELECT COUNT("laps") FROM "race" WHERE "grid"=13; |
## Task
Generate a SQL query to answer the following question:
`How many laps were there for a grid of 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" rea... |
SELECT "giants_points" FROM "schedule" WHERE "attendance"='78,673'; |
## Task
Generate a SQL query to answer the following question:
`How many points did the Giants get when attendance was 78,673?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,... |
SELECT "result" FROM "schedule" WHERE "opponents_points"='15'; |
## Task
Generate a SQL query to answer the following question:
`What was the result when the opponents got 15 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"giant... |
SELECT "tv_time" FROM "schedule" WHERE "giants_points"='14'; |
## Task
Generate a SQL query to answer the following question:
`What was the TV time for the game where the Giants had 14 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" te... |
SELECT COUNT("week") FROM "schedule" WHERE "attendance"='69,149'; |
## Task
Generate a SQL query to answer the following question:
`How many weeks had an attendance at 69,149?`
### 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" tex... |
SELECT "date" FROM "schedule" WHERE "week"=6; |
## Task
Generate a SQL query to answer the following question:
`On what date did week 6 occur?`
### 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
... |
SELECT "opponent" FROM "schedule" WHERE "date"='december 18, 2005'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on December 18, 2005?`
### 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 "tennent_s_scottish_cup" WHERE "attendance">'14,176' AND "opponent"='queen of the south'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the game against the Queen of the South attended by more than 14,176?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tennent_s_scottish_cup" (
"date" text,
"oppon... |
SELECT "result_score" FROM "regular_season" WHERE "match_report"='recap' AND "week"=14; |
## Task
Generate a SQL query to answer the following question:
`What is the result/score for the match report recap on week 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time" ... |
SELECT SUM("week") FROM "regular_season" WHERE "result_score"='w 51-29'; |
## Task
Generate a SQL query to answer the following question:
`How many weeks have w 51-29 as the result/score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time" text,
"game_s... |
SELECT "result_score" FROM "regular_season" WHERE "record"='6-5'; |
## Task
Generate a SQL query to answer the following question:
`What is the result/score that has 6-5 as the record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time" text,
"ga... |
SELECT "match_report" FROM "regular_season" WHERE "result_score"='l 7-30'; |
## Task
Generate a SQL query to answer the following question:
`Which match report has l 7-30 as the result/score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time" text,
"game... |
SELECT "game_site" FROM "regular_season" WHERE "match_report"='recap' AND "week"=7; |
## Task
Generate a SQL query to answer the following question:
`Which game site has a recap as the match report for week 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"time" text... |
SELECT "shooter" FROM "steel_challenge_men_s_world_records" WHERE "time">8.97 AND "year"<2013; |
## Task
Generate a SQL query to answer the following question:
`Which shooter's time is more than 8.97 and has a year prior to 2013?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "steel_challenge_men_s_world_records" (
"stage" text,
"shooter" text... |
SELECT "country" FROM "races" WHERE "date"='april 27'; |
## Task
Generate a SQL query to answer the following question:
`What country was the race in on April 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"date" text,
"race" text,
"country" text,
"winner" text,
"team" text,
"world_... |
SELECT "leader_s_team" FROM "races" WHERE "country"='france' AND "date"='october 5'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the leader's team when the race was in France on October 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"date" text,
"race" text,
"country" text,
"... |
SELECT "team" FROM "races" WHERE "date"='august 17'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the team leading on August 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"date" text,
"race" text,
"country" text,
"winner" text,
"team" text,
... |
SELECT "leader_s_team" FROM "races" WHERE "race"='ronde van vlaanderen'; |
## Task
Generate a SQL query to answer the following question:
`In the Ronde Van Vlaanderen race what is the leader's team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"date" text,
"race" text,
"country" text,
"winner" text,
"tea... |
SELECT "race" FROM "races" WHERE "leader_s_team"='quick step-davitamon' AND "team"='team telekom'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the race when Quick Step-Davitamon is the leader's team and the team of team telekom?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"date" text,
"race" t... |
SELECT MAX("ranking_round_rank") FROM "ranking_round" WHERE "nation"='russia' AND "final_rank">11; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Ranking Round Rank for Russia with a Final Rank over 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ranking_round" (
"final_rank" real,
"ranking_round_rank" re... |
SELECT "music" FROM "po_prostu_taniec_just_dance" WHERE "points_jury"='18 (5,5,4,4)'; |
## Task
Generate a SQL query to answer the following question:
`Which Music has a Points Jury of 18 (5,5,4,4)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "po_prostu_taniec_just_dance" (
"team" text,
"dance" text,
"music" text,
"points_jury"... |
SELECT "music" FROM "po_prostu_taniec_just_dance" WHERE "dance"='jive'; |
## Task
Generate a SQL query to answer the following question:
`What is the Music if the Dance is Jive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "po_prostu_taniec_just_dance" (
"team" text,
"dance" text,
"music" text,
"points_jury" text,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.