context
stringlengths
27
489
question
stringlengths
12
244
answer
stringlengths
18
557
CREATE TABLE table_name_99 (code VARCHAR, type VARCHAR, population VARCHAR)
When populatioin is greater than 7,747 and the type is V, what is the sum of code?
SELECT COUNT(code) FROM table_name_99 WHERE type = "v" AND population > 7 OFFSET 747
CREATE TABLE table_name_24 (name VARCHAR, ties VARCHAR)
Who has ties of 5?
SELECT name FROM table_name_24 WHERE ties = 5
CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR)
Where did st kilda play as the away team?
SELECT venue FROM table_name_95 WHERE away_team = "st kilda"
CREATE TABLE table_name_66 (crowd VARCHAR, home_team VARCHAR)
How big of a crowd does the home team of essendon have?
SELECT crowd FROM table_name_66 WHERE home_team = "essendon"
CREATE TABLE table_name_80 (mlb_draft VARCHAR, school VARCHAR)
What is the MLB Draft status of the person who attended Seton Hall Preparatory School?
SELECT mlb_draft FROM table_name_80 WHERE school = "seton hall preparatory school"
CREATE TABLE table_name_64 (hometown VARCHAR, school VARCHAR)
Where is the Hometown of the person that attended Kennedy-Kenrick Catholic High School?
SELECT hometown FROM table_name_64 WHERE school = "kennedy-kenrick catholic high school"
CREATE TABLE table_name_8 (player VARCHAR, school VARCHAR)
Which Player attended George Washington High School?
SELECT player FROM table_name_8 WHERE school = "george washington high school"
CREATE TABLE table_name_40 (hometown VARCHAR, school VARCHAR)
Where is the Hometown that the person who attended Camarillo High School is from?
SELECT hometown FROM table_name_40 WHERE school = "camarillo high school"
CREATE TABLE table_name_99 (crowd VARCHAR, away_team VARCHAR)
How many people in total have attended games where carlton played as away?
SELECT COUNT(crowd) FROM table_name_99 WHERE away_team = "carlton"
CREATE TABLE table_name_73 (player VARCHAR, long VARCHAR, avg VARCHAR)
Which player has a long of less than 15 and an average of 6 yards.
SELECT player FROM table_name_73 WHERE long < 15 AND avg = 6
CREATE TABLE table_name_29 (years_for_jazz VARCHAR, player VARCHAR)
What years did Troy Hudson play for the Jazz?
SELECT years_for_jazz FROM table_name_29 WHERE player = "troy hudson"
CREATE TABLE table_name_69 (nationality VARCHAR, school_club_team VARCHAR)
What Nationality is the Iowa State team?
SELECT nationality FROM table_name_69 WHERE school_club_team = "iowa state"
CREATE TABLE table_name_14 (nationality VARCHAR, player VARCHAR)
What Nationality is Jeff Hornacek?
SELECT nationality FROM table_name_14 WHERE player = "jeff hornacek"
CREATE TABLE table_name_16 (nationality VARCHAR, school_club_team VARCHAR)
What Nationality is the Colorado State team?
SELECT nationality FROM table_name_16 WHERE school_club_team = "colorado"
CREATE TABLE table_name_96 (player VARCHAR, school_club_team VARCHAR)
What Player is from the Southern Illinois team?
SELECT player FROM table_name_96 WHERE school_club_team = "southern illinois"
CREATE TABLE table_name_53 (years_for_jazz VARCHAR, player VARCHAR)
What years did Eddie Hughes play for the Jazz?
SELECT years_for_jazz FROM table_name_53 WHERE player = "eddie hughes"
CREATE TABLE table_name_63 (species VARCHAR, threat_level VARCHAR)
Which Species has a medium Threat Level?
SELECT species FROM table_name_63 WHERE threat_level = "medium"
CREATE TABLE table_name_79 (overview VARCHAR, threat_level VARCHAR)
What is the Overview with a medium Threat Level?
SELECT overview FROM table_name_79 WHERE threat_level = "medium"
CREATE TABLE table_name_72 (threat_level VARCHAR, overview VARCHAR)
What is the Threat Levels with Rabbits in Australia?
SELECT threat_level FROM table_name_72 WHERE overview = "rabbits in australia"
CREATE TABLE table_name_81 (nominee VARCHAR, category VARCHAR, award VARCHAR, result VARCHAR)
Which nominee won the Drama Desk Award for outstanding choreography?
SELECT nominee FROM table_name_81 WHERE award = "drama desk award" AND result = "won" AND category = "outstanding choreography"
CREATE TABLE table_name_98 (year INTEGER, nominee VARCHAR)
When was the last time a nominee for Best Revival of a Musical was selected?
SELECT MAX(year) FROM table_name_98 WHERE nominee = "best revival of a musical"
CREATE TABLE table_name_57 (award VARCHAR, category VARCHAR)
Which Award is the winner for Outstanding Revival of a Musical given?
SELECT award FROM table_name_57 WHERE category = "outstanding revival of a musical"
CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR)
Who is the home team in the game where South Melbourne was the away team?
SELECT home_team AS score FROM table_name_20 WHERE away_team = "south melbourne"
CREATE TABLE table_name_90 (result VARCHAR, week VARCHAR, opponent VARCHAR)
I want the result for week larger than 10 for opponent of new england patriots
SELECT result FROM table_name_90 WHERE week > 10 AND opponent = "new england patriots"
CREATE TABLE table_name_17 (game_site VARCHAR, week VARCHAR)
I want the game site for week of 11
SELECT game_site FROM table_name_17 WHERE week = 11
CREATE TABLE table_name_6 (laps INTEGER, grid VARCHAR, constructor VARCHAR, driver VARCHAR)
What is the average number of laps for mika salo's arrows car with a grid over 13?
SELECT AVG(laps) FROM table_name_6 WHERE constructor = "arrows" AND driver = "mika salo" AND grid > 13
CREATE TABLE table_name_38 (driver VARCHAR, grid VARCHAR)
Who drove the car with a grid of 7?
SELECT driver FROM table_name_38 WHERE grid = 7
CREATE TABLE table_name_72 (report VARCHAR, date VARCHAR)
Which Report is Dated 9 March?
SELECT report FROM table_name_72 WHERE date = "9 march"
CREATE TABLE table_name_26 (attendance VARCHAR, opponent VARCHAR)
When Hamilton Academical is the Opponent, what is the total Attendance?
SELECT COUNT(attendance) FROM table_name_26 WHERE opponent = "hamilton academical"
CREATE TABLE table_name_57 (attendance VARCHAR, loss VARCHAR)
How many in attendance with a loss of volquez (1–4)?
SELECT attendance FROM table_name_57 WHERE loss = "volquez (1–4)"
CREATE TABLE table_name_15 (record VARCHAR, score VARCHAR)
What record has a Score of 9–6?
SELECT record FROM table_name_15 WHERE score = "9–6"
CREATE TABLE table_name_23 (attendance INTEGER, date VARCHAR)
What is the average number in attendance on September 16?
SELECT AVG(attendance) FROM table_name_23 WHERE date = "september 16"
CREATE TABLE table_name_49 (attendance INTEGER, date VARCHAR)
What is the sum of people in attendance on September 8?
SELECT SUM(attendance) FROM table_name_49 WHERE date = "september 8"
CREATE TABLE table_name_25 (cws_best_finish VARCHAR, head_coach VARCHAR)
What was Head Coach Jim Morris's best finish?
SELECT cws_best_finish FROM table_name_25 WHERE head_coach = "jim morris"
CREATE TABLE table_name_45 (record VARCHAR, visitor VARCHAR)
What is the record when the visiting team was the montreal canadiens?
SELECT record FROM table_name_45 WHERE visitor = "montreal canadiens"
CREATE TABLE table_name_83 (nation VARCHAR, points VARCHAR)
What nation has 187.84 points?
SELECT nation FROM table_name_83 WHERE points = 187.84
CREATE TABLE table_name_90 (points INTEGER, places VARCHAR)
What is the low point total for teams with 81 places?
SELECT MIN(points) FROM table_name_90 WHERE places = "81"
CREATE TABLE table_name_40 (station_number VARCHAR, location VARCHAR)
What is the station number of the station at Dogsthorpe?
SELECT station_number FROM table_name_40 WHERE location = "dogsthorpe"
CREATE TABLE table_name_92 (type VARCHAR, appliances VARCHAR, location VARCHAR)
What is the type of the station with a 1 wrl appliance in Linton?
SELECT type FROM table_name_92 WHERE appliances = "1 wrl" AND location = "linton"
CREATE TABLE table_name_69 (appliances VARCHAR, location VARCHAR)
What is the appliance at the station in St Neots?
SELECT appliances FROM table_name_69 WHERE location = "st neots"
CREATE TABLE table_name_67 (registrations VARCHAR, district VARCHAR)
What is the registration of the station at Cambridge?
SELECT registrations FROM table_name_67 WHERE district = "cambridge"
CREATE TABLE table_name_85 (location VARCHAR, district VARCHAR, station_number VARCHAR)
What is the location of the station at Huntingdonshire with a station number of c17?
SELECT location FROM table_name_85 WHERE district = "huntingdonshire" AND station_number = "c17"
CREATE TABLE table_name_27 (registrations VARCHAR, type VARCHAR, station_number VARCHAR)
What is the registration of the station with a retained type and a station number of c03?
SELECT registrations FROM table_name_27 WHERE type = "retained" AND station_number = "c03"
CREATE TABLE table_name_46 (nationality VARCHAR, round INTEGER)
Name the nationality of the player with round more than 4
SELECT nationality FROM table_name_46 WHERE round > 4
CREATE TABLE table_name_42 (year INTEGER, rank VARCHAR)
In what Year was the Rank 14.0 14?
SELECT SUM(year) FROM table_name_42 WHERE rank = "14.0 14"
CREATE TABLE table_name_90 (rank VARCHAR, height_ft__m_ VARCHAR, year VARCHAR, floors VARCHAR)
After 1971, what is the Rank with a Height ft (m) of 19.0 477 (145) and less than 35 Floors?
SELECT rank FROM table_name_90 WHERE year > 1971 AND floors < 35 AND height_ft__m_ = "19.0 477 (145)"
CREATE TABLE table_name_52 (year INTEGER, rank VARCHAR)
What Year has a Rank of 12.0 12?
SELECT AVG(year) FROM table_name_52 WHERE rank = "12.0 12"
CREATE TABLE table_name_76 (away_team VARCHAR, venue VARCHAR)
What did the away team score at VFL Park?
SELECT away_team AS score FROM table_name_76 WHERE venue = "vfl park"
CREATE TABLE table_name_1 (crowd INTEGER, venue VARCHAR)
How many people watched the game at Lake Oval?
SELECT SUM(crowd) FROM table_name_1 WHERE venue = "lake oval"
CREATE TABLE table_name_3 (comp INTEGER, player VARCHAR, rating VARCHAR)
What was the Comp average, having Gino Guidugli as a player and a rating of more than 92.2?
SELECT AVG(comp) FROM table_name_3 WHERE player = "gino guidugli" AND rating > 92.2
CREATE TABLE table_name_9 (att INTEGER, yards VARCHAR, comp VARCHAR)
For the player with yards less than 138, and Comp more than 0, what was the highest Att.?
SELECT MAX(att) FROM table_name_9 WHERE yards < 138 AND comp > 0
CREATE TABLE table_name_49 (laps VARCHAR, grid VARCHAR)
How many laps for grid of 9?
SELECT laps FROM table_name_49 WHERE grid = 9
CREATE TABLE table_name_68 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
What is the high lap total for a grid less than 6, and a Time/Retired of halfshaft?
SELECT MAX(laps) FROM table_name_68 WHERE grid < 6 AND time_retired = "halfshaft"
CREATE TABLE table_name_96 (set_1 VARCHAR, score VARCHAR)
What is the Set 1 with a Score with 3–2?
SELECT set_1 FROM table_name_96 WHERE score = "3–2"
CREATE TABLE table_name_6 (set_1 VARCHAR, set_2 VARCHAR, set_3 VARCHAR)
What is the Set 1 with a Set 2 of 15–5, and a Set 3 with 15–3?
SELECT set_1 FROM table_name_6 WHERE set_2 = "15–5" AND set_3 = "15–3"
CREATE TABLE table_name_79 (date VARCHAR, set_1 VARCHAR)
What is the Date with a Set 1 with 15–1?
SELECT date FROM table_name_79 WHERE set_1 = "15–1"
CREATE TABLE table_name_33 (set_3 VARCHAR, date VARCHAR, set_2 VARCHAR)
What is the Set 3 with a Date of 04 oct, and a Set 2 with 15–5?
SELECT set_3 FROM table_name_33 WHERE date = "04 oct" AND set_2 = "15–5"
CREATE TABLE table_name_58 (set_3 VARCHAR, set_2 VARCHAR)
What is the Set 3 with a Set 2 with 15–6?
SELECT set_3 FROM table_name_58 WHERE set_2 = "15–6"
CREATE TABLE table_name_6 (set_2 VARCHAR, total VARCHAR, set_3 VARCHAR)
What is the Set 2 with a Total of 45–12, and a Set 3 with 15–2?
SELECT set_2 FROM table_name_6 WHERE total = "45–12" AND set_3 = "15–2"
CREATE TABLE table_name_5 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
What was the grid associated with under 26 laps and a Time/Retired of +6.077?
SELECT AVG(grid) FROM table_name_5 WHERE time_retired = "+6.077" AND laps < 26
CREATE TABLE table_name_61 (lead VARCHAR, date_s__conducted VARCHAR)
On 5 May 2011, what was the lead percentage?
SELECT lead FROM table_name_61 WHERE date_s__conducted = "5 may 2011"
CREATE TABLE table_name_25 (date_s__conducted VARCHAR, lead VARCHAR)
On what date was the lead 8.6%?
SELECT date_s__conducted FROM table_name_25 WHERE lead = "8.6%"
CREATE TABLE table_name_56 (lifespan VARCHAR, imperial VARCHAR, nationality VARCHAR)
what is the lifespan when the imperial height is 7ft 8 in and the nationality is fiji?
SELECT lifespan FROM table_name_56 WHERE imperial = "7ft 8 in" AND nationality = "fiji"
CREATE TABLE table_name_21 (nationality VARCHAR, metric VARCHAR, name VARCHAR)
what is the nationality with the metric height of 2.36m named sun ming-ming?
SELECT nationality FROM table_name_21 WHERE metric = "2.36m" AND name = "sun ming-ming"
CREATE TABLE table_name_83 (grid INTEGER, laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
What is the grid total that had a retired for engine, teo fabi driving, and under 39 laps?
SELECT SUM(grid) FROM table_name_83 WHERE time_retired = "engine" AND driver = "teo fabi" AND laps < 39
CREATE TABLE table_name_26 (grid INTEGER, driver VARCHAR, laps VARCHAR)
What is the average grid for johnny dumfries with less than 8 laps?
SELECT AVG(grid) FROM table_name_26 WHERE driver = "johnny dumfries" AND laps < 8
CREATE TABLE table_name_44 (laps INTEGER, constructor VARCHAR, grid VARCHAR)
What is the low lap total for minardi - motori moderni, and a Grid smaller than 18?
SELECT MIN(laps) FROM table_name_44 WHERE constructor = "minardi - motori moderni" AND grid < 18
CREATE TABLE table_name_61 (constructor VARCHAR, grid VARCHAR)
What constructor has a 12 grid?
SELECT constructor FROM table_name_61 WHERE grid = 12
CREATE TABLE table_name_24 (average INTEGER, swimsuit INTEGER)
What is the average where the swimsuit is larger than 9.437?
SELECT MAX(average) FROM table_name_24 WHERE swimsuit > 9.437
CREATE TABLE table_name_84 (evening_gown INTEGER, interview VARCHAR, preliminaries VARCHAR)
What is the evening gown score where the interview score is 9.22 and the preliminaries are larger than 9.057?
SELECT SUM(evening_gown) FROM table_name_84 WHERE interview = 9.22 AND preliminaries > 9.057
CREATE TABLE table_name_88 (average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR, country VARCHAR)
What is Pennsylvania's average where the swimsuit is smaller than 9.109 and the evening gown is smaller than 9.163?
SELECT AVG(average) FROM table_name_88 WHERE swimsuit < 9.109 AND country = "pennsylvania" AND evening_gown < 9.163
CREATE TABLE table_name_65 (preliminaries INTEGER, interview VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR)
What is the preliminaries score where the swimsuit is smaller than 9.297, the evening gown is 9.617, and the interview is larger than 9.143?
SELECT AVG(preliminaries) FROM table_name_65 WHERE swimsuit < 9.297 AND evening_gown = 9.617 AND interview > 9.143
CREATE TABLE table_name_66 (screen_pixels VARCHAR, maker VARCHAR, weight VARCHAR)
For Amazon.com's device with a weight of 221g (7.8oz) how many screen pixels does the device have?
SELECT screen_pixels FROM table_name_66 WHERE maker = "amazon.com" AND weight = "221g (7.8oz)"
CREATE TABLE table_name_14 (runner VARCHAR, total VARCHAR)
How many 5K wins did Emily Chebet, who had more than 2 total, have?
SELECT SUM(5 AS k_wins) FROM table_name_14 WHERE runner = "emily chebet" AND total > 2
CREATE TABLE table_name_80 (runner VARCHAR, total VARCHAR)
How many 5K wins did Emily Chebet, who had more than 2 total, have?
SELECT COUNT(5 AS k_wins) FROM table_name_80 WHERE runner = "emily chebet" AND total > 2
CREATE TABLE table_name_95 (peak_lessons_taught INTEGER, evaluation_average__before_april_2009_ VARCHAR)
What is the largest number of Peak lessons taught when the Evaluation average (Before April 2009) was 4.4?
SELECT MAX(peak_lessons_taught) FROM table_name_95 WHERE evaluation_average__before_april_2009_ = "4.4"
CREATE TABLE table_name_23 (evaluation_average__before_april_2009_ VARCHAR, peak_lessons_taught VARCHAR, _percentage_of_negative_evaluations VARCHAR)
What is the mean Evaluation number (before April 2009) when the Peak lessons taught was less than 80 and the negative percentage of evaluations was 0.8%?
SELECT evaluation_average__before_april_2009_ FROM table_name_23 WHERE peak_lessons_taught < 80 AND _percentage_of_negative_evaluations = "0.8%"
CREATE TABLE table_name_41 (evaluation_average__before_april_2009_ VARCHAR, _percentage_of_negative_evaluations VARCHAR, evaluation_average__from_april_2009_ VARCHAR)
What is the mean Evaluation number (Before April 2009) when the percentage of negative evaluations was 0.8% and the mean Evaluation number of April 2009 was 4.2?
SELECT evaluation_average__before_april_2009_ FROM table_name_41 WHERE _percentage_of_negative_evaluations = "0.8%" AND evaluation_average__from_april_2009_ = "4.2"
CREATE TABLE table_name_11 (away_team VARCHAR, venue VARCHAR)
What is moorabbin oval's away team?
SELECT away_team FROM table_name_11 WHERE venue = "moorabbin oval"
CREATE TABLE table_name_57 (grid VARCHAR, driver VARCHAR)
What is Karl Wendlinger's total grid #?
SELECT COUNT(grid) FROM table_name_57 WHERE driver = "karl wendlinger"
CREATE TABLE table_name_13 (home_team VARCHAR)
Which Home team score had a Home team of Fitzroy?
SELECT home_team AS score FROM table_name_13 WHERE home_team = "fitzroy"
CREATE TABLE table_name_18 (name VARCHAR, replacement VARCHAR)
Who was replaced by Lieve Wierinck?
SELECT name FROM table_name_18 WHERE replacement = "lieve wierinck"
CREATE TABLE table_name_75 (gross_tonnage INTEGER, ship VARCHAR, material VARCHAR, date_commissioned VARCHAR)
Name the sum of gross tonnage for wood on date more tahn 1846 for comissioned and ship of esk
SELECT SUM(gross_tonnage) FROM table_name_75 WHERE material = "wood" AND date_commissioned > 1846 AND ship = "esk"
CREATE TABLE table_name_94 (gross_tonnage INTEGER, ship VARCHAR, date_commissioned VARCHAR)
Tell me the sum of Gross Tonnage for isis ship on date commisioned less than 1842
SELECT SUM(gross_tonnage) FROM table_name_94 WHERE ship = "isis" AND date_commissioned < 1842
CREATE TABLE table_name_69 (date_commissioned INTEGER, gross_tonnage VARCHAR, material VARCHAR, ship VARCHAR)
Tell me the lowest date commissioned for iron rmsrhone and gross tonnage less than 2,738
SELECT MIN(date_commissioned) FROM table_name_69 WHERE material = "iron" AND ship = "rmsrhone" AND gross_tonnage < 2 OFFSET 738
CREATE TABLE table_name_21 (constructor VARCHAR, time_retired VARCHAR)
What Constructor has a +1.027 Time/Retired?
SELECT constructor FROM table_name_21 WHERE time_retired = "+1.027"
CREATE TABLE table_name_13 (constructor VARCHAR, laps VARCHAR)
What Constructor has 56 Laps?
SELECT constructor FROM table_name_13 WHERE laps = 56
CREATE TABLE table_name_91 (driver VARCHAR, grid VARCHAR, laps VARCHAR)
What Driver has 28 Laps and a Grid greater than 5?
SELECT driver FROM table_name_91 WHERE grid > 5 AND laps = 28
CREATE TABLE table_name_80 (laps INTEGER, time_retired VARCHAR)
What is the highest Laps with a Time/Retired Wheel?
SELECT MAX(laps) FROM table_name_80 WHERE time_retired = "wheel"
CREATE TABLE table_name_86 (driver VARCHAR, time_retired VARCHAR)
What Driver has a +1.027 Time/Retired?
SELECT driver FROM table_name_86 WHERE time_retired = "+1.027"
CREATE TABLE table_name_78 (result VARCHAR, score VARCHAR)
What game has a score of 44-20?
SELECT result FROM table_name_78 WHERE score = "44-20"
CREATE TABLE table_name_67 (date VARCHAR, venue VARCHAR)
What date was a game played at Headingley Stadium?
SELECT date FROM table_name_67 WHERE venue = "headingley stadium"
CREATE TABLE table_name_84 (competition VARCHAR, venue VARCHAR)
What competition was played at Shay Stadium?
SELECT competition FROM table_name_84 WHERE venue = "shay stadium"
CREATE TABLE table_name_45 (show VARCHAR, year VARCHAR, episode_title VARCHAR)
Which show had a part 3 before 2011?
SELECT show FROM table_name_45 WHERE year < 2011 AND episode_title = "part 3"
CREATE TABLE table_name_23 (books VARCHAR, gender VARCHAR, animal_name VARCHAR)
What are the male Bounder books?
SELECT books FROM table_name_23 WHERE gender = "male" AND animal_name = "bounder"
CREATE TABLE table_name_75 (attendance VARCHAR, date VARCHAR)
How many people attended on April 12?
SELECT COUNT(attendance) FROM table_name_75 WHERE date = "april 12"
CREATE TABLE table_name_10 (date VARCHAR, no_built VARCHAR, wheels VARCHAR)
On what date were 5 built with 4-4-2t wheels?
SELECT date FROM table_name_10 WHERE no_built = 5 AND wheels = "4-4-2t"
CREATE TABLE table_name_70 (date VARCHAR, loco_nos VARCHAR)
On what date was the number of locomotives 421-6?
SELECT date FROM table_name_70 WHERE loco_nos = "421-6"
CREATE TABLE table_name_17 (no_built VARCHAR, loco_nos VARCHAR)
How many were built with a locomotive number of 11-20?
SELECT no_built FROM table_name_17 WHERE loco_nos = "11-20"
CREATE TABLE table_name_38 (date VARCHAR, wheels VARCHAR, no_built VARCHAR)
On what date were more than 5 built with 4-4-2 wheels?
SELECT date FROM table_name_38 WHERE wheels = "4-4-2" AND no_built > 5