answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(points) FROM table_name_39 WHERE series = "italian formula renault 2.0" AND poles < 0
What is the sum of Points with a Series of italian formula renault 2.0, and Poles smaller than 0?
CREATE TABLE table_name_39 (points VARCHAR, series VARCHAR, poles VARCHAR)
SELECT Giant AS slalom FROM table_name_26 WHERE slalom = "45"
Which Giant Slalom has a Slalom of 45?
CREATE TABLE table_name_26 (Giant VARCHAR, slalom VARCHAR)
SELECT division_four FROM table_24575253_4 WHERE division_five = "Godstone"
When godstone is in division five who is in division four?
CREATE TABLE table_24575253_4 (division_four VARCHAR, division_five VARCHAR)
SELECT no_3 FROM table_name_79 WHERE no_7 = "abigail" AND no_4 = "ava"
What is No. 3, when No. 7 is Abigail, and when No. 4 is Ava?
CREATE TABLE table_name_79 (no_3 VARCHAR, no_7 VARCHAR, no_4 VARCHAR)
SELECT weight FROM table_name_52 WHERE diameter = "14mm"
How much does the coin with a 14mm diameter weigh?
CREATE TABLE table_name_52 (weight VARCHAR, diameter VARCHAR)
SELECT tamil_name FROM table_name_96 WHERE english_name = "thaipusam"
What is the Tamil Name of the Thaipusam holiday?
CREATE TABLE table_name_96 (tamil_name VARCHAR, english_name VARCHAR)
SELECT score FROM table_27537518_4 WHERE game = 1
What was the score for game #1?
CREATE TABLE table_27537518_4 (score VARCHAR, game VARCHAR)
SELECT tournament FROM table_name_96 WHERE winning_score = 67 - 61 - 68 - 67 = 263
Which tournament had a winning score of 67-61-68-67=263?
CREATE TABLE table_name_96 (tournament VARCHAR, winning_score VARCHAR)
SELECT number_of_deputies FROM table_13746866_2 WHERE number_of_votes_received < 1549176.2765483726 AND election_date = 1969
what's the number of deputies with number of votes received being smaller than 1549176.2765483726 and election date being 1969
CREATE TABLE table_13746866_2 (number_of_deputies VARCHAR, number_of_votes_received VARCHAR, election_date VARCHAR)
SELECT notes FROM table_name_64 WHERE year > 1983 AND position = "18th"
What Notes after 1983 have a Position of 18th?
CREATE TABLE table_name_64 (notes VARCHAR, year VARCHAR, position VARCHAR)
SELECT engine_† FROM table_name_85 WHERE chassis = "c24" AND driver = "jacques villeneuve"
Which constructor manufactured the car with a c24 chassis and which is driven by Jacques Villeneuve?
CREATE TABLE table_name_85 (engine_† VARCHAR, chassis VARCHAR, driver VARCHAR)
SELECT line_s_ FROM table_1817879_2 WHERE segment_description = "Red Line MOS-2 West"
How many lines have the segment description of red line mos-2 west?
CREATE TABLE table_1817879_2 (line_s_ VARCHAR, segment_description VARCHAR)
SELECT DISTINCT T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000
List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds?
CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE laptimes (driverid VARCHAR, milliseconds INTEGER)
SELECT surface FROM table_name_53 WHERE opponents = "amer delic robert kendrick"
Which type of surface do Amer Delic Robert Kendrick's opponents have?
CREATE TABLE table_name_53 (surface VARCHAR, opponents VARCHAR)
SELECT score FROM table_23285849_10 WHERE high_points = "J.R. Smith (26)"
When j.r. smith (26) has the highest amount of points what is the score?
CREATE TABLE table_23285849_10 (score VARCHAR, high_points VARCHAR)
SELECT record FROM table_name_10 WHERE date = "july 12"
What is the Record on July 12?
CREATE TABLE table_name_10 (record VARCHAR, date VARCHAR)
SELECT opponents FROM table_name_45 WHERE date = "24 july 2011"
Name the opponents for 24 july 2011
CREATE TABLE table_name_45 (opponents VARCHAR, date VARCHAR)
SELECT date FROM table_name_30 WHERE outcome = "runner up" AND partner = "tyra calderwood"
What Date has an Outcome of runner up, and a Partner of tyra calderwood?
CREATE TABLE table_name_30 (date VARCHAR, outcome VARCHAR, partner VARCHAR)
SELECT record FROM table_name_92 WHERE date = "may 3"
Name the record for may 3
CREATE TABLE table_name_92 (record VARCHAR, date VARCHAR)
SELECT player FROM table_24431264_18 WHERE new_points = 1285
List the players with 1285 new points?
CREATE TABLE table_24431264_18 (player VARCHAR, new_points VARCHAR)
SELECT series FROM table_name_2 WHERE season = 2007
What is Series, when Season is 2007?
CREATE TABLE table_name_2 (series VARCHAR, season VARCHAR)
SELECT MAX(first_elected) FROM table_1342270_3 WHERE district = "Alabama 5"
what is the maximum first elected with district being alabama 5
CREATE TABLE table_1342270_3 (first_elected INTEGER, district VARCHAR)
SELECT score FROM table_name_70 WHERE type = "international friendly" AND date = "17 august 2013"
Tell me the score for international friendly 17 august 2013
CREATE TABLE table_name_70 (score VARCHAR, type VARCHAR, date VARCHAR)
SELECT english_title__chinese_title_ FROM table_name_20 WHERE number_of_episodes = 20 AND airing_date = "11 jun- 6 jul"
Which title had 20 episodes and aired on 11 jun- 6 jul?
CREATE TABLE table_name_20 (english_title__chinese_title_ VARCHAR, number_of_episodes VARCHAR, airing_date VARCHAR)
SELECT road_team FROM table_name_94 WHERE home_team = "boston" AND date = "april 16"
What is the road team playing against Boston on April 16?
CREATE TABLE table_name_94 (road_team VARCHAR, home_team VARCHAR, date VARCHAR)
SELECT model FROM table_name_89 WHERE released = 2005
What model was released in 2005?
CREATE TABLE table_name_89 (model VARCHAR, released VARCHAR)
SELECT points_against FROM table_name_61 WHERE lost = "17"
Which points against has 17 as the lost?
CREATE TABLE table_name_61 (points_against VARCHAR, lost VARCHAR)
SELECT Party, COUNT(*) FROM people GROUP BY Party
Show different parties of people along with the number of people in each party.
CREATE TABLE people (Party VARCHAR)
SELECT social_sec_leeds FROM table_name_13 WHERE president = "tom dawson"
Name the Social Sec Leeds has a President of tom dawson?
CREATE TABLE table_name_13 (social_sec_leeds VARCHAR, president VARCHAR)
SELECT MAX(dcsf_number) FROM table_name_22 WHERE faith = "rc" AND opened > 1966
Faith of rc, and a Opened larger than 1966 which has the highest DCSF number?
CREATE TABLE table_name_22 (dcsf_number INTEGER, faith VARCHAR, opened VARCHAR)
SELECT loss FROM table_name_56 WHERE opponent = "chinatrust whales" AND save = "miguel saladin"
What's the loss of who has a Save of Miguel Saladin and played against Chinatrust Whales?
CREATE TABLE table_name_56 (loss VARCHAR, opponent VARCHAR, save VARCHAR)
SELECT africa FROM table_19017269_5 WHERE oceania = "67 (0.6%)"
what will be the population of Africa when Oceania is 67 (0.6%)
CREATE TABLE table_19017269_5 (africa VARCHAR, oceania VARCHAR)
SELECT MAX(pick__number) FROM table_name_34 WHERE player = "corrie d'alessio" AND rd__number > 6
What's the largest pick number for corrie d'alessio with a rd number over 6?
CREATE TABLE table_name_34 (pick__number INTEGER, player VARCHAR, rd__number VARCHAR)
SELECT directed_by FROM table_name_52 WHERE written_by = "dan serafin" AND original_airdate = "july 23, 2008"
Who directed the episode written by Dan Serafin and aired on July 23, 2008?
CREATE TABLE table_name_52 (directed_by VARCHAR, written_by VARCHAR, original_airdate VARCHAR)
SELECT COUNT(game) FROM table_17325580_6 WHERE date = "December 12"
How many games occur on the date December 12?
CREATE TABLE table_17325580_6 (game VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_99 WHERE record = "7-1"
Which team has a record of 7-1?
CREATE TABLE table_name_99 (opponent VARCHAR, record VARCHAR)
SELECT COUNT(*) FROM ASSESSMENT_NOTES
How many assessment notes are there in total?
CREATE TABLE ASSESSMENT_NOTES (Id VARCHAR)
SELECT surface FROM table_name_94 WHERE date = "2 june 2003"
What Surface was used on 2 June 2003?
CREATE TABLE table_name_94 (surface VARCHAR, date VARCHAR)
SELECT AVG(track) FROM table_name_59 WHERE original_album = "turbulent indigo"
Which track has the original album turbulent indigo?
CREATE TABLE table_name_59 (track INTEGER, original_album VARCHAR)
SELECT tournament FROM table_name_26 WHERE 2013 = "2r" AND 2006 = "1r"
What is the Tournament when the 2013 is 2r, and a 2006 is 1r?
CREATE TABLE table_name_26 (tournament VARCHAR)
SELECT location FROM table_name_92 WHERE final_score = "w 30 – 5"
What location had a final score of W 30 – 5?
CREATE TABLE table_name_92 (location VARCHAR, final_score VARCHAR)
SELECT ground FROM table_name_73 WHERE away_team = "sydney"
What is Ground, when Away Team is Sydney?
CREATE TABLE table_name_73 (ground VARCHAR, away_team VARCHAR)
SELECT opponent FROM table_name_13 WHERE res = "win" AND time = "3:02"
Who is the opponent of the match with a win result and a time of 3:02?
CREATE TABLE table_name_13 (opponent VARCHAR, res VARCHAR, time VARCHAR)
SELECT COUNT(attendance) FROM table_name_48 WHERE arena = "jobing.com arena"
What was the Attendance at Jobing.com Arena?
CREATE TABLE table_name_48 (attendance VARCHAR, arena VARCHAR)
SELECT AVG(lost) FROM table_name_70 WHERE against > 19 AND drawn < 1
Which average Lost has an Against larger than 19, and a Drawn smaller than 1?
CREATE TABLE table_name_70 (lost INTEGER, against VARCHAR, drawn VARCHAR)
SELECT opponent FROM table_name_10 WHERE record = "52-58"
Name the opponent with record of 52-58
CREATE TABLE table_name_10 (opponent VARCHAR, record VARCHAR)
SELECT SUM(against) FROM table_name_66 WHERE losses < 7 AND wimmera_fl = "horsham"
How much Against has Losses smaller than 7, and a Wimmera FL of horsham?
CREATE TABLE table_name_66 (against INTEGER, losses VARCHAR, wimmera_fl VARCHAR)
SELECT party FROM table_name_99 WHERE class = 1 AND state = "wisconsin"
What party is class 1 in wisconsin?
CREATE TABLE table_name_99 (party VARCHAR, class VARCHAR, state VARCHAR)
SELECT silver FROM table_name_42 WHERE year = "1938"
How many silver medals were won in 1938?
CREATE TABLE table_name_42 (silver VARCHAR, year VARCHAR)
SELECT player FROM table_name_34 WHERE college = "calgary"
Who was recruited from Calgary?
CREATE TABLE table_name_34 (player VARCHAR, college VARCHAR)
SELECT first_broadcast_uk___bbc_four__ FROM table_26591309_2 WHERE official_tns_gallup_ratings = 1575000
When was the first UK broadcast for the episode with an official TNS Gallup rating of 1575000?
CREATE TABLE table_26591309_2 (first_broadcast_uk___bbc_four__ VARCHAR, official_tns_gallup_ratings VARCHAR)
SELECT ministers FROM table_21422977_2 WHERE cabinet__nickname_ = "Steingrímur Hermannsson III"
How many ministers are there when the cabinet (nickname) is Steingrímur Hermannsson III?
CREATE TABLE table_21422977_2 (ministers VARCHAR, cabinet__nickname_ VARCHAR)
SELECT title FROM table_name_99 WHERE doctor = "1st" AND published = "november 2001"
What title was published on November 2001 and has a 1st Doctor?
CREATE TABLE table_name_99 (title VARCHAR, doctor VARCHAR, published VARCHAR)
SELECT recipient FROM table_name_37 WHERE date = "4/9/02" AND award = "£3,000"
Who won an award of £3,000 on 4/9/02?
CREATE TABLE table_name_37 (recipient VARCHAR, date VARCHAR, award VARCHAR)
SELECT COUNT(position) FROM table_name_9 WHERE drawn = 9 AND difference = "5" AND lost < 14
How many positions have 9 as a drawn, 5 as a difference, with a lost less than 14?
CREATE TABLE table_name_9 (position VARCHAR, lost VARCHAR, drawn VARCHAR, difference VARCHAR)
SELECT runner_up FROM table_name_14 WHERE score = "kapunda 7-7-49 angaston 6-8-44"
When the Score was kapunda 7-7-49 angaston 6-8-44, who was the Runner-up?
CREATE TABLE table_name_14 (runner_up VARCHAR, score VARCHAR)
SELECT MIN(production_code) FROM table_23793770_1 WHERE directed_by = "Michael Morris"
What was the production code for the episode directed by Michael Morris?
CREATE TABLE table_23793770_1 (production_code INTEGER, directed_by VARCHAR)
SELECT MAX(students) FROM table_1414743_1 WHERE pupil_teacher_ratio = "20.8"
What is the highest number of students with a teacher:student ratio of 20.8?
CREATE TABLE table_1414743_1 (students INTEGER, pupil_teacher_ratio VARCHAR)
SELECT position FROM table_10975034_2 WHERE player = "Christian Leibl-Cote"
What position does Christian Leibl-Cote play?
CREATE TABLE table_10975034_2 (position VARCHAR, player VARCHAR)
SELECT COUNT(established) FROM table_name_14 WHERE nickname = "pride"
What year was the team with the nickname pride established?
CREATE TABLE table_name_14 (established VARCHAR, nickname VARCHAR)
SELECT nation FROM table_name_29 WHERE total > 3 AND bronze > 5 AND silver < 4
What nation has a total more than 3, with more than 5 for bronze, and less than 4 for the silver?
CREATE TABLE table_name_29 (nation VARCHAR, silver VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT score FROM table_name_68 WHERE club = "rsc anderlecht"
What scores did the RSC Anderlecht club have?
CREATE TABLE table_name_68 (score VARCHAR, club VARCHAR)
SELECT district FROM table_1342292_2 WHERE first_elected = 1938
what's the district  with first elected being 1938
CREATE TABLE table_1342292_2 (district VARCHAR, first_elected VARCHAR)
SELECT player FROM table_name_4 WHERE round < 3 AND position = "running back"
What is the name of a running back in a round before round 3?
CREATE TABLE table_name_4 (player VARCHAR, round VARCHAR, position VARCHAR)
SELECT class FROM table_name_3 WHERE length = "2 hours" AND circuit = "las vegas motor speedway"
Which class was on the Las Vegas Motor Speedway for 2 hours?
CREATE TABLE table_name_3 (class VARCHAR, length VARCHAR, circuit VARCHAR)
SELECT area__km²_ FROM table_29289372_1 WHERE income_classification = "1st Class" AND population__2010_ = 318676
When 318676 is the population of 2010 and 1st class is the income classification what is the area in kilometers squared?
CREATE TABLE table_29289372_1 (area__km²_ VARCHAR, income_classification VARCHAR, population__2010_ VARCHAR)
SELECT COUNT(tracks) FROM table_name_7 WHERE unformatted_capacity_per_side = "2000kb"
How many tracks have an unformatted capacity per side of 2000kb?
CREATE TABLE table_name_7 (tracks VARCHAR, unformatted_capacity_per_side VARCHAR)
SELECT COUNT(die_size__mm_2__) FROM table_26040604_1 WHERE texture___gt__s_ = "34"
How many die sizes have a texture of exactly 34?
CREATE TABLE table_26040604_1 (die_size__mm_2__ VARCHAR, texture___gt__s_ VARCHAR)
SELECT place FROM table_name_23 WHERE player = "arnold palmer"
What is Place, when Player is "Arnold Palmer"?
CREATE TABLE table_name_23 (place VARCHAR, player VARCHAR)
SELECT surface FROM table_name_24 WHERE opponents = "sergiy stakhovsky mikhail youzhny"
What was the surface when the opponent was sergiy stakhovsky mikhail youzhny?
CREATE TABLE table_name_24 (surface VARCHAR, opponents VARCHAR)
SELECT MIN(crowd) FROM table_name_73 WHERE venue = "princes park"
Who was the team with the smallest crowd at the Princes Park venue?
CREATE TABLE table_name_73 (crowd INTEGER, venue VARCHAR)
SELECT MAX(f_laps) FROM table_25561038_1
List the highest number of laps.
CREATE TABLE table_25561038_1 (f_laps INTEGER)
SELECT position FROM table_name_50 WHERE name = "allen gamboa"
What is the position of Allen Gamboa?
CREATE TABLE table_name_50 (position VARCHAR, name VARCHAR)
SELECT COUNT(points) FROM table_name_62 WHERE difference = "23" AND drawn < 5
How many points have a difference of 23, with a drawn less than 5?
CREATE TABLE table_name_62 (points VARCHAR, difference VARCHAR, drawn VARCHAR)
SELECT surface FROM table_name_19 WHERE date = "may 13, 2007"
What surface was used on may 13, 2007?
CREATE TABLE table_name_19 (surface VARCHAR, date VARCHAR)
SELECT country FROM table_name_96 WHERE to_par = "e"
Which Country has a To par of e?
CREATE TABLE table_name_96 (country VARCHAR, to_par VARCHAR)
SELECT AVG(round) FROM table_name_48 WHERE school = "arizona" AND pick > 100
What is the round for Arizona with a pick over 100?
CREATE TABLE table_name_48 (round INTEGER, school VARCHAR, pick VARCHAR)
SELECT MAX(position) FROM table_name_19 WHERE team = "rossendale united" AND played > 34
What was the highest position for Rossendale United when the played was larger than 34?
CREATE TABLE table_name_19 (position INTEGER, team VARCHAR, played VARCHAR)
SELECT COUNT(year) FROM table_name_84 WHERE machine = "rg500" AND points > 17
In what Year did the RG500 Machine have more than 17 Points?
CREATE TABLE table_name_84 (year VARCHAR, machine VARCHAR, points VARCHAR)
SELECT title FROM table_1439096_1 WHERE original_air_date__atv_ = "28 September 1969"
What is the title of the episode with the original air date of 28 September 1969?
CREATE TABLE table_1439096_1 (title VARCHAR, original_air_date__atv_ VARCHAR)
SELECT MAX(placings) FROM table_name_82 WHERE name = "marie mcneil / robert mccall" AND points < 168.58
What is the highest placing for marie mcneil / robert mccall, with less than 168.58?
CREATE TABLE table_name_82 (placings INTEGER, name VARCHAR, points VARCHAR)
SELECT total FROM table_19260_1 WHERE _percentage_core_moldova = "4.36_percentage"
Name the total for % core moldova for 4.36%
CREATE TABLE table_19260_1 (total VARCHAR, _percentage_core_moldova VARCHAR)
SELECT release_date FROM table_name_29 WHERE production_num = "9105"
When was Production Number 9105 released?
CREATE TABLE table_name_29 (release_date VARCHAR, production_num VARCHAR)
SELECT points_for FROM table_27293285_6 WHERE won = "22"
How many points for were scored by the team that won exactly 22?
CREATE TABLE table_27293285_6 (points_for VARCHAR, won VARCHAR)
SELECT opponent FROM table_22875369_3 WHERE date = "2-27-10"
Name the opponent for 2-27-10
CREATE TABLE table_22875369_3 (opponent VARCHAR, date VARCHAR)
SELECT date FROM table_name_17 WHERE competition = "1998 asian games"
what is the date when the competition is 1998 asian games?
CREATE TABLE table_name_17 (date VARCHAR, competition VARCHAR)
SELECT COUNT(wins) FROM table_name_54 WHERE rank = "98" AND scoring_average > 73.52
What is the total number of Wins when 98 is the rank and the scoring average is more than 73.52?
CREATE TABLE table_name_54 (wins VARCHAR, rank VARCHAR, scoring_average VARCHAR)
SELECT MIN(races) FROM table_19741316_1 WHERE position = "14th"
What was the number of races in the season in which the team placed on the 14th position?
CREATE TABLE table_19741316_1 (races INTEGER, position VARCHAR)
SELECT airport FROM table_name_39 WHERE iata = "ams"
Which airport has an IATA of AMS?
CREATE TABLE table_name_39 (airport VARCHAR, iata VARCHAR)
SELECT MIN(total) FROM table_name_96 WHERE nation = "total" AND gold < 16
What is the Total that has a number of Nation and a Gold smaller than 16?
CREATE TABLE table_name_96 (total INTEGER, nation VARCHAR, gold VARCHAR)
SELECT host_nation_s_ FROM table_22577693_1 WHERE winner = "Hong Kong 207/6 (47.1 overs)"
What is the name of the host nations if the winner was Hong Kong 207/6 (47.1 overs)?
CREATE TABLE table_22577693_1 (host_nation_s_ VARCHAR, winner VARCHAR)
SELECT nationality FROM table_name_46 WHERE round > 4
Name the nationality of the player with round more than 4
CREATE TABLE table_name_46 (nationality VARCHAR, round INTEGER)
SELECT score FROM table_name_29 WHERE player = "greg norman"
WHAT IS THE SCORE FOR GREG NORMAN?
CREATE TABLE table_name_29 (score VARCHAR, player VARCHAR)
SELECT total FROM table_26375386_17 WHERE public = 4
If the public is 4, what is the total?
CREATE TABLE table_26375386_17 (total VARCHAR, public VARCHAR)
SELECT current_club FROM table_name_21 WHERE year_born = 1976
What club began in 1976?
CREATE TABLE table_name_21 (current_club VARCHAR, year_born VARCHAR)
SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = (SELECT MIN(amount_piad) FROM claim_headers)
What is the name of the customer who has made the minimum amount of payment in one claim?
CREATE TABLE claim_headers (amount_piad INTEGER); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE policies (policy_id VARCHAR, customer_id VARCHAR); CREATE TABLE claim_headers (policy_id VARCHAR, amount_piad INTEGER)
SELECT netflix FROM table_name_92 WHERE episode < 69 AND segment_d = "s trombone"
Which Netflix episode has an overall episode number under 69 and a Segment D of S Trombone?
CREATE TABLE table_name_92 (netflix VARCHAR, episode VARCHAR, segment_d VARCHAR)
SELECT MIN(year) FROM table_name_86 WHERE manager = "art griggs"
Manager of art griggs had what lowest year?
CREATE TABLE table_name_86 (year INTEGER, manager VARCHAR)
SELECT MAX(total) FROM table_name_21 WHERE bronze < 1 AND silver < 0
What is the highest total number of medals of the nation with less than 1 bronzes and less than 0 silver medals?
CREATE TABLE table_name_21 (total INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT outcome FROM table_name_44 WHERE date = "13 november 2006"
Which is the Outcome on 13 november 2006?
CREATE TABLE table_name_44 (outcome VARCHAR, date VARCHAR)