answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT candidates FROM table_1342233_11 WHERE district = "Georgia 4"
What candidate is associated with the Georgia 4 district?
CREATE TABLE table_1342233_11 (candidates VARCHAR, district VARCHAR)
SELECT place FROM table_name_15 WHERE country = "united states" AND to_par = "+1" AND player = "tim herron"
What is the place of plyaer Tim Herron from the United States with a to par of +1?
CREATE TABLE table_name_15 (place VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT COUNT(us_viewers__millions_) FROM table_22265225_1 WHERE no_in_series = "36"
How many times was u.s. Viewers listed for episode 36 in the series?
CREATE TABLE table_22265225_1 (us_viewers__millions_ VARCHAR, no_in_series VARCHAR)
SELECT Name FROM phone ORDER BY Price
List the names of phones in ascending order of price.
CREATE TABLE phone (Name VARCHAR, Price VARCHAR)
SELECT home_team AS score FROM table_name_95 WHERE away_team = "melbourne"
What is the home team score when the away team is Melbourne?
CREATE TABLE table_name_95 (home_team VARCHAR, away_team VARCHAR)
SELECT opposition FROM table_name_69 WHERE round = "3rd"
Who was the opposing team in the 3rd round?
CREATE TABLE table_name_69 (opposition VARCHAR, round VARCHAR)
SELECT production_code FROM table_26845668_1 WHERE us_viewers__millions_ = "4.32"
What is the production code for the movie with 4.32 million U.S. viewers?
CREATE TABLE table_26845668_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT station FROM table_name_18 WHERE frequency = "873khz"
Which station has a frequency of 873khz?
CREATE TABLE table_name_18 (station VARCHAR, frequency VARCHAR)
SELECT MAX(attendance) FROM table_name_63 WHERE game_site = "tulane stadium"
What was the highest attendance at a game that was played in tulane stadium?
CREATE TABLE table_name_63 (attendance INTEGER, game_site VARCHAR)
SELECT COUNT(DISTINCT eid) FROM Certificate
How many employees have certificate.
CREATE TABLE Certificate (eid VARCHAR)
SELECT competition FROM table_name_4 WHERE date = "august 20, 2004"
What is the name of the competition that was held on August 20, 2004?
CREATE TABLE table_name_4 (competition VARCHAR, date VARCHAR)
SELECT rank FROM table_name_3 WHERE qual = "141.471"
What is the rank of the qual 141.471?
CREATE TABLE table_name_3 (rank VARCHAR, qual VARCHAR)
SELECT player FROM table_name_51 WHERE country = "united states" AND place = "t6"
Which player from United States is in place of t6?
CREATE TABLE table_name_51 (player VARCHAR, country VARCHAR, place VARCHAR)
SELECT venue FROM table_name_90 WHERE extra = "short race" AND year < 1999
Tell me the venue for extra of short race and year less than 1999
CREATE TABLE table_name_90 (venue VARCHAR, extra VARCHAR, year VARCHAR)
SELECT missouri_vs FROM table_16201038_5 WHERE overall_record = "MU, 3-1"
Who are the opponents of Missouri that have an overall record of MU, 3-1?
CREATE TABLE table_16201038_5 (missouri_vs VARCHAR, overall_record VARCHAR)
SELECT AVG(works_number) FROM table_name_57 WHERE builder = "vulcan foundry" AND name = "snowdon ranger"
What is the average work number of Snowdon Ranger with the builder Vulcan Foundry?
CREATE TABLE table_name_57 (works_number INTEGER, builder VARCHAR, name VARCHAR)
SELECT SUM(points) FROM table_name_58 WHERE year = 1988
What is the total point for the year listed in 1988?
CREATE TABLE table_name_58 (points INTEGER, year VARCHAR)
SELECT time FROM table_name_57 WHERE nation = "kenya" AND race = "peachtree road race"
What is the time of the peachtree road race in kenya?
CREATE TABLE table_name_57 (time VARCHAR, nation VARCHAR, race VARCHAR)
SELECT location_attendance FROM table_27537870_3 WHERE record = "3-5-1"
What is the location and what was the attendance on those days when the score was 3-5-1?
CREATE TABLE table_27537870_3 (location_attendance VARCHAR, record VARCHAR)
SELECT MIN(game) FROM table_name_57 WHERE team = "orlando"
What is the earliest game against Orlando?
CREATE TABLE table_name_57 (game INTEGER, team VARCHAR)
SELECT clubs_remaining FROM table_28039032_1 WHERE round = "Preliminary round"
How many clubs were remaining in the preliminary round?
CREATE TABLE table_28039032_1 (clubs_remaining VARCHAR, round VARCHAR)
SELECT date FROM table_name_84 WHERE attendance = "51,265"
What date had 51,265 attendance?
CREATE TABLE table_name_84 (date VARCHAR, attendance VARCHAR)
SELECT joined FROM table_10577579_2 WHERE institution = "Tougaloo College"
What is the year the institution Tougaloo College joined?
CREATE TABLE table_10577579_2 (joined VARCHAR, institution VARCHAR)
SELECT Kids FROM Reservations WHERE CheckIn = "2010-09-21" AND FirstName = "DAMIEN" AND LastName = "TRACHSEL"
How many kids stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?
CREATE TABLE Reservations (Kids VARCHAR, LastName VARCHAR, CheckIn VARCHAR, FirstName VARCHAR)
SELECT winning_team FROM table_name_1 WHERE round = "3"
Who was the winning team for round 3?
CREATE TABLE table_name_1 (winning_team VARCHAR, round VARCHAR)
SELECT opponent FROM table_name_59 WHERE date = "10/20/1979*"
On 10/20/1979*, who was the Opponent?
CREATE TABLE table_name_59 (opponent VARCHAR, date VARCHAR)
SELECT MAX(minutes) FROM table_24477075_1 WHERE starts = 12
Name the most minutes and starts being 12
CREATE TABLE table_24477075_1 (minutes INTEGER, starts VARCHAR)
SELECT COUNT(pitcher) FROM table_242813_2 WHERE overall_rank = 9
Name the total number of pitcher for 9 overall rank
CREATE TABLE table_242813_2 (pitcher VARCHAR, overall_rank VARCHAR)
SELECT record FROM table_23624542_4 WHERE date = "Sept 22"
What is the record on Sept 22?
CREATE TABLE table_23624542_4 (record VARCHAR, date VARCHAR)
SELECT AVG(feb_2013) FROM table_name_31 WHERE feb_2010 = "37" AND nov_2012 < 32
What is the average Feb 2013 with a Feb 2010 with 37, and a Nov 2012 less than 32?
CREATE TABLE table_name_31 (feb_2013 INTEGER, feb_2010 VARCHAR, nov_2012 VARCHAR)
SELECT venue FROM table_name_72 WHERE date = "2003-08-13"
What is Venue, when Date is "2003-08-13"?
CREATE TABLE table_name_72 (venue VARCHAR, date VARCHAR)
SELECT started_round FROM table_name_57 WHERE last_match = "january 16, 2008"
What was the started round for the competition that had the last match on January 16, 2008?
CREATE TABLE table_name_57 (started_round VARCHAR, last_match VARCHAR)
SELECT constructor FROM table_name_9 WHERE laps > 50 AND grid = 7
What is the name of the constructor who has more than 50 laps and a grid of 7?
CREATE TABLE table_name_9 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT position FROM table_1965650_9 WHERE college_junior_club_team = "Kitchener Rangers (OHA)"
When kitchener rangers (oha) is the college, junior, or club team what is the position?
CREATE TABLE table_1965650_9 (position VARCHAR, college_junior_club_team VARCHAR)
SELECT COUNT(*), t1.network_name, t1.services FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id
Find the number of trains for each station, as well as the station network name and services.
CREATE TABLE route (station_id VARCHAR); CREATE TABLE station (network_name VARCHAR, services VARCHAR, id VARCHAR)
SELECT district FROM table_name_24 WHERE location = "tharamani"
What District has a Location of tharamani?
CREATE TABLE table_name_24 (district VARCHAR, location VARCHAR)
SELECT professional_partner FROM table_name_52 WHERE season < 7 AND average > 34.66 AND rank < 10 AND celebrity = "małgorzata foremniak"
Who is the professional partner of celebrity małgorzata foremniak with a season less than 7, an average greater than 34.66, and a rank less than 10?
CREATE TABLE table_name_52 (professional_partner VARCHAR, celebrity VARCHAR, rank VARCHAR, season VARCHAR, average VARCHAR)
SELECT MIN(vinto_municipality) FROM table_2509113_2 WHERE language = "Native and Spanish"
If the language is Native and Spanish, what is the Vinto Municipality minimum?
CREATE TABLE table_2509113_2 (vinto_municipality INTEGER, language VARCHAR)
SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T2.Nationality = "United States"
Show the distinct fate of missions that involve ships with nationality "United States"
CREATE TABLE mission (Fate VARCHAR, Ship_ID VARCHAR); CREATE TABLE ship (Ship_ID VARCHAR, Nationality VARCHAR)
SELECT grid FROM table_20159025_1 WHERE part_1 = "1:31.063"
On what grid was the time for part 1 1:31.063?
CREATE TABLE table_20159025_1 (grid VARCHAR, part_1 VARCHAR)
SELECT T2.Dname, T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = "INTRODUCTION TO COMPUTER SCIENCE"
Find the department name and room of the course INTRODUCTION TO COMPUTER SCIENCE.
CREATE TABLE COURSE (DNO VARCHAR, CName VARCHAR); CREATE TABLE DEPARTMENT (Dname VARCHAR, Room VARCHAR, DNO VARCHAR)
SELECT date FROM table_name_34 WHERE score = "3-0"
When was the competition that had a score of 3-0?
CREATE TABLE table_name_34 (date VARCHAR, score VARCHAR)
SELECT district FROM table_name_74 WHERE first_elected < 1906 AND incumbent = "julius kahn"
What was the district Incumbent Julius Kahn was in that was smaller than 1906?
CREATE TABLE table_name_74 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT to_par FROM table_name_64 WHERE player = "fredrik jacobson"
What is the To Par of Fredrik Jacobson?
CREATE TABLE table_name_64 (to_par VARCHAR, player VARCHAR)
SELECT u16_2nd_viii FROM table_11318462_5 WHERE u15_3rd_iv = "BBC"
what are all the u16 2nd viii with u15 3rd iv being bbc
CREATE TABLE table_11318462_5 (u16_2nd_viii VARCHAR, u15_3rd_iv VARCHAR)
SELECT average FROM table_name_57 WHERE band = "f"
Which Average has a Band of f?
CREATE TABLE table_name_57 (average VARCHAR, band VARCHAR)
SELECT score FROM table_name_27 WHERE away_team = "aldershot" AND date = "aldershot"
With a date of Aldershot and Aldershot as the away team what was the score of the game?
CREATE TABLE table_name_27 (score VARCHAR, away_team VARCHAR, date VARCHAR)
SELECT class_a FROM table_name_59 WHERE school_year = "2004-05"
Name the class A with school year of 2004-05
CREATE TABLE table_name_59 (class_a VARCHAR, school_year VARCHAR)
SELECT segment_c FROM table_name_79 WHERE episode < 230 AND segment_a = "wax figures"
Which Segment C that has an Episode lower than 230, and a Segment A consisting of wax figures?
CREATE TABLE table_name_79 (segment_c VARCHAR, episode VARCHAR, segment_a VARCHAR)
SELECT away_team FROM table_name_95 WHERE home_team = "colchester united"
Waht was the away team when the home team is colchester united?
CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR)
SELECT name FROM table_name_28 WHERE percentage = "0.59%"
Which name has a percentage of 0.59%?
CREATE TABLE table_name_28 (name VARCHAR, percentage VARCHAR)
SELECT no_7 FROM table_name_15 WHERE no_4 = "madison" AND no_10 = "amelia"
What is No. 7, when No. 4 is Madison, and when No. 10 is Amelia?
CREATE TABLE table_name_15 (no_7 VARCHAR, no_4 VARCHAR, no_10 VARCHAR)
SELECT position FROM table_name_91 WHERE pick__number < 6 AND player = "keith shologan"
What position does a Keith Shologan, who was picked higher than 6, play?
CREATE TABLE table_name_91 (position VARCHAR, pick__number VARCHAR, player VARCHAR)
SELECT COUNT(*) FROM Student WHERE age > 18 AND NOT StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food" OR T2.allergytype = "animal")
Find the number of students who are older than 18 and do not have allergy to either food or animal.
CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (Allergy VARCHAR); CREATE TABLE Student (age VARCHAR, StuID VARCHAR)
SELECT competition FROM table_name_70 WHERE notes = "half marathon"
Tell me the competition for half marathon
CREATE TABLE table_name_70 (competition VARCHAR, notes VARCHAR)
SELECT date FROM table_name_98 WHERE home = "ny rangers"
On what date were the NY Rangers home?
CREATE TABLE table_name_98 (date VARCHAR, home VARCHAR)
SELECT MIN(recognised_seats) FROM table_19304764_2
Name the least recognised seats
CREATE TABLE table_19304764_2 (recognised_seats INTEGER)
SELECT incumbent FROM table_name_99 WHERE district = "california 5"
Which Incumbent has a District of California 5?
CREATE TABLE table_name_99 (incumbent VARCHAR, district VARCHAR)
SELECT date FROM table_name_36 WHERE visitor = "colorado" AND home = "chicago"
What was the date of the game when Colorado was the visiting team and Chicago was the home team?
CREATE TABLE table_name_36 (date VARCHAR, visitor VARCHAR, home VARCHAR)
SELECT MAX(_number) FROM table_12407546_1 WHERE riding = "68.46 (1144 pts)"
What's the number of the player with 68.46 (1144 pts) in riding?
CREATE TABLE table_12407546_1 (_number INTEGER, riding VARCHAR)
SELECT drawn FROM table_12828723_4 WHERE won = "12"
what is the drawn when the won is 12?
CREATE TABLE table_12828723_4 (drawn VARCHAR, won VARCHAR)
SELECT AVG(lost) FROM table_name_62 WHERE goals_against > 57 AND position < 17 AND drawn = 8 AND team = "hyde united"
What is the average number lost for hyde united when they had a smaller position than 17, 8 draws, and more than 57 goals against?
CREATE TABLE table_name_62 (lost INTEGER, team VARCHAR, drawn VARCHAR, goals_against VARCHAR, position VARCHAR)
SELECT COUNT(jockey) FROM table_22517564_3 WHERE trainer = "Eoin Harty"
HOw many jockeys had eoin harty as a trainer
CREATE TABLE table_22517564_3 (jockey VARCHAR, trainer VARCHAR)
SELECT record FROM table_name_10 WHERE week > 4 AND result = "w 13-12"
What was the record at the game with a result of W 13-12 after week 4?
CREATE TABLE table_name_10 (record VARCHAR, week VARCHAR, result VARCHAR)
SELECT to_par FROM table_name_42 WHERE score > 68
Which To par has a Score larger than 68?
CREATE TABLE table_name_42 (to_par VARCHAR, score INTEGER)
SELECT AVG(points) FROM table_name_8 WHERE november = 6
What is the average points on November 6?
CREATE TABLE table_name_8 (points INTEGER, november VARCHAR)
SELECT games FROM table_name_19 WHERE sport = "field hockey" AND medal = "gold"
When did Pakistan win a Gold Medal in Field Hockey?
CREATE TABLE table_name_19 (games VARCHAR, sport VARCHAR, medal VARCHAR)
SELECT rank FROM table_13836704_6 WHERE freight___metric_tonnes__ = 23791
What is the rank of the airport with a freight ( metric tonnes ) of 23791?
CREATE TABLE table_13836704_6 (rank VARCHAR, freight___metric_tonnes__ VARCHAR)
SELECT heat FROM table_name_54 WHERE rank < 18 AND result = "55.15"
What is the Heat of the Player with a Rank of 18 or less and Result of 55.15?
CREATE TABLE table_name_54 (heat VARCHAR, rank VARCHAR, result VARCHAR)
SELECT MAX(against) FROM table_name_4 WHERE wins = 0 AND byes > 2
What is the highest score with 0 wins and more than 2 Byes?
CREATE TABLE table_name_4 (against INTEGER, wins VARCHAR, byes VARCHAR)
SELECT pick__number FROM table_2508633_4 WHERE college = "Oklahoma State" AND player = "Greg Hill"
What number draft pick was Oklahoma State's Greg Hill in 1983?
CREATE TABLE table_2508633_4 (pick__number VARCHAR, college VARCHAR, player VARCHAR)
SELECT away_team FROM table_name_95 WHERE home_team = "carlton"
Who was the opponent of carlton at their home game?
CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR)
SELECT record FROM table_name_36 WHERE date = "may 30"
What is the record of the game on May 30?
CREATE TABLE table_name_36 (record VARCHAR, date VARCHAR)
SELECT Headquarters, Industry FROM company
What are the headquarters and industries of all companies?
CREATE TABLE company (Headquarters VARCHAR, Industry VARCHAR)
SELECT score FROM table_name_89 WHERE home = "toronto"
What was the score when the home team was Toronto?
CREATE TABLE table_name_89 (score VARCHAR, home VARCHAR)
SELECT position FROM table_16575609_5 WHERE pick__number = 34
What position is the player drafted with pick 34?
CREATE TABLE table_16575609_5 (position VARCHAR, pick__number VARCHAR)
SELECT MIN(top_25) FROM table_name_94 WHERE events = 3 AND wins > 0
What is the lowest Top-25 that has 3 Events and Wins greater than 0?
CREATE TABLE table_name_94 (top_25 INTEGER, events VARCHAR, wins VARCHAR)
SELECT constructor FROM table_name_59 WHERE laps < 44 AND driver = "piercarlo ghinzani"
Who constructed piercarlo ghinzani's car with under 44 laps?
CREATE TABLE table_name_59 (constructor VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT incumbent FROM table_name_73 WHERE party = "republican" AND first_elected < 1864
Who is the incumbent that is a republican and first elected before 1864?
CREATE TABLE table_name_73 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT name FROM table_name_59 WHERE overall > 132 AND round = 12
What is Name, when Overall is greater than 132, and when Round is 12?
CREATE TABLE table_name_59 (name VARCHAR, overall VARCHAR, round VARCHAR)
SELECT written_by FROM table_21304155_1 WHERE production_code = "BN103"
Who wrote the episode with the production code of BN103?
CREATE TABLE table_21304155_1 (written_by VARCHAR, production_code VARCHAR)
SELECT MIN(area__sq_mi_) FROM table_name_82 WHERE rank = 160
What is the smallest area (sq mi) that has 160 as it rank?
CREATE TABLE table_name_82 (area__sq_mi_ INTEGER, rank VARCHAR)
SELECT film FROM table_name_67 WHERE director_s_ = "hannah gal"
What is the film where Hannah Gal was the director?
CREATE TABLE table_name_67 (film VARCHAR, director_s_ VARCHAR)
SELECT losing_bonus FROM table_14070062_4 WHERE tries_for = "52"
what was the extra score when the overall score was 52
CREATE TABLE table_14070062_4 (losing_bonus VARCHAR, tries_for VARCHAR)
SELECT pregame_analysts FROM table_2941848_2 WHERE trophy_presentation = "Chris Rose"
What is every pregame analyst with Chris Rose as trophy presenter?
CREATE TABLE table_2941848_2 (pregame_analysts VARCHAR, trophy_presentation VARCHAR)
SELECT rank FROM table_name_55 WHERE years_until_mandatory_retirement = "6 years"
what rank has years until mandatory retirement of 6 years?
CREATE TABLE table_name_55 (rank VARCHAR, years_until_mandatory_retirement VARCHAR)
SELECT tournament FROM table_name_83 WHERE date = "nov 5" AND location = "mississippi"
What tournament located is mississippi was nov 5
CREATE TABLE table_name_83 (tournament VARCHAR, date VARCHAR, location VARCHAR)
SELECT time FROM table_name_88 WHERE machine = "honda 1000cc" AND rider_s_ = "bruce anstey"
What time did bruce anstey complete in a honda 1000cc?
CREATE TABLE table_name_88 (time VARCHAR, machine VARCHAR, rider_s_ VARCHAR)
SELECT name, age, weight FROM Dogs WHERE abandoned_yn = 1
List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.
CREATE TABLE Dogs (name VARCHAR, age VARCHAR, weight VARCHAR, abandoned_yn VARCHAR)
SELECT location___state FROM table_name_84 WHERE team = "glenn seton racing" AND circuit = "lakeside international raceway"
The team Glenn Seton Racing has a circuit at the lakeside international raceway, what is the location and state?
CREATE TABLE table_name_84 (location___state VARCHAR, team VARCHAR, circuit VARCHAR)
SELECT title FROM table_13336122_7 WHERE directed_by = "David Duchovny"
What episode was directed by David Duchovny?
CREATE TABLE table_13336122_7 (title VARCHAR, directed_by VARCHAR)
SELECT surface FROM table_name_40 WHERE date = "5 november 2011"
Which surface has a Date of 5 november 2011?
CREATE TABLE table_name_40 (surface VARCHAR, date VARCHAR)
SELECT location FROM table_name_99 WHERE method = "decision (unanimous)" AND res = "win x"
Which Location has a Method of decision (unanimous), and Res of win x?
CREATE TABLE table_name_99 (location VARCHAR, method VARCHAR, res VARCHAR)
SELECT MAX(long) FROM table_name_22 WHERE loss > 3 AND gain > 2 OFFSET 894
Which Long is the highest one that has a Loss larger than 3, and a Gain larger than 2,894?
CREATE TABLE table_name_22 (long INTEGER, loss VARCHAR, gain VARCHAR)
SELECT COUNT(year) FROM table_name_65 WHERE engine = "brm straight-4"
Name the total number of years for brm straight-4
CREATE TABLE table_name_65 (year VARCHAR, engine VARCHAR)
SELECT religious_affiliation FROM table_name_34 WHERE athletics_nickname = "lords/ladies"
What was the religious affiliation for the athletics nicknamed lords/ladies?
CREATE TABLE table_name_34 (religious_affiliation VARCHAR, athletics_nickname VARCHAR)
SELECT player FROM table_name_79 WHERE position = "fly-half"
Which player was a fly-half?
CREATE TABLE table_name_79 (player VARCHAR, position VARCHAR)
SELECT MIN(podiums) FROM table_25548630_1
What is the least amount of podiums?
CREATE TABLE table_25548630_1 (podiums INTEGER)
SELECT date FROM table_name_15 WHERE score = "15–6"
What was the date of the game with a score of 15–6?
CREATE TABLE table_name_15 (date VARCHAR, score VARCHAR)
SELECT MAX(market_share), MIN(market_share), AVG(market_share) FROM browser
What is the maximum, minimum and average market share of the listed browsers?
CREATE TABLE browser (market_share INTEGER)