answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT college FROM table_name_26 WHERE player = "dennis scott"
What college does Dennis Scott attend?
CREATE TABLE table_name_26 (college VARCHAR, player VARCHAR)
SELECT finish FROM table_name_74 WHERE qual = "141.071"
What finish qualified at 141.071?
CREATE TABLE table_name_74 (finish VARCHAR, qual VARCHAR)
SELECT date FROM table_name_70 WHERE home_team = "liverpool"
What date did home team liverpool play?
CREATE TABLE table_name_70 (date VARCHAR, home_team VARCHAR)
SELECT COUNT(losses) FROM table_name_5 WHERE no_result < 0
Name the total number of losses with number result less than 0
CREATE TABLE table_name_5 (losses VARCHAR, no_result INTEGER)
SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1
What is the title of the film that has the highest high market estimation.
CREATE TABLE film_market_estimation (Film_ID VARCHAR); CREATE TABLE film (Film_ID VARCHAR)
SELECT COUNT(player) FROM table_25518547_2 WHERE affiliation = "University of Maryland"
How many players have an affiliation with University of Maryland?
CREATE TABLE table_25518547_2 (player VARCHAR, affiliation VARCHAR)
SELECT gto_winning_team FROM table_13642023_2 WHERE to_winning_team = "#84 Camaro"
Who was the GTO winning team when the TO winning team was #84 Camaro?
CREATE TABLE table_13642023_2 (gto_winning_team VARCHAR, to_winning_team VARCHAR)
SELECT 2 AS nd_leg FROM table_name_7 WHERE team_1 = "pelister"
What 2nd leg has pelister as team 1?
CREATE TABLE table_name_7 (team_1 VARCHAR)
SELECT years FROM table_name_38 WHERE ranking < 8 AND goals < 66 AND name = "paul mcgee"
What are the years when the ranking is less than 8 with less than 66 goals and name is Paul McGee?
CREATE TABLE table_name_38 (years VARCHAR, name VARCHAR, ranking VARCHAR, goals VARCHAR)
SELECT score_in_the_final FROM table_name_84 WHERE partner = "olga lugina" AND tournament = "poitiers , france itf $25,000"
What was the score where Olga Lugina played in the Tournament of poitiers , france itf $25,000?
CREATE TABLE table_name_84 (score_in_the_final VARCHAR, partner VARCHAR, tournament VARCHAR)
SELECT height FROM table_name_19 WHERE date_of_birth = "1982-07-05"
What is the Height of the Player with a Date of Birth of 1982-07-05?
CREATE TABLE table_name_19 (height VARCHAR, date_of_birth VARCHAR)
SELECT COUNT(wins) FROM table_name_99 WHERE year = "2010" AND matches > 14
What is the total number of wins in 2010, when there were more than 14 matches?
CREATE TABLE table_name_99 (wins VARCHAR, year VARCHAR, matches VARCHAR)
SELECT results FROM table_1341423_20 WHERE district = "Maryland 7"
What was the result of the election in the Maryland 7 district?
CREATE TABLE table_1341423_20 (results VARCHAR, district VARCHAR)
SELECT area FROM table_name_61 WHERE authority = "state" AND decile > 6 AND gender = "coed" AND roll = 26
Where is the coed school with state authority, a Decile larger than 6 and 26 enrolled?
CREATE TABLE table_name_61 (area VARCHAR, roll VARCHAR, gender VARCHAR, authority VARCHAR, decile VARCHAR)
SELECT MAX(round) FROM table_name_24 WHERE pick__number = 11 AND overall < 414 AND position = "offensive tackle"
What is the highest round with a pick# of 11, a position of offensive tackle, and overall less than 414?
CREATE TABLE table_name_24 (round INTEGER, position VARCHAR, pick__number VARCHAR, overall VARCHAR)
SELECT MIN(ansi_code) FROM table_name_48 WHERE geo_id > 3809927140 AND water__sqmi_ < 0.492 AND pop__2010_ = 37 AND latitude > 48.245979
Which ANSI code has a GEO ID larger than 3809927140, and a Water (sqmi) smaller than 0.492, and a Pop (2010) of 37, and a Latitude larger than 48.245979?
CREATE TABLE table_name_48 (ansi_code INTEGER, latitude VARCHAR, pop__2010_ VARCHAR, geo_id VARCHAR, water__sqmi_ VARCHAR)
SELECT game FROM table_17340355_6 WHERE team = "Milwaukee"
Which game was played by team milwaukee
CREATE TABLE table_17340355_6 (game VARCHAR, team VARCHAR)
SELECT player FROM table_name_64 WHERE place = "t2" AND score = 74 - 70 - 68 = 212
What is the Player that has a Place of t2, and a Score of 74-70-68=212?
CREATE TABLE table_name_64 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT weight FROM table_name_2 WHERE player = "jonathan bender"
How much does Jonathan Bender weigh?
CREATE TABLE table_name_2 (weight VARCHAR, player VARCHAR)
SELECT loser FROM table_name_83 WHERE result = "119–113"
What team was the loser when the result was 119–113?
CREATE TABLE table_name_83 (loser VARCHAR, result VARCHAR)
SELECT COUNT(attendance) FROM table_name_12 WHERE week = 16
Tell me the total number of attendance for week of 16
CREATE TABLE table_name_12 (attendance VARCHAR, week VARCHAR)
SELECT MIN(grid) FROM table_name_79 WHERE team = "mi-jack conquest racing" AND points = "16"
What is the smallest grid value that had 16 points and a team of Mi-Jack Conquest Racing?
CREATE TABLE table_name_79 (grid INTEGER, team VARCHAR, points VARCHAR)
SELECT position FROM table_name_3 WHERE hometown = "fort lauderdale, florida"
What is the position of the player from Fort Lauderdale, Florida?
CREATE TABLE table_name_3 (position VARCHAR, hometown VARCHAR)
SELECT AVG(year) FROM table_name_54 WHERE title = "machineries of joy vol. 4"
What average year contains the title of machineries of joy vol. 4?
CREATE TABLE table_name_54 (year INTEGER, title VARCHAR)
SELECT opponent FROM table_name_18 WHERE date = "september 28"
Who was the opponent on September 28?
CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(pick) FROM table_name_72 WHERE name = "matt moran" AND round > 6
How many picks does Matt Moran have altogether after round 6?
CREATE TABLE table_name_72 (pick VARCHAR, name VARCHAR, round VARCHAR)
SELECT crashandride_cymbalpads FROM table_2889300_6 WHERE drumset_name = "TD-9K2"
what is the crashandride cymbalpads for the drumset name td-9k2
CREATE TABLE table_2889300_6 (crashandride_cymbalpads VARCHAR, drumset_name VARCHAR)
SELECT MIN(league_apps) FROM table_27086613_5 WHERE total_apps = 5
Name the least league apps for total apps of 5
CREATE TABLE table_27086613_5 (league_apps INTEGER, total_apps VARCHAR)
SELECT ratio FROM table_name_2 WHERE in_Γ—_in = "17 Γ— 22"
Which Ratio has an in Γ— in of 17 Γ— 22?
CREATE TABLE table_name_2 (ratio VARCHAR, in_Γ—_in VARCHAR)
SELECT nationality FROM table_name_55 WHERE time = 13.21
What is the nationality with a 13.21 time?
CREATE TABLE table_name_55 (nationality VARCHAR, time VARCHAR)
SELECT coreceptor FROM table_29871617_1 WHERE chromosomal_location = "11q22.2-q22.3"
What are the coreceptors of the chromosomes in that location 11q22.2-q22.3?
CREATE TABLE table_29871617_1 (coreceptor VARCHAR, chromosomal_location VARCHAR)
SELECT result FROM table_name_33 WHERE venue = "h" AND opponent = "newcastle united"
What was the final score for the match played in Venue H and the opponent was Newcastle United?
CREATE TABLE table_name_33 (result VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT memory FROM table_16729930_17 WHERE model_number = "Atom E640T"
Name the memory for meodel number for atom e640t
CREATE TABLE table_16729930_17 (memory VARCHAR, model_number VARCHAR)
SELECT resale FROM table_name_41 WHERE down__up_to_kbit_s_ = 24000
what is the resale when the down (up to kbit/s) is 24000?
CREATE TABLE table_name_41 (resale VARCHAR, down__up_to_kbit_s_ VARCHAR)
SELECT crowd FROM table_name_64 WHERE home_team = "north melbourne"
What was the size of the crowd when North Melbourne was the home team?
CREATE TABLE table_name_64 (crowd VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_47 WHERE competition = "paris marathon"
Where did the Paris Marathon occur?
CREATE TABLE table_name_47 (venue VARCHAR, competition VARCHAR)
SELECT change_in_seat FROM table_149330_1 WHERE _percentage_of_votes = "23.75"
What was the number of seat changes when the % of votes was 23.75?
CREATE TABLE table_149330_1 (change_in_seat VARCHAR, _percentage_of_votes VARCHAR)
SELECT MIN(game) FROM table_20928682_1 WHERE opponent = "Georgia"
Which game number was played against Georgia?
CREATE TABLE table_20928682_1 (game INTEGER, opponent VARCHAR)
SELECT COUNT(tries_against) FROM table_13564637_3 WHERE points_for = "325"
what is the total amount of tries where the points were 325?
CREATE TABLE table_13564637_3 (tries_against VARCHAR, points_for VARCHAR)
SELECT to_par FROM table_name_69 WHERE player = "mike weir"
What score to par did Mike Weir have?
CREATE TABLE table_name_69 (to_par VARCHAR, player VARCHAR)
SELECT name FROM table_name_57 WHERE height = "m (ft 9in)" AND date_of_birth = "1980-03-05"
Who has the height of m (ft 9in) and was born on 1980-03-05?
CREATE TABLE table_name_57 (name VARCHAR, height VARCHAR, date_of_birth VARCHAR)
SELECT highest_point FROM table_name_85 WHERE canton = "vaud"
What is the Canton of Vaud's highest point?
CREATE TABLE table_name_85 (highest_point VARCHAR, canton VARCHAR)
SELECT party FROM table_2668329_11 WHERE incumbent = "Peter Little"
what is Peter Little's party?
CREATE TABLE table_2668329_11 (party VARCHAR, incumbent VARCHAR)
SELECT country FROM table_name_43 WHERE class = "15 meters" AND qualifying_grand_prix = "soaring grand prix of united kingdom"
What is Country, when Class is "15 meters", and when Qualifying Grand Prix is "Soaring Grand Prix Of United Kingdom"?
CREATE TABLE table_name_43 (country VARCHAR, class VARCHAR, qualifying_grand_prix VARCHAR)
SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10
display those departments where more than ten employees work who got a commission percentage.
CREATE TABLE employees (department_id VARCHAR, commission_pct VARCHAR)
SELECT date FROM table_name_39 WHERE catalog = "rr 8655-2"
What is the release Date of Catalog RR 8655-2?
CREATE TABLE table_name_39 (date VARCHAR, catalog VARCHAR)
SELECT SUM(avg_g) FROM table_name_63 WHERE effic > 129.73 AND cmp_att_int = "333-500-13"
Which Avg/G has an Effic larger than 129.73, and a Cmp-Att-Int of 333-500-13?
CREATE TABLE table_name_63 (avg_g INTEGER, effic VARCHAR, cmp_att_int VARCHAR)
SELECT athletics_nickname FROM table_name_86 WHERE founded = "1872"
Which athletics nickname was founded in 1872?
CREATE TABLE table_name_86 (athletics_nickname VARCHAR, founded VARCHAR)
SELECT assists FROM table_name_94 WHERE blocks = "2 tied (1)" AND year > 1995
What is Assists that has a Blocks of 2 tied (1) with a Year larger than 1995
CREATE TABLE table_name_94 (assists VARCHAR, blocks VARCHAR, year VARCHAR)
SELECT country FROM table_166346_1 WHERE production___bbl__day_ = "2,494,000 (10th)"
Which country had a production (bbl/day) of 2,494,000 (10th)?
CREATE TABLE table_166346_1 (country VARCHAR, production___bbl__day_ VARCHAR)
SELECT street_address FROM table_name_27 WHERE name = "union bank of california tower"
What's the address of the union bank of California tower?
CREATE TABLE table_name_27 (street_address VARCHAR, name VARCHAR)
SELECT height FROM table_name_1 WHERE first_round = "44.1"
What is the height of the player with a first round score of 44.1?
CREATE TABLE table_name_1 (height VARCHAR, first_round VARCHAR)
SELECT copyright_information FROM table_name_7 WHERE publisher = "random house"
What was Random House's copyright information?
CREATE TABLE table_name_7 (copyright_information VARCHAR, publisher VARCHAR)
SELECT details FROM table_22577693_1 WHERE result = "Kuwait won by 72 runs Scorecard"
If the results are Kuwait won by 72 runs scorecard, what are the details?
CREATE TABLE table_22577693_1 (details VARCHAR, result VARCHAR)
SELECT race_name FROM table_name_50 WHERE circuit = "pergusa"
What is the name of the race that has the pergusa Circuit?
CREATE TABLE table_name_50 (race_name VARCHAR, circuit VARCHAR)
SELECT MIN(rd) FROM table_10706879_3 WHERE name = "Tony Bettenhausen 200"
The race tony bettenhausen 200 has what smallest rd?
CREATE TABLE table_10706879_3 (rd INTEGER, name VARCHAR)
SELECT date FROM table_16729076_1 WHERE opponent = "Chicago Bears"
what date is the opponent is chicago bears?
CREATE TABLE table_16729076_1 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(game) FROM table_27700375_6 WHERE high_rebounds = "Derrick Favors (8)"
In how many games were the high rebounds made by Derrick Favors (8)?
CREATE TABLE table_27700375_6 (game VARCHAR, high_rebounds VARCHAR)
SELECT to_par FROM table_name_68 WHERE score = 67 - 68 = 135
What was the To par when the Score was 67-68=135?
CREATE TABLE table_name_68 (to_par VARCHAR, score VARCHAR)
SELECT attendance FROM table_name_92 WHERE game_site = "hoosier dome"
What was the Attendance of the Game at Hoosier Dome?
CREATE TABLE table_name_92 (attendance VARCHAR, game_site VARCHAR)
SELECT result FROM table_name_64 WHERE year > 2003 AND nominee_s_ = "john wells"
What is the result for a year after 2003, when the nominee(s) is john wells?
CREATE TABLE table_name_64 (result VARCHAR, year VARCHAR, nominee_s_ VARCHAR)
SELECT hometown FROM table_name_32 WHERE college = "lsu"
What's the hometown of the player who went to lsu?
CREATE TABLE table_name_32 (hometown VARCHAR, college VARCHAR)
SELECT MIN(laps) FROM table_name_32 WHERE driver = "nick heidfeld"
What is the lowest number of laps obtained by driver Nick Heidfeld?
CREATE TABLE table_name_32 (laps INTEGER, driver VARCHAR)
SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'
Find the first names of professors who are not playing Canoeing or Kayaking.
CREATE TABLE faculty (lname VARCHAR, rank VARCHAR); CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR)
SELECT SUM(year) FROM table_name_86 WHERE chassis = "kurtis kraft 500a"
What is the year with a kurtis kraft 500a chassis?
CREATE TABLE table_name_86 (year INTEGER, chassis VARCHAR)
SELECT date_of_birth__age_ FROM table_name_19 WHERE player = "nese malifa"
When was nese malifa born?
CREATE TABLE table_name_19 (date_of_birth__age_ VARCHAR, player VARCHAR)
SELECT result FROM table_name_14 WHERE venue = "rotterdam, netherlands"
Which result's venue was in Rotterdam, Netherlands?
CREATE TABLE table_name_14 (result VARCHAR, venue VARCHAR)
SELECT COUNT(game) FROM table_name_74 WHERE opponent = "edmonton oilers" AND february > 12
What is the game number of the game with the Edmonton Oilers as the opponent after February 12?
CREATE TABLE table_name_74 (game VARCHAR, opponent VARCHAR, february VARCHAR)
SELECT league AS Cup FROM table_12755786_8 WHERE player = "Kevin McKinlay"
what is the tourney where the winner is kevin mckinlay?
CREATE TABLE table_12755786_8 (league VARCHAR, player VARCHAR)
SELECT record FROM table_name_67 WHERE attendance = "73,996"
Name the record with attendance of 73,996
CREATE TABLE table_name_67 (record VARCHAR, attendance VARCHAR)
SELECT 1989 FROM table_name_81 WHERE 1991 = "1r" AND 1994 = "1r"
Which 1989's 1991 and 1994 stats were 1r?
CREATE TABLE table_name_81 (Id VARCHAR)
SELECT to_par FROM table_name_35 WHERE place = "t10" AND player = "colin montgomerie"
What is the to par for t10 and Colin Montgomerie?
CREATE TABLE table_name_35 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT horizontal_order FROM table_233830_1 WHERE channels = "WXYZRSTUVPQ"
If the channels is wxyzrstuvpq, what is the horizontal order?
CREATE TABLE table_233830_1 (horizontal_order VARCHAR, channels VARCHAR)
SELECT player FROM table_name_88 WHERE goals_against_average > 2.07 AND games_played = 44
Who played 44 games who averaged over 2.07 goals against?
CREATE TABLE table_name_88 (player VARCHAR, goals_against_average VARCHAR, games_played VARCHAR)
SELECT 2 AS nd_party FROM table_name_82 WHERE election = "1865"
What is 2nd Party, when Election is "1865"?
CREATE TABLE table_name_82 (election VARCHAR)
SELECT hometown FROM table_name_95 WHERE name = "john davis"
What is John Davis's home town?
CREATE TABLE table_name_95 (hometown VARCHAR, name VARCHAR)
SELECT manufacturer FROM table_name_25 WHERE grid = "6"
Which manufacturer has a grid of 6?
CREATE TABLE table_name_25 (manufacturer VARCHAR, grid VARCHAR)
SELECT COUNT(latest_year) FROM table_25735_1 WHERE competition = "Cook Island League"
How many cook island league competitions were there?
CREATE TABLE table_25735_1 (latest_year VARCHAR, competition VARCHAR)
SELECT MAX(no_in_series) FROM table_2468961_7 WHERE no_in_season = 15
When 15 is the number in season what is the highest number in series?
CREATE TABLE table_2468961_7 (no_in_series INTEGER, no_in_season VARCHAR)
SELECT recent_bmi FROM table_name_49 WHERE start_bmi < 46.3 AND season = "season 8"
What is the recent BMI on season 8 for the person who's BMI started under 46.3?
CREATE TABLE table_name_49 (recent_bmi VARCHAR, start_bmi VARCHAR, season VARCHAR)
SELECT fleet FROM table_name_63 WHERE launched = "july 30, 1961"
Which fleet launched on July 30, 1961?
CREATE TABLE table_name_63 (fleet VARCHAR, launched VARCHAR)
SELECT personal_name FROM Course_Authors_and_Tutors INTERSECT SELECT personal_name FROM Students
Find the common personal name of course authors and students.
CREATE TABLE Course_Authors_and_Tutors (personal_name VARCHAR); CREATE TABLE Students (personal_name VARCHAR)
SELECT nationality FROM table_name_6 WHERE college = "cincinnati"
What nationality is the player from the College of Cincinnati?
CREATE TABLE table_name_6 (nationality VARCHAR, college VARCHAR)
SELECT team FROM table_name_45 WHERE founded < 1883 AND type = "public"
What public team was founded prior to 1883?
CREATE TABLE table_name_45 (team VARCHAR, founded VARCHAR, type VARCHAR)
SELECT torque FROM table_name_91 WHERE model = "s63 amg ('01)"
Which Torque has a Model of s63 amg ('01)?
CREATE TABLE table_name_91 (torque VARCHAR, model VARCHAR)
SELECT team FROM table_18522916_5 WHERE date_of_appointment = "5 September 2008" AND date_of_vacancy = "30 August 2008"
Name the team for 5 september 2008 for date of vacancy for 30 august 2008
CREATE TABLE table_18522916_5 (team VARCHAR, date_of_appointment VARCHAR, date_of_vacancy VARCHAR)
SELECT record FROM table_13480122_5 WHERE date = "January 21"
what are all the record where date is january 21
CREATE TABLE table_13480122_5 (record VARCHAR, date VARCHAR)
SELECT tires FROM table_name_46 WHERE drivers = "johnny parsons"
What tires did Johnny Parsons use?
CREATE TABLE table_name_46 (tires VARCHAR, drivers VARCHAR)
SELECT DISTINCT T1.name FROM nurse AS T1 JOIN on_call AS T2 ON T1.EmployeeID = T2.nurse
Find the names of nurses who are on call.
CREATE TABLE on_call (nurse VARCHAR); CREATE TABLE nurse (name VARCHAR, EmployeeID VARCHAR)
SELECT MAX(year) FROM table_name_75 WHERE venue = "turin, italy"
When was the last time a venue was held in turin, italy?
CREATE TABLE table_name_75 (year INTEGER, venue VARCHAR)
SELECT 2006 FROM table_name_64 WHERE 2013 = "2–4"
What shows for 2006, when 2013 is 2–4?
CREATE TABLE table_name_64 (Id VARCHAR)
SELECT date FROM table_name_60 WHERE score = "2–1"
What was the date of the game with a score of 2–1?
CREATE TABLE table_name_60 (date VARCHAR, score VARCHAR)
SELECT SUM(rank) FROM table_name_20 WHERE network = "bbc one" AND number_of_viewers = "30.15million"
Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2
CREATE TABLE table_name_20 (rank INTEGER, network VARCHAR, number_of_viewers VARCHAR)
SELECT screen_size__inch_ FROM table_name_73 WHERE intro_year = "2006" AND model = "iliad"
Name the size of the screen that came out in 2006 and is iliad
CREATE TABLE table_name_73 (screen_size__inch_ VARCHAR, intro_year VARCHAR, model VARCHAR)
SELECT home_team AS score FROM table_name_81 WHERE venue = "glenferrie oval"
In the game at Glenferrie Oval, what is the home team score?
CREATE TABLE table_name_81 (home_team VARCHAR, venue VARCHAR)
SELECT score FROM table_name_12 WHERE date = "6 december 1986"
The game played on 6 December 1986 had what score?
CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR)
SELECT date FROM table_name_71 WHERE home_team = "south melbourne"
What day is south melbourne at home?
CREATE TABLE table_name_71 (date VARCHAR, home_team VARCHAR)
SELECT MAX(enrollment) FROM table_12896884_1 WHERE football_stadium = "Foote Field"
What is the enrollment for Foote Field?
CREATE TABLE table_12896884_1 (enrollment INTEGER, football_stadium VARCHAR)
SELECT written_by FROM table_27610775_1 WHERE prod_code = 211
Who wrote the episode with the production code 211?
CREATE TABLE table_27610775_1 (written_by VARCHAR, prod_code VARCHAR)
SELECT country FROM table_name_53 WHERE tv_network_s_ = "nova tv"
Which country is the Nova TV network from?
CREATE TABLE table_name_53 (country VARCHAR, tv_network_s_ VARCHAR)