output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "television_service" FROM "conto_tv_teleitalia" WHERE "content"='programmi per adulti 24h/24' AND "hdtv"='no'; |
## Task
Generate a SQL query to answer the following question:
`Which television service has programmi per adulti 24h/24 content and no HDTV?`
### 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... |
SELECT "television_service" FROM "conto_tv_teleitalia" WHERE "package_option"='qualsiasi'; |
## Task
Generate a SQL query to answer the following question:
`Which television service has a qualsiasi package/option?`
### 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" ... |
SELECT COUNT("wins") FROM "2009_ladder" WHERE "ballarat_fl"='darley' AND "against">1055; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of wins for Darley of Ballarat FL against larger than 1055?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_ladder" (
"ballarat_fl" text,
"wins" real,
"... |
SELECT MIN("draws") FROM "2009_ladder" WHERE "wins"<4 AND "losses"=14 AND "against">1836; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest draw that has less than 4 wins, 14 losses, and against more than 1836?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_ladder" (
"ballarat_fl" text,
"wins" real... |
SELECT AVG("byes") FROM "2009_ladder" WHERE "ballarat_fl"='sunbury' AND "against">1167; |
## Task
Generate a SQL query to answer the following question:
`What is the average Byes that has Ballarat FL of Sunbury against more than 1167?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_ladder" (
"ballarat_fl" text,
"wins" real,
"byes... |
SELECT AVG("draws") FROM "2009_ladder" WHERE "wins">1 AND "losses"=14 AND "against"<1836; |
## Task
Generate a SQL query to answer the following question:
`What is the average draws with more than 1 win, 14 losses, and against less than 1836?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_ladder" (
"ballarat_fl" text,
"wins" real,
... |
SELECT MIN("draws") FROM "2009_ladder" WHERE "ballarat_fl"='sunbury' AND "byes">2; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest draw from Ballarat FL of sunbury, and byes larger than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_ladder" (
"ballarat_fl" text,
"wins" real,
"byes" r... |
SELECT MAX("medium_gallup_march_2008") FROM "opinion_polls" WHERE "strategic_marketing_march_2008"<17 AND "medium_gallup_may_2008">10; |
## Task
Generate a SQL query to answer the following question:
`What is the highest medium Gallup March 2008 value for a Strategic Marking value under 17 and Medium Gallup May 2008 value over 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "opinion_... |
SELECT SUM("medium_gallup_march_2008") FROM "opinion_polls" WHERE "medium_gallup_may_2008"<10; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Medium Gallup, March 2008 values where the Medium Gallup, May 2008 values are under 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "opinion_polls" (
"party" text,
... |
SELECT "9_30" FROM "monday" WHERE "10_00"='dating in the dark'; |
## Task
Generate a SQL query to answer the following question:
`What show is on at 9:30 when Dating in the Dark is on at 10:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "monday" (
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_... |
SELECT "9_00" FROM "monday" WHERE "9_30"='law & order: criminal intent' AND "8_00"='the great american road trip'; |
## Task
Generate a SQL query to answer the following question:
`What show is on at 9:00 when Law & Order: Criminal Intent is on at 9:30 and The Great American Road Trip is on at 8:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "monday" (
"8_00" t... |
SELECT "9_00" FROM "monday" WHERE "8_30"='the bachelorette'; |
## Task
Generate a SQL query to answer the following question:
`What show is on at 9:00 when The Bachelorette is on at 8:30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "monday" (
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00"... |
SELECT "away" FROM "european_record" WHERE "club"='apoel'; |
## Task
Generate a SQL query to answer the following question:
`Which away has apoel as the club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_record" (
"season" text,
"competition" text,
"round" text,
"club" text,
"home" text,
... |
SELECT "away" FROM "european_record" WHERE "competition"='uefa cup' AND "round"='group f' AND "club"='espanyol'; |
## Task
Generate a SQL query to answer the following question:
`Which away has uefa cup as the competition, group f as the round, with espanyol as the club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_record" (
"season" text,
"competit... |
SELECT "location" FROM "accidents_and_incidents" WHERE "fatalities"='unknown' AND "aircraft"='ju-52'; |
## Task
Generate a SQL query to answer the following question:
`In what location were the fatalities unknown for the Ju-52 aircraft?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "accidents_and_incidents" (
"location" text,
"aircraft" text,
"tai... |
SELECT "location" FROM "accidents_and_incidents" WHERE "tail_number"='zs-spf'; |
## Task
Generate a SQL query to answer the following question:
`In what location was the tail number ZS-SPF?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "accidents_and_incidents" (
"location" text,
"aircraft" text,
"tail_number" text,
"aircr... |
SELECT "location" FROM "accidents_and_incidents" WHERE "aircraft"='ju-52'; |
## Task
Generate a SQL query to answer the following question:
`What was the location of the Ju-52 aircraft?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "accidents_and_incidents" (
"location" text,
"aircraft" text,
"tail_number" text,
"aircr... |
SELECT "fatalities" FROM "accidents_and_incidents" WHERE "tail_number"='unknown'; |
## Task
Generate a SQL query to answer the following question:
`How many fatalities occurred for an unknown tail number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "accidents_and_incidents" (
"location" text,
"aircraft" text,
"tail_number" te... |
SELECT "tail_number" FROM "accidents_and_incidents" WHERE "fatalities"='3/3'; |
## Task
Generate a SQL query to answer the following question:
`What was the tail number with 3/3 fatalities?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "accidents_and_incidents" (
"location" text,
"aircraft" text,
"tail_number" text,
"airc... |
SELECT "fatalities" FROM "accidents_and_incidents" WHERE "aircraft"='ju-52'; |
## Task
Generate a SQL query to answer the following question:
`How many fatalities occurred for the Ju-52 aircraft?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "accidents_and_incidents" (
"location" text,
"aircraft" text,
"tail_number" text,
... |
SELECT "score" FROM "international_goals" WHERE "goal"=6; |
## Task
Generate a SQL query to answer the following question:
`What was the score for a goal of 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
... |
SELECT "venue" FROM "international_goals" WHERE "date"='july 17, 1999'; |
## Task
Generate a SQL query to answer the following question:
`Where was the match held on July 17, 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" t... |
SELECT "democratic_ticket" FROM "1910_state_election_results" WHERE "office"='attorney general'; |
## Task
Generate a SQL query to answer the following question:
`Who was on the Democratic ticket for the Office of Attorney General?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1910_state_election_results" (
"office" text,
"democratic_ticket" t... |
SELECT "name" FROM "angiosperms" WHERE "novelty"='gen et sp nov'; |
## Task
Generate a SQL query to answer the following question:
`What name has gen et sp nov as the novelty?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "angiosperms" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text... |
SELECT "authors" FROM "angiosperms" WHERE "unit"='clarno formation' AND "name"='actinidia oregonensis'; |
## Task
Generate a SQL query to answer the following question:
`What authors have clarno formation as the unit, actinidia oregonensis as the name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "angiosperms" (
"name" text,
"novelty" text,
"status... |
SELECT "novelty" FROM "angiosperms" WHERE "location"='usa' AND "name"='coryloides'; |
## Task
Generate a SQL query to answer the following question:
`What novelty has USA as the location, and coryloides as the name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "angiosperms" (
"name" text,
"novelty" text,
"status" text,
"author... |
SELECT "status" FROM "angiosperms" WHERE "name"='paleopanax'; |
## Task
Generate a SQL query to answer the following question:
`What status has paleopanax as the name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "angiosperms" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
... |
SELECT "unit" FROM "angiosperms" WHERE "novelty"='gen et sp nov'; |
## Task
Generate a SQL query to answer the following question:
`What unit has gen et sp nov as the novelty?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "angiosperms" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text... |
SELECT "date" FROM "pga_tour_wins_20" WHERE "tournament"='memorial tournament' AND "runner_s_up"='payne stewart'; |
## Task
Generate a SQL query to answer the following question:
`Which date was the Memorial Tournament held on, when Payne Stewart was runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_20" (
"date" text,
"tournament" text,
... |
SELECT "event" FROM "grand_slam_record" WHERE "2011_12"='q'; |
## Task
Generate a SQL query to answer the following question:
`What grand slam event has a 2011-12 of q?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam_record" (
"event" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009... |
SELECT "2009_10" FROM "grand_slam_record" WHERE "2006_07"='n/a'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2009-10 result that has a 2006-07 result of n/a?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam_record" (
"event" text,
"2006_07" text,
"2007_08" text,
"200... |
SELECT "2007_08" FROM "grand_slam_record" WHERE "event"='colonial square'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2007-08 result when the event was Colonial Square?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam_record" (
"event" text,
"2006_07" text,
"2007_08" text,
"2... |
SELECT "2008_09" FROM "grand_slam_record" WHERE "2011_12"='qf'; |
## Task
Generate a SQL query to answer the following question:
`What is the result in 2008-09 that has a 2011-12 result of qf?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam_record" (
"event" text,
"2006_07" text,
"2007_08" text,
"2... |
SELECT "2006_07" FROM "grand_slam_record" WHERE "2010_11"='n/a' AND "event"='colonial square'; |
## Task
Generate a SQL query to answer the following question:
`What result in 2006-07 has a result in 2010-11 of n/a, and the event is Colonial Square?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam_record" (
"event" text,
"2006_07" te... |
SELECT "2008_09" FROM "grand_slam_record" WHERE "event"='masters'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2008-09 result has Masters as the event?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam_record" (
"event" text,
"2006_07" text,
"2007_08" text,
"2008_09" te... |
SELECT COUNT("year") FROM "women" WHERE "result"='nominated' AND "series"='room 222'; |
## Task
Generate a SQL query to answer the following question:
`What year gave a nominated result for the room 222 series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"year" real,
"actor" text,
"award" text,
"series" text,
"resul... |
SELECT "series" FROM "women" WHERE "year"<1993 AND "actor"='teresa graves'; |
## Task
Generate a SQL query to answer the following question:
`What was actor Teresa Graves's series before the year 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"year" real,
"actor" text,
"award" text,
"series" text,
"resu... |
SELECT "motor" FROM "trams" WHERE "quantity">8 AND "class"='bs 1915'; |
## Task
Generate a SQL query to answer the following question:
`Which motor's quantity was more than 8, and a class of bs 1915?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "trams" (
"class" text,
"quantity" real,
"manufacturer" text,
"motor"... |
SELECT "motor" FROM "trams" WHERE "class"='bs 1910'; |
## Task
Generate a SQL query to answer the following question:
`Which motor's class was bs 1910?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "trams" (
"class" text,
"quantity" real,
"manufacturer" text,
"motor" text,
"seats" real
);
### SQ... |
SELECT "quantity" FROM "trams" WHERE "seats"=16 AND "class"='kss 1913'; |
## Task
Generate a SQL query to answer the following question:
`What is the quantity when the seats number was 16 and the class was kss 1913?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "trams" (
"class" text,
"quantity" real,
"manufacturer" t... |
SELECT "root_of_all_evil" FROM "season_2_2008" WHERE "original_air_date"='september 3, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is the Root of All Evil with an Original air date that is september 3, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_2008" (
"advocate_num_1" text,
"advocate_num_... |
SELECT MAX("goals_conceded_gc") FROM "group_b" WHERE "draw_pe">2 AND "goals_scored_gf">19; |
## Task
Generate a SQL query to answer the following question:
`Goals Conceded (GC) that has a Draw (PE) larger than 2, and a Goals Scored (GF) larger than 19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b" (
"place_posici_n" real,
"team_... |
SELECT COUNT("university_of_dublin") FROM "composition_of_the_6th_seanad" WHERE "cultural_and_educational_panel"=5 AND "industrial_and_commercial_panel"<9; |
## Task
Generate a SQL query to answer the following question:
`What is the number for the University of Dublin with their Cultural and Educational Panel of 5, and an Industrial and Commercial Panel with less than 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
C... |
SELECT "rank" FROM "top_countries" WHERE "losing_semi_finalist">1 AND "winner"<5; |
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Losing Semi- finalist larger than 1, and a Winner smaller than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_countries" (
"rank" real,
"country" text,
"winn... |
SELECT AVG("rank") FROM "top_countries" WHERE "country"='costa rica' AND "losing_semi_finalist">1; |
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Country of costa rica, and a Losing Semi- finalist larger than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_countries" (
"rank" real,
"country" text,
"winn... |
SELECT MAX("rank") FROM "top_countries" WHERE "runner_up"<0; |
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Runner -up smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_countries" (
"rank" real,
"country" text,
"winner" real,
"runner_up" real,
"losing... |
SELECT COUNT("winner_s_share") FROM "winners" WHERE "year"='2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the Winner's share in 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tourna... |
SELECT "year" FROM "winners" WHERE "country"='united states' AND "dates"='aug 3–5'; |
## Task
Generate a SQL query to answer the following question:
`What Year was the United States the country for aug 3–5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"dates" text,
"champion" text,
"country" text,
"s... |
SELECT MAX("purse") FROM "winners" WHERE "dates"='aug 3–5'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Purse for aug 3–5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tou... |
SELECT "country" FROM "football_wrestling" WHERE "package_option"='qualsiasi tranne sky hd'; |
## Task
Generate a SQL query to answer the following question:
`Which country has a qualsiasi tranne sky hd package/option?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "football_wrestling" (
"television_service" text,
"country" text,
"language... |
SELECT "package_option" FROM "football_wrestling" WHERE "television_service"='sky wwe 24/7'; |
## Task
Generate a SQL query to answer the following question:
`Which package/option has sky wwe 24/7 television service?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "football_wrestling" (
"television_service" text,
"country" text,
"language" ... |
SELECT "package_option" FROM "football_wrestling" WHERE "content"='calcio'; |
## Task
Generate a SQL query to answer the following question:
`What is the package/option for the calcio content?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "football_wrestling" (
"television_service" text,
"country" text,
"language" text,
... |
SELECT "language" FROM "football_wrestling" WHERE "television_service"='cartello promozionale sky hd'; |
## Task
Generate a SQL query to answer the following question:
`What is the language of the television service cartello promozionale sky hd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "football_wrestling" (
"television_service" text,
"country" ... |
SELECT "bike" FROM "supersport_race_classification" WHERE "grid"<23 AND "time"='accident' AND "rider"='graeme gowland'; |
## Task
Generate a SQL query to answer the following question:
`What kind of bike had a grid less than 23, an accident under time, and Graeme Gowland as a rider?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "supersport_race_classification" (
"rider... |
SELECT "rider" FROM "supersport_race_classification" WHERE "laps">5 AND "grid">29 AND "bike"='honda cbr600rr' AND "time"='+1:27.385'; |
## Task
Generate a SQL query to answer the following question:
`Who was the rider with more than 5 laps on a grid bigger than 29 on a Honda CBR600RR and time at +1:27.385?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "supersport_race_classification" ... |
SELECT "rider" FROM "supersport_race_classification" WHERE "grid"=36; |
## Task
Generate a SQL query to answer the following question:
`Who was the rider with a grid of 36?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "supersport_race_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid"... |
SELECT "bike" FROM "supersport_race_classification" WHERE "grid"<35 AND "time"='37:58.607'; |
## Task
Generate a SQL query to answer the following question:
`Which bike had a grid less than 35 and time at 37:58.607?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "supersport_race_classification" (
"rider" text,
"bike" text,
"laps" real,
... |
SELECT "result" FROM "yugoslavia" WHERE "director"='veljko bulajić category:articles with hcards' AND "original_title"='sarajevski atentat'; |
## Task
Generate a SQL query to answer the following question:
`What is Result, when Director is Veljko Bulajić category:articles with hcards, and when Original title is Sarajevski Atentat?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "yugoslavia" (
... |
SELECT "result" FROM "yugoslavia" WHERE "director"='mirza idrizović category:articles with hcards'; |
## Task
Generate a SQL query to answer the following question:
`What is Result, when Director is Mirza Idrizović category:articles with hcards?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "yugoslavia" (
"year_ceremony" text,
"film_title_used_in_... |
SELECT "original_title" FROM "yugoslavia" WHERE "film_title_used_in_nomination"='train without a timetable'; |
## Task
Generate a SQL query to answer the following question:
`What is Original title, when Film title used in nomination is Train Without A Timetable?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "yugoslavia" (
"year_ceremony" text,
"film_title... |
SELECT "original_title" FROM "yugoslavia" WHERE "director"='veljko bulajić category:articles with hcards' AND "film_title_used_in_nomination"='train without a timetable'; |
## Task
Generate a SQL query to answer the following question:
`What is Original title, when Director is Veljko Bulajić category:articles with hcards, and when Film title used in nomination is Train Without A Timetable?`
### Database Schema
This query will run on a database whose schema is represented in this string:... |
SELECT "film_title_used_in_nomination" FROM "yugoslavia" WHERE "year_ceremony"='1968 (41st)'; |
## Task
Generate a SQL query to answer the following question:
`What is Film title used in nomination, when Year (Ceremony) is 1968 (41st)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "yugoslavia" (
"year_ceremony" text,
"film_title_used_in_nomi... |
SELECT "director" FROM "yugoslavia" WHERE "result"='nominee' AND "year_ceremony"='1969 (42nd)'; |
## Task
Generate a SQL query to answer the following question:
`What is Director, when Result is nominee, and when Year (Ceremony) is 1969 (42nd)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "yugoslavia" (
"year_ceremony" text,
"film_title_used_... |
SELECT "name" FROM "list_of_united_states_national_ice_hocke" WHERE "height_cm"=178 AND "weight_kg"<91; |
## Task
Generate a SQL query to answer the following question:
`Which name's height in centimeters is 178 when its weight in kilograms is less than 91?`
### 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" (
"posit... |
SELECT "high_points" FROM "game_log" WHERE "record"='31–48'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the player with the High points when there was a Record of 31–48?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" tex... |
SELECT "high_rebounds" FROM "game_log" WHERE "score"='l 108–114 (ot)'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the player with the High rebounds when there was a Score of l 108–114 (ot)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
... |
SELECT "lead" FROM "teams" WHERE "season"='1999–00'; |
## Task
Generate a SQL query to answer the following question:
`What is the Lead for the 1999–00 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"season" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
... |
SELECT "second" FROM "teams" WHERE "third"='don walchuk'; |
## Task
Generate a SQL query to answer the following question:
`What is the Second when the third is don walchuk?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"season" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);... |
SELECT "season" FROM "teams" WHERE "lead"='don bartlett' AND "third"='don walchuk' AND "second"='carter rycroft'; |
## Task
Generate a SQL query to answer the following question:
`What is the Season when the Lead was don bartlett, and the third was don walchuk, and a Second of carter rycroft?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"season" text,
... |
SELECT "skip" FROM "teams" WHERE "third"='john morris'; |
## Task
Generate a SQL query to answer the following question:
`What is the Skip when the Third was john morris?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"season" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
... |
SELECT "third" FROM "teams" WHERE "lead"='don bartlett' AND "second"='carter rycroft' AND "season"='2003–04'; |
## Task
Generate a SQL query to answer the following question:
`What is the Third when the Lead was don bartlett, the Second was carter rycroft, and a Season of 2003–04?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"season" text,
"skip"... |
SELECT "lead" FROM "teams" WHERE "second"='marc kennedy' AND "season"='2012–13'; |
## Task
Generate a SQL query to answer the following question:
`What is the Lead when the Second was marc kennedy, in the 2012–13 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"season" text,
"skip" text,
"third" text,
"second... |
SELECT "city" FROM "clubs_stadiums_and_locations" WHERE "capacity"='41,311'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the city with a capacity of 41,311?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clubs_stadiums_and_locations" (
"team" text,
"city" text,
"state" text,
"hom... |
SELECT "state" FROM "clubs_stadiums_and_locations" WHERE "city"='suwon'; |
## Task
Generate a SQL query to answer the following question:
`What is the State with Suwon as the city`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clubs_stadiums_and_locations" (
"team" text,
"city" text,
"state" text,
"home_venue" text,
... |
SELECT "state" FROM "clubs_stadiums_and_locations" WHERE "home_venue"='suwon sports complex'; |
## Task
Generate a SQL query to answer the following question:
`What is the State with a home venue of suwon sports complex?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clubs_stadiums_and_locations" (
"team" text,
"city" text,
"state" text,
... |
SELECT "team" FROM "clubs_stadiums_and_locations" WHERE "city"='chungju'; |
## Task
Generate a SQL query to answer the following question:
`What is the team name for Chungju?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clubs_stadiums_and_locations" (
"team" text,
"city" text,
"state" text,
"home_venue" text,
"cap... |
SELECT "team" FROM "clubs_stadiums_and_locations" WHERE "home_venue"='anyang stadium'; |
## Task
Generate a SQL query to answer the following question:
`What is the Team with a venue of Anyang Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clubs_stadiums_and_locations" (
"team" text,
"city" text,
"state" text,
"home_venue... |
SELECT "state" FROM "clubs_stadiums_and_locations" WHERE "team"='gwangju fc'; |
## Task
Generate a SQL query to answer the following question:
`What is the State with Gwangju Fc as the team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "clubs_stadiums_and_locations" (
"team" text,
"city" text,
"state" text,
"home_venue" ... |
SELECT "to_par" FROM "third_round_saturday" WHERE "player"='loren roberts'; |
## Task
Generate a SQL query to answer the following question:
`What is the To par, when the Player is Loren Roberts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_saturday" (
"place" text,
"player" text,
"country" text,
"score" t... |
SELECT "to_par" FROM "third_round_saturday" WHERE "score"='68-71-69=208'; |
## Task
Generate a SQL query to answer the following question:
`What is the To par, when the Score is 68-71-69=208?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_saturday" (
"place" text,
"player" text,
"country" text,
"score" tex... |
SELECT "place" FROM "third_round_saturday" WHERE "score"='68-70-71=209'; |
## Task
Generate a SQL query to answer the following question:
`What is the Place, when the Score is 68-70-71=209?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_saturday" (
"place" text,
"player" text,
"country" text,
"score" text... |
SELECT "place" FROM "third_round_saturday" WHERE "player"='chris dimarco'; |
## Task
Generate a SQL query to answer the following question:
`What is the Place, when the Player is Chris Dimarco?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_saturday" (
"place" text,
"player" text,
"country" text,
"score" te... |
SELECT "score" FROM "third_round_saturday" WHERE "country"='united states' AND "place"='t3' AND "player"='chris riley'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score, when the Country is United States, when the Place is T3, and when the Player is Chris Riley?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_saturday" (
"p... |
SELECT "score" FROM "singles_10_2_titles_8_runners_up" WHERE "opponent"='mardy fish'; |
## Task
Generate a SQL query to answer the following question:
`What is the score where the opponent was Mardy Fish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_10_2_titles_8_runners_up" (
"outcome" text,
"date" text,
"surface" text,
... |
SELECT "surface" FROM "doubles_champion_9" WHERE "score"='6–4, 6–3' AND "date"='4 may 1992'; |
## Task
Generate a SQL query to answer the following question:
`What surface was played on with a score of 6–4, 6–3 and on 4 May 1992?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_champion_9" (
"date" text,
"tournament" text,
"surface"... |
SELECT "tournament" FROM "doubles_champion_9" WHERE "date"='13 november 2000'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the tournament played 13 November 2000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_champion_9" (
"date" text,
"tournament" text,
"surface" text,
"p... |
SELECT "tournament" FROM "doubles_champion_9" WHERE "date"='12 february 2001'; |
## Task
Generate a SQL query to answer the following question:
`Which tournament was played on 12 February 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_champion_9" (
"date" text,
"tournament" text,
"surface" text,
"partnering" ... |
SELECT AVG("round_num") FROM "nfl_draft" WHERE "position"='wide receiver' AND "college"='clark university' AND "pick_num">166; |
## Task
Generate a SQL query to answer the following question:
`What is the average round number with wide receiver as position and Clark University as the college and the pick number is bigger than 166?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "... |
SELECT "team" FROM "british_universities_and_colleges_sport" WHERE "year_entered_league"<2009 AND "location"='bath'; |
## Task
Generate a SQL query to answer the following question:
`Which team had a year entering the league under 2009, located in Bath?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "british_universities_and_colleges_sport" (
"team" text,
"universi... |
SELECT "year_entered_league" FROM "british_universities_and_colleges_sport" WHERE "university"='university of essex'; |
## Task
Generate a SQL query to answer the following question:
`What is the year of entry for the University of Essex?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "british_universities_and_colleges_sport" (
"team" text,
"university" text,
"loc... |
SELECT "2013_14_division" FROM "british_universities_and_colleges_sport" WHERE "team"='wolverhampton wildcats'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2013-2014 division for the Wolverhampton Wildcats?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "british_universities_and_colleges_sport" (
"team" text,
"university" text... |
SELECT "university" FROM "british_universities_and_colleges_sport" WHERE "2013_14_division"='western' AND "location"='bath' AND "team"='bath spa bulldogs'; |
## Task
Generate a SQL query to answer the following question:
`Which university was in the Western division in 2013-14, located in Bath, and named the Bath Spa Bulldogs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "british_universities_and_colleges... |
SELECT MIN("draws") FROM "2008_ladder" WHERE "against"=1261; |
## Task
Generate a SQL query to answer the following question:
`What is the least amount of draws with an against of 1261?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_ladder" (
"ballarat_fl" text,
"wins" real,
"byes" real,
"losses" rea... |
SELECT "label" FROM "cover_version" WHERE "album"='cover version v'; |
## Task
Generate a SQL query to answer the following question:
`What label shows an Album of cover version v?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cover_version" (
"album" text,
"release_date" text,
"label" text,
"format" text,
"co... |
SELECT "label" FROM "cover_version" WHERE "covered_song"='\" sign o'' the times \" by prince .'; |
## Task
Generate a SQL query to answer the following question:
`What is the Label for the Covered Song named " sign o' the times " by prince .?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cover_version" (
"album" text,
"release_date" text,
"l... |
SELECT "label" FROM "cover_version" WHERE "album"='cover version vi'; |
## Task
Generate a SQL query to answer the following question:
`What is the Label when the album shows cover version vi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cover_version" (
"album" text,
"release_date" text,
"label" text,
"format" ... |
SELECT "release_date" FROM "cover_version" WHERE "covered_song"='\" sign o'' the times \" by prince .'; |
## Task
Generate a SQL query to answer the following question:
`What is the Release date for the Covered Song named " sign o' the times " by prince .?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cover_version" (
"album" text,
"release_date" tex... |
SELECT "original_song" FROM "cover_version" WHERE "covered_song"='\" sign o'' the times \" by prince .'; |
## Task
Generate a SQL query to answer the following question:
`What shows as the Original Song when the Covered Song was " sign o' the times " by prince .?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cover_version" (
"album" text,
"release_dat... |
SELECT "covered_song" FROM "cover_version" WHERE "album"='cover version iii'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the Covered Song when the Album shows cover version iii?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cover_version" (
"album" text,
"release_date" text,
"labe... |
SELECT SUM("week") FROM "schedule" WHERE "attendance"='67,968'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Week when there were 67,968 people in attendance?`
### 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"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.