answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT tribunal FROM table_name_34 WHERE total = "4167"
Which tribunal had a total of 4167?
CREATE TABLE table_name_34 (tribunal VARCHAR, total VARCHAR)
SELECT MAX(rank) FROM table_name_18 WHERE country = "united states" AND wins < 1
Name the most rank for the United States with wins less than 1
CREATE TABLE table_name_18 (rank INTEGER, country VARCHAR, wins VARCHAR)
SELECT to_par FROM table_name_38 WHERE country = "united states" AND place = "t5"
What is the to par of the player from the United States with a t5 place?
CREATE TABLE table_name_38 (to_par VARCHAR, country VARCHAR, place VARCHAR)
SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'
Find the last name of the student who has a cat that is age 3.
CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pet_age VARCHAR, pettype VARCHAR)
SELECT AVG(top_10) FROM table_name_6 WHERE events < 57 AND top_5 < 0
What is the average number of top-10s for events under 57 and 0 top-5s?
CREATE TABLE table_name_6 (top_10 INTEGER, events VARCHAR, top_5 VARCHAR)
SELECT COUNT(average) FROM table_name_57 WHERE team = "england" AND wickets < 18 AND best_bowling = "4/138" AND matches < 3
What is the total average for the England team when the wickets are less than 18, the best bowling is 4/138, and there are less than 3 matches?
CREATE TABLE table_name_57 (average VARCHAR, matches VARCHAR, best_bowling VARCHAR, team VARCHAR, wickets VARCHAR)
SELECT overall_rank FROM table_name_50 WHERE swimmer = "roland schoeman"
Tell me the overall rank for roland schoeman
CREATE TABLE table_name_50 (overall_rank VARCHAR, swimmer VARCHAR)
SELECT title FROM table_23793770_1 WHERE directed_by = "Allison Liddi-Brown"
What is the title the episode directed by Allison Liddi-Brown?
CREATE TABLE table_23793770_1 (title VARCHAR, directed_by VARCHAR)
SELECT record FROM table_name_38 WHERE home = "montreal canadiens" AND date = "march 23"
What is the Record of the Montreal Canadiens Home game on March 23?
CREATE TABLE table_name_38 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT MIN(lane) FROM table_name_53 WHERE name = "xue ruipeng"
What is the smallest lane number of Xue Ruipeng?
CREATE TABLE table_name_53 (lane INTEGER, name VARCHAR)
SELECT date FROM table_name_94 WHERE opponent = "miami dolphins"
WHEN has a Opponent of miami dolphins?
CREATE TABLE table_name_94 (date VARCHAR, opponent VARCHAR)
SELECT MIN(area_km_2) FROM table_name_16 WHERE population = 2 OFFSET 352
Can you tell me the lowest Area km 2 that has the Population of 2,352?
CREATE TABLE table_name_16 (area_km_2 INTEGER, population VARCHAR)
SELECT team FROM table_name_65 WHERE position = 1
Which team had 1 position?
CREATE TABLE table_name_65 (team VARCHAR, position VARCHAR)
SELECT catalog_nr FROM table_name_41 WHERE format = "stereo lp" AND label = "epic" AND title = "for little ones"
What is the Catalog-Nr of the Epic Label Stereo LP named For Little Ones?
CREATE TABLE table_name_41 (catalog_nr VARCHAR, title VARCHAR, format VARCHAR, label VARCHAR)
SELECT result FROM table_1341586_14 WHERE incumbent = "Terry L. Bruce"
How did the election end for Terry L. Bruce?
CREATE TABLE table_1341586_14 (result VARCHAR, incumbent VARCHAR)
SELECT 2013 FROM table_name_38 WHERE 2012 = "grand slam tournaments"
What value in 2013 corresponds to Grand Slam Tournaments in 2012?
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT home_team AS score FROM table_name_48 WHERE away_team = "richmond"
What did the home team when they played Richmond?
CREATE TABLE table_name_48 (home_team VARCHAR, away_team VARCHAR)
SELECT district FROM table_1342233_13 WHERE incumbent = "Melvin Price"
What district is incumbent melvin price from?
CREATE TABLE table_1342233_13 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_name_98 WHERE first_elected = 2000 AND party = "republican"
What district was a republican first elected in 2000?
CREATE TABLE table_name_98 (district VARCHAR, first_elected VARCHAR, party VARCHAR)
SELECT rank FROM table_name_65 WHERE event = "lapt3 punta del este"
What is Rank, when Event is "LAPT3 Punta Del Este"?
CREATE TABLE table_name_65 (rank VARCHAR, event VARCHAR)
SELECT COUNT(high_rebounds) FROM table_23248940_10 WHERE record = "34-32"
How many people had high rebounds during the game with a record of 34-32?
CREATE TABLE table_23248940_10 (high_rebounds VARCHAR, record VARCHAR)
SELECT date FROM table_name_18 WHERE home_team = "geelong"
What was the date of the game where Geelong was the home team?
CREATE TABLE table_name_18 (date VARCHAR, home_team VARCHAR)
SELECT wins FROM table_name_78 WHERE series = "formula nippon" AND position = "8th"
How many wins have a Series of formula nippon, and a Position of 8th?
CREATE TABLE table_name_78 (wins VARCHAR, series VARCHAR, position VARCHAR)
SELECT time_retired FROM table_name_95 WHERE grid < 3 AND laps = 45
what is the time/retired when the grid is less than 3 and 45 laps?
CREATE TABLE table_name_95 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT player FROM table_name_79 WHERE college = "sam houston state"
Who plays for sam houston state?
CREATE TABLE table_name_79 (player VARCHAR, college VARCHAR)
SELECT country FROM table_name_9 WHERE film_title_used_in_nomination = "tent of miracles"
Which country is the film Tent of Miracles from?
CREATE TABLE table_name_9 (country VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT date FROM table_name_77 WHERE surface = "hard" AND tournament = "sweden f2"
What date was the game played on the hard surface at the Tournament of Sweden f2?
CREATE TABLE table_name_77 (date VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT club FROM table_name_11 WHERE drawn = "0" AND points = "26"
Which Club has a Drawn of 0, and Points of 26?
CREATE TABLE table_name_11 (club VARCHAR, drawn VARCHAR, points VARCHAR)
SELECT result FROM table_name_70 WHERE opponent = "indianapolis colts"
What is the Result of the game against the Indianapolis Colts?
CREATE TABLE table_name_70 (result VARCHAR, opponent VARCHAR)
SELECT crew_chief FROM table_24535095_2 WHERE listed_owner_s_ = "Rhonda Thorson"
Name the crew chief for rhonda thorson
CREATE TABLE table_24535095_2 (crew_chief VARCHAR, listed_owner_s_ VARCHAR)
SELECT longitude_အင်္သာ FROM table_name_98 WHERE latin = "taurus"
What is the longitude of Taurus?
CREATE TABLE table_name_98 (longitude_အင်္သာ VARCHAR, latin VARCHAR)
SELECT COUNT(rank) FROM table_name_56 WHERE revenue_in_usd = "$428.2 billion"
What is the rank of the company who has a revenue of $428.2 billion?
CREATE TABLE table_name_56 (rank VARCHAR, revenue_in_usd VARCHAR)
SELECT COUNT(date) FROM table_name_8 WHERE builder = "laconia car company" AND number = "63-68"
How many Dates have a Builder of laconia car company, and a Number of 63-68?
CREATE TABLE table_name_8 (date VARCHAR, builder VARCHAR, number VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_4 WHERE round = 6
What college/junior/club team had a player selected in round 6?
CREATE TABLE table_name_4 (college_junior_club_team__league_ VARCHAR, round VARCHAR)
SELECT played FROM table_name_51 WHERE division = "nbl div2" AND position = "12th"
What's the value for played when the division is nbl div2 with 12th position?
CREATE TABLE table_name_51 (played VARCHAR, division VARCHAR, position VARCHAR)
SELECT opponent FROM table_name_29 WHERE attendance = "7,034"
Which Opponent has a Attendance of 7,034?
CREATE TABLE table_name_29 (opponent VARCHAR, attendance VARCHAR)
SELECT name FROM table_name_28 WHERE location = "nigeria"
What is the name of a location in Nigeria?
CREATE TABLE table_name_28 (name VARCHAR, location VARCHAR)
SELECT runner_s__up FROM table_1615980_4 WHERE tournament = "Volvo Masters Andalucia"
Who was the runner up at the Volvo Masters Andalucia?
CREATE TABLE table_1615980_4 (runner_s__up VARCHAR, tournament VARCHAR)
SELECT COUNT(title) FROM table_11951237_4 WHERE season__number = 8
How many titles are there for season 8
CREATE TABLE table_11951237_4 (title VARCHAR, season__number VARCHAR)
SELECT site FROM table_name_20 WHERE attendance = "45,000"
What Site had an Attendance of 45,000?
CREATE TABLE table_name_20 (site VARCHAR, attendance VARCHAR)
SELECT venue FROM table_name_63 WHERE against > 19
Which venue has more than 19 against?
CREATE TABLE table_name_63 (venue VARCHAR, against INTEGER)
SELECT COUNT(females___percentage_) FROM table_name_1 WHERE females_rank < 21 AND state = "kerala" AND males_rank > 1
How many Females (%) have Females Rank smaller than 21, and a State of kerala, and Males Rank larger than 1?
CREATE TABLE table_name_1 (females___percentage_ VARCHAR, males_rank VARCHAR, females_rank VARCHAR, state VARCHAR)
SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID
What are the names of perpetrators?
CREATE TABLE perpetrator (People_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT score FROM table_name_52 WHERE competition = "friendly" AND venue = "dreisamstadion, freiburg"
What is the venue for the friendly competition at Dreisamstadion, Freiburg?
CREATE TABLE table_name_52 (score VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT COUNT(season) FROM table_27487336_1 WHERE sacks = "39"
How many seasons have a sacks of 39?
CREATE TABLE table_27487336_1 (season VARCHAR, sacks VARCHAR)
SELECT visitor FROM table_name_16 WHERE date = "january 12"
on january 12 who was the visitor?
CREATE TABLE table_name_16 (visitor VARCHAR, date VARCHAR)
SELECT name FROM table_name_53 WHERE term_end = "5 march 1930"
Who is the prime minister that had a term that ended on 5 March 1930?
CREATE TABLE table_name_53 (name VARCHAR, term_end VARCHAR)
SELECT finish FROM table_name_55 WHERE total < 292 AND year_s__won = "1978"
Of the 1978 winners, who had finish totals smaller than 292?
CREATE TABLE table_name_55 (finish VARCHAR, total VARCHAR, year_s__won VARCHAR)
SELECT fielding_team FROM table_name_61 WHERE wicket = "1st"
Which fielding team had 1st wicket?
CREATE TABLE table_name_61 (fielding_team VARCHAR, wicket VARCHAR)
SELECT MAX(rank) FROM table_name_35 WHERE time = "1:47.65" AND lane > 3
What is the Rank of the Athlete with a Time of 1:47.65 and in Lane 3 or larger?
CREATE TABLE table_name_35 (rank INTEGER, time VARCHAR, lane VARCHAR)
SELECT percentage FROM table_name_23 WHERE candidate = "chris wright"
What percentage did chris wright receive?
CREATE TABLE table_name_23 (percentage VARCHAR, candidate VARCHAR)
SELECT MIN(pick) FROM table_name_30 WHERE position = "defensive tackle" AND player = "dave haverdick"
What is the lowest pick of the defensive tackle player dave haverdick?
CREATE TABLE table_name_30 (pick INTEGER, position VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_31 WHERE date = "december 18, 2005"
Who were the Opponents on December 18, 2005?
CREATE TABLE table_name_31 (opponent VARCHAR, date VARCHAR)
SELECT away_team AS score FROM table_name_55 WHERE home_team = "carlton"
What was the opponents score when Carlton played at home?
CREATE TABLE table_name_55 (away_team VARCHAR, home_team VARCHAR)
SELECT manufacturer FROM table_name_9 WHERE fuel_type = "diesel"
What is the Manufacturer with a Fuel Type that is diesel?
CREATE TABLE table_name_9 (manufacturer VARCHAR, fuel_type VARCHAR)
SELECT winning_driver FROM table_name_18 WHERE winning_constructor = "mercer"
What kind of Winning driver has a Winning constructor of mercer?
CREATE TABLE table_name_18 (winning_driver VARCHAR, winning_constructor VARCHAR)
SELECT score FROM table_name_42 WHERE decision = "lundqvist" AND october = "20"
What was the score of the game on October 20 with a decision of Lundqvist?
CREATE TABLE table_name_42 (score VARCHAR, decision VARCHAR, october VARCHAR)
SELECT points_against FROM table_17941032_1 WHERE tries_for = "17"
When 17 is the tries for what is the points against?
CREATE TABLE table_17941032_1 (points_against VARCHAR, tries_for VARCHAR)
SELECT MIN(bronze) FROM table_name_23 WHERE silver = 15 AND total < 54
Which Bronze has a Silver of 15, and a Total smaller than 54?
CREATE TABLE table_name_23 (bronze INTEGER, silver VARCHAR, total VARCHAR)
SELECT score FROM table_name_34 WHERE decision = "gerber" AND home = "boston"
What was the score for Boston's Home game that had Gerber as the decision?
CREATE TABLE table_name_34 (score VARCHAR, decision VARCHAR, home VARCHAR)
SELECT away_team AS score FROM table_name_77 WHERE venue = "victoria park"
What was the away team's score in the match at Victoria Park?
CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR)
SELECT title FROM table_name_50 WHERE guest_performer = "black ice" AND time = "5:49"
Which title has a Black Ice for a guest performer and a length of 5:49?
CREATE TABLE table_name_50 (title VARCHAR, guest_performer VARCHAR, time VARCHAR)
SELECT performer_4 FROM table_name_86 WHERE performer_1 = "jim sweeney" AND episode = 3
Who is performer 4 on episode 3, where Jim Sweeney was performer 1?
CREATE TABLE table_name_86 (performer_4 VARCHAR, performer_1 VARCHAR, episode VARCHAR)
SELECT date FROM table_name_93 WHERE turkey_scorers = "nihat kahveci"
I want the date for nihat kahveci
CREATE TABLE table_name_93 (date VARCHAR, turkey_scorers VARCHAR)
SELECT MAX(elected) FROM table_26336739_1 WHERE incumbent = "Saxby Chambliss"
What date was the district incumbent Saxby Chambliss elected?
CREATE TABLE table_26336739_1 (elected INTEGER, incumbent VARCHAR)
SELECT rider FROM table_name_14 WHERE manufacturer = "aprilia" AND laps < 18 AND grid = 17
What rider is on an aprilia that went under 18 laps with a grid total of 17?
CREATE TABLE table_name_14 (rider VARCHAR, grid VARCHAR, manufacturer VARCHAR, laps VARCHAR)
SELECT SUM(points) FROM table_name_80 WHERE player = "stuart" AND touchdowns < 1
How many points did Stuart have when he had less than 1 touchdown?
CREATE TABLE table_name_80 (points INTEGER, player VARCHAR, touchdowns VARCHAR)
SELECT local_name FROM table_name_36 WHERE network = "tvn"
Which Local name has a Network of tvn?
CREATE TABLE table_name_36 (local_name VARCHAR, network VARCHAR)
SELECT position FROM table_name_31 WHERE school_club_team = "florida international"
What position did the player from Florida International play?
CREATE TABLE table_name_31 (position VARCHAR, school_club_team VARCHAR)
SELECT COUNT(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Tokohu University"
How many papers are published by the institution "Tokohu University"?
CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)
SELECT title FROM table_name_7 WHERE rank = 7
Which title placed in rank 7?
CREATE TABLE table_name_7 (title VARCHAR, rank VARCHAR)
SELECT date FROM table_name_5 WHERE region = "europe" AND label = "wichita recordings"
Which date was associated with the release in Europe on the Wichita Recordings label?
CREATE TABLE table_name_5 (date VARCHAR, region VARCHAR, label VARCHAR)
SELECT opponent FROM table_name_79 WHERE week = 11
Who did they play in week 11?
CREATE TABLE table_name_79 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_75 WHERE venue = "toyota stadium"
Who is the opponent at toyota stadium?
CREATE TABLE table_name_75 (opponent VARCHAR, venue VARCHAR)
SELECT state_assembly FROM table_18052353_4 WHERE year = "2008"
What was the composition of the state assembly in 2008?
CREATE TABLE table_18052353_4 (state_assembly VARCHAR, year VARCHAR)
SELECT tournament FROM table_name_84 WHERE winning_score = –9(69 - 69 - 70 - 71 = 279)
what is the tournament when the winning score is –9 (69-69-70-71=279)?
CREATE TABLE table_name_84 (tournament VARCHAR, winning_score VARCHAR)
SELECT terry_mcauliffe FROM table_name_8 WHERE dates_administered = "june 6–7"
Which Terry McAuliffe is it that has a Dates Administered on June 6–7?
CREATE TABLE table_name_8 (terry_mcauliffe VARCHAR, dates_administered VARCHAR)
SELECT away_team AS score FROM table_name_77 WHERE venue = "junction oval"
What was the score of the away team at Junction Oval?
CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR)
SELECT country FROM table_name_73 WHERE date = "april 11-april 21"
What country was the game played when it was played from April 11-April 21?
CREATE TABLE table_name_73 (country VARCHAR, date 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 SUM(rank) FROM table_name_95 WHERE points < 34
What is the rank of the player with less than 34 points?
CREATE TABLE table_name_95 (rank INTEGER, points INTEGER)
SELECT race_leader FROM table_name_33 WHERE stage = "7"
Which race Leader has a Stage of 7?
CREATE TABLE table_name_33 (race_leader VARCHAR, stage VARCHAR)
SELECT date FROM table_name_68 WHERE game > 53 AND team = "toronto"
What date was the game against Toronto which had a game number higher than 53?
CREATE TABLE table_name_68 (date VARCHAR, game VARCHAR, team VARCHAR)
SELECT record FROM table_23346983_1 WHERE opponent = "Army"
What was the record for the Orangemen when they played against Army?
CREATE TABLE table_23346983_1 (record VARCHAR, opponent VARCHAR)
SELECT directed_by FROM table_25923164_1 WHERE us_viewers__million_ = "12.88"
Who directed the episode that had 12.88 million viewers?
CREATE TABLE table_25923164_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT ncbi_accession_number__mrna_protein_ FROM table_name_63 WHERE species = "homo sapiens"
What is the NCBI Accession Number (mRNA/Protein) for the homo sapiens Species?
CREATE TABLE table_name_63 (ncbi_accession_number__mrna_protein_ VARCHAR, species VARCHAR)
SELECT party FROM table_name_23 WHERE residence = "san diego"
Which Party has a Residence of san diego?
CREATE TABLE table_name_23 (party VARCHAR, residence VARCHAR)
SELECT record FROM table_13258876_2 WHERE date = "September 18, 1983"
What was the Seahawks record on September 18, 1983?
CREATE TABLE table_13258876_2 (record VARCHAR, date VARCHAR)
SELECT COUNT(lane) FROM table_name_8 WHERE mark = 7.93 AND react < 0.145
What is the total number of Lane, when Mark is "7.93", and when React is less than 0.145?
CREATE TABLE table_name_8 (lane VARCHAR, mark VARCHAR, react VARCHAR)
SELECT authority FROM table_name_4 WHERE roll = "70"
Which is the Authority that has a Roll of 70?
CREATE TABLE table_name_4 (authority VARCHAR, roll VARCHAR)
SELECT score FROM table_name_82 WHERE record = "80-63"
What was the score of the game that led to an 80-63 record?
CREATE TABLE table_name_82 (score VARCHAR, record VARCHAR)
SELECT artist FROM table_name_53 WHERE issue_price__bu_[_clarification_needed_] = "n/a" AND year > 2004 AND mintage__proof_ = "25,000"
Who is the Artist with an Issue Price (BU) [Clarification Needed] of n/a along with a Year larger than 2004, and Mintage (Proof) of 25,000?
CREATE TABLE table_name_53 (artist VARCHAR, mintage__proof_ VARCHAR, year VARCHAR, issue_price__bu_ VARCHAR, _clarification_needed_ VARCHAR)
SELECT year_made FROM table_name_63 WHERE quantity_made = "4"
What year made has a Quantity made of 4?
CREATE TABLE table_name_63 (year_made VARCHAR, quantity_made VARCHAR)
SELECT originalairdate FROM table_27927185_1 WHERE viewers__millions_ = "4.77"
What was the original air-date that had 4.77 million viewers?
CREATE TABLE table_27927185_1 (originalairdate VARCHAR, viewers__millions_ VARCHAR)
SELECT result FROM table_name_97 WHERE match = "25"
What was the result of match 25?
CREATE TABLE table_name_97 (result VARCHAR, match VARCHAR)
SELECT COUNT(awardee_s_) FROM table_24446718_7 WHERE language = "English and Hindi"
Name the number of awardees for english and hindi
CREATE TABLE table_24446718_7 (awardee_s_ VARCHAR, language VARCHAR)
SELECT team_s_ FROM table_2190919_3 WHERE avg_start = "11.8"
If the average start is 11.8, what was the team name?
CREATE TABLE table_2190919_3 (team_s_ VARCHAR, avg_start VARCHAR)
SELECT AVG(crowd) FROM table_name_70 WHERE home_team = "melbourne"
What was the crowd when Melbourne was the home team?
CREATE TABLE table_name_70 (crowd INTEGER, home_team VARCHAR)
SELECT points FROM table_name_44 WHERE performer = "nigel connell"
How many points did Nigel Connell have?
CREATE TABLE table_name_44 (points VARCHAR, performer VARCHAR)
SELECT MAX(mintage) FROM table_name_46 WHERE artist = "royal canadian mint engravers" AND year > 2008
When the Year is over 2008, what is the highest Mintage for the Royal Canadian Mint Engravers Artist?
CREATE TABLE table_name_46 (mintage INTEGER, artist VARCHAR, year VARCHAR)