question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What's the sum of the population for the place simplified 上杭县 with an area smaller than 2,879? | CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"hakka" text,
"area" real,
"population" real,
"density" real
); | SELECT SUM("population") FROM "administration" WHERE "simplified"='上杭县' AND "area"<'2,879'; | 2-1204998-2 |
What's the total number of density for the place with a population over 393,390? | CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"hakka" text,
"area" real,
"population" real,
"density" real
); | SELECT COUNT("density") FROM "administration" WHERE "population">'393,390'; | 2-1204998-2 |
What's the average area for the xinluo district? | CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"hakka" text,
"area" real,
"population" real,
"density" real
); | SELECT AVG("area") FROM "administration" WHERE "english_name"='xinluo district'; | 2-1204998-2 |
What was the attendance on July 30? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT AVG("attendance") FROM "game_log" WHERE "date"='july 30'; | 2-11513647-5 |
How many Goals have a Result of 0 – 4? | CREATE TABLE "international_career" (
"date" text,
"venue" text,
"result" text,
"goals" real,
"competition" text
); | SELECT AVG("goals") FROM "international_career" WHERE "result"='0 – 4'; | 2-11409274-2 |
How many goals have a Result of 12 – 0? | CREATE TABLE "international_career" (
"date" text,
"venue" text,
"result" text,
"goals" real,
"competition" text
); | SELECT "goals" FROM "international_career" WHERE "result"='12 – 0'; | 2-11409274-2 |
Which Result has a Date of 9 october 2009? | CREATE TABLE "international_career" (
"date" text,
"venue" text,
"result" text,
"goals" real,
"competition" text
); | SELECT "result" FROM "international_career" WHERE "date"='9 october 2009'; | 2-11409274-2 |
Which Goals have a Date of 7 february 2010? | CREATE TABLE "international_career" (
"date" text,
"venue" text,
"result" text,
"goals" real,
"competition" text
); | SELECT MAX("goals") FROM "international_career" WHERE "date"='7 february 2010'; | 2-11409274-2 |
On what Year did Entrant Leyton House have a Chassis type of Leyton House CG911? | CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
); | SELECT "year" FROM "complete_formula_one_results" WHERE "entrant"='leyton house' AND "chassis"='leyton house cg911'; | 2-1181411-2 |
What was the first year to have a Chassis of Jordan 193? | CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
); | SELECT MIN("year") FROM "complete_formula_one_results" WHERE "chassis"='jordan 193'; | 2-1181411-2 |
Which School's Mascot is Raiders? | CREATE TABLE "current_members" (
"school" text,
"mascot" text,
"location" text,
"league" text,
"enrollment" real
); | SELECT "school" FROM "current_members" WHERE "mascot"='raiders'; | 2-11044765-1 |
What is North Valleys School Mascot? | CREATE TABLE "current_members" (
"school" text,
"mascot" text,
"location" text,
"league" text,
"enrollment" real
); | SELECT "mascot" FROM "current_members" WHERE "school"='north valleys'; | 2-11044765-1 |
What is the Enrollment where Cougars is a Mascot? | CREATE TABLE "current_members" (
"school" text,
"mascot" text,
"location" text,
"league" text,
"enrollment" real
); | SELECT SUM("enrollment") FROM "current_members" WHERE "mascot"='cougars'; | 2-11044765-1 |
In what League is the Reed School? | CREATE TABLE "current_members" (
"school" text,
"mascot" text,
"location" text,
"league" text,
"enrollment" real
); | SELECT "league" FROM "current_members" WHERE "school"='reed'; | 2-11044765-1 |
What Mascot has an Enrollment greater than 2,464? | CREATE TABLE "current_members" (
"school" text,
"mascot" text,
"location" text,
"league" text,
"enrollment" real
); | SELECT "mascot" FROM "current_members" WHERE "enrollment">'2,464'; | 2-11044765-1 |
Who was the runner-up in the tournament in which Omar Camporese held third place? | CREATE TABLE "2004" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
); | SELECT "runner_up" FROM "2004" WHERE "third_place"='omar camporese'; | 2-11346282-6 |
Who was the runner-up in the tournament in London? | CREATE TABLE "2004" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
); | SELECT "runner_up" FROM "2004" WHERE "tournament"='london'; | 2-11346282-6 |
What was the score in the tournament in which Michael Stich took third place? | CREATE TABLE "2004" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
); | SELECT "score" FROM "2004" WHERE "third_place"='michael stich'; | 2-11346282-6 |
Who holds third place in the tournament with a score of 2–6, 7–6(3), [10–5]? | CREATE TABLE "2004" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
); | SELECT "third_place" FROM "2004" WHERE "score"='2–6, 7–6(3), [10–5]'; | 2-11346282-6 |
what is the least number of goals for when the goals against is 70 and the ties less than 0? | CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
); | SELECT MIN("goals_for") FROM "final_standing" WHERE "goals_against"=70 AND "ties"<0; | 2-12091980-1 |
what is the average losses when the wins is 9 and ties more than 0? | CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
); | SELECT AVG("losses") FROM "final_standing" WHERE "wins"=9 AND "ties">0; | 2-12091980-1 |
what is the lowest number of ties when the losses is 7 and games played is less than 10? | CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
); | SELECT MIN("ties") FROM "final_standing" WHERE "losses"=7 AND "games_played"<10; | 2-12091980-1 |
what is the sum of games played when the losses is less than 7, the wins is 6 and the goals for is more than 76? | CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
); | SELECT SUM("games_played") FROM "final_standing" WHERE "losses"<7 AND "wins"=6 AND "goals_for">76; | 2-12091980-1 |
what is the total number of games played when the goals for is less than 30? | CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
); | SELECT COUNT("games_played") FROM "final_standing" WHERE "goals_for"<30; | 2-12091980-1 |
what is the sum of wins for the ottawa hockey club when the games played is less than 10? | CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
); | SELECT SUM("wins") FROM "final_standing" WHERE "team"='ottawa hockey club' AND "games_played"<10; | 2-12091980-1 |
How many people attended the game on February 3, 2008? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT SUM("attendance") FROM "february" WHERE "date"='february 3, 2008'; | 2-11962021-8 |
What is the name of the home team that played against Collingwood? | CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_10" WHERE "away_team"='collingwood'; | 2-10790651-10 |
Which Away team played at the Windy Hill Venue? | CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_10" WHERE "venue"='windy hill'; | 2-10790651-10 |
How large of a crowd can the Glenferrie oval hold? | CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "crowd" FROM "round_10" WHERE "venue"='glenferrie oval'; | 2-10790651-10 |
How large of a crowd can the Brunswick Street Oval hold? | CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT COUNT("crowd") FROM "round_10" WHERE "venue"='brunswick street oval'; | 2-10790651-10 |
Which Home Team had a score of 26.16 (172) and a venue larger than 19,000? | CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_10" WHERE "crowd">'19,000' AND "home_team_score"='26.16 (172)'; | 2-10790651-10 |
What is the lowest number of goals scored by a player in the normal league games where more than 8 total goals were scored? | CREATE TABLE "goalscorers" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"total" real
); | SELECT MIN("league") FROM "goalscorers" WHERE "total">8; | 2-11847348-3 |
What is the sum of goals scored in regular league play by Mustoe where he scored 0 goals in the League Cup? | CREATE TABLE "goalscorers" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"total" real
); | SELECT SUM("league") FROM "goalscorers" WHERE "name"='mustoe' AND "league_cup"<0; | 2-11847348-3 |
What is the average number of goals scored in the FA Cup by Whelan where he had more than 7 total goals? | CREATE TABLE "goalscorers" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"total" real
); | SELECT AVG("fa_cup") FROM "goalscorers" WHERE "name"='whelan' AND "total">7; | 2-11847348-3 |
What is the lowest number of goals scored in regular league games by Ehiogu where he scored 0 goals in the FA Cup and at least 1 goal in the League Cup? | CREATE TABLE "goalscorers" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"total" real
); | SELECT MIN("league") FROM "goalscorers" WHERE "fa_cup"=0 AND "total"=1 AND "name"='ehiogu' AND "league_cup">0; | 2-11847348-3 |
What is the Uyghur Latin with a population of 69,361? | CREATE TABLE "subdivisions" (
"name" text,
"hanzi" text,
"hanyu_pinyin" text,
"uyghur_uey" text,
"uyghur_latin_uly" text,
"population_2010_census" text,
"area_km" text,
"density_km" text
); | SELECT "uyghur_latin_uly" FROM "subdivisions" WHERE "population_2010_census"='69,361'; | 2-1085629-1 |
What is the Hanyu Pinyin with an area of 400? | CREATE TABLE "subdivisions" (
"name" text,
"hanzi" text,
"hanyu_pinyin" text,
"uyghur_uey" text,
"uyghur_latin_uly" text,
"population_2010_census" text,
"area_km" text,
"density_km" text
); | SELECT "hanyu_pinyin" FROM "subdivisions" WHERE "area_km"='400'; | 2-1085629-1 |
What is the Hanyu Pinyin with a density of 39.63? | CREATE TABLE "subdivisions" (
"name" text,
"hanzi" text,
"hanyu_pinyin" text,
"uyghur_uey" text,
"uyghur_latin_uly" text,
"population_2010_census" text,
"area_km" text,
"density_km" text
); | SELECT "hanyu_pinyin" FROM "subdivisions" WHERE "density_km"='39.63'; | 2-1085629-1 |
How many people were in attendance when the visiting team was the Nuggets and the leading scorer was J.R. Smith (28)? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT SUM("attendance") FROM "february" WHERE "visitor"='nuggets' AND "leading_scorer"='j.r. smith (28)'; | 2-11963735-6 |
Who was the leading scorer on 23 February 2008? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT "leading_scorer" FROM "february" WHERE "date"='23 february 2008'; | 2-11963735-6 |
Name what was nominated in years before 2002 for most popular comedy performer at the national television awards | CREATE TABLE "awards_and_nominations" (
"year" real,
"nominated_for" text,
"award" text,
"category" text,
"result" text
); | SELECT "nominated_for" FROM "awards_and_nominations" WHERE "year"<2002 AND "award"='national television awards' AND "category"='most popular comedy performer'; | 2-1189758-1 |
Name the result for the bafta tv awards | CREATE TABLE "awards_and_nominations" (
"year" real,
"nominated_for" text,
"award" text,
"category" text,
"result" text
); | SELECT "result" FROM "awards_and_nominations" WHERE "award"='bafta tv awards'; | 2-1189758-1 |
Name the category for nominated at the british comedy awards | CREATE TABLE "awards_and_nominations" (
"year" real,
"nominated_for" text,
"award" text,
"category" text,
"result" text
); | SELECT "category" FROM "awards_and_nominations" WHERE "result"='nominated' AND "award"='british comedy awards'; | 2-1189758-1 |
Name the year that Birds of a feather category for most popular actress was nominated | CREATE TABLE "awards_and_nominations" (
"year" real,
"nominated_for" text,
"award" text,
"category" text,
"result" text
); | SELECT AVG("year") FROM "awards_and_nominations" WHERE "category"='most popular actress' AND "nominated_for"='birds of a feather'; | 2-1189758-1 |
What dates did Ferrari win races? | CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "date" FROM "non_championship_race_results" WHERE "constructor"='ferrari'; | 2-1140114-5 |
What was the original air date of the episode with production code 2395120? | CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
); | SELECT "original_air_date" FROM "season_4_1995_1996" WHERE "production_code"='2395120'; | 2-10953197-4 |
How many points for the ferrari v12 engine and ferrari 1512 chassis, after 1965? | CREATE TABLE "formula_one_world_championship_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
); | SELECT MAX("pts") FROM "formula_one_world_championship_results" WHERE "engine"='ferrari v12' AND "chassis"='ferrari 1512' AND "year">1965; | 2-1156744-1 |
What was the score for the away team when the home team scored 31.9 (195)? | CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_18" WHERE "home_team_score"='31.9 (195)'; | 2-10823719-18 |
What was the date when the crowd was larger than 30,495? | CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_18" WHERE "crowd">'30,495'; | 2-10823719-18 |
What was the home team when Carlton was the away team? | CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_18" WHERE "away_team"='carlton'; | 2-10823719-18 |
What was the score for the away team when they played at lake oval? | CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team_score" FROM "round_18" WHERE "venue"='lake oval'; | 2-10823719-18 |
How many people were in the crowd when the home team scored 31.9 (195)? | CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT COUNT("crowd") FROM "round_18" WHERE "home_team_score"='31.9 (195)'; | 2-10823719-18 |
What was the score of the away team when hawthorn was the home team? | CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team_score" FROM "round_18" WHERE "home_team"='hawthorn'; | 2-10823719-18 |
How many golds for nations ranked below 4, over 5 medals, and under 6 silvers? | CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("gold") FROM "medal_count" WHERE "rank">4 AND "total">5 AND "silver"<6; | 2-11316160-1 |
Which rank had the Labour party winning in 2003, a swing to gain that was larger than 2.13, a lab hold as a result, and which took place in the Linlithgow constituency? | CREATE TABLE "snp_targets" (
"rank" real,
"constituency" text,
"winning_party_2003" text,
"swing_to_gain" real,
"snp_s_place_2003" text,
"result" text
); | SELECT "rank" FROM "snp_targets" WHERE "winning_party_2003"='labour' AND "swing_to_gain">2.13 AND "result"='lab hold' AND "constituency"='linlithgow'; | 2-11105214-2 |
Which party won in 2003, that had a swing to gain of less than 2.92 and which resulted in a ld hold? | CREATE TABLE "snp_targets" (
"rank" real,
"constituency" text,
"winning_party_2003" text,
"swing_to_gain" real,
"snp_s_place_2003" text,
"result" text
); | SELECT "winning_party_2003" FROM "snp_targets" WHERE "swing_to_gain"<2.92 AND "result"='ld hold'; | 2-11105214-2 |
Which constituency had the conservative party win in 2003? | CREATE TABLE "snp_targets" (
"rank" real,
"constituency" text,
"winning_party_2003" text,
"swing_to_gain" real,
"snp_s_place_2003" text,
"result" text
); | SELECT "constituency" FROM "snp_targets" WHERE "winning_party_2003"='conservative'; | 2-11105214-2 |
What is the final score when the visiting team is the Washington Redskins and the date is September 4? | CREATE TABLE "2008" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "final_score" FROM "2008" WHERE "visiting_team"='washington redskins' AND "date"='september 4'; | 2-10944289-4 |
What is the stadium when the date of the game is December 14? | CREATE TABLE "2008" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "stadium" FROM "2008" WHERE "date"='december 14'; | 2-10944289-4 |
What is the name of the stadium when the visiting team is the Denver Broncos? | CREATE TABLE "2008" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "stadium" FROM "2008" WHERE "visiting_team"='denver broncos'; | 2-10944289-4 |
What was the smallest crowd when Melbourne was the away team? | CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT MIN("crowd") FROM "round_11" WHERE "away_team"='melbourne'; | 2-10826385-11 |
What was the largest crowd when the away team scored 2.19 (31)? | CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT MAX("crowd") FROM "round_11" WHERE "away_team_score"='2.19 (31)'; | 2-10826385-11 |
What is the Away when the Club is Neath? | CREATE TABLE "uefa_europa_league" (
"season" text,
"competition" text,
"round" text,
"club" text,
"home" text,
"away" text,
"aggregate" text
); | SELECT "away" FROM "uefa_europa_league" WHERE "club"='neath'; | 2-1149273-1 |
What country has area of 7,914 m²? | CREATE TABLE "measurements" (
"area_in_m" text,
"completion" text,
"city" text,
"country" text,
"denomination" text
); | SELECT "country" FROM "measurements" WHERE "area_in_m"='7,914'; | 2-11488183-1 |
What city was completed in 1910-1978? | CREATE TABLE "measurements" (
"area_in_m" text,
"completion" text,
"city" text,
"country" text,
"denomination" text
); | SELECT "city" FROM "measurements" WHERE "completion"='1910-1978'; | 2-11488183-1 |
What is the country with area of 3,170 in m²? | CREATE TABLE "measurements" (
"area_in_m" text,
"completion" text,
"city" text,
"country" text,
"denomination" text
); | SELECT "country" FROM "measurements" WHERE "area_in_m"='3,170'; | 2-11488183-1 |
I want the time/retired for grid of 17 | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "race" WHERE "grid"=17; | 2-1123301-2 |
Name the opponent when the field is mitchel athletic complex | CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
); | SELECT "opponent" FROM "schedule" WHERE "field"='mitchel athletic complex'; | 2-12058560-1 |
Name the date for when the home/away is away and the opponent is bayhawks | CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
); | SELECT "date" FROM "schedule" WHERE "home_away"='away' AND "opponent"='bayhawks'; | 2-12058560-1 |
Say the field with a result of w 12-11 | CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
); | SELECT "field" FROM "schedule" WHERE "result"='w 12-11'; | 2-12058560-1 |
Name the opponent when the result is w 16-15 and has home/away of home | CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
); | SELECT "opponent" FROM "schedule" WHERE "home_away"='home' AND "result"='w 16-15'; | 2-12058560-1 |
Name the opponent when the resultwas w 12-11 | CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
); | SELECT "opponent" FROM "schedule" WHERE "result"='w 12-11'; | 2-12058560-1 |
Name the opponent which has a home/away of home and date of july 27 | CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
); | SELECT "opponent" FROM "schedule" WHERE "home_away"='home' AND "date"='july 27'; | 2-12058560-1 |
I want to know the home team for mcg venue | CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_8" WHERE "venue"='mcg'; | 2-10823719-8 |
Where did Konchesky move to? | CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_fee" text
); | SELECT "moving_to" FROM "out" WHERE "name"='konchesky'; | 2-11220910-8 |
Who is Essendon's home team? | CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT MIN("crowd") FROM "round_9" WHERE "home_team"='essendon'; | 2-10824095-9 |
What is the away team score for North Melbourne's home team? | CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team_score" FROM "round_9" WHERE "away_team"='north melbourne'; | 2-10824095-9 |
What is Geelong's home team score? | CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team_score" FROM "round_9" WHERE "home_team"='geelong'; | 2-10824095-9 |
What is the home team score for St Kilda's home team? | CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team_score" FROM "round_9" WHERE "home_team"='st kilda'; | 2-10824095-9 |
Who was #16 rank constructor with a grid of more than 1? | CREATE TABLE "classification" (
"grid" real,
"driver" text,
"constructor" text,
"qual" real,
"rank" real,
"laps" real,
"time_retired" text
); | SELECT "constructor" FROM "classification" WHERE "grid">1 AND "rank"=16; | 2-1122062-1 |
Who constructed Joe James car when his rank was more than 10? | CREATE TABLE "classification" (
"grid" real,
"driver" text,
"constructor" text,
"qual" real,
"rank" real,
"laps" real,
"time_retired" text
); | SELECT "constructor" FROM "classification" WHERE "rank">10 AND "driver"='joe james'; | 2-1122062-1 |
What was the rank of the car who had more than 182 laps, gris less than 3, with a qual time of more than 134.14 and a time/retired of +14:21.72? | CREATE TABLE "classification" (
"grid" real,
"driver" text,
"constructor" text,
"qual" real,
"rank" real,
"laps" real,
"time_retired" text
); | SELECT MIN("rank") FROM "classification" WHERE "laps">182 AND "qual">134.14 AND "time_retired"='+14:21.72' AND "grid"<3; | 2-1122062-1 |
How many laps did Chuck Stevenson have with a grid of less than 11? | CREATE TABLE "classification" (
"grid" real,
"driver" text,
"constructor" text,
"qual" real,
"rank" real,
"laps" real,
"time_retired" text
); | SELECT COUNT("laps") FROM "classification" WHERE "driver"='chuck stevenson' AND "grid"<11; | 2-1122062-1 |
Which Week has an Opponent of san francisco 49ers? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT MAX("week") FROM "schedule" WHERE "opponent"='san francisco 49ers'; | 2-11172485-1 |
What is the snatch for the Clean & jerk of 145.0, and a Bodyweight larger than 76.22? | CREATE TABLE "middleweight_77_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" text,
"total_kg" text
); | SELECT AVG("snatch") FROM "middleweight_77_kg" WHERE "clean_jerk"='145.0' AND "bodyweight">76.22; | 2-11279593-4 |
What is the Clean & jerk for the snatch less than 150 and a Bodyweight of 76.18? | CREATE TABLE "middleweight_77_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" text,
"total_kg" text
); | SELECT "clean_jerk" FROM "middleweight_77_kg" WHERE "snatch"<150 AND "bodyweight"=76.18; | 2-11279593-4 |
What is the least Bodyweight for the Clean & jerk of 145.0, and a Snatch smaller than 122.5? | CREATE TABLE "middleweight_77_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" text,
"total_kg" text
); | SELECT MIN("bodyweight") FROM "middleweight_77_kg" WHERE "clean_jerk"='145.0' AND "snatch"<122.5; | 2-11279593-4 |
What is the Clean & jerk for the bodyweight less than 76.55, and the Total (kg) of –? | CREATE TABLE "middleweight_77_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" text,
"total_kg" text
); | SELECT "clean_jerk" FROM "middleweight_77_kg" WHERE "bodyweight"<76.55 AND "total_kg"='–'; | 2-11279593-4 |
What was the latest year that resulted in won? | CREATE TABLE "2003_broadway_revival" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
); | SELECT MAX("year") FROM "2003_broadway_revival" WHERE "result"='won'; | 2-1206731-2 |
Which position had a pick of 50? | CREATE TABLE "selections" (
"draft" text,
"round" real,
"pick" real,
"nationality" text,
"position" text,
"school_club_team" text
); | SELECT "position" FROM "selections" WHERE "pick"=50; | 2-10957305-2 |
Which team had a 2008-3 2008 draft? | CREATE TABLE "selections" (
"draft" text,
"round" real,
"pick" real,
"nationality" text,
"position" text,
"school_club_team" text
); | SELECT "school_club_team" FROM "selections" WHERE "draft"='2008-3 2008'; | 2-10957305-2 |
What is the average pick after Round 2? | CREATE TABLE "selections" (
"draft" text,
"round" real,
"pick" real,
"nationality" text,
"position" text,
"school_club_team" text
); | SELECT AVG("pick") FROM "selections" WHERE "round">2; | 2-10957305-2 |
What is the date of the game with a loss result in the Europe/Africa Group I, Round Robin competition in Murcia (esp) after 1998? | CREATE TABLE "1990s" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
); | SELECT "date" FROM "1990s" WHERE "result"='loss' AND "competition"='europe/africa group i, round robin' AND "location"='murcia (esp)' AND "year">1998; | 2-11280458-3 |
What is the result of the Europe/Africa Group I, play-off competition? | CREATE TABLE "1990s" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
); | SELECT "result" FROM "1990s" WHERE "competition"='europe/africa group i, play-off'; | 2-11280458-3 |
What is the result of the europe/africa group i, round robin game in Murcia (esp) before 1999? | CREATE TABLE "1990s" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
); | SELECT "result" FROM "1990s" WHERE "location"='murcia (esp)' AND "year"<1999 AND "competition"='europe/africa group i, round robin'; | 2-11280458-3 |
What position did the person from Clemson school fill? | CREATE TABLE "nfl_draft" (
"pick" real,
"round" text,
"player" text,
"position" text,
"school" text
); | SELECT "position" FROM "nfl_draft" WHERE "school"='clemson'; | 2-11452712-1 |
What was Rudy Harris' pick number in round 4? | CREATE TABLE "nfl_draft" (
"pick" real,
"round" text,
"player" text,
"position" text,
"school" text
); | SELECT MAX("pick") FROM "nfl_draft" WHERE "round"='round 4' AND "player"='rudy harris'; | 2-11452712-1 |
What was the pick number for the kicker in round 8? | CREATE TABLE "nfl_draft" (
"pick" real,
"round" text,
"player" text,
"position" text,
"school" text
); | SELECT COUNT("pick") FROM "nfl_draft" WHERE "round"='round 8' AND "position"='kicker'; | 2-11452712-1 |
What is the result from 2013? | CREATE TABLE "history" (
"year" real,
"western_champion" text,
"result" text,
"eastern_champion" text,
"finals_mvp" text
); | SELECT "result" FROM "history" WHERE "year"=2013; | 2-1164512-2 |
Who is the MVP finals that includes Detroit shock from the eastern championship and Sacramento monarchs from western championship? | CREATE TABLE "history" (
"year" real,
"western_champion" text,
"result" text,
"eastern_champion" text,
"finals_mvp" text
); | SELECT "finals_mvp" FROM "history" WHERE "eastern_champion"='detroit shock' AND "western_champion"='sacramento monarchs'; | 2-1164512-2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.