question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the highest GA when GF is 39?
CREATE TABLE table_1888157_1 (ga INTEGER, gf VARCHAR)
SELECT MAX(ga) FROM table_1888157_1 WHERE gf = 39
What country did mario lemieux play for in 1994?
CREATE TABLE table_name_17 (country VARCHAR, player VARCHAR, year VARCHAR)
SELECT country FROM table_name_17 WHERE player = "mario lemieux" AND year = 1994
Tell me the declination with NGC number larger than 5750
CREATE TABLE table_name_80 (declination___j2000__ VARCHAR, ngc_number INTEGER)
SELECT declination___j2000__ FROM table_name_80 WHERE ngc_number > 5750
Who did the Blue Jays play against on April 24?
CREATE TABLE table_name_44 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_44 WHERE date = "april 24"
What is the sum rank of Solomon Bayoh when his time was smaller than 22.16?
CREATE TABLE table_name_61 (rank INTEGER, athlete VARCHAR, time VARCHAR)
SELECT SUM(rank) FROM table_name_61 WHERE athlete = "solomon bayoh" AND time < 22.16
What institution is represented by the lady saints?
CREATE TABLE table_2589963_1 (institution VARCHAR, women VARCHAR)
SELECT institution FROM table_2589963_1 WHERE women = "Lady Saints"
How many color systems has a bit rate of 5.734?
CREATE TABLE table_1926240_1 (color_system VARCHAR, bit_rate_ VARCHAR, _mbit_s_ VARCHAR)
SELECT COUNT(color_system) FROM table_1926240_1 WHERE bit_rate_[_mbit_s_] = "5.734"
To what party does Cardiss Collins belong?
CREATE TABLE table_1341577_14 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341577_14 WHERE incumbent = "Cardiss Collins"
What group info is available for the 56.5 kg weight?
CREATE TABLE table_1358608_2 (group VARCHAR, weight__kg_ VARCHAR)
SELECT group FROM table_1358608_2 WHERE weight__kg_ = "56.5"
What club team has 216 overall?
CREATE TABLE table_name_70 (club_team VARCHAR, overall VARCHAR)
SELECT club_team FROM table_name_70 WHERE overall = 216
Which location has 101,119 as the capacity?
CREATE TABLE table_name_72 (location VARCHAR, capacity VARCHAR)
SELECT location FROM table_name_72 WHERE capacity = "101,119"
Who was the away team at Lake Oval?
CREATE TABLE table_name_36 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_36 WHERE venue = "lake oval"
What in the minimum number of championships won by a nation?
CREATE TABLE table_19487922_2 (championships INTEGER)
SELECT MIN(championships) FROM table_19487922_2
what's the district  with first elected being 1938
CREATE TABLE table_1342292_2 (district VARCHAR, first_elected VARCHAR)
SELECT district FROM table_1342292_2 WHERE first_elected = 1938
What is the percentage for Mel Martinez when the sample size is 800?
CREATE TABLE table_name_6 (mel_martinez__r_ VARCHAR, sample_size VARCHAR)
SELECT mel_martinez__r_ FROM table_name_6 WHERE sample_size = 800
What party is the delegate of Turner, Frank S. Frank S. Turner of Howard County?
CREATE TABLE table_name_50 (party VARCHAR, counties_represented VARCHAR, delegate VARCHAR)
SELECT party FROM table_name_50 WHERE counties_represented = "howard" AND delegate = "turner, frank s. frank s. turner"
What were the "other details" (number released) for "is my love will follow me"?
CREATE TABLE table_18710512_3 (other_details VARCHAR, single VARCHAR)
SELECT other_details FROM table_18710512_3 WHERE single = "My Love Will Follow Me"
How many tests have result "Fail"?
CREATE TABLE Student_Tests_Taken (test_result VARCHAR)
SELECT COUNT(*) FROM Student_Tests_Taken WHERE test_result = "Fail"
How many grids were there races with more than 10 laps and a time of +34.121?
CREATE TABLE table_name_83 (grid VARCHAR, time VARCHAR, laps VARCHAR)
SELECT COUNT(grid) FROM table_name_83 WHERE time = "+34.121" AND laps > 10
What is the real name of the person who is a pilot of the silent attack kayak?
CREATE TABLE table_name_28 (real_name VARCHAR, function__figure_ VARCHAR)
SELECT real_name FROM table_name_28 WHERE function__figure_ = "pilot of the silent attack kayak"
What is the average pick for Princeton after round 3?
CREATE TABLE table_name_29 (pick INTEGER, round VARCHAR, college VARCHAR)
SELECT AVG(pick) FROM table_name_29 WHERE round > 3 AND college = "princeton"
Who was Team #1 when Team #2 was galatasaray cc i̇stanbul?
CREATE TABLE table_name_20 (team__number1 VARCHAR, team__number2 VARCHAR)
SELECT team__number1 FROM table_name_20 WHERE team__number2 = "galatasaray cc i̇stanbul"
What is the customer first, last name and id with least number of accounts.
CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)
SELECT T2.customer_first_name, T2.customer_last_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1
What's the average year that sara orlesky and farhan lalji are the sideline reporters?
CREATE TABLE table_name_65 (year INTEGER, sideline_reporters VARCHAR)
SELECT AVG(year) FROM table_name_65 WHERE sideline_reporters = "sara orlesky and farhan lalji"
What is set 3 on week 6?
CREATE TABLE table_name_1 (set_3 VARCHAR, week VARCHAR)
SELECT set_3 FROM table_name_1 WHERE week = 6
List the distinct police forces of counties whose location is not on east side.
CREATE TABLE county_public_safety (Police_force VARCHAR, LOCATION VARCHAR)
SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION <> "East"
Find the names of employees who never won any award in the evaluation.
CREATE TABLE evaluation (name VARCHAR, Employee_ID VARCHAR); CREATE TABLE employee (name VARCHAR, Employee_ID VARCHAR)
SELECT name FROM employee WHERE NOT Employee_ID IN (SELECT Employee_ID FROM evaluation)
What is the losses for the 5 matches?
CREATE TABLE table_name_40 (losses VARCHAR, matches VARCHAR)
SELECT losses FROM table_name_40 WHERE matches = "5"
Anthony West ride which Motorcyle?
CREATE TABLE table_name_23 (motorcycle VARCHAR, rider VARCHAR)
SELECT motorcycle FROM table_name_23 WHERE rider = "anthony west"
What is the builder launched 30 october 1944?
CREATE TABLE table_1206583_2 (builder VARCHAR, launched VARCHAR)
SELECT builder FROM table_1206583_2 WHERE launched = "30 October 1944"
What is the television network with the television channel of Astro Pelangi & Astro Bintang?
CREATE TABLE table_27469019_2 (television_network VARCHAR, television_channel VARCHAR)
SELECT television_network FROM table_27469019_2 WHERE television_channel = "Astro Pelangi & Astro Bintang"
What is the total number of rounds at 5:36?
CREATE TABLE table_name_29 (round VARCHAR, time VARCHAR)
SELECT COUNT(round) FROM table_name_29 WHERE time = "5:36"
What is the total for Bernhard Langer?
CREATE TABLE table_name_83 (total VARCHAR, player VARCHAR)
SELECT COUNT(total) FROM table_name_83 WHERE player = "bernhard langer"
What is the Col entry for the peak with an elevation of 2,308 meters?
CREATE TABLE table_name_86 (col__m_ VARCHAR, elevation__m_ VARCHAR)
SELECT COUNT(col__m_) FROM table_name_86 WHERE elevation__m_ = 2 OFFSET 308
What is the High assists with a Date that is february 27?
CREATE TABLE table_name_42 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_name_42 WHERE date = "february 27"
What is the status of the pterosaur named Cathayopterus?
CREATE TABLE table_name_40 (status VARCHAR, name VARCHAR)
SELECT status FROM table_name_40 WHERE name = "cathayopterus"
Which store owns most items?
CREATE TABLE inventory (store_id VARCHAR)
SELECT store_id FROM inventory GROUP BY store_id ORDER BY COUNT(*) DESC LIMIT 1
Who is the player in tight end position in a round below 12 that has a pick greater than 17?
CREATE TABLE table_name_81 (player VARCHAR, position VARCHAR, pick VARCHAR, round VARCHAR)
SELECT player FROM table_name_81 WHERE pick > 17 AND round < 12 AND position = "tight end"
How many points are associated with a Time/Retired of +10.131 secs?
CREATE TABLE table_name_77 (points VARCHAR, time_retired VARCHAR)
SELECT COUNT(points) FROM table_name_77 WHERE time_retired = "+10.131 secs"
What was the score in the final where one of the opponents in the final was fitzgerald vilas?
CREATE TABLE table_22597626_17 (score_in_the_final VARCHAR, opponents_in_the_final VARCHAR)
SELECT score_in_the_final FROM table_22597626_17 WHERE opponents_in_the_final = "Fitzgerald Vilas"
How many ends were won where the blank ends are smaller than 3.0?
CREATE TABLE table_25718552_2 (Ends VARCHAR, blank_ends INTEGER)
SELECT Ends AS won FROM table_25718552_2 WHERE blank_ends < 3.0
Which template type code has most number of templates?
CREATE TABLE Templates (template_type_code VARCHAR)
SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY COUNT(*) DESC LIMIT 1
What was the decision in Minnesota?
CREATE TABLE table_name_12 (decision VARCHAR, home VARCHAR)
SELECT decision FROM table_name_12 WHERE home = "minnesota"
What was the date of the game when the record was 9–5–2?
CREATE TABLE table_name_78 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_78 WHERE record = "9–5–2"
Which Round has a Location of bahia, brazil?
CREATE TABLE table_name_52 (round INTEGER, location VARCHAR)
SELECT AVG(round) FROM table_name_52 WHERE location = "bahia, brazil"
What is the position of the song that was eliminated on 11 november?
CREATE TABLE table_23585197_3 (position INTEGER, date_eliminated VARCHAR)
SELECT MAX(position) FROM table_23585197_3 WHERE date_eliminated = "11 November"
Name the calcium for fat being 6.5
CREATE TABLE table_2493389_1 (calcium__mg_ VARCHAR, fat__g_ VARCHAR)
SELECT calcium__mg_ FROM table_2493389_1 WHERE fat__g_ = "6.5"
What is the callsign for the Cebu station?
CREATE TABLE table_17822401_1 (callsign VARCHAR, location VARCHAR)
SELECT callsign FROM table_17822401_1 WHERE location = "Cebu"
Find the distinct student first names of all students that have grade point at least 3.8 in one course.
CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint VARCHAR, lettergrade VARCHAR)
SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8
What is the lowest start in a year after 2008?
CREATE TABLE table_name_62 (start INTEGER, year INTEGER)
SELECT MIN(start) FROM table_name_62 WHERE year > 2008
What is the address of employee Nancy Edwards?
CREATE TABLE employees (address VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT address FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards"
what is the pick for alfred morris when the overall is less than 217, and the round is smaller than 6?
CREATE TABLE table_name_49 (pick INTEGER, round VARCHAR, overall VARCHAR, name VARCHAR)
SELECT MAX(pick) FROM table_name_49 WHERE overall < 217 AND name = "alfred morris" AND round < 6
What is the lowest wk 7 with a wk 3 value of 12, a wk 4 less than 9, and a wk 2 greater than 11?
CREATE TABLE table_name_1 (wk_7 INTEGER, wk_2 VARCHAR, wk_3 VARCHAR, wk_4 VARCHAR)
SELECT MIN(wk_7) FROM table_name_1 WHERE wk_3 = 12 AND wk_4 < 9 AND wk_2 > 11
If the record is 6-8, what was the score?
CREATE TABLE table_23285805_4 (score VARCHAR, record VARCHAR)
SELECT score FROM table_23285805_4 WHERE record = "6-8"
What is the total membership for the metropolitan area in the city of Manchester?
CREATE TABLE table_2273738_1 (metropolitan_area INTEGER, city VARCHAR)
SELECT MAX(metropolitan_area) FROM table_2273738_1 WHERE city = "Manchester"
Name the opponets for 6–4, 3–6, 6–2
CREATE TABLE table_2009095_2 (opponents VARCHAR, score VARCHAR)
SELECT opponents FROM table_2009095_2 WHERE score = "6–4, 3–6, 6–2"
What was the margin of victory when Mark Calcavecchia was the runner-up?
CREATE TABLE table_name_53 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT margin_of_victory FROM table_name_53 WHERE runner_s__up = "mark calcavecchia"
Which 2011 has a 2010 of 1r, and a 2009 of 1r?
CREATE TABLE table_name_99 (Id VARCHAR)
SELECT 2011 FROM table_name_99 WHERE 2010 = "1r" AND 2009 = "1r"
What year had 134 laps?
CREATE TABLE table_name_75 (year VARCHAR, laps VARCHAR)
SELECT year FROM table_name_75 WHERE laps = 134
What was the nationality of the winner on December 8, 1968?
CREATE TABLE table_name_99 (country VARCHAR, date VARCHAR)
SELECT country FROM table_name_99 WHERE date = "december 8, 1968"
In what class is the laps greater than 134 and the position is 4th?
CREATE TABLE table_name_74 (class VARCHAR, laps VARCHAR, pos VARCHAR)
SELECT class FROM table_name_74 WHERE laps > 134 AND pos = "4th"
Who is in November after 1988 when Prinzzess is in October?
CREATE TABLE table_name_52 (november VARCHAR, year VARCHAR, october VARCHAR)
SELECT november FROM table_name_52 WHERE year > 1988 AND october = "prinzzess"
Name the highest year with rank of 22 and accolade of singles of 1999
CREATE TABLE table_name_89 (year INTEGER, accolade VARCHAR, rank VARCHAR)
SELECT MAX(year) FROM table_name_89 WHERE accolade = "singles of 1999" AND rank = "22"
What is the tournament on 22 October 2012?
CREATE TABLE table_name_46 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_46 WHERE date = "22 october 2012"
How much General election has a Share of votes of 17%?
CREATE TABLE table_name_92 (general_election INTEGER, share_of_votes VARCHAR)
SELECT SUM(general_election) FROM table_name_92 WHERE share_of_votes = "17%"
What was the percentage of yes votes for the measure where the no votes number 199174?
CREATE TABLE table_256286_45 (_percentage_yes VARCHAR, no_votes VARCHAR)
SELECT _percentage_yes FROM table_256286_45 WHERE no_votes = 199174
If the number of police officers is 94, what is the lowest population number?
CREATE TABLE table_12340907_1 (population INTEGER, police_officers VARCHAR)
SELECT MIN(population) FROM table_12340907_1 WHERE police_officers = 94
What kind of socket is on the microprocessor with a part number of 80526pz533256?
CREATE TABLE table_name_28 (socket VARCHAR, part_number_s_ VARCHAR)
SELECT socket FROM table_name_28 WHERE part_number_s_ = "80526pz533256"
what is the road numbers when the build year is 1943, the railroad (quantity) is clinchfield railroad (12 new, 6 secondhand)?
CREATE TABLE table_name_33 (road_numbers VARCHAR, build_year VARCHAR, railroad__quantity_ VARCHAR)
SELECT road_numbers FROM table_name_33 WHERE build_year = "1943" AND railroad__quantity_ = "clinchfield railroad (12 new, 6 secondhand)"
What is the Best of the racer with a Qual 2 of 1:00.588?
CREATE TABLE table_name_31 (best VARCHAR, qual_2 VARCHAR)
SELECT best FROM table_name_31 WHERE qual_2 = "1:00.588"
What country has Dave Barr as a player?
CREATE TABLE table_name_45 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_45 WHERE player = "dave barr"
What tie happened with Southampton?
CREATE TABLE table_name_38 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_38 WHERE away_team = "southampton"
How long was the match with Jaime Fletcher?
CREATE TABLE table_name_83 (time VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_83 WHERE opponent = "jaime fletcher"
What is the highest block that has 15.09.1981 as the date, and a height greater than 202?
CREATE TABLE table_name_76 (block INTEGER, date_of_birth VARCHAR, height VARCHAR)
SELECT MAX(block) FROM table_name_76 WHERE date_of_birth = "15.09.1981" AND height > 202
What's the total number of games with more than 20 points for the 1976 season?
CREATE TABLE table_name_89 (games VARCHAR, season VARCHAR, points VARCHAR)
SELECT COUNT(games) FROM table_name_89 WHERE season = "1976" AND points > 20
What were the high points on April 8?
CREATE TABLE table_27713030_12 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_27713030_12 WHERE date = "April 8"
What is the record in the atlantic coast conference for the Miami team?
CREATE TABLE table_28744929_2 (acc_record VARCHAR, team VARCHAR)
SELECT acc_record FROM table_28744929_2 WHERE team = "Miami"
What is the rank of the match on October 19?
CREATE TABLE table_name_72 (rank__number VARCHAR, date VARCHAR)
SELECT rank__number FROM table_name_72 WHERE date = "october 19"
Which Tournament has a 2004 of 1r?
CREATE TABLE table_name_59 (tournament VARCHAR)
SELECT tournament FROM table_name_59 WHERE 2004 = "1r"
What is the Date of the game with a Score of L 115–118 (OT)?
CREATE TABLE table_name_75 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_75 WHERE score = "l 115–118 (ot)"
What venue hosted the stan fox stakes?
CREATE TABLE table_name_72 (venue VARCHAR, race VARCHAR)
SELECT venue FROM table_name_72 WHERE race = "stan fox stakes"
with a Rider of marco melandri, and a Grid smaller than 10, what is the highest lap count?
CREATE TABLE table_name_85 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT MAX(laps) FROM table_name_85 WHERE rider = "marco melandri" AND grid < 10
What year won has a total less than 281?
CREATE TABLE table_name_71 (year_s__won VARCHAR, total INTEGER)
SELECT year_s__won FROM table_name_71 WHERE total < 281
Which years did the Rockets number 6 play?
CREATE TABLE table_name_80 (years_for_rockets VARCHAR, no_s_ VARCHAR)
SELECT years_for_rockets FROM table_name_80 WHERE no_s_ = "6"
Name the episode that aired october 8, 1988
CREATE TABLE table_name_81 (episode_title VARCHAR, original_airdate VARCHAR)
SELECT episode_title FROM table_name_81 WHERE original_airdate = "october 8, 1988"
How many times is the player scott deibert?
CREATE TABLE table_name_72 (pick__number VARCHAR, player VARCHAR)
SELECT COUNT(pick__number) FROM table_name_72 WHERE player = "scott deibert"
When was the home Los Angeles Lakers?
CREATE TABLE table_name_87 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_87 WHERE home = "los angeles lakers"
What are the population, name and leader of the country with the largest area?
CREATE TABLE country (Name VARCHAR, population VARCHAR, HeadOfState VARCHAR, SurfaceArea VARCHAR)
SELECT Name, population, HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1
How many wins did they have at Richmond Cricket Ground Stadium?
CREATE TABLE table_name_20 (wins VARCHAR, stadium VARCHAR)
SELECT wins FROM table_name_20 WHERE stadium = "richmond cricket ground"
When was the Attendance larger than 74,382?
CREATE TABLE table_name_36 (date VARCHAR, attendance INTEGER)
SELECT date FROM table_name_36 WHERE attendance > 74 OFFSET 382
What was the 1st leg when Team 2 was Aurora?
CREATE TABLE table_name_3 (team_2 VARCHAR)
SELECT 1 AS st_leg FROM table_name_3 WHERE team_2 = "aurora"
Which Year has an Album of airwaves, and a US Hot 100 of –?
CREATE TABLE table_name_64 (year INTEGER, album VARCHAR, us_hot_100 VARCHAR)
SELECT MAX(year) FROM table_name_64 WHERE album = "airwaves" AND us_hot_100 = "–"
Which Venue has a Date of january 9, 2011?
CREATE TABLE table_name_51 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_51 WHERE date = "january 9, 2011"
What is the total number of picks for Calgary College?
CREATE TABLE table_name_30 (pick__number VARCHAR, college VARCHAR)
SELECT COUNT(pick__number) FROM table_name_30 WHERE college = "calgary"
Name the place that was founded in 1920
CREATE TABLE table_262560_1 (institution VARCHAR, founded VARCHAR)
SELECT institution FROM table_262560_1 WHERE founded = 1920
What's the Cardinalatial Title has the Elevated of December 18, 1182, the Place of birth of Lucca, and the Electo rof Pandolfo?
CREATE TABLE table_name_40 (cardinalatial_title VARCHAR, elector VARCHAR, elevated VARCHAR, place_of_birth VARCHAR)
SELECT cardinalatial_title FROM table_name_40 WHERE elevated = "december 18, 1182" AND place_of_birth = "lucca" AND elector = "pandolfo"
what was the att-cmp-int for the qb with an effic of 127.89?
CREATE TABLE table_name_85 (att_cmp_int VARCHAR, effic VARCHAR)
SELECT att_cmp_int FROM table_name_85 WHERE effic = 127.89
Which country has a population of 3,221,216?
CREATE TABLE table_name_79 (country VARCHAR, population__2011_est_ VARCHAR)
SELECT country FROM table_name_79 WHERE population__2011_est_ = "3,221,216"
Which entrant has fewer than 12 points, a Climax engine, and a Lotus 24 chassis?
CREATE TABLE table_name_63 (entrant VARCHAR, chassis VARCHAR, pts VARCHAR, engine VARCHAR)
SELECT entrant FROM table_name_63 WHERE pts < 12 AND engine = "climax" AND chassis = "lotus 24"
What is the total of electors when the share of votes was 11,0%?
CREATE TABLE table_name_70 (electors INTEGER, share_of_votes VARCHAR)
SELECT SUM(electors) FROM table_name_70 WHERE share_of_votes = "11,0%"