answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT bonus_points FROM table_name_35 WHERE club = "colomiers"
How many bonus points did the Colomiers earn?
CREATE TABLE table_name_35 (bonus_points VARCHAR, club VARCHAR)
SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed
Show the ids of the employees who don't authorize destruction for any document.
CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR); CREATE TABLE Employees (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR)
SELECT score FROM table_name_52 WHERE opponent = "ivo minář"
What is Score, when Opponent is "Ivo Minář"?
CREATE TABLE table_name_52 (score VARCHAR, opponent VARCHAR)
SELECT mascot FROM table_name_62 WHERE school = "hamilton community"
What is the mascot at Hamilton Community?
CREATE TABLE table_name_62 (mascot VARCHAR, school VARCHAR)
SELECT talent__male_ FROM table_name_39 WHERE year = 1991
Who is the male talent in 1991?
CREATE TABLE table_name_39 (talent__male_ VARCHAR, year VARCHAR)
SELECT date FROM table_name_24 WHERE away_team = "footscray"
What date did Footscray play and Away game?
CREATE TABLE table_name_24 (date VARCHAR, away_team VARCHAR)
SELECT fcc_info FROM table_name_35 WHERE frequency_mhz > 92.7 AND call_sign = "w262al"
What is the FCC frequency for the station w262al which has a Frequency MHz larger than 92.7?
CREATE TABLE table_name_35 (fcc_info VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
SELECT name FROM table_22977424_8 WHERE promoted_to_league = "Doncaster Newbury"
Name the name for doncaster newbury
CREATE TABLE table_22977424_8 (name VARCHAR, promoted_to_league VARCHAR)
SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages = "english"
List the names of all songs that have 4 minute duration or are in English.
CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (song_name VARCHAR, f_id VARCHAR); CREATE TABLE song (song_name VARCHAR, languages VARCHAR)
SELECT november_3 FROM table_25286976_2 WHERE june_10_11 = "127"
When 127 is on June 10th to 11th what is November 3rd?
CREATE TABLE table_25286976_2 (november_3 VARCHAR, june_10_11 VARCHAR)
SELECT AVG(active_to_date - active_from_date) FROM customer_contact_channels
What is the average time span of contact channels in the database?
CREATE TABLE customer_contact_channels (active_to_date VARCHAR, active_from_date VARCHAR)
SELECT chassis FROM table_name_12 WHERE year < 1960 AND points < 8
What was the Chassis with less than 8 points before 1960?
CREATE TABLE table_name_12 (chassis VARCHAR, year VARCHAR, points VARCHAR)
SELECT singular_word FROM table_name_24 WHERE plural_word = "hands"
The plural word of hands uses what singular word?
CREATE TABLE table_name_24 (singular_word VARCHAR, plural_word VARCHAR)
SELECT COUNT(technology) FROM table_13677808_1 WHERE rank = "Denmark"
How many times is denmark ranked in technology?
CREATE TABLE table_13677808_1 (technology VARCHAR, rank VARCHAR)
SELECT MAX(round) FROM table_name_26 WHERE opponent = "masutatsu yano"
What is the highest round a fight lasted against masutatsu yano?
CREATE TABLE table_name_26 (round INTEGER, opponent VARCHAR)
SELECT qadisiya FROM table_26173058_2 WHERE × = "ramtha"
what is the capital where it is ramtha
CREATE TABLE table_26173058_2 (qadisiya VARCHAR, × VARCHAR)
SELECT player FROM table_30108930_6 WHERE college = "Howard"
Which player(s) played at Howard college?
CREATE TABLE table_30108930_6 (player VARCHAR, college VARCHAR)
SELECT 2010 FROM table_name_21 WHERE 2006 < 6.9 AND 2008 > 1.6 AND 2007 = 2
What 2010 has a 2006 less than 6.9, a 2008 greater than 1.6, and 2 for 2007?
CREATE TABLE table_name_21 (Id VARCHAR)
SELECT coach FROM table_name_33 WHERE losses = 215
Who was the coach who had 215 losses?
CREATE TABLE table_name_33 (coach VARCHAR, losses VARCHAR)
SELECT COUNT(title) FROM table_29273243_1 WHERE production_code = "IP04004"
How many episodes have the production code ip04004?
CREATE TABLE table_29273243_1 (title VARCHAR, production_code VARCHAR)
SELECT pregame_host FROM table_name_98 WHERE network = "bold"
What is the name of the pregame host when Bold was the network?
CREATE TABLE table_name_98 (pregame_host VARCHAR, network VARCHAR)
SELECT ihsaa_class FROM table_name_83 WHERE location = "linton"
Which IHSAA Class has a Location of linton?
CREATE TABLE table_name_83 (ihsaa_class VARCHAR, location VARCHAR)
SELECT date FROM table_name_89 WHERE home_team = "richmond"
When did the home team of Richmond play?
CREATE TABLE table_name_89 (date VARCHAR, home_team VARCHAR)
SELECT game_site FROM table_name_70 WHERE record = "9–1"
Record of 9–1 had what game site?
CREATE TABLE table_name_70 (game_site VARCHAR, record VARCHAR)
SELECT opponent_in_the_final FROM table_name_46 WHERE date = "5 july 1992"
Who was the opponent in the final on 5 July 1992?
CREATE TABLE table_name_46 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT color_commentator_s_ FROM table_name_70 WHERE network = "espn"
Who is the color commentator for ESPN from 1990 to 1992?
CREATE TABLE table_name_70 (color_commentator_s_ VARCHAR, network VARCHAR)
SELECT school_club_team FROM table_name_3 WHERE player = "mark eaton"
Who did mark eaton play for?
CREATE TABLE table_name_3 (school_club_team VARCHAR, player VARCHAR)
SELECT year_s__won FROM table_name_87 WHERE player = "tom watson"
What year did Tom Watson win?
CREATE TABLE table_name_87 (year_s__won VARCHAR, player VARCHAR)
SELECT time_retired FROM table_name_50 WHERE laps = "66" AND constructor = "jordan - peugeot" AND grid = "5"
What is the Time/Retired value for constructor Jordan - Peugeot with 66 laps and grid value 5?
CREATE TABLE table_name_50 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR, constructor VARCHAR)
SELECT type FROM table_256286_45 WHERE description = "Power Development Debt Limit Amendment"
What is the type of measure that voted on the Power Development Debt Limit Amendment?
CREATE TABLE table_256286_45 (type VARCHAR, description VARCHAR)
SELECT spouse FROM table_name_26 WHERE father = "leopold vi, duke of austria"
Leopold VI, Duke of Austria is the father-in-law of which person?
CREATE TABLE table_name_26 (spouse VARCHAR, father VARCHAR)
SELECT MAX(rank) FROM table_name_33 WHERE total = 1 AND bronze > 0
Which Rank has a Total of 1 and a Bronze larger than 0?
CREATE TABLE table_name_33 (rank INTEGER, total VARCHAR, bronze VARCHAR)
SELECT MAX(year) FROM table_name_8 WHERE bb_cw = "78"
What is the most current year that had a BB CW of 78?
CREATE TABLE table_name_8 (year INTEGER, bb_cw VARCHAR)
SELECT 2013 AS _index_of_economic_freedom FROM table_1604579_2 WHERE country = "Armenia"
How economically free is the country of Armenia?
CREATE TABLE table_1604579_2 (country VARCHAR)
SELECT ___ave_on_prev_season FROM table_2970978_1 WHERE competition = "League Two"
What is every value for average on previous season if the competition is league two?
CREATE TABLE table_2970978_1 (___ave_on_prev_season VARCHAR, competition VARCHAR)
SELECT word__number FROM table_name_37 WHERE name = "omega dot"
What is the word count that is named omega dot?
CREATE TABLE table_name_37 (word__number VARCHAR, name VARCHAR)
SELECT MIN(total) FROM table_name_6 WHERE gold > 2 AND silver < 0
What is the least total when there are more than 2 golds and fewer than 0 silver?
CREATE TABLE table_name_6 (total INTEGER, gold VARCHAR, silver VARCHAR)
SELECT AVG(week) FROM table_name_12 WHERE opponent = "baltimore colts" AND attendance < 41 OFFSET 062
What is the average week for the game against baltimore colts with less than 41,062 in attendance?
CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Nameless , Painless"
Find the first and last name of the author(s) who wrote the paper "Nameless, Painless".
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR)
SELECT MAX(interview) FROM table_name_66 WHERE swimsuit = 8.857 AND average > 9.097
What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097?
CREATE TABLE table_name_66 (interview INTEGER, swimsuit VARCHAR, average VARCHAR)
SELECT score FROM table_name_18 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND date = "january 14"
What was the score on January 14 when the Chicago Black Hawks were home against the New York Rangers?
CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT state FROM table_name_99 WHERE rank < 10 AND city = "denver"
What is the state of the city of denver, which has a rank less than 10?
CREATE TABLE table_name_99 (state VARCHAR, rank VARCHAR, city VARCHAR)
SELECT division FROM table_1427998_1 WHERE year = 2006
What is the division for the year 2006?
CREATE TABLE table_1427998_1 (division VARCHAR, year VARCHAR)
SELECT home_team AS score FROM table_name_71 WHERE home_team = "essendon"
What was the score for the home team of Essendon?
CREATE TABLE table_name_71 (home_team VARCHAR)
SELECT manufacturer FROM table_29778616_1 WHERE intro_date = "2006" AND throughput = "4 Mbit/s"
Who is the manufacturer whose intro date is 2006 and their throughput is 4 mbit/s?
CREATE TABLE table_29778616_1 (manufacturer VARCHAR, intro_date VARCHAR, throughput VARCHAR)
SELECT date FROM table_name_56 WHERE week = 4
What day did they play on week 4?
CREATE TABLE table_name_56 (date VARCHAR, week VARCHAR)
SELECT gold FROM table_name_91 WHERE silver = "5" AND nation = "belgium"
What is Gold, when Silver is 5, and when Nation is Belgium?
CREATE TABLE table_name_91 (gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT AVG(week) FROM table_name_51 WHERE result = "w 14-13" AND attendance > 53 OFFSET 295
what is the week when the result is w 14-13 and the attendance is higher than 53,295?
CREATE TABLE table_name_51 (week INTEGER, result VARCHAR, attendance VARCHAR)
SELECT COUNT(bronze) FROM table_name_54 WHERE gold > 1 AND silver < 3 AND nation = "germany" AND total > 11
How much Bronze has a Gold larger than 1, and a Silver smaller than 3, and a Nation of germany, and a Total larger than 11?
CREATE TABLE table_name_54 (bronze VARCHAR, total VARCHAR, nation VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT MAX(gold_medals) FROM table_1305623_12 WHERE ensemble = "Choctawhatchee High School"
How many gold medals does the Choctawhatchee High School have?
CREATE TABLE table_1305623_12 (gold_medals INTEGER, ensemble VARCHAR)
SELECT average FROM table_name_61 WHERE rank = "1"
What average has 1 as rhe rank?
CREATE TABLE table_name_61 (average VARCHAR, rank VARCHAR)
SELECT COUNT(*) FROM company WHERE Headquarters = 'USA'
How many companies are headquartered in the US?
CREATE TABLE company (Headquarters VARCHAR)
SELECT t20_matches FROM table_name_33 WHERE year = "1979"
What T20 match was played in 1979?
CREATE TABLE table_name_33 (t20_matches VARCHAR, year VARCHAR)
SELECT final FROM table_name_46 WHERE athlete = "farhad rezaei"
What final was Farhad Rezaei in?
CREATE TABLE table_name_46 (final VARCHAR, athlete VARCHAR)
SELECT home_team AS score FROM table_name_82 WHERE home_team = "north melbourne"
What was North Melbourne's score when they were the home team?
CREATE TABLE table_name_82 (home_team VARCHAR)
SELECT score_in_the_final FROM table_name_96 WHERE date = "october 8, 2006"
What final score was there on October 8, 2006?
CREATE TABLE table_name_96 (score_in_the_final VARCHAR, date VARCHAR)
SELECT top_mc FROM table_29160596_1 WHERE year_inducted = 2007 AND peak_ranking = 6
List all the MCs with peak ranking of 6 who were inducted in 2007.
CREATE TABLE table_29160596_1 (top_mc VARCHAR, year_inducted VARCHAR, peak_ranking VARCHAR)
SELECT money___£__ FROM table_name_62 WHERE score = 68 - 67 - 69 - 71 = 275
How much money does the player with a 68-67-69-71=275 score have?
CREATE TABLE table_name_62 (money___£__ VARCHAR, score VARCHAR)
SELECT team FROM table_name_60 WHERE race_title = "launceston"
Name the team for launceston
CREATE TABLE table_name_60 (team VARCHAR, race_title VARCHAR)
SELECT draft_details FROM Document_Drafts WHERE document_id = 7
What is draft detail of the document with id 7?
CREATE TABLE Document_Drafts (draft_details VARCHAR, document_id VARCHAR)
SELECT score FROM table_name_10 WHERE country = "united states" AND place = "t3" AND player = "phil blackmar"
What is Score, when Country is "United States", when Place is "T3", and when Player is "Phil Blackmar"?
CREATE TABLE table_name_10 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
SELECT surface FROM table_name_8 WHERE opponent_s_ = "anna-lena grönefeld tatjana malek"
Which Surface has an Opponent(s) of anna-lena grönefeld tatjana malek?
CREATE TABLE table_name_8 (surface VARCHAR, opponent_s_ VARCHAR)
SELECT SUM(grid) FROM table_name_7 WHERE driver = "ryan hunter-reay" AND points > 24
What is the sum of the grid of driver ryan hunter-reay, who has more than 24 points?
CREATE TABLE table_name_7 (grid INTEGER, driver VARCHAR, points VARCHAR)
SELECT track FROM table_name_56 WHERE location = "louisville, kentucky"
What is the Track in Louisville, Kentucky?
CREATE TABLE table_name_56 (track VARCHAR, location VARCHAR)
SELECT current_streak FROM table_15740666_4 WHERE kansas_state_vs = "TCU"
What is the current streak against TCU?
CREATE TABLE table_15740666_4 (current_streak VARCHAR, kansas_state_vs VARCHAR)
SELECT MIN(rank) FROM table_name_6 WHERE nationality = "united states" AND time = "58.06" AND heat > 5
When the nationality is united states, and the time is 58.06, and the heat is larger than 5 what is the lowest rank?
CREATE TABLE table_name_6 (rank INTEGER, heat VARCHAR, nationality VARCHAR, time VARCHAR)
SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id
Find the last names of teachers who are not involved in any detention.
CREATE TABLE Teachers (last_name VARCHAR); CREATE TABLE Teachers (last_name VARCHAR, teacher_id VARCHAR); CREATE TABLE Detention (teacher_id VARCHAR)
SELECT MIN(enrollment) FROM table_name_3 WHERE team_nickname = "pilots"
What is the Enrollment for the Pilots?
CREATE TABLE table_name_3 (enrollment INTEGER, team_nickname VARCHAR)
SELECT result FROM table_name_66 WHERE year = 2001 AND location = "network associates coliseum"
What was the score of the 2001 game held at Network Associates Coliseum?
CREATE TABLE table_name_66 (result VARCHAR, year VARCHAR, location VARCHAR)
SELECT position FROM table_name_99 WHERE cfl_team = "toronto argonauts"
What position does the player from the Toronto Argonauts play?
CREATE TABLE table_name_99 (position VARCHAR, cfl_team VARCHAR)
SELECT surface FROM table_name_98 WHERE semifinalists = "stefan edberg thomas muster"
Which Surface has a Semifinalist of stefan edberg thomas muster?
CREATE TABLE table_name_98 (surface VARCHAR, semifinalists VARCHAR)
SELECT MIN(long) FROM table_name_19 WHERE gain = 20 AND loss < 0
Can you tell me the lowest Long that has the Gain of 20, and the Loss smaller than 0?
CREATE TABLE table_name_19 (long INTEGER, gain VARCHAR, loss VARCHAR)
SELECT COUNT(*) FROM Faculty
How many faculty do we have?
CREATE TABLE Faculty (Id VARCHAR)
SELECT actor FROM table_name_84 WHERE duration = "61 years"
What is the name of the actor with a duration of 61 years?
CREATE TABLE table_name_84 (actor VARCHAR, duration VARCHAR)
SELECT player FROM table_name_62 WHERE place = "t4"
Which player had a place of T4?
CREATE TABLE table_name_62 (player VARCHAR, place VARCHAR)
SELECT district FROM table_1342013_4 WHERE incumbent = "Brooks Hays"
what district is Brooks Hays in
CREATE TABLE table_1342013_4 (district VARCHAR, incumbent VARCHAR)
SELECT round FROM table_name_56 WHERE position = "f/c" AND college = "iowa"
What round has a position of F/C from Iowa College?
CREATE TABLE table_name_56 (round VARCHAR, position VARCHAR, college VARCHAR)
SELECT team_1 FROM table_name_45 WHERE team_2 = "manchester united"
What is team 1 when team 2 is Manchester United?
CREATE TABLE table_name_45 (team_1 VARCHAR, team_2 VARCHAR)
SELECT SUM(gold) FROM table_name_88 WHERE nation = "guatemala" AND silver < 0
What is the total amount of Gold from guatemala and silver smaller than 0?
CREATE TABLE table_name_88 (gold INTEGER, nation VARCHAR, silver VARCHAR)
SELECT opponent_in_the_final FROM table_name_31 WHERE score_in_the_final = "7–5, 6–2"
What Opponent in the final had a match with a Score in the final of 7–5, 6–2?
CREATE TABLE table_name_31 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT SUM(points) FROM table_name_11 WHERE home = "pittsburgh" AND score = "1–7"
How many Points have a Home of pittsburgh, and a Score of 1–7?
CREATE TABLE table_name_11 (points INTEGER, home VARCHAR, score VARCHAR)
SELECT country FROM table_name_44 WHERE score = 71 - 72 - 73 - 69 = 285
Which country has a score of 71-72-73-69=285?
CREATE TABLE table_name_44 (country VARCHAR, score VARCHAR)
SELECT COUNT(introduced) FROM table_name_80 WHERE retired > 1994 AND manufacturer = "fokker"
How many in the introduced segment retired later than 1994 and had Fokker as a manufacturer?
CREATE TABLE table_name_80 (introduced VARCHAR, retired VARCHAR, manufacturer VARCHAR)
SELECT MAX(successes) FROM table_name_36 WHERE launches > 1 AND failures < 0
What is the highest number of successful launches associated with over 1 launch and under 0 fails?
CREATE TABLE table_name_36 (successes INTEGER, launches VARCHAR, failures VARCHAR)
SELECT college FROM table_name_55 WHERE pick__number < 11 AND name = "von hutchins"
Pick # smaller than 11, and a Name of von hutchins belongs to what college?
CREATE TABLE table_name_55 (college VARCHAR, pick__number VARCHAR, name VARCHAR)
SELECT quantity_made FROM table_name_65 WHERE year_made = "4-4-0 — oooo — american"
What is Quantity Made, when Year Made is "4-4-0 — oooo — american"?
CREATE TABLE table_name_65 (quantity_made VARCHAR, year_made VARCHAR)
SELECT works_number FROM table_name_7 WHERE type = "rs-11" AND number = "61"
What is Works Number, when Type is RS-11, and when Number is 61?
CREATE TABLE table_name_7 (works_number VARCHAR, type VARCHAR, number VARCHAR)
SELECT surface FROM table_name_66 WHERE opponents_in_the_final = "christophe rochus olivier rochus"
What is Surface, when Opponents In The Final is "Christophe Rochus Olivier Rochus"?
CREATE TABLE table_name_66 (surface VARCHAR, opponents_in_the_final VARCHAR)
SELECT date FROM table_name_28 WHERE series = "atcc round 6"
What Date had a Series of ATCC Round 6?
CREATE TABLE table_name_28 (date VARCHAR, series VARCHAR)
SELECT tournament FROM table_name_76 WHERE surface = "clay" AND score_in_the_final = "6–1, 3–6, 6–2"
Which tournament had a clay surface and a score of 6–1, 3–6, 6–2?
CREATE TABLE table_name_76 (tournament VARCHAR, surface VARCHAR, score_in_the_final VARCHAR)
SELECT candidates FROM table_2668169_2 WHERE district = "Pennsylvania 11"
Who are the candidates for the Pennsylvania 11 district?
CREATE TABLE table_2668169_2 (candidates VARCHAR, district VARCHAR)
SELECT result FROM table_name_90 WHERE week > 13
What results has a week larger than 13?
CREATE TABLE table_name_90 (result VARCHAR, week INTEGER)
SELECT composer_s_ FROM table_name_85 WHERE length = "6:24"
Who is the composer of the song with a length of 6:24?
CREATE TABLE table_name_85 (composer_s_ VARCHAR, length VARCHAR)
SELECT MIN(draws) FROM table_name_42 WHERE against = 1547 AND wins > 3
What is the lowest Draws, when Against is "1547", and when Wins is greater than 3?
CREATE TABLE table_name_42 (draws INTEGER, against VARCHAR, wins VARCHAR)
SELECT position FROM table_15592941_1 WHERE college = "Florida State"
What position(s) do players from florida state play?
CREATE TABLE table_15592941_1 (position VARCHAR, college VARCHAR)
SELECT T1.Name, T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID
Show the names of climbers and the heights of mountains they climb.
CREATE TABLE mountain (Height VARCHAR, Mountain_ID VARCHAR); CREATE TABLE climber (Name VARCHAR, Mountain_ID VARCHAR)
SELECT COUNT(founded) FROM table_262505_1 WHERE type = "Public" AND enrollment = "780"
Name the total number of founded for public and 780 enrollment
CREATE TABLE table_262505_1 (founded VARCHAR, type VARCHAR, enrollment VARCHAR)
SELECT points FROM table_name_84 WHERE year > 1972 AND entrant = "marlboro team alfa romeo"
After 1972, how many points did Marlboro Team Alfa Romeo have?
CREATE TABLE table_name_84 (points VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT opponent FROM table_name_21 WHERE time = "1:19"
Who is the opponent with a time of 1:19?
CREATE TABLE table_name_21 (opponent VARCHAR, time VARCHAR)
SELECT MAX(grid) FROM table_name_56 WHERE constructor = "osella - alfa romeo" AND laps > 61
What is the high grid for osella - alfa romeo, and a Laps larger than 61?
CREATE TABLE table_name_56 (grid INTEGER, constructor VARCHAR, laps VARCHAR)