answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT home FROM table_name_84 WHERE guest = "fk kom"
Who was the home team when FK kom were the guests?
CREATE TABLE table_name_84 (home VARCHAR, guest VARCHAR)
SELECT SUM(round) FROM table_name_68 WHERE college = "north carolina" AND overall > 124
what is the round when the college is north carolina and the overall is more than 124?
CREATE TABLE table_name_68 (round INTEGER, college VARCHAR, overall VARCHAR)
SELECT country FROM table_1333612_1 WHERE es_mulatto = "3.5%"
what's the country with es mulatto being 3.5%
CREATE TABLE table_1333612_1 (country VARCHAR, es_mulatto VARCHAR)
SELECT MIN(team_s_) FROM table_name_31 WHERE top_goalscorer_s_ = "tvmk" AND champion = "flora"
What is the lowest team (s) that have tvmk as top scorer (s) and flora as the champion?
CREATE TABLE table_name_31 (team_s_ INTEGER, top_goalscorer_s_ VARCHAR, champion VARCHAR)
SELECT SUM(blank_ends) FROM table_name_39 WHERE nation = "denmark" AND ends_lost < 42
What is the sum of Blank Ends for Denmark when less than 42 is the ends lost?
CREATE TABLE table_name_39 (blank_ends INTEGER, nation VARCHAR, ends_lost VARCHAR)
SELECT MIN(silver) FROM table_name_99 WHERE rank > 8
What is the fewest number of silver medals a nation who ranked below 8 received?
CREATE TABLE table_name_99 (silver INTEGER, rank INTEGER)
SELECT _percentage_change FROM table_name_68 WHERE airport = "london heathrow airport"
What is the % Change at London Heathrow airport?
CREATE TABLE table_name_68 (_percentage_change VARCHAR, airport VARCHAR)
SELECT school_club_team FROM table_10015132_11 WHERE no = "21"
What school did player number 21 play for?
CREATE TABLE table_10015132_11 (school_club_team VARCHAR, no VARCHAR)
SELECT SUM(year) FROM table_name_85 WHERE community_award = "jarrod harbrow"
Which Year has a Community Award of jarrod harbrow?
CREATE TABLE table_name_85 (year INTEGER, community_award VARCHAR)
SELECT event_place FROM table_name_25 WHERE time = "58:33"
Where did someone run a 58:33?
CREATE TABLE table_name_25 (event_place VARCHAR, time VARCHAR)
SELECT company, rank FROM company ORDER BY Sales_billion DESC
List the company name and rank for all companies in the decreasing order of their sales.
CREATE TABLE company (company VARCHAR, rank VARCHAR, Sales_billion VARCHAR)
SELECT pick FROM table_name_15 WHERE school = "lamar high school"
Which pick was from Lamar High School?
CREATE TABLE table_name_15 (pick VARCHAR, school VARCHAR)
SELECT MIN(year) FROM table_name_42 WHERE winning_score = –4(69 - 72 - 70 - 69 = 280)
Which Year has a Winning score of –4 (69-72-70-69=280)?
CREATE TABLE table_name_42 (year INTEGER, winning_score VARCHAR)
SELECT film_title_used_in_nomination FROM table_12842068_1 WHERE submitting_country = "Lebanon"
What was the title of the movie from lebanon?
CREATE TABLE table_12842068_1 (film_title_used_in_nomination VARCHAR, submitting_country VARCHAR)
SELECT method FROM table_name_4 WHERE record = "11-1"
Which method has the record of 11-1?
CREATE TABLE table_name_4 (method VARCHAR, record VARCHAR)
SELECT lane FROM table_name_86 WHERE nationality = "new zealand"
what lane was new zealand in?
CREATE TABLE table_name_86 (lane VARCHAR, nationality VARCHAR)
SELECT position FROM table_name_34 WHERE college = "washington"
What position did the palyer drafted out of Washington play?
CREATE TABLE table_name_34 (position VARCHAR, college VARCHAR)
SELECT COUNT(rank) FROM table_name_62 WHERE team = "tau cerámica" AND points = 377 AND games > 21
What's the rank of the Tau Cerámica that has 377 points and more than 21 games?
CREATE TABLE table_name_62 (rank VARCHAR, games VARCHAR, team VARCHAR, points VARCHAR)
SELECT MIN(shirt_no) FROM table_name_63 WHERE birth_date = "april 12, 1986 (age27)"
What shirt No has a Birth Date of April 12, 1986 (age27)?
CREATE TABLE table_name_63 (shirt_no INTEGER, birth_date VARCHAR)
SELECT COUNT(pick) FROM table_name_51 WHERE round > 1 AND draft < 2002 AND college_high_school_club = "western kentucky"
What is the total pick number of the player from a round greater than 1, a draft before 2002, and with the college/high school/club of western kentucky?
CREATE TABLE table_name_51 (pick VARCHAR, college_high_school_club VARCHAR, round VARCHAR, draft VARCHAR)
SELECT result FROM table_name_76 WHERE date = "june 12, 1997"
What's the Result listed that has a Date of June 12, 1997?
CREATE TABLE table_name_76 (result VARCHAR, date VARCHAR)
SELECT pashto FROM table_name_24 WHERE somali = "talaado"
What is the Pashto word for the Somali word talaado?
CREATE TABLE table_name_24 (pashto VARCHAR, somali VARCHAR)
SELECT SUM(decile) FROM table_name_36 WHERE roll > 513
What is the decile of the school with a roll larger than 513?
CREATE TABLE table_name_36 (decile INTEGER, roll INTEGER)
SELECT clerk FROM table_name_14 WHERE highway_commissioners = "albert lewis"
Who was the clerk when the highway commissioner was Albert Lewis?
CREATE TABLE table_name_14 (clerk VARCHAR, highway_commissioners VARCHAR)
SELECT round FROM table_name_92 WHERE year = 1987
What is Round when Year is 1987?
CREATE TABLE table_name_92 (round VARCHAR, year VARCHAR)
SELECT year_joined FROM table_name_6 WHERE city = "winamac"
What year did the team based in the city of Winamac join the conference?
CREATE TABLE table_name_6 (year_joined VARCHAR, city VARCHAR)
SELECT MAX(passenger_fleet) FROM table_name_77 WHERE airline_holding = "wizz air" AND current_destinations < 83
For an airline of Wizz Air and fewer than 83 destinations, what is the highest passenger fleet?
CREATE TABLE table_name_77 (passenger_fleet INTEGER, airline_holding VARCHAR, current_destinations VARCHAR)
SELECT attendance FROM table_name_40 WHERE date = "october 31"
How many people attended the game on October 31?
CREATE TABLE table_name_40 (attendance VARCHAR, date VARCHAR)
SELECT location FROM table_name_78 WHERE year > 2006 AND score = "6–3, 6–3"
Which Location has a Year larger than 2006, and a Score of 6–3, 6–3?
CREATE TABLE table_name_78 (location VARCHAR, year VARCHAR, score VARCHAR)
SELECT date_successor_seated FROM table_2159547_3 WHERE vacator = "James P. Buchanan (D)"
On what date was James P. Buchanan (d)'s successor seated?
CREATE TABLE table_2159547_3 (date_successor_seated VARCHAR, vacator VARCHAR)
SELECT MIN(swimsuit) FROM table_name_38 WHERE average = 9.125
What is the lowest swimsuit for a contestant with an average of 9.125?
CREATE TABLE table_name_38 (swimsuit INTEGER, average VARCHAR)
SELECT COUNT(year) FROM table_12164707_1 WHERE mens_singles = "Peter Mikkelsen"
How many years did Peter Mikkelsen win the Mens Singles?
CREATE TABLE table_12164707_1 (year VARCHAR, mens_singles VARCHAR)
SELECT COUNT(permitted_seats) FROM table_19304764_2 WHERE discipline = "General Surgery"
Name the total number of seats for general surgery
CREATE TABLE table_19304764_2 (permitted_seats VARCHAR, discipline VARCHAR)
SELECT COUNT(podiums) FROM table_18811741_15 WHERE stage_wins = 18
How many podiums for the driver with 18 stage wins?
CREATE TABLE table_18811741_15 (podiums VARCHAR, stage_wins VARCHAR)
SELECT institution FROM table_1974482_1 WHERE nickname = "Statesmen"
Name the institution for statesmen
CREATE TABLE table_1974482_1 (institution VARCHAR, nickname VARCHAR)
SELECT AVG(interview) FROM table_name_79 WHERE average > 9.233 AND swimsuit = 9.473 AND evening_gown > 9.671
Which mean interview number had an average of more than 9.233, a swimsuit stat of more than 9.473, and an evening gown score of more than 9.671?
CREATE TABLE table_name_79 (interview INTEGER, evening_gown VARCHAR, average VARCHAR, swimsuit VARCHAR)
SELECT location_attendance FROM table_27733909_9 WHERE game = 70
What is the location and attendance of game 70?
CREATE TABLE table_27733909_9 (location_attendance VARCHAR, game VARCHAR)
SELECT player FROM table_name_49 WHERE club_province = "aurillac"
Who is the player from Aurillac?
CREATE TABLE table_name_49 (player VARCHAR, club_province VARCHAR)
SELECT brooklyn FROM table_1108394_6 WHERE manhattan = "3,139"
What was the total in Brooklyn when Manhattan was 3,139?
CREATE TABLE table_1108394_6 (brooklyn VARCHAR, manhattan VARCHAR)
SELECT gold FROM table_name_71 WHERE bronze = "11"
What is Gold, when Bronze is 11?
CREATE TABLE table_name_71 (gold VARCHAR, bronze VARCHAR)
SELECT parish__prestegjeld_ FROM table_178381_1 WHERE church_name = "Askrova bedehuskapell"
In what parish is the Askrova Bedehuskapell church?
CREATE TABLE table_178381_1 (parish__prestegjeld_ VARCHAR, church_name VARCHAR)
SELECT score FROM table_name_97 WHERE save = "postponed rescheduled for june 24"
What is the score of the match with a save postponed rescheduled for June 24?
CREATE TABLE table_name_97 (score VARCHAR, save VARCHAR)
SELECT romanian__colloquial_ FROM table_23710609_2 WHERE english = "(s)he will sing"
What is the colloquial translation of (s)he will sing?
CREATE TABLE table_23710609_2 (romanian__colloquial_ VARCHAR, english VARCHAR)
SELECT SUM(year) FROM table_name_45 WHERE points > 46 AND rank = "6th"
What is year that has points larger than 46, and a rank of 6th?
CREATE TABLE table_name_45 (year INTEGER, points VARCHAR, rank VARCHAR)
SELECT opponent FROM table_name_15 WHERE date = "september 19, 1994"
Who was the opponent for the game played on September 19, 1994?
CREATE TABLE table_name_15 (opponent VARCHAR, date VARCHAR)
SELECT position FROM table_name_22 WHERE college = "toronto"
What position did the CFL player drafted out of college of toronto in 2007 play?
CREATE TABLE table_name_22 (position VARCHAR, college VARCHAR)
SELECT MIN(game) FROM table_27756474_6 WHERE location_attendance = "US Airways Center 16,470"
Name the most game for us airways center 16,470
CREATE TABLE table_27756474_6 (game INTEGER, location_attendance VARCHAR)
SELECT gold FROM table_name_38 WHERE rank = "7"
What is Gold, when Rank is 7?
CREATE TABLE table_name_38 (gold VARCHAR, rank VARCHAR)
SELECT COUNT(total) FROM table_name_87 WHERE gymnast = "chen yibing ( chn )" AND b_score < 9.225
What is the total for Chen Yibing ( chn ), when his B Score was smaller than 9.225?
CREATE TABLE table_name_87 (total VARCHAR, gymnast VARCHAR, b_score VARCHAR)
SELECT location_attendance FROM table_name_16 WHERE record = "21–22"
What is the Location and Attendance with a Record of 21–22?
CREATE TABLE table_name_16 (location_attendance VARCHAR, record VARCHAR)
SELECT district FROM table_name_61 WHERE incumbent = "joseph t. johnson"
Which district has joseph t. johnson as an incumbent?
CREATE TABLE table_name_61 (district VARCHAR, incumbent VARCHAR)
SELECT 2011 AS _gdp__ppp__billions_of_usd FROM table_2248784_3 WHERE country = "Pakistan"
Name the 2011 gdp for pakistan
CREATE TABLE table_2248784_3 (country VARCHAR)
SELECT mixed_doubles FROM table_14496232_2 WHERE womens_singles = "Zhu Lin"
Name the mixed doubles for zhu lin
CREATE TABLE table_14496232_2 (mixed_doubles VARCHAR, womens_singles VARCHAR)
SELECT mccain__percentage FROM table_20278716_2 WHERE others__percentage = "2.1%"
What percentage of voters chose McCain in the county where 2.1% of voters voted third party?
CREATE TABLE table_20278716_2 (mccain__percentage VARCHAR, others__percentage VARCHAR)
SELECT MIN(decile) FROM table_name_70 WHERE name = "st mary's catholic school"
What is the smallest decile with a Name of st mary's catholic school?
CREATE TABLE table_name_70 (decile INTEGER, name VARCHAR)
SELECT played FROM table_name_24 WHERE club = "rhymney rfc"
How many matches have Rhymney RFC played?
CREATE TABLE table_name_24 (played VARCHAR, club VARCHAR)
SELECT country FROM table_name_73 WHERE champion = "jocelyne bourassa"
What country does jocelyne bourassa play for?
CREATE TABLE table_name_73 (country VARCHAR, champion VARCHAR)
SELECT club FROM table_name_73 WHERE goals_against < 60 AND goal_difference < 1 AND position = 8
What club has less than 60 goals against, a goal difference smaller than 1, and a position of 8?
CREATE TABLE table_name_73 (club VARCHAR, position VARCHAR, goals_against VARCHAR, goal_difference VARCHAR)
SELECT mls_team FROM table_name_41 WHERE player = "jimmy frazelle"
What team does Jimmy Frazelle play on?
CREATE TABLE table_name_41 (mls_team VARCHAR, player VARCHAR)
SELECT wrestler FROM table_name_6 WHERE elimination = "7"
What Wrestler has an Elimination of 7?
CREATE TABLE table_name_6 (wrestler VARCHAR, elimination VARCHAR)
SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500
display all the information of the employees whose salary if within the range of smallest salary and 2500.
CREATE TABLE employees (salary INTEGER)
SELECT to_par FROM table_name_35 WHERE place = "t6" AND player = "tom watson"
When Tom Watson placed t6, what was the 2 par?
CREATE TABLE table_name_35 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT location FROM table_name_83 WHERE opponent = "chicago bulls"
Opponent of chicago bulls had what location?
CREATE TABLE table_name_83 (location VARCHAR, opponent VARCHAR)
SELECT SUM(2001) FROM table_name_73 WHERE year = "ebitda" AND 2009 < 3 OFFSET 600
what is 2001 when the year is ebitda and 2009 is less than 3,600?
CREATE TABLE table_name_73 (year VARCHAR)
SELECT MAX(game) FROM table_name_44 WHERE opponent = "chicago black hawks" AND november < 16
What is the highest Game, when Opponent is "Chicago Black Hawks", and when November is less than 16?
CREATE TABLE table_name_44 (game INTEGER, opponent VARCHAR, november VARCHAR)
SELECT COUNT(qual) FROM table_name_16 WHERE laps > 93 AND rank = 32 AND grid < 32
Tell me the total number of Qual Laps higher than 93 with a Rank of 32 with Grid less than 32
CREATE TABLE table_name_16 (qual VARCHAR, grid VARCHAR, laps VARCHAR, rank VARCHAR)
SELECT result FROM table_name_27 WHERE opponent = "clyde" AND venue = "h"
What is the result of the match with clyde as the opponent in the h venue?
CREATE TABLE table_name_27 (result VARCHAR, opponent VARCHAR, venue VARCHAR)
SELECT head FROM department GROUP BY departmentID ORDER BY COUNT(departmentID) LIMIT 1
What is the employee id of the head whose department has the least number of employees?
CREATE TABLE department (head VARCHAR, departmentID VARCHAR)
SELECT player FROM table_name_17 WHERE pick__number < 61 AND college = "texas"
WHo is the Player got a Pick # smaller than 61, and a College of texas?
CREATE TABLE table_name_17 (player VARCHAR, pick__number VARCHAR, college VARCHAR)
SELECT Accreditation_type, COUNT(*) FROM phone GROUP BY Accreditation_type
Find the number of phones for each accreditation type.
CREATE TABLE phone (Accreditation_type VARCHAR)
SELECT team FROM table_name_75 WHERE year = 2008
What team has a year listed of 2008?
CREATE TABLE table_name_75 (team VARCHAR, year VARCHAR)
SELECT percentage_of_global_total FROM table_11251601_2 WHERE country = "India"
WHAT PERCENTAGE OF GLOBAL TOTAL EMISSIONS DID INDIA PRODUCE?
CREATE TABLE table_11251601_2 (percentage_of_global_total VARCHAR, country VARCHAR)
SELECT site_stadium FROM table_name_78 WHERE score = "1-2"
Which site/stadium was the score 1-2?
CREATE TABLE table_name_78 (site_stadium VARCHAR, score VARCHAR)
SELECT SUM(season) FROM table_name_34 WHERE runner_s__up = "tenley molzahn"
What was the season that the runner -up was Tenley Molzahn?
CREATE TABLE table_name_34 (season INTEGER, runner_s__up VARCHAR)
SELECT date FROM table_name_39 WHERE tournament = "indian wells"
What date was the tournament in Indian Wells?
CREATE TABLE table_name_39 (date VARCHAR, tournament VARCHAR)
SELECT party FROM table_1341522_13 WHERE district = "Georgia7"
What party won in the district Georgia7?
CREATE TABLE table_1341522_13 (party VARCHAR, district VARCHAR)
SELECT jump_2 FROM table_name_58 WHERE jump_1 = "7.14"
What is the Jump 2 of the person that has a Jump 1 of 7.14
CREATE TABLE table_name_58 (jump_2 VARCHAR, jump_1 VARCHAR)
SELECT AVG(followers) FROM user_profiles WHERE NOT UID IN (SELECT UID FROM tweets)
Find the average number of followers for the users who do not have any tweet.
CREATE TABLE user_profiles (followers INTEGER, UID VARCHAR); CREATE TABLE tweets (followers INTEGER, UID VARCHAR)
SELECT AVG(draws) FROM table_name_1 WHERE al_ahly_wins > 59
What is the average number of draws for Al Ahly wins over 59?
CREATE TABLE table_name_1 (draws INTEGER, al_ahly_wins INTEGER)
SELECT date FROM table_name_67 WHERE home = "colorado"
What was the date of the home game for Colorado?
CREATE TABLE table_name_67 (date VARCHAR, home VARCHAR)
SELECT home_team AS score FROM table_name_10 WHERE venue = "glenferrie oval"
What was the home team score at Glenferrie Oval?
CREATE TABLE table_name_10 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(attendance) FROM table_name_90 WHERE opponent = "swindon wildcats"
How much Attendance has an Opponent of swindon wildcats?
CREATE TABLE table_name_90 (attendance VARCHAR, opponent VARCHAR)
SELECT summary FROM table_15829930_5 WHERE success_rate = "68.75%"
Name the summary for the success rate for 68.75%
CREATE TABLE table_15829930_5 (summary VARCHAR, success_rate VARCHAR)
SELECT date FROM table_name_45 WHERE attendance > 50 OFFSET 324
What game had more than 50,324 in attendance?
CREATE TABLE table_name_45 (date VARCHAR, attendance INTEGER)
SELECT motive FROM table_name_25 WHERE year < 2007
What is the motive before 2007?
CREATE TABLE table_name_25 (motive VARCHAR, year INTEGER)
SELECT COUNT(field_goals) FROM table_14342592_5 WHERE position = "Right end"
How many field goals were made by someone playing position of right end?
CREATE TABLE table_14342592_5 (field_goals VARCHAR, position VARCHAR)
SELECT position FROM table_2508633_4 WHERE player = "Steve Maidlow"
What number draft pick was linebacker Steve Maidlow in the 1983 NFL Draft?
CREATE TABLE table_2508633_4 (position VARCHAR, player VARCHAR)
SELECT airport FROM table_name_82 WHERE country = "france" AND city = "montpellier"
What is the Airport when France was the country, and Montpellier was the city?
CREATE TABLE table_name_82 (airport VARCHAR, country VARCHAR, city VARCHAR)
SELECT pick__number FROM table_name_8 WHERE name = "aundray bruce"
What is Aundray Bruce's Pick #?
CREATE TABLE table_name_8 (pick__number VARCHAR, name VARCHAR)
SELECT episode FROM table_2105721_1 WHERE run_time = "24:44"
Name the episode for run time in 24:44
CREATE TABLE table_2105721_1 (episode VARCHAR, run_time VARCHAR)
SELECT 1981 FROM table_name_97 WHERE tournament = "wimbledon"
What is the 1981 value at the Tournament of Wimbledon?
CREATE TABLE table_name_97 (tournament VARCHAR)
SELECT municipality FROM table_1480455_1 WHERE human_development_index__2000_ = "0.7827"
What municipality where the human development index in the year 2000 was 0.7827?
CREATE TABLE table_1480455_1 (municipality VARCHAR, human_development_index__2000_ VARCHAR)
SELECT away_team FROM table_name_95 WHERE crowd > 23 OFFSET 000
Which away team had a crowd of over 23,000 people?
CREATE TABLE table_name_95 (away_team VARCHAR, crowd INTEGER)
SELECT record FROM table_name_85 WHERE home = "edmonton oilers" AND visitor = "chicago blackhawks" AND date = "november 27"
What was the oilers record for the game on November 27 when the Edmonton oilers were playing at home and the Chicago Blackhawks were the visiting team?
CREATE TABLE table_name_85 (record VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT loss FROM table_name_23 WHERE record = "71-81"
Name the loss for record of 71-81
CREATE TABLE table_name_23 (loss VARCHAR, record VARCHAR)
SELECT artist FROM table_name_5 WHERE percentage = "17.14%"
What Artist had a Percentage of 17.14%?
CREATE TABLE table_name_5 (artist VARCHAR, percentage VARCHAR)
SELECT cfl_team FROM table_10812938_5 WHERE college = "St. Francis Xavier"
What's the team of the player from St. Francis Xavier College?
CREATE TABLE table_10812938_5 (cfl_team VARCHAR, college VARCHAR)
SELECT frequency FROM table_name_54 WHERE model_number = "c7 1.0"
What is the Frequency for Model Number c7 1.0?
CREATE TABLE table_name_54 (frequency VARCHAR, model_number VARCHAR)
SELECT tuesday FROM table_name_71 WHERE thursday = "fox sports tonight (ends 1 am next day)"
What is shown on Tuesday when Thursday shows Fox Sports Tonight (ends 1 am next day)?
CREATE TABLE table_name_71 (tuesday VARCHAR, thursday VARCHAR)
SELECT constructor FROM table_name_34 WHERE chassis = "rb1" AND driver = "david coulthard"
Which constructor made the car with a rb1 chassis and which is driven by David Coulthard?
CREATE TABLE table_name_34 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR)