answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT varsity_name FROM table_27369069_4 WHERE university = "McGill university"
What is the varsity name of the university of mcgill university?
CREATE TABLE table_27369069_4 (varsity_name VARCHAR, university VARCHAR)
SELECT player FROM table_name_77 WHERE country = "united states" AND place = "t4" AND score = 68 - 73 - 68 = 209
Who is the player from the United States in T4 place with a score of 68-73-68=209?
CREATE TABLE table_name_77 (player VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
SELECT player FROM table_name_40 WHERE score = 69 - 68 - 66 - 70 = 273
What Player's Score is 69-68-66-70=273?
CREATE TABLE table_name_40 (player VARCHAR, score VARCHAR)
SELECT opponent_in_the_final FROM table_26202788_7 WHERE championship = "Indian Wells, United States (2)"
In the championship Indian Wells, United States (2), who are the opponents in the final?
CREATE TABLE table_26202788_7 (opponent_in_the_final VARCHAR, championship VARCHAR)
SELECT stadium FROM table_name_13 WHERE city = "kutina"
What stadium has kutina as the city?
CREATE TABLE table_name_13 (stadium VARCHAR, city VARCHAR)
SELECT result FROM table_name_29 WHERE season_coach = "rich rodriguez"
What is the result under the season coach Rich Rodriguez?
CREATE TABLE table_name_29 (result VARCHAR, season_coach VARCHAR)
SELECT date FROM table_name_61 WHERE series = "winfield triple challenge"
On which date did the Winfield Triple Challenge series take place?
CREATE TABLE table_name_61 (date VARCHAR, series VARCHAR)
SELECT COUNT(original_airdate) FROM table_26982362_2 WHERE production_code = "693-002"
The episode with production code 693-002, has how many original airdates?
CREATE TABLE table_26982362_2 (original_airdate VARCHAR, production_code VARCHAR)
SELECT MIN(react) FROM table_name_90 WHERE lane > 3 AND time < 20.3 AND nationality = "zimbabwe" AND rank > 1
What's the smallest react of Zimbabwe, ranked after 1 in a lane after 3 and a time less than 20.3?
CREATE TABLE table_name_90 (react INTEGER, rank VARCHAR, nationality VARCHAR, lane VARCHAR, time VARCHAR)
SELECT record FROM table_name_38 WHERE score = "65-48"
What is the Record of the game with a Score of 65-48?
CREATE TABLE table_name_38 (record VARCHAR, score VARCHAR)
SELECT venue FROM table_name_32 WHERE home_team = "melbourne"
What is Melbourne's home venue?
CREATE TABLE table_name_32 (venue VARCHAR, home_team VARCHAR)
SELECT name FROM Person WHERE job = 'student' AND age = (SELECT MAX(age) FROM person WHERE job = 'student')
Who is the oldest person whose job is student?
CREATE TABLE person (name VARCHAR, job VARCHAR, age INTEGER); CREATE TABLE Person (name VARCHAR, job VARCHAR, age INTEGER)
SELECT teams FROM table_name_48 WHERE name = "boumediene abderahmane"
What is the team with the name Boumediene Abderahmane?
CREATE TABLE table_name_48 (teams VARCHAR, name VARCHAR)
SELECT position FROM table_name_49 WHERE round = 22
What was the position of the player who was picked in round 22?
CREATE TABLE table_name_49 (position VARCHAR, round VARCHAR)
SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2
Show all storm names except for those with at least two affected regions.
CREATE TABLE storm (name VARCHAR); CREATE TABLE affected_region (storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)
SELECT current_version FROM table_name_38 WHERE license = "gpl v2" AND name = "project64"
what is the current version of the project64 with gpl v2 license?
CREATE TABLE table_name_38 (current_version VARCHAR, license VARCHAR, name VARCHAR)
SELECT driving_wheels FROM table_name_8 WHERE original_ner_class = "m1"
What driving wheels are on the m1 original NER class?
CREATE TABLE table_name_8 (driving_wheels VARCHAR, original_ner_class VARCHAR)
SELECT state FROM table_1416612_1 WHERE highest_point = "Mount Katahdin"
what's the state with highest point being mount katahdin
CREATE TABLE table_1416612_1 (state VARCHAR, highest_point VARCHAR)
SELECT COUNT(games) FROM table_name_89 WHERE season = "1976" AND points > 20
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 film_title_used_in_nomination FROM table_name_98 WHERE original_name = "okkar á milli: í hita og þunga dagsins"
Name the film title for okkar á milli: í hita og þunga dagsins
CREATE TABLE table_name_98 (film_title_used_in_nomination VARCHAR, original_name VARCHAR)
SELECT MIN(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code = "PUR" AND share_count > 50
Show the minimum amount of transactions whose type code is "PUR" and whose share count is bigger than 50.
CREATE TABLE TRANSACTIONS (amount_of_transaction INTEGER, transaction_type_code VARCHAR, share_count VARCHAR)
SELECT employee_name, role_code, date_of_birth FROM Employees WHERE employee_Name = 'Armani'
Show the name, role code, and date of birth for the employee with name 'Armani'.
CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR, date_of_birth VARCHAR, employee_Name VARCHAR)
SELECT goals FROM table_name_54 WHERE player = "eugene galeković"
How many goals were scored by Eugene Galeković?
CREATE TABLE table_name_54 (goals VARCHAR, player VARCHAR)
SELECT date FROM table_name_85 WHERE competition = "2010 fifa world cup qualification"
Tell me the date for 2010 fifa world cup qualification
CREATE TABLE table_name_85 (date VARCHAR, competition VARCHAR)
SELECT oberliga_südwest FROM table_name_82 WHERE oberliga_bayern = "fc schweinfurt 05"
Which Oberliga Südwest has an Oberliga Bayern of fc schweinfurt 05?
CREATE TABLE table_name_82 (oberliga_südwest VARCHAR, oberliga_bayern VARCHAR)
SELECT term_limited FROM table_26131768_4 WHERE representative = "Dave Hall"
If the representative is Dave Hall, when was the term limited?
CREATE TABLE table_26131768_4 (term_limited VARCHAR, representative VARCHAR)
SELECT segment_b FROM table_15187735_13 WHERE episode = 167
Name the segment b for 167
CREATE TABLE table_15187735_13 (segment_b VARCHAR, episode VARCHAR)
SELECT result FROM table_21790203_1 WHERE film_title_used_in_nomination = "Already Famous"
Name the result for already famous
CREATE TABLE table_21790203_1 (result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT DISTINCT T1.id, T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12
What are the id and name of the stations that have ever had more than 12 bikes available?
CREATE TABLE station (id VARCHAR, name VARCHAR); CREATE TABLE status (station_id VARCHAR, bikes_available INTEGER)
SELECT school FROM table_name_6 WHERE round = 3
What school did draft pick from round 3 go to?
CREATE TABLE table_name_6 (school VARCHAR, round VARCHAR)
SELECT album FROM table_name_84 WHERE label = "tumbleweed 1014"
Which Album has a Label of tumbleweed 1014?
CREATE TABLE table_name_84 (album VARCHAR, label VARCHAR)
SELECT hometown FROM table_name_17 WHERE position = "pr"
What is the hometown of the player who plays pr?
CREATE TABLE table_name_17 (hometown VARCHAR, position VARCHAR)
SELECT church_name FROM table_name_8 WHERE location_of_the_church = "eikefjord"
What is the name of the church that is located in eikefjord?
CREATE TABLE table_name_8 (church_name VARCHAR, location_of_the_church VARCHAR)
SELECT COUNT(attendance) FROM table_name_28 WHERE date = "april 14"
How many attended the game on april 14?
CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_31 WHERE week = 12
Who were the opponents for week 12?
CREATE TABLE table_name_31 (opponent VARCHAR, week VARCHAR)
SELECT chassis FROM table_name_69 WHERE year > 1959 AND engine = "climax l4"
What company built the chassis for a year later than 1959 and a climax l4 engine?
CREATE TABLE table_name_69 (chassis VARCHAR, year VARCHAR, engine VARCHAR)
SELECT lineup FROM table_name_95 WHERE location = "usa virginia beach"
Which lineup has a Location of usa virginia beach?
CREATE TABLE table_name_95 (lineup VARCHAR, location VARCHAR)
SELECT mixed_doubles FROM table_12186309_1 WHERE mens_singles = "Kim Brodersen"
What are the mixed doubles where the mens singles is kim brodersen?
CREATE TABLE table_12186309_1 (mixed_doubles VARCHAR, mens_singles VARCHAR)
SELECT player FROM table_name_81 WHERE finish = "t16"
Who had a finish of t16?
CREATE TABLE table_name_81 (player VARCHAR, finish VARCHAR)
SELECT COUNT(running) FROM table_12407546_2 WHERE athlete = "Pamela Zapata"
What is the numberof running wiht pamela zapata?
CREATE TABLE table_12407546_2 (running VARCHAR, athlete VARCHAR)
SELECT 2005 FROM table_name_16 WHERE 2007 = "sf"
Name the 2005 with 2007 of sf
CREATE TABLE table_name_16 (Id VARCHAR)
SELECT total FROM table_name_57 WHERE set_2 = "25-19" AND date = "jun 17"
What is the total with a 25-19 set 2 on Jun 17?
CREATE TABLE table_name_57 (total VARCHAR, set_2 VARCHAR, date VARCHAR)
SELECT player FROM table_name_51 WHERE country = "united states" AND place = "t10" AND score = 68 - 71 = 139
What is Player, when Country is "United States", when Place is "T10", and when Score is "68-71=139"?
CREATE TABLE table_name_51 (player VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
SELECT MIN(races) FROM table_name_93 WHERE pole < 2 AND season = "2007"
WHAT ARE THE RACES WITH A POLE SMALLER THAN 2 IN 2007?
CREATE TABLE table_name_93 (races INTEGER, pole VARCHAR, season VARCHAR)
SELECT tournament FROM table_name_5 WHERE margin_of_victory = "1 stroke" AND date = "18 jan 2009"
What is Tournament, when Margin Of Victory is 1 Stroke, and when Date is 18 Jan 2009?
CREATE TABLE table_name_5 (tournament VARCHAR, margin_of_victory VARCHAR, date VARCHAR)
SELECT COUNT(against) FROM table_name_54 WHERE played < 18
How many Against have Played smaller than 18?
CREATE TABLE table_name_54 (against VARCHAR, played INTEGER)
SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*) > 1
Show the locations of schools that have more than 1 player.
CREATE TABLE player (School_ID VARCHAR); CREATE TABLE school (Location VARCHAR, School_ID VARCHAR)
SELECT MAX(season) FROM table_25539502_1 WHERE podiums = 1
What is the latest season where he had 1 podium?
CREATE TABLE table_25539502_1 (season INTEGER, podiums VARCHAR)
SELECT amount, donator_name FROM endowment ORDER BY amount DESC LIMIT 1
List the amount and donor name for the largest amount of donation.
CREATE TABLE endowment (amount VARCHAR, donator_name VARCHAR)
SELECT 2012 FROM table_name_51 WHERE 2007 = "1r"
Which 2012 has a 2007 of 1r?
CREATE TABLE table_name_51 (Id VARCHAR)
SELECT runner_up FROM table_name_53 WHERE national_champion = "ohio" AND location = "tucson, az"
What was the Runner-up with Ohio as the National Champion in Tucson, AZ?
CREATE TABLE table_name_53 (runner_up VARCHAR, national_champion VARCHAR, location VARCHAR)
SELECT no_in_season FROM table_19401346_1 WHERE original_air_date = "October 14, 2008"
What's the season number of the episode originally aired on October 14, 2008?
CREATE TABLE table_19401346_1 (no_in_season VARCHAR, original_air_date VARCHAR)
SELECT brooklyn FROM table_23837321_4 WHERE manhattan = "15.5_percentage"
what percentage is brooklyn when manhattan is 15.5%?
CREATE TABLE table_23837321_4 (brooklyn VARCHAR, manhattan VARCHAR)
SELECT assets__bil_usd__ FROM table_23950611_2 WHERE rank__all__2013 = 1532
How many assets in billions US$, for the company that ranked 1532 overall in 2013?
CREATE TABLE table_23950611_2 (assets__bil_usd__ VARCHAR, rank__all__2013 VARCHAR)
SELECT AVG(chart_no) FROM table_name_97 WHERE date = "11/1965"
What is the average chart number for 11/1965?
CREATE TABLE table_name_97 (chart_no INTEGER, date VARCHAR)
SELECT SUM(drawn) FROM table_name_99 WHERE lost < 4 AND coach = "francis cummins"
How many Drawn did Coach Francis Cummins have with less than 4 Lost?
CREATE TABLE table_name_99 (drawn INTEGER, lost VARCHAR, coach VARCHAR)
SELECT AVG(average) FROM table_name_70 WHERE english_title = "men in pain" AND finale < 33
What is the Average of Men in Pain with a Finale of less than 33?
CREATE TABLE table_name_70 (average INTEGER, english_title VARCHAR, finale VARCHAR)
SELECT player FROM table_name_70 WHERE place = "1"
What is Player, when Place is "1"?
CREATE TABLE table_name_70 (player VARCHAR, place VARCHAR)
SELECT COUNT(rank) FROM table_name_39 WHERE average = 34.66 AND season > 1
What is the total rank of the celebrity with a 34.66 average and a season greater than 1?
CREATE TABLE table_name_39 (rank VARCHAR, average VARCHAR, season VARCHAR)
SELECT MIN(avg_g) FROM table_name_86 WHERE effic > 34.36 AND name = "wesley carroll"
What is the lowest avg/g that has an effic greater than 34.36, with wesley carroll as the name?
CREATE TABLE table_name_86 (avg_g INTEGER, effic VARCHAR, name VARCHAR)
SELECT current_club FROM table_name_45 WHERE position = "sg/sf" AND height < 1.96
What is the current club with a position of sg/sf and a height less than 1.96?
CREATE TABLE table_name_45 (current_club VARCHAR, position VARCHAR, height VARCHAR)
SELECT T3.EMP_FNAME, T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = "Biology"
What is the first and last name of the professor in biology department?
CREATE TABLE professor (dept_code VARCHAR, EMP_NUM VARCHAR); CREATE TABLE department (dept_code VARCHAR); CREATE TABLE employee (EMP_FNAME VARCHAR, EMP_LNAME VARCHAR, EMP_NUM VARCHAR)
SELECT country FROM table_20669355_2 WHERE hometown = "San Francisco de Yojoa"
What country is the contestant from San Francisco de Yojoa from?
CREATE TABLE table_20669355_2 (country VARCHAR, hometown VARCHAR)
SELECT COUNT(others_number) FROM table_name_94 WHERE county = "langlade" AND bush_number > 6 OFFSET 235
What is the total number of the value Others#, when the county is Langlade, and when the value Bush# is greater than 6,235?
CREATE TABLE table_name_94 (others_number VARCHAR, county VARCHAR, bush_number VARCHAR)
SELECT MIN(year) FROM table_name_89 WHERE chassis = "jordan 193"
What was the first year to have a Chassis of Jordan 193?
CREATE TABLE table_name_89 (year INTEGER, chassis VARCHAR)
SELECT text_background_colour FROM table_1000181_1 WHERE state_territory = "Australian Capital Territory"
Name the background colour for the Australian Capital Territory
CREATE TABLE table_1000181_1 (text_background_colour VARCHAR, state_territory VARCHAR)
SELECT product_category_code, typical_buying_price FROM products WHERE product_name = "cumin"
What is the category and typical buying price of the product with name "cumin"?
CREATE TABLE products (product_category_code VARCHAR, typical_buying_price VARCHAR, product_name VARCHAR)
SELECT COUNT(original_air_date) FROM table_15430813_1 WHERE no_in_season = 17
How many original air dates were there for episode 17?
CREATE TABLE table_15430813_1 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT COUNT(attendance) FROM table_name_23 WHERE week = 8
What is the attendance of week 8?
CREATE TABLE table_name_23 (attendance VARCHAR, week VARCHAR)
SELECT SUM(goals_against) FROM table_name_14 WHERE goals_for > 10 AND position = 3 AND wins < 6
Can you tell me the sum of Goals against that has the Goals for larger than 10, and the Position of 3, and the Wins smaller than 6?
CREATE TABLE table_name_14 (goals_against INTEGER, wins VARCHAR, goals_for VARCHAR, position VARCHAR)
SELECT position FROM table_name_33 WHERE overall < 322 AND round > 3 AND name = "eric norri"
What position did eric norri play who was the overall pick less than 322 on a round larger than 3?
CREATE TABLE table_name_33 (position VARCHAR, name VARCHAR, overall VARCHAR, round VARCHAR)
SELECT AVG(league_goals) FROM table_name_26 WHERE fa_cup_goals < 0
What is the average number of League Goals for palyers with 0 FA Cup Goals?
CREATE TABLE table_name_26 (league_goals INTEGER, fa_cup_goals INTEGER)
SELECT season_in_sanskrit FROM table_name_34 WHERE season_in_english = "summer"
What season in sanskrit means summer in English?
CREATE TABLE table_name_34 (season_in_sanskrit VARCHAR, season_in_english VARCHAR)
SELECT player FROM table_name_4 WHERE money___$__ = "187,500" AND score = 66 - 75 - 71 - 69 = 281
what player has $187,500 and score 66-75-71-69=281
CREATE TABLE table_name_4 (player VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT County_name FROM county ORDER BY County_name DESC
Return the names of all counties sorted by county name in descending alphabetical order.
CREATE TABLE county (County_name VARCHAR)
SELECT played FROM table_12886178_4 WHERE points = "16"
How many games ended up with 16 points?
CREATE TABLE table_12886178_4 (played VARCHAR, points VARCHAR)
SELECT MAX(lost) FROM table_name_9 WHERE points_1 > 58 AND goals_against = 66
What is the maximum lost with points 1 more than 58 and 66 goals against?
CREATE TABLE table_name_9 (lost INTEGER, points_1 VARCHAR, goals_against VARCHAR)
SELECT SUM(games) FROM table_name_24 WHERE team = "cai zaragoza" AND rank < 1
How many Games has a Team of cai zaragoza and a Rank smaller than 1?
CREATE TABLE table_name_24 (games INTEGER, team VARCHAR, rank VARCHAR)
SELECT interview FROM table_12094300_1 WHERE preliminaries = "8.425"
What is the score for interview when the preliminaries score is 8.425?
CREATE TABLE table_12094300_1 (interview VARCHAR, preliminaries VARCHAR)
SELECT agency FROM table_25692955_1 WHERE south_west_terminal = "Santa Rosa Avenue"
Name the agency for santa rosa avenue
CREATE TABLE table_25692955_1 (agency VARCHAR, south_west_terminal VARCHAR)
SELECT episode FROM table_name_17 WHERE share = "tba"
What Episode has a Share of tba?
CREATE TABLE table_name_17 (episode VARCHAR, share VARCHAR)
SELECT date_successor_seated FROM table_2417330_4 WHERE successor = "Vacant"
Name the date successor seated for successor being vacant
CREATE TABLE table_2417330_4 (date_successor_seated VARCHAR, successor VARCHAR)
SELECT ncaat_record FROM table_28001186_8 WHERE date = "June 26"
What was the NCAA Tournament record after the June 26 game?
CREATE TABLE table_28001186_8 (ncaat_record VARCHAR, date VARCHAR)
SELECT height_m__ft_ FROM table_name_77 WHERE rank > 10 AND name = "tameer tower"
What is the height for rank greater than 10 in Tameer Tower?
CREATE TABLE table_name_77 (height_m__ft_ VARCHAR, rank VARCHAR, name VARCHAR)
SELECT score FROM table_name_65 WHERE location = "new york" AND tournament = "b.c. open"
What is the score of the B.C. Open in New York?
CREATE TABLE table_name_65 (score VARCHAR, location VARCHAR, tournament VARCHAR)
SELECT MIN(erp_w) FROM table_name_26 WHERE frequency_mhz = 94.9
What is the smallest ERP W with a frequency MHz of 94.9?
CREATE TABLE table_name_26 (erp_w INTEGER, frequency_mhz VARCHAR)
SELECT position FROM table_25085059_1 WHERE pick__number = 6
What position was the number 6 draft pick?
CREATE TABLE table_25085059_1 (position VARCHAR, pick__number VARCHAR)
SELECT opponent FROM table_name_99 WHERE game = 71
Game 71 was played against what team?
CREATE TABLE table_name_99 (opponent VARCHAR, game VARCHAR)
SELECT skip FROM table_name_15 WHERE country = "switzerland"
What skip has switzerland as the country?
CREATE TABLE table_name_15 (skip VARCHAR, country VARCHAR)
SELECT result FROM table_name_75 WHERE incumbent = "william elliott"
When the incumbent was William Elliott, what was the result?
CREATE TABLE table_name_75 (result VARCHAR, incumbent VARCHAR)
SELECT location FROM table_1715730_2 WHERE enrollment = 4259
where is the enrollment 4259?
CREATE TABLE table_1715730_2 (location VARCHAR, enrollment VARCHAR)
SELECT opponent FROM table_name_26 WHERE date = "07-09-2012"
What opponent played on 07-09-2012?
CREATE TABLE table_name_26 (opponent VARCHAR, date VARCHAR)
SELECT MIN(tournaments) FROM table_name_76 WHERE name = "baruto"
What is the lowest Tournaments, when Name is "Baruto"?
CREATE TABLE table_name_76 (tournaments INTEGER, name VARCHAR)
SELECT written_by FROM table_2430014_8 WHERE uk_ratings__bbc2_rank_ = "2.27m (5)"
Who wrote the episode what had the rating 2.27m (5)?
CREATE TABLE table_2430014_8 (written_by VARCHAR, uk_ratings__bbc2_rank_ VARCHAR)
SELECT frequency FROM table_name_7 WHERE multiplier = "6×"
Which Frequency has a Multiplier of 6×?
CREATE TABLE table_name_7 (frequency VARCHAR, multiplier VARCHAR)
SELECT MIN(week) FROM table_name_71 WHERE attendance = 51 OFFSET 558
Which Week has Attendance of 51,558?
CREATE TABLE table_name_71 (week INTEGER, attendance VARCHAR)
SELECT position FROM table_name_11 WHERE height = 2.11
What is the Position of the Player with a Height of 2.11?
CREATE TABLE table_name_11 (position VARCHAR, height VARCHAR)
SELECT nationality FROM table_name_78 WHERE year > 2009 AND player = "dwayne de rosario category:articles with hcards"
After 2009, what's the nationality of a player named Dwayne de Rosario Category:articles with hcards?
CREATE TABLE table_name_78 (nationality VARCHAR, year VARCHAR, player VARCHAR)
SELECT MIN(points) FROM table_name_87 WHERE performer = "seán monaghan" AND draw < 7
Which Points have a Performer of seán monaghan and a Draw smaller than 7?
CREATE TABLE table_name_87 (points INTEGER, performer VARCHAR, draw VARCHAR)
SELECT award FROM table_name_58 WHERE category = "mercury prize"
What is the name of the award given for the category Mercury Prize?
CREATE TABLE table_name_58 (award VARCHAR, category VARCHAR)