answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT 2007 FROM table_name_71 WHERE 2011 = "not held" AND 2012 = "not held"
what is 2007 when 2011 is not held and 2012 is not held?
CREATE TABLE table_name_71 (Id VARCHAR)
SELECT venue FROM table_name_47 WHERE competition = "paris marathon"
Where did the Paris Marathon occur?
CREATE TABLE table_name_47 (venue VARCHAR, competition VARCHAR)
SELECT COUNT(*), rank FROM captain WHERE age < 50 GROUP BY rank
How many captains with younger than 50 are in each rank?
CREATE TABLE captain (rank VARCHAR, age INTEGER)
SELECT MIN(overall) FROM table_name_25 WHERE round > 17
What is the lowest overall with more than 17 rounds?
CREATE TABLE table_name_25 (overall INTEGER, round INTEGER)
SELECT COUNT(wheel_arrangement) FROM table_15608800_2 WHERE class = "D14"
Name the number of wheel arrangement when class is d14
CREATE TABLE table_15608800_2 (wheel_arrangement VARCHAR, class VARCHAR)
SELECT transfer_window FROM table_name_30 WHERE transfer_fee = "free" AND moving_to = "norwich city"
What is the Transfer window, when the Transfer fee is "free", and when the item "Moving to" is Norwich City?
CREATE TABLE table_name_30 (transfer_window VARCHAR, transfer_fee VARCHAR, moving_to VARCHAR)
SELECT COUNT(DISTINCT Birth_Place) FROM people
How many distinct birth places are there?
CREATE TABLE people (Birth_Place VARCHAR)
SELECT team FROM table_name_29 WHERE school = "sussex tech"
What is the name of the School of the Sussex Tech's Team?
CREATE TABLE table_name_29 (team VARCHAR, school VARCHAR)
SELECT position FROM table_name_90 WHERE league_from = "western hockey league" AND team_from = "everett silvertips"
Which Position has a League from of western hockey league, and a Team from of everett silvertips?
CREATE TABLE table_name_90 (position VARCHAR, league_from VARCHAR, team_from VARCHAR)
SELECT SUM(1952) FROM table_name_37 WHERE 1954 > 4.2
What is the 1952 rate when the 1954 is more than 4.2?
CREATE TABLE table_name_37 (Id VARCHAR)
SELECT result FROM table_1341586_14 WHERE incumbent = "Terry L. Bruce"
How did the election end for Terry L. Bruce?
CREATE TABLE table_1341586_14 (result VARCHAR, incumbent VARCHAR)
SELECT team FROM table_name_19 WHERE players = "amanda coetzer and marcos ondruska"
Players of amanda coetzer and marcos ondruska is what team?
CREATE TABLE table_name_19 (team VARCHAR, players VARCHAR)
SELECT COUNT(points_classification) FROM table_14710984_2 WHERE winner = "Matteo Priamo"
Who won the points classifications in the stage where Matteo Priamo was the winner?
CREATE TABLE table_14710984_2 (points_classification VARCHAR, winner VARCHAR)
SELECT AVG(year) FROM table_name_12 WHERE movie = "thuppakki"
What was the average year that Thuppakki movies came out?
CREATE TABLE table_name_12 (year INTEGER, movie VARCHAR)
SELECT away_team AS score FROM table_name_6 WHERE away_team = "footscray"
What is the score for Footscray?
CREATE TABLE table_name_6 (away_team VARCHAR)
SELECT AVG(rank) FROM table_name_66 WHERE point > 52 AND draw < 10 AND goal_loss < 44 AND lose < 15
What was the average rank of a player with more than 52 points, fewer than 10 draws, a goal loss under 44, and a loss under 15?
CREATE TABLE table_name_66 (rank INTEGER, lose VARCHAR, goal_loss VARCHAR, point VARCHAR, draw VARCHAR)
SELECT country FROM table_21690339_1 WHERE _percentage_cut = "100%"
What country had a 100% cut?
CREATE TABLE table_21690339_1 (country VARCHAR, _percentage_cut VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_92 WHERE position = "goaltender"
Which college has a position of goaltender?
CREATE TABLE table_name_92 (college_junior_club_team__league_ VARCHAR, position VARCHAR)
SELECT COUNT(crowd) FROM table_name_54 WHERE home_team = "melbourne"
What was the crowd size for the Home team of melbourne?
CREATE TABLE table_name_54 (crowd VARCHAR, home_team VARCHAR)
SELECT MIN(fa_cup) FROM table_name_22 WHERE player = "mohd faizal desa" AND total > 0
What is the lowest FA cup that has mohd faizal desa as the player, with a total greater than 0?
CREATE TABLE table_name_22 (fa_cup INTEGER, player VARCHAR, total VARCHAR)
SELECT gorham_principal FROM table_25037577_1 WHERE year = "2010-2011"
Who was the gorham principal in 2010-2011?
CREATE TABLE table_25037577_1 (gorham_principal VARCHAR, year VARCHAR)
SELECT canadian_championship FROM table_name_6 WHERE concacaf_champions_league = "semifinals"
What Canadian Championship had CONCACAF Champions League of semifinals?
CREATE TABLE table_name_6 (canadian_championship VARCHAR, concacaf_champions_league VARCHAR)
SELECT label FROM table_name_45 WHERE year = "1993"
Which label's year is 1993?
CREATE TABLE table_name_45 (label VARCHAR, year VARCHAR)
SELECT us_viewers__in_millions_ FROM table_23958944_6 WHERE production_number = 520
Name the viewers for 520
CREATE TABLE table_23958944_6 (us_viewers__in_millions_ VARCHAR, production_number VARCHAR)
SELECT sat_29_aug FROM table_23465864_4 WHERE tues_25_aug = "22' 54.20 98.842mph"
What time was achieved on Saturday 29th August by the rider who recorded 22' 54.20 98.842mph on Tuesday 25th August?
CREATE TABLE table_23465864_4 (sat_29_aug VARCHAR, tues_25_aug VARCHAR)
SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1
Find the name of account that has the lowest total checking and saving balance.
CREATE TABLE checking (custid VARCHAR, balance VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
SELECT vocal_percussionist FROM table_28715942_3 WHERE original_artist = "Stevie Wonder"
Who was the vocal percussionist when stevie wonder was the original artist?
CREATE TABLE table_28715942_3 (vocal_percussionist VARCHAR, original_artist VARCHAR)
SELECT jurisdiction FROM table_120778_2 WHERE percent_yes = "43.4"
what's the jurisdiction where percent yes is 43.4
CREATE TABLE table_120778_2 (jurisdiction VARCHAR, percent_yes VARCHAR)
SELECT position FROM table_name_20 WHERE round < 3 AND name = "r. jay soward"
What is the Position with a round 3 pick for r. jay soward?
CREATE TABLE table_name_20 (position VARCHAR, round VARCHAR, name VARCHAR)
SELECT MIN(year) FROM table_name_57 WHERE venue = "barcelona, spain"
What year was the venue in Barcelona, Spain?
CREATE TABLE table_name_57 (year INTEGER, venue VARCHAR)
SELECT AVG(age) FROM Person
What is the average age for all person?
CREATE TABLE Person (age INTEGER)
SELECT fastest_lap FROM table_19908651_3 WHERE pole_position = "Emerson Fittipaldi" AND winning_driver = "Paul Tracy"
Who did the fastest lap in the race won by Paul Tracy, with Emerson Fittipaldi at the pole position?
CREATE TABLE table_19908651_3 (fastest_lap VARCHAR, pole_position VARCHAR, winning_driver VARCHAR)
SELECT COUNT(rank) FROM table_name_44 WHERE points = 185.16 AND sp + fs > 5
What is the total number for Rank with 185.16 points and a SP+FS value greater than 5?
CREATE TABLE table_name_44 (rank VARCHAR, points VARCHAR, sp VARCHAR, fs VARCHAR)
SELECT MAX(pts) FROM table_name_9 WHERE coach = "bruce arena" AND loss > 11
What is the highest percent of Bruce Arena when he loses more than 11 games?
CREATE TABLE table_name_9 (pts INTEGER, coach VARCHAR, loss VARCHAR)
SELECT SUM(goals_against) FROM table_name_41 WHERE goals_for > 52 AND losses < 10
How many goals against total did the team with more than 52 goals and fewer than 10 losses have?
CREATE TABLE table_name_41 (goals_against INTEGER, goals_for VARCHAR, losses VARCHAR)
SELECT date FROM table_name_56 WHERE game > 6
What dates were the games after game 6 played?
CREATE TABLE table_name_56 (date VARCHAR, game INTEGER)
SELECT results FROM table_name_32 WHERE category = "best new actor in lead role(female)"
Which Results have a Category of the best new actor in lead role(female)?
CREATE TABLE table_name_32 (results VARCHAR, category VARCHAR)
SELECT location FROM table_name_89 WHERE opponent = "scott junk"
Where is the location where Scott Junk was the opponent?
CREATE TABLE table_name_89 (location VARCHAR, opponent VARCHAR)
SELECT COUNT(week__number) FROM table_26250155_1 WHERE theme = "Billboard Hot 100 Hits" AND order__number = "3" AND original_artist = "Sixpence None the Richer"
What was the number of weeks that had a Billboard Hot 100 Hits theme, an order number of 3, and an original artist of Sixpence None the Richer?
CREATE TABLE table_26250155_1 (week__number VARCHAR, original_artist VARCHAR, theme VARCHAR, order__number VARCHAR)
SELECT MIN(games) AS ↑ FROM table_name_88 WHERE position = "wlb"
Which Games↑ is the lowest one that has a Position of wlb?
CREATE TABLE table_name_88 (games INTEGER, position VARCHAR)
SELECT player FROM table_1965650_9 WHERE college_junior_club_team = "Kitchener Rangers (OHA)"
When kitchener rangers (oha) is the college, junior, or club team team who is the player?
CREATE TABLE table_1965650_9 (player VARCHAR, college_junior_club_team VARCHAR)
SELECT score FROM table_name_2 WHERE couple = "jason & edyta" AND style = "freestyle"
Which Score has a Couple comprised of jason & edyta, and a Style of freestyle?
CREATE TABLE table_name_2 (score VARCHAR, couple VARCHAR, style VARCHAR)
SELECT position FROM table_name_26 WHERE school_club_team_country = "valparaiso"
Name the position for the player that is from valparaiso
CREATE TABLE table_name_26 (position VARCHAR, school_club_team_country VARCHAR)
SELECT date FROM table_name_52 WHERE result = "82-92"
On what Date was the Result 82-92?
CREATE TABLE table_name_52 (date VARCHAR, result VARCHAR)
SELECT team FROM table_name_39 WHERE wrestler = "doug basham"
Who is Doug Basham's team?
CREATE TABLE table_name_39 (team VARCHAR, wrestler VARCHAR)
SELECT COUNT(socialist) FROM table_1886589_1 WHERE lead = "12.6%"
How many socialist have a lead of 12.6%?
CREATE TABLE table_1886589_1 (socialist VARCHAR, lead VARCHAR)
SELECT college_junior_club_team FROM table_2850912_1 WHERE pick__number = 18
What college team did draft pick 18 come from?
CREATE TABLE table_2850912_1 (college_junior_club_team VARCHAR, pick__number VARCHAR)
SELECT COUNT(govt_salary) FROM table_17964087_2 WHERE chinese_name = "盧奕基"
For the chinese name 盧奕基 how many in total is the govt salary?
CREATE TABLE table_17964087_2 (govt_salary VARCHAR, chinese_name VARCHAR)
SELECT COUNT(incumbent) FROM table_28188239_1 WHERE district = "LA-1"
How many incumbents are in district la-1?
CREATE TABLE table_28188239_1 (incumbent VARCHAR, district VARCHAR)
SELECT ihsaa_class FROM table_name_1 WHERE mascot = "musketeers"
What's the IHSAA Class when the mascot was the Musketeers?
CREATE TABLE table_name_1 (ihsaa_class VARCHAR, mascot VARCHAR)
SELECT mission_no FROM table_191323_2 WHERE alt_name = "1962-F01"
Which mission number has alternate name 1962-f01
CREATE TABLE table_191323_2 (mission_no VARCHAR, alt_name VARCHAR)
SELECT SUM(round) FROM table_name_38 WHERE position = "nose tackle"
What round was the nose tackle drafted?
CREATE TABLE table_name_38 (round INTEGER, position VARCHAR)
SELECT skip FROM table_name_40 WHERE lead = "tony angiboust"
What is the skip when Tony Angiboust was a lead?
CREATE TABLE table_name_40 (skip VARCHAR, lead VARCHAR)
SELECT quarterfinals FROM table_17427004_7 WHERE athlete = "Abdelhafid Benchebla"
Who did Abdelhafid Benchebla face in the quarterfinals?
CREATE TABLE table_17427004_7 (quarterfinals VARCHAR, athlete VARCHAR)
SELECT away_team AS score FROM table_name_84 WHERE home_team = "geelong"
What was the score for Geelong?
CREATE TABLE table_name_84 (away_team VARCHAR, home_team VARCHAR)
SELECT MAX(appearances) FROM table_24807406_1 WHERE starts = 18
What is the appearance maximum if the starts is 18?
CREATE TABLE table_24807406_1 (appearances INTEGER, starts VARCHAR)
SELECT state FROM table_name_13 WHERE owner = "wesson"
What state is Wesson in?
CREATE TABLE table_name_13 (state VARCHAR, owner VARCHAR)
SELECT record FROM table_14656147_2 WHERE result = "L 3-6"
Type the record details if any result has L 3-6 in it?
CREATE TABLE table_14656147_2 (record VARCHAR, result VARCHAR)
SELECT position FROM table_11803648_17 WHERE player = "Patrick Wiercioch"
WHAT POSITION DOES PATRICK WIERCIOCH PLAY?
CREATE TABLE table_11803648_17 (position VARCHAR, player VARCHAR)
SELECT 1980 AS _1981_team FROM table_name_22 WHERE birthplace = "warroad, minnesota"
What was the 1980-1981 team of the player born in Warroad, Minnesota?
CREATE TABLE table_name_22 (birthplace VARCHAR)
SELECT deputy FROM table_name_88 WHERE name = "elizabeth black"
What is the name of the Deputy when the Name was elizabeth black?
CREATE TABLE table_name_88 (deputy VARCHAR, name VARCHAR)
SELECT winning_team FROM table_name_75 WHERE fastest_lap = "brendon hartley" AND pole_position = "oliver turvey" AND circuit = "spa-francorchamps" AND winning_driver = "brendon hartley"
Which Winning Team has the Fastest Lap of brendon hartley, and a Pole Position of oliver turvey, and a Circuit of spa-francorchamps, and the Winning Driver of brendon hartley?
CREATE TABLE table_name_75 (winning_team VARCHAR, winning_driver VARCHAR, circuit VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
SELECT MIN(rank) FROM table_name_11 WHERE earnings___$__ < 71 OFFSET 979
What is the lowest rank for a player earning $71,979?
CREATE TABLE table_name_11 (rank INTEGER, earnings___$__ INTEGER)
SELECT COUNT(kennedy_votes) FROM table_24115349_4 WHERE coakley_votes = 2139
How many votes did kennedy win when coaklely won 2139 votes?
CREATE TABLE table_24115349_4 (kennedy_votes VARCHAR, coakley_votes VARCHAR)
SELECT MAX(attendance) FROM table_21436373_12 WHERE type_of_record = "Total attendance-Regular season"
what is the highest attendance for a total attendance-regular season record
CREATE TABLE table_21436373_12 (attendance INTEGER, type_of_record VARCHAR)
SELECT MIN(year) FROM table_name_12 WHERE team = "first team" AND position = "midfield"
What was the lowest year that a player from midfield won first team honors?
CREATE TABLE table_name_12 (year INTEGER, team VARCHAR, position VARCHAR)
SELECT date FROM table_name_25 WHERE venue = "princes park"
What the date of the game of the team that plays in princes park?
CREATE TABLE table_name_25 (date VARCHAR, venue VARCHAR)
SELECT COUNT(year) FROM table_2553861_1 WHERE open_cup = "Did not qualify" AND playoffs = "National Final"
Name the year for open cup did not qualify and national final
CREATE TABLE table_2553861_1 (year VARCHAR, open_cup VARCHAR, playoffs VARCHAR)
SELECT vertical_0_b FROM table_25519358_1 WHERE horizontal_0_a = "明勾(YS月南)"
Name the vertical for 明勾(ys月南)
CREATE TABLE table_25519358_1 (vertical_0_b VARCHAR, horizontal_0_a VARCHAR)
SELECT fifth FROM table_name_96 WHERE second = "victoria" AND first = "tasmania" AND sixth = "south australia"
What team placed fifth during the season where Victoria placed second, Tasmania placed first, and South Australia placed sixth?
CREATE TABLE table_name_96 (fifth VARCHAR, sixth VARCHAR, second VARCHAR, first VARCHAR)
SELECT score FROM table_name_3 WHERE date = "april 20"
What was the score on April 20?
CREATE TABLE table_name_3 (score VARCHAR, date VARCHAR)
SELECT record FROM table_name_22 WHERE event = "pride shockwave 2004"
What Record has an Event of Pride Shockwave 2004?
CREATE TABLE table_name_22 (record VARCHAR, event VARCHAR)
SELECT call_sign FROM table_name_65 WHERE city_of_license = "soledad, california"
What call sign is licensed in soledad, california?
CREATE TABLE table_name_65 (call_sign VARCHAR, city_of_license VARCHAR)
SELECT highest_point FROM table_name_46 WHERE country = "south ossetia"
What is the most points for South Ossetia?
CREATE TABLE table_name_46 (highest_point VARCHAR, country VARCHAR)
SELECT electronvolt FROM table_name_44 WHERE joule = "3,600"
How many electronvolts is 3,600 joules?
CREATE TABLE table_name_44 (electronvolt VARCHAR, joule VARCHAR)
SELECT won FROM table_1676073_13 WHERE points_for = "565"
How many wins does the club with 565 points for have?
CREATE TABLE table_1676073_13 (won VARCHAR, points_for VARCHAR)
SELECT score_points FROM table_name_32 WHERE total = "11"
With a total of 11, what is the score points?
CREATE TABLE table_name_32 (score_points VARCHAR, total VARCHAR)
SELECT poverty_rate FROM table_22815568_1 WHERE market_income_per_capita = "$16,420"
What is the poverty rate in the county that has a market income per capita of $16,420?
CREATE TABLE table_22815568_1 (poverty_rate VARCHAR, market_income_per_capita VARCHAR)
SELECT virtue FROM table_name_13 WHERE (latin) = acedia
Which virtue is acedia(Latin)?
CREATE TABLE table_name_13 (virtue VARCHAR, acedia VARCHAR, latin VARCHAR)
SELECT director FROM table_name_28 WHERE film_title_used_in_nomination = "hope and pain"
WHAT IS THE DIRECTOR WITH FILM hope and pain?
CREATE TABLE table_name_28 (director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT player FROM table_name_24 WHERE country = "united states" AND score = 71 - 75 = 146
Who is the player from the United States with a score of 71-75=146?
CREATE TABLE table_name_24 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed
Show the ids of all employees who don't destroy any document.
CREATE TABLE Employees (employee_id VARCHAR, Destroyed_by_Employee_ID VARCHAR); CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destroyed_by_Employee_ID VARCHAR)
SELECT COUNT(season) FROM table_29619494_2 WHERE apocalypstix = "2nd"
How many seasons did Apocalypstix place 2nd?
CREATE TABLE table_29619494_2 (season VARCHAR, apocalypstix VARCHAR)
SELECT runners_up FROM table_28962227_1 WHERE finale = "16 October 2012"
List all the runners-up on 16 October 2012?
CREATE TABLE table_28962227_1 (runners_up VARCHAR, finale VARCHAR)
SELECT away_team AS score FROM table_name_18 WHERE away_team = "fitzroy"
What was Fitzroy's score when they were the away team?
CREATE TABLE table_name_18 (away_team VARCHAR)
SELECT reg_season FROM table_21602734_1 WHERE playoffs = "Did not qualify" AND year = 2009
What was the regular season name where they did not qualify for the playoffs in 2009?
CREATE TABLE table_21602734_1 (reg_season VARCHAR, playoffs VARCHAR, year VARCHAR)
SELECT time___et__ FROM table_name_38 WHERE location = "three rivers stadium" AND opponent = "detroit lions"
What time did the game featuring the Detroit Lions at Three Rivers Stadium occur?
CREATE TABLE table_name_38 (time___et__ VARCHAR, location VARCHAR, opponent VARCHAR)
SELECT city_of_license FROM table_name_20 WHERE class = "a"
What city has the A Class licence?
CREATE TABLE table_name_20 (city_of_license VARCHAR, class VARCHAR)
SELECT report FROM table_name_35 WHERE away_team = "townsville crocodiles"
What's the report about townsville crocodiles as an away team?
CREATE TABLE table_name_35 (report VARCHAR, away_team VARCHAR)
SELECT college_junior_club_team FROM table_2850912_8 WHERE player = "Glenn Greenough"
where did glenn greenough come from
CREATE TABLE table_2850912_8 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT writer_s_ FROM table_name_5 WHERE film = "jehovah's witness"
Who wrote the film Jehovah's Witness?
CREATE TABLE table_name_5 (writer_s_ VARCHAR, film VARCHAR)
SELECT date FROM table_name_35 WHERE city = "baden"
When was the event in the City of Baden?
CREATE TABLE table_name_35 (date VARCHAR, city VARCHAR)
SELECT MAX(attendance) FROM table_name_91 WHERE visitor = "chicago"
What was the maximum attendance when Chicago is the visiting team?
CREATE TABLE table_name_91 (attendance INTEGER, visitor VARCHAR)
SELECT type FROM table_2803662_3 WHERE town = "Stuttgart"
When stuttgart is the town what is the type?
CREATE TABLE table_2803662_3 (type VARCHAR, town VARCHAR)
SELECT AVG(2002) FROM table_name_31 WHERE 2010 < 5587 AND production_year = "sunflower" AND 2007 > 546
What is the average 2002 value for Sunflower, which had a 2010 value less than 5587 and a 2007 value greater than 546?
CREATE TABLE table_name_31 (production_year VARCHAR)
SELECT ief_2011 FROM table_name_96 WHERE fsi_2012 = "99.2"
What is the IEF 2011 of the country with an FSI 2012 of 99.2?
CREATE TABLE table_name_96 (ief_2011 VARCHAR, fsi_2012 VARCHAR)
SELECT MAX(rank) FROM table_23248420_1 WHERE population = 142900
When 142900 is the population what is the highest rank?
CREATE TABLE table_23248420_1 (rank INTEGER, population VARCHAR)
SELECT MIN(against) FROM table_name_81 WHERE status = "six nations" AND venue = "lansdowne road, dublin"
What is the lowest against team in the Six Nations status in Lansdowne Road, Dublin?
CREATE TABLE table_name_81 (against INTEGER, status VARCHAR, venue VARCHAR)
SELECT 2005 FROM table_name_82 WHERE 2003 = "a" AND 2011 = "3r"
Name the 2005 for 2003 of a and 2011 of 3r
CREATE TABLE table_name_82 (Id VARCHAR)
SELECT order_of_succession FROM table_name_87 WHERE department = "education"
What was the order of succession for the department of education?
CREATE TABLE table_name_87 (order_of_succession VARCHAR, department VARCHAR)