question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
WHAT IS THE TYPE OF LAND WITH A 2010 POPULATION GREATER THAN 2539, A RURAL AREA, AND A 2007 POPULATION OF 2572?
CREATE TABLE table_name_69 (geographic_character VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR, urban_rural VARCHAR)
SELECT geographic_character FROM table_name_69 WHERE population__2010_ > 2539 AND urban_rural = "rural" AND population__2007_ = 2572
What is the departure for Peterborough East whose arrival time is 12.40?
CREATE TABLE table_18332845_2 (departure VARCHAR, going_to VARCHAR, arrival VARCHAR)
SELECT departure FROM table_18332845_2 WHERE going_to = "Peterborough East" AND arrival = "12.40"
What was the final score of the Paul Goldstein match?
CREATE TABLE table_name_96 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_96 WHERE opponent_in_the_final = "paul goldstein"
What is the maximum number of wins?
CREATE TABLE table_26222468_1 (wins INTEGER)
SELECT MAX(wins) FROM table_26222468_1
What is the lowest Tournaments with Highest Rank of Maegashira 13?
CREATE TABLE table_name_46 (tournaments INTEGER, highest_rank VARCHAR)
SELECT MIN(tournaments) FROM table_name_46 WHERE highest_rank = "maegashira 13"
Which Mission is on 2003 apr 1?
CREATE TABLE table_name_21 (mission VARCHAR, date VARCHAR)
SELECT mission FROM table_name_21 WHERE date = "2003 apr 1"
What is the lowest laps a grid less than 22 with a time of +35.268 has?
CREATE TABLE table_name_92 (laps INTEGER, grid VARCHAR, time VARCHAR)
SELECT MIN(laps) FROM table_name_92 WHERE grid < 22 AND time = "+35.268"
What was the result when the score was 5-1?
CREATE TABLE table_name_61 (result VARCHAR, score VARCHAR)
SELECT result FROM table_name_61 WHERE score = "5-1"
What date was the record 38-22?
CREATE TABLE table_name_71 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_71 WHERE record = "38-22"
What is the finishing time with a 2/1q finish on the Meadowlands track?
CREATE TABLE table_name_10 (fin_time VARCHAR, finish VARCHAR, track VARCHAR)
SELECT fin_time FROM table_name_10 WHERE finish = "2/1q" AND track = "the meadowlands"
Name the least week for l 26–42
CREATE TABLE table_26401898_2 (week INTEGER, final_score VARCHAR)
SELECT MIN(week) FROM table_26401898_2 WHERE final_score = "L 26–42"
Name the dish for resolution of sd 480i and network of bvb
CREATE TABLE table_name_8 (dish VARCHAR, resolution VARCHAR, network VARCHAR)
SELECT dish FROM table_name_8 WHERE resolution = "sd 480i" AND network = "bvb"
Name the candidates in 1964
CREATE TABLE table_1341586_43 (candidates VARCHAR, first_elected VARCHAR)
SELECT candidates FROM table_1341586_43 WHERE first_elected = 1964
What is the pole position of the belgian grand prix?
CREATE TABLE table_1140078_2 (pole_position VARCHAR, race VARCHAR)
SELECT pole_position FROM table_1140078_2 WHERE race = "Belgian Grand Prix"
When were the callback auditions for the audition city in the episode aired on February 9, 2011?
CREATE TABLE table_27455867_1 (callback_audition_date VARCHAR, episode_air_date VARCHAR)
SELECT callback_audition_date FROM table_27455867_1 WHERE episode_air_date = "February 9, 2011"
Which TV station, has romaji title of tantei gakuen q and episodes larger than 10?
CREATE TABLE table_name_45 (tv_station VARCHAR, episodes VARCHAR, romaji_title VARCHAR)
SELECT tv_station FROM table_name_45 WHERE episodes > 10 AND romaji_title = "tantei gakuen q"
Name the total number of period for yvon le roux
CREATE TABLE table_24565004_13 (period VARCHAR, name VARCHAR)
SELECT COUNT(period) FROM table_24565004_13 WHERE name = "Yvon Le Roux"
What was the winning score of the Greater Vancouver Open tournament?
CREATE TABLE table_name_50 (winning_score VARCHAR, tournament VARCHAR)
SELECT winning_score FROM table_name_50 WHERE tournament = "greater vancouver open"
What is the smallest number of tries for in a game?
CREATE TABLE table_16770037_3 (tries_for INTEGER)
SELECT MIN(tries_for) FROM table_16770037_3
Which Driver that has a Grid less than 9 and a Time/Retired of 2:06:26.358?
CREATE TABLE table_name_59 (driver VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT driver FROM table_name_59 WHERE grid < 9 AND time_retired = "2:06:26.358"
Which date had a score of 5-1?
CREATE TABLE table_name_20 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_20 WHERE score = "5-1"
What was his position in 2009 with 1 win?
CREATE TABLE table_name_93 (position VARCHAR, wins VARCHAR, season VARCHAR)
SELECT position FROM table_name_93 WHERE wins = "1" AND season = "2009"
Which competition was at wilderspool?
CREATE TABLE table_name_28 (competition VARCHAR, venue VARCHAR)
SELECT competition FROM table_name_28 WHERE venue = "wilderspool"
What record has November 15 as the date?
CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_32 WHERE date = "november 15"
Name the conventional for تاغارما
CREATE TABLE table_2008069_2 (conventional VARCHAR, uyghur___k̢ona_yezik̢__ VARCHAR)
SELECT conventional FROM table_2008069_2 WHERE uyghur___k̢ona_yezik̢__ = "تاغارما"
What septembers are 17.1 in December?
CREATE TABLE table_15945862_1 (december VARCHAR, september VARCHAR)
SELECT december FROM table_15945862_1 WHERE september = "17.1"
Which category was the berlin file up to win in 2013?
CREATE TABLE table_name_9 (category VARCHAR, year VARCHAR, nominated_work VARCHAR)
SELECT category FROM table_name_9 WHERE year = 2013 AND nominated_work = "the berlin file"
What city is east region venue University Hall (University of Virginia) in?
CREATE TABLE table_name_10 (city VARCHAR, region VARCHAR, venue VARCHAR)
SELECT city FROM table_name_10 WHERE region = "east" AND venue = "university hall (university of virginia)"
Name the wins for best finish being 2nd
CREATE TABLE table_1697190_1 (wins VARCHAR, best_finish VARCHAR)
SELECT wins FROM table_1697190_1 WHERE best_finish = "2nd"
Name the engine with chassis of maserati 250f and entrant of luigi piotti with year less than 1957
CREATE TABLE table_name_8 (engine VARCHAR, year VARCHAR, chassis VARCHAR, entrant VARCHAR)
SELECT engine FROM table_name_8 WHERE chassis = "maserati 250f" AND entrant = "luigi piotti" AND year < 1957
What was the score of the game with a H/A/N of H and a record of 12-24?
CREATE TABLE table_name_12 (score VARCHAR, h_a_n VARCHAR, record VARCHAR)
SELECT score FROM table_name_12 WHERE h_a_n = "h" AND record = "12-24"
Name the least division
CREATE TABLE table_2361911_2 (division INTEGER)
SELECT MIN(division) FROM table_2361911_2
Name the Founded which has a Affiliation of private/methodist?
CREATE TABLE table_name_6 (founded INTEGER, affiliation VARCHAR)
SELECT MAX(founded) FROM table_name_6 WHERE affiliation = "private/methodist"
What song was in french?
CREATE TABLE table_name_98 (song VARCHAR, language VARCHAR)
SELECT song FROM table_name_98 WHERE language = "french"
Find the name, address, number of students in the departments that have the top 3 highest number of students.
CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_address VARCHAR, dept_code VARCHAR)
SELECT T2.dept_name, T2.dept_address, COUNT(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 3
Name the date for series 2-2
CREATE TABLE table_17622423_12 (date VARCHAR, series VARCHAR)
SELECT date FROM table_17622423_12 WHERE series = "2-2"
What is the Place of the Player with a Score of 73-67-74-71=285?
CREATE TABLE table_name_88 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_88 WHERE score = 73 - 67 - 74 - 71 = 285
Which Rank has a Bronze of 1, and a Nation of lithuania?
CREATE TABLE table_name_89 (rank VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT rank FROM table_name_89 WHERE bronze = 1 AND nation = "lithuania"
How many entries are in the ranking for jacqueline kohl?
CREATE TABLE table_26427332_17 (place VARCHAR, contestant VARCHAR)
SELECT COUNT(place) FROM table_26427332_17 WHERE contestant = "Jacqueline Kohl"
Which average lost that has a match less than 14?
CREATE TABLE table_name_9 (lost INTEGER, match INTEGER)
SELECT AVG(lost) FROM table_name_9 WHERE match < 14
Who is the opponent at Bishop Kearney Field?
CREATE TABLE table_name_19 (opponent VARCHAR, field VARCHAR)
SELECT opponent FROM table_name_19 WHERE field = "bishop kearney field"
Find the first name of the professor who is teaching two courses with code CIS-220 and QM-261.
CREATE TABLE CLASS (prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)
SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'QM-261'
What political party does the person from San Diego belong to?
CREATE TABLE table_name_75 (party VARCHAR, residence VARCHAR)
SELECT party FROM table_name_75 WHERE residence = "san diego"
What is the Q1+Q2 time for the driver whose Q1 time was 1:14.819, ?
CREATE TABLE table_name_51 (q1 VARCHAR, q2_time VARCHAR, q1_time VARCHAR)
SELECT q1 + q2_time FROM table_name_51 WHERE q1_time = "1:14.819"
What were the rank points when the score was 7 and the total was 15?
CREATE TABLE table_name_59 (rank_points VARCHAR, total VARCHAR, score_points VARCHAR)
SELECT rank_points FROM table_name_59 WHERE total = "15" AND score_points = "7"
What is Team, when Game is "32"?
CREATE TABLE table_name_96 (team VARCHAR, game VARCHAR)
SELECT team FROM table_name_96 WHERE game = 32
What is the total number of Money ( $ ), when To Par is "13", and when Player is "Julius Boros"?
CREATE TABLE table_name_2 (money___ VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT COUNT(money___) AS $__ FROM table_name_2 WHERE to_par = 13 AND player = "julius boros"
What was the record on January 4?
CREATE TABLE table_name_13 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_13 WHERE date = "january 4"
Who was the partner for the game on October 20, 2013?
CREATE TABLE table_name_80 (partner VARCHAR, date VARCHAR)
SELECT partner FROM table_name_80 WHERE date = "october 20, 2013"
What are the average prominence of the mountains in country 'Morocco'?
CREATE TABLE mountain (prominence INTEGER, country VARCHAR)
SELECT AVG(prominence) FROM mountain WHERE country = 'Morocco'
What's listed for the Station Code that has the Arrival of 02:20?
CREATE TABLE table_name_40 (station_code VARCHAR, arrival VARCHAR)
SELECT station_code FROM table_name_40 WHERE arrival = "02:20"
What was the grid when the driver was Mark Webber?
CREATE TABLE table_name_96 (grid VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_96 WHERE driver = "mark webber"
What shows as the status for the name of de la red?
CREATE TABLE table_name_61 (status VARCHAR, name VARCHAR)
SELECT status FROM table_name_61 WHERE name = "de la red"
What is the sum of value for average finish with poles less than 0?
CREATE TABLE table_name_80 (avg_finish INTEGER, poles INTEGER)
SELECT SUM(avg_finish) FROM table_name_80 WHERE poles < 0
What is the lowest number of members lost when the net change is −1?
CREATE TABLE table_27671835_3 (members_lost INTEGER, net_change VARCHAR)
SELECT MIN(members_lost) FROM table_27671835_3 WHERE net_change = "−1"
Who was her partner at the US Open and they were runner-up?
CREATE TABLE table_1920271_3 (partner VARCHAR, outcome VARCHAR, championship VARCHAR)
SELECT partner FROM table_1920271_3 WHERE outcome = "Runner-up" AND championship = "US Open"
Name the record for april 1
CREATE TABLE table_17102076_10 (record VARCHAR, date VARCHAR)
SELECT record FROM table_17102076_10 WHERE date = "April 1"
Name the district of lawrence j. smith
CREATE TABLE table_1341549_10 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341549_10 WHERE incumbent = "Lawrence J. Smith"
How many instances do you see the year 2003?
CREATE TABLE table_1637041_2 (starts VARCHAR, year VARCHAR)
SELECT COUNT(starts) FROM table_1637041_2 WHERE year = 2003
What is the netflix code for episode 46?
CREATE TABLE table_15187735_4 (netflix VARCHAR, episode VARCHAR)
SELECT netflix FROM table_15187735_4 WHERE episode = 46
What is the most money United States player Bob Gilder won?
CREATE TABLE table_name_93 (money___ INTEGER, country VARCHAR, player VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_93 WHERE country = "united states" AND player = "bob gilder"
What was the record on April 22?
CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_1 WHERE date = "april 22"
What is the Round with a Opponent with blackburn?
CREATE TABLE table_name_15 (round VARCHAR, opponent VARCHAR)
SELECT round FROM table_name_15 WHERE opponent = "blackburn"
Which Rim diameter has a Neck diameter of 11.84 (.466)?
CREATE TABLE table_name_27 (rim_diameter VARCHAR, neck_diameter VARCHAR)
SELECT rim_diameter FROM table_name_27 WHERE neck_diameter = "11.84 (.466)"
What is the average number of base pairs with 784 genes?
CREATE TABLE table_name_53 (base_pairs INTEGER, genes VARCHAR)
SELECT AVG(base_pairs) FROM table_name_53 WHERE genes = 784
What is the least amount of injuries in Dantewada, Chhattisgarh when 8 people were killed?
CREATE TABLE table_name_83 (injured INTEGER, place VARCHAR, killed VARCHAR)
SELECT MIN(injured) FROM table_name_83 WHERE place = "dantewada, chhattisgarh" AND killed = 8
Find the names of all reviewers who have ratings with a NULL value for the date.
CREATE TABLE Rating (rID VARCHAR); CREATE TABLE Reviewer (rID VARCHAR)
SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE ratingDate = "null"
What is the earliest week with an opponent of cincinnati bengals?
CREATE TABLE table_name_15 (week INTEGER, opponent VARCHAR)
SELECT MIN(week) FROM table_name_15 WHERE opponent = "cincinnati bengals"
What is the highest number of goals against when the number of goals were 55 and the difference was +24?
CREATE TABLE table_name_94 (goals_against INTEGER, goals_for VARCHAR, goal_difference VARCHAR)
SELECT MAX(goals_against) FROM table_name_94 WHERE goals_for > 55 AND goal_difference = "+24"
What season features writer Michael Poryes?
CREATE TABLE table_12030612_3 (season__number VARCHAR, written_by VARCHAR)
SELECT season__number FROM table_12030612_3 WHERE written_by = "Michael Poryes"
What is the average 2012 civil liberties value associated with a 2011 status of not free, political rights 2012 over 6, and political rights 2011 over 7?
CREATE TABLE table_name_42 (civil_liberties_2012 INTEGER, political_rights_2011 VARCHAR, status_2011 VARCHAR, political_rights_2012 VARCHAR)
SELECT AVG(civil_liberties_2012) FROM table_name_42 WHERE status_2011 = "not free" AND political_rights_2012 > 6 AND political_rights_2011 > 7
VIE is the IATA for which city?
CREATE TABLE table_name_80 (airport VARCHAR, iata VARCHAR)
SELECT airport FROM table_name_80 WHERE iata = "vie"
What is the name with a Decile less than 10, and a Roll of 297?
CREATE TABLE table_name_55 (name VARCHAR, decile VARCHAR, roll VARCHAR)
SELECT name FROM table_name_55 WHERE decile < 10 AND roll = 297
How many years have a film that uses the title "Nagabonar" in the nomination?
CREATE TABLE table_13719788_1 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT COUNT(year__ceremony_) FROM table_13719788_1 WHERE film_title_used_in_nomination = "Nagabonar"
What team was the opponent when there were 27,321 in attendance?
CREATE TABLE table_name_86 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_86 WHERE attendance = "27,321"
What is High Assists, when High Points is "Tayshaun Prince (23)"?
CREATE TABLE table_name_64 (high_assists VARCHAR, high_points VARCHAR)
SELECT high_assists FROM table_name_64 WHERE high_points = "tayshaun prince (23)"
What sport is the rayo vallecano club in?
CREATE TABLE table_name_64 (sport VARCHAR, club VARCHAR)
SELECT sport FROM table_name_64 WHERE club = "rayo vallecano"
What is the total number of laps associated with 8 points and a grid under 8?
CREATE TABLE table_name_9 (laps VARCHAR, points VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_9 WHERE points = "8" AND grid < 8
what is the name for the nationality total:?
CREATE TABLE table_name_1 (name VARCHAR, nationality VARCHAR)
SELECT name FROM table_name_1 WHERE nationality = "total:"
What is the Notes with a Venue that is venice, italy?
CREATE TABLE table_name_23 (notes VARCHAR, venue VARCHAR)
SELECT notes FROM table_name_23 WHERE venue = "venice, italy"
Which country has a rollercoaster that opened in 2002, is a spinning coaster, and is located in Disney's Animal Kingdom?
CREATE TABLE table_name_76 (country VARCHAR, park VARCHAR, opened VARCHAR, model VARCHAR)
SELECT country FROM table_name_76 WHERE opened = 2002 AND model = "spinning coaster" AND park = "disney's animal kingdom"
Name the number for simon cellan jones
CREATE TABLE table_26914076_2 (no VARCHAR, directed_by VARCHAR)
SELECT no FROM table_26914076_2 WHERE directed_by = "Simon Cellan Jones"
What Entrant older than 1950 has points smaller than 7?
CREATE TABLE table_name_82 (entrant VARCHAR, year VARCHAR, points VARCHAR)
SELECT entrant FROM table_name_82 WHERE year > 1950 AND points < 7
Name the sum of cuts with wins less than 2, top-25 more than 7 and top-10 less than 2
CREATE TABLE table_name_80 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR, top_25 VARCHAR)
SELECT SUM(cuts_made) FROM table_name_80 WHERE wins < 2 AND top_25 > 7 AND top_10 < 2
What is the Lost with a Try Bonus that is try bonus?
CREATE TABLE table_name_77 (lost VARCHAR, try_bonus VARCHAR)
SELECT lost FROM table_name_77 WHERE try_bonus = "try bonus"
Which type had the unit greifswald - 7 (kgr 7) ?
CREATE TABLE table_name_15 (type VARCHAR, unit VARCHAR)
SELECT type FROM table_name_15 WHERE unit = "greifswald - 7 (kgr 7)"
In what year(s) did Raymond Floyd have a total of less than 291 and a To par of +10?
CREATE TABLE table_name_34 (year_s__won VARCHAR, player VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT year_s__won FROM table_name_34 WHERE total < 291 AND to_par = "+10" AND player = "raymond floyd"
Name the label for january 24, 2005
CREATE TABLE table_name_97 (label VARCHAR, date VARCHAR)
SELECT label FROM table_name_97 WHERE date = "january 24, 2005"
Who were the quarter-finalists in the event where the champion was Terry Moor 3-6, 7-6, 6-2?
CREATE TABLE table_29295463_9 (quarterfinalists VARCHAR, champion VARCHAR)
SELECT quarterfinalists FROM table_29295463_9 WHERE champion = "Terry Moor 3-6, 7-6, 6-2"
What is the largest number of points for Orion with more than 4 losses?
CREATE TABLE table_name_53 (points__pts_ INTEGER, team__equipo_ VARCHAR, lost__pp_ VARCHAR)
SELECT MAX(points__pts_) FROM table_name_53 WHERE team__equipo_ = "orion" AND lost__pp_ > 4
After week 11, what was the Result on December 13, 1964?
CREATE TABLE table_name_49 (result VARCHAR, week VARCHAR, date VARCHAR)
SELECT result FROM table_name_49 WHERE week > 11 AND date = "december 13, 1964"
Who's the character when Margot Boyd was acting?
CREATE TABLE table_name_34 (character VARCHAR, actor VARCHAR)
SELECT character FROM table_name_34 WHERE actor = "margot boyd"
What is the Russian name with lbr as the Latin 3-letter code?
CREATE TABLE table_name_86 (russian_name VARCHAR, latin_3_letter_code VARCHAR)
SELECT russian_name FROM table_name_86 WHERE latin_3_letter_code = "lbr"
What is the Tuesday 1 June total number if Monday 31 May is 20' 15.35 111.761mph?
CREATE TABLE table_25220821_3 (tues_1_june VARCHAR, mon_31_may VARCHAR)
SELECT COUNT(tues_1_june) FROM table_25220821_3 WHERE mon_31_may = "20' 15.35 111.761mph"
On what date was Game 3?
CREATE TABLE table_name_2 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_2 WHERE game = "game 3"
When 2 is the rank what is the city/town?
CREATE TABLE table_23248420_1 (city_town VARCHAR, rank VARCHAR)
SELECT city_town FROM table_23248420_1 WHERE rank = 2
Name the ebit for eps being 10.6
CREATE TABLE table_18304259_1 (ebit__£m_ VARCHAR, earnings_per_share__p_ VARCHAR)
SELECT ebit__£m_ FROM table_18304259_1 WHERE earnings_per_share__p_ = "10.6"
What team was Sigachev on when he had 38 points?
CREATE TABLE table_25421463_1 (team_name VARCHAR, points VARCHAR)
SELECT team_name FROM table_25421463_1 WHERE points = "38"
How many finals had more than 0 goals and 8 assists?
CREATE TABLE table_name_14 (finals VARCHAR, goals VARCHAR, assists VARCHAR)
SELECT finals FROM table_name_14 WHERE goals > 0 AND assists = 8
What is the height in ft for number 42 for the rockets in 1993-94?
CREATE TABLE table_11734041_16 (height_in_ft VARCHAR, no_s_ VARCHAR, years_for_rockets VARCHAR)
SELECT height_in_ft FROM table_11734041_16 WHERE no_s_ = "42" AND years_for_rockets = "1993-94"