answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT pick__number FROM table_name_89 WHERE college = "mcmaster"
Which pick number attended McMaster College?
CREATE TABLE table_name_89 (pick__number VARCHAR, college VARCHAR)
SELECT SUM(attendance) FROM table_name_52 WHERE score = "80-94"
How many attended during the game with a score of 80-94?
CREATE TABLE table_name_52 (attendance INTEGER, score VARCHAR)
SELECT MIN(year) FROM table_name_16 WHERE us_cham_rank < 1
Which Year is the lowest one that has a US Cham Rank smaller than 1?
CREATE TABLE table_name_16 (year INTEGER, us_cham_rank INTEGER)
SELECT owner FROM table_name_40 WHERE winner = "miss terrible"
Who is the owner of Miss Terrible?
CREATE TABLE table_name_40 (owner VARCHAR, winner VARCHAR)
SELECT MIN(grid) FROM table_name_77 WHERE time_retired = "+33.634" AND laps < 19
What is the grid total associated with a Time/Retired of +33.634, and a Laps smaller than 19?
CREATE TABLE table_name_77 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT region FROM table_name_20 WHERE format = "cd album" AND label = "kemado records" AND catalog = "kem 071"
Which Region has a Format of cd album, and a Label of kemado records, and a Catalog of kem 071?
CREATE TABLE table_name_20 (region VARCHAR, catalog VARCHAR, format VARCHAR, label VARCHAR)
SELECT manufacturer FROM table_name_69 WHERE laps = 1 AND time_retired = "accident"
Which Manufacturer has 1 lap and had an accident?
CREATE TABLE table_name_69 (manufacturer VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT COUNT(original_air_date) FROM table_13426649_1 WHERE _number = 6
How many different original air dates did the episode number 6 have?
CREATE TABLE table_13426649_1 (original_air_date VARCHAR, _number VARCHAR)
SELECT SUM(matches) FROM table_name_78 WHERE average > 6.33 AND rank = 1
What is the number of matches with an average larger than 6.33, with a rank of 1?
CREATE TABLE table_name_78 (matches INTEGER, average VARCHAR, rank VARCHAR)
SELECT call_sign FROM table_name_56 WHERE erp_w > 50
What is Call Sign, when ERP W is greater than 50?
CREATE TABLE table_name_56 (call_sign VARCHAR, erp_w INTEGER)
SELECT party FROM table_2668352_19 WHERE incumbent = "James Pleasants"
What party does James Pleasants belong to?
CREATE TABLE table_2668352_19 (party VARCHAR, incumbent VARCHAR)
SELECT engine_s_ FROM table_name_19 WHERE year = 1983
What are the engines for 1983?
CREATE TABLE table_name_19 (engine_s_ VARCHAR, year VARCHAR)
SELECT high_rebounds FROM table_18894744_6 WHERE record = "19-6"
Who did the high rebounds in the game with a 19-6 record?
CREATE TABLE table_18894744_6 (high_rebounds VARCHAR, record VARCHAR)
SELECT no_7 FROM table_name_85 WHERE region__year_ = "arizona (2010)"
What is No. 7, when Region (Year) is Arizona (2010)?
CREATE TABLE table_name_85 (no_7 VARCHAR, region__year_ VARCHAR)
SELECT SUM(grid) FROM table_name_7 WHERE laps > 66 AND driver = "michael schumacher"
What is the sum of grid values of driver Michael Schumacher with lap counts larger than 66?
CREATE TABLE table_name_7 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT try_bonus FROM table_name_51 WHERE lost = "13" AND drawn = "2"
What is the try bonus when the loss is 13 and the draw is 2?
CREATE TABLE table_name_51 (try_bonus VARCHAR, lost VARCHAR, drawn VARCHAR)
SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rank > 3 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id HAVING AVG(T2.rating) > 5
Find the names of items whose rank is higher than 3 and whose average rating is above 5.
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rank INTEGER, rating INTEGER)
SELECT actor_actress FROM table_name_88 WHERE tenure = "2008–2011" AND character = "stella dagostino"
What Actor/Actress a Tenure of 2008–2011 played Stella Dagostino?
CREATE TABLE table_name_88 (actor_actress VARCHAR, tenure VARCHAR, character VARCHAR)
SELECT SUM(season) FROM table_name_21 WHERE venue = "donington park" AND second = "brazil"
What is the sum of season when the venue was donington park, and Brazil came in second?
CREATE TABLE table_name_21 (season INTEGER, venue VARCHAR, second VARCHAR)
SELECT division FROM table_name_73 WHERE playoffs = "finalist" AND open_cup = "3rd round"
What division has finalist playoffs and was 3rd round Open Cup?
CREATE TABLE table_name_73 (division VARCHAR, playoffs VARCHAR, open_cup VARCHAR)
SELECT term_in_office FROM table_name_68 WHERE state = "vic" AND member = "stewart mcarthur"
What term did Stewart Mcarthur from Vic serve in office?
CREATE TABLE table_name_68 (term_in_office VARCHAR, state VARCHAR, member VARCHAR)
SELECT d_40_√ FROM table_name_23 WHERE d_43_√ = "d 14"
What's the D 40 √ when D 43 √ is d 14?
CREATE TABLE table_name_23 (d_40_√ VARCHAR, d_43_√ VARCHAR)
SELECT january__°f_ FROM table_21980_1 WHERE location = "Corner Brook"
What were the January (°F) temperatures in the Corner Brook location?
CREATE TABLE table_21980_1 (january__°f_ VARCHAR, location VARCHAR)
SELECT AVG(laps) FROM table_name_53 WHERE time_retired = "water leak" AND grid > 12
What is the mean number of laps where Time/retired was a water leak and the grid number was bigger than 12?
CREATE TABLE table_name_53 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT nationality FROM table_name_69 WHERE school_club_team = "iowa state"
What Nationality is the Iowa State team?
CREATE TABLE table_name_69 (nationality VARCHAR, school_club_team VARCHAR)
SELECT station FROM table_name_33 WHERE programming = "me-tv"
Which station has programming of Me-TV?
CREATE TABLE table_name_33 (station VARCHAR, programming VARCHAR)
SELECT director FROM table_name_64 WHERE original_title = "sahə"
What is Director, when Original Title is "Sahə"?
CREATE TABLE table_name_64 (director VARCHAR, original_title VARCHAR)
SELECT frequency FROM table_name_50 WHERE model_number = "core i7-3610qe"
What was the frequency of the Core i7-3610QE?
CREATE TABLE table_name_50 (frequency VARCHAR, model_number VARCHAR)
SELECT nationality_of_director FROM table_name_65 WHERE film = "um sol alaranjado"
Film of um sol alaranjado director is what nationality?
CREATE TABLE table_name_65 (nationality_of_director VARCHAR, film VARCHAR)
SELECT MAX(year_joined) FROM table_name_10 WHERE location = "crawfordsville"
When did crawfordsville join?
CREATE TABLE table_name_10 (year_joined INTEGER, location VARCHAR)
SELECT spokesperson FROM table_1992924_3 WHERE commentator = "Dmitriy Guberniyev"
state all the spokesperson for the channel where commentator is dmitriy guberniyev
CREATE TABLE table_1992924_3 (spokesperson VARCHAR, commentator VARCHAR)
SELECT 0 AS _100km_h__62mph_ FROM table_name_20 WHERE engine = "supercharged 5.4l v8"
What is the 0-100km/h (62mph) of the supercharged 5.4l v8 engine?
CREATE TABLE table_name_20 (engine VARCHAR)
SELECT COUNT(models_produced) FROM table_250309_1 WHERE plant = "Castle Bromwich"
how many models produced where the plant is castle bromwich?
CREATE TABLE table_250309_1 (models_produced VARCHAR, plant VARCHAR)
SELECT school, LOCATION FROM university WHERE affiliation = 'Public'
List all public schools and their locations.
CREATE TABLE university (school VARCHAR, LOCATION VARCHAR, affiliation VARCHAR)
SELECT player FROM table_name_12 WHERE place = "t7" AND country = "united states"
What player has t7 as the place, with tje United States as the country?
CREATE TABLE table_name_12 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT record FROM table_name_7 WHERE home = "hartford whalers" AND date = "april 13"
What is the record of the Hartford Whalers home team with the April 13 game date?
CREATE TABLE table_name_7 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_82 WHERE high_assists = "ramon sessions (8)" AND date = "march 30"
what is the location attendance when the high assists is by ramon sessions (8) on march 30?
CREATE TABLE table_name_82 (location_attendance VARCHAR, high_assists VARCHAR, date VARCHAR)
SELECT year FROM table_name_35 WHERE total = "2" AND la_matches = "0"
What year had a total of 2 and LA matches of 0?
CREATE TABLE table_name_35 (year VARCHAR, total VARCHAR, la_matches VARCHAR)
SELECT haydon FROM table_name_68 WHERE ben_tahir = "33"
What Haydon had a 33 Ben-Tahir?
CREATE TABLE table_name_68 (haydon VARCHAR, ben_tahir VARCHAR)
SELECT MAX(year) FROM table_2361788_1 WHERE playoffs = "Conference Finals"
Name the most year for conference finals
CREATE TABLE table_2361788_1 (year INTEGER, playoffs VARCHAR)
SELECT group FROM table_name_61 WHERE year = 2010 AND award = "best international actress"
For which group was Kim nominated in 2010 for Best International Actress?
CREATE TABLE table_name_61 (group VARCHAR, year VARCHAR, award VARCHAR)
SELECT fa_cup_apps FROM table_name_53 WHERE league_goals < 4 AND squad_no = 3
What is the FA Cup App for Squad Number 3 having fewer than 4 league goals?
CREATE TABLE table_name_53 (fa_cup_apps VARCHAR, league_goals VARCHAR, squad_no VARCHAR)
SELECT character FROM table_name_59 WHERE category = "sexiest female" AND award = "british soap awards"
Which character was in the sexiest female category of the British Soap Awards?
CREATE TABLE table_name_59 (character VARCHAR, category VARCHAR, award VARCHAR)
SELECT control FROM table_2076608_1 WHERE school = "Christopher Newport University"
What is the control for Christopher Newport University?
CREATE TABLE table_2076608_1 (control VARCHAR, school VARCHAR)
SELECT award FROM table_name_34 WHERE category = "theatre world award"
What type of award is the theatre world award?
CREATE TABLE table_name_34 (award VARCHAR, category VARCHAR)
SELECT nationality FROM table_name_62 WHERE years_in_new_jersey = "2007-2009"
What is the nationality of the play for New Jersey from 2007-2009?
CREATE TABLE table_name_62 (nationality VARCHAR, years_in_new_jersey VARCHAR)
SELECT pole_position FROM table_1137718_2 WHERE grand_prix = "German grand_prix"
Who had the pole position at the German Grand Prix?
CREATE TABLE table_1137718_2 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT 2004 FROM table_name_82 WHERE 2006 = "grand slam tournaments"
What is the 2004 that has a of grand slam tournaments in2006 ?
CREATE TABLE table_name_82 (Id VARCHAR)
SELECT seasons FROM table_name_88 WHERE goals > 100 AND games = 288
What seasons had 288 games and more than 100 goals?
CREATE TABLE table_name_88 (seasons VARCHAR, goals VARCHAR, games VARCHAR)
SELECT streak FROM table_name_99 WHERE stadium = "miami orange bowl"
What was the streak at the game at the Miami Orange Bowl?
CREATE TABLE table_name_99 (streak VARCHAR, stadium VARCHAR)
SELECT COUNT(position) FROM table_name_86 WHERE points = 29 AND lost < 2
What is the position number when there were 29 points, and less than 2 is lost?
CREATE TABLE table_name_86 (position VARCHAR, points VARCHAR, lost VARCHAR)
SELECT opponent FROM table_22862203_2 WHERE record = "11-2"
Who were the opponents when the record was 11-2?
CREATE TABLE table_22862203_2 (opponent VARCHAR, record VARCHAR)
SELECT singapore_gross FROM table_name_3 WHERE title = "1997"
For the film titled 1997, what was the gross in Singapore?
CREATE TABLE table_name_3 (singapore_gross VARCHAR, title VARCHAR)
SELECT record FROM table_name_45 WHERE decision = "mason" AND home = "nashville"
What is the record of the game with Mason as the decision and Nashville as the home team?
CREATE TABLE table_name_45 (record VARCHAR, decision VARCHAR, home VARCHAR)
SELECT city FROM table_name_84 WHERE venue = "hayman hall (tom gola arena)"
In which city is Hayman Hall (Tom Gola Arena) located?
CREATE TABLE table_name_84 (city VARCHAR, venue VARCHAR)
SELECT StuID FROM Student WHERE sex = 'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname = "Football"
Show all male student ids who don't play football.
CREATE TABLE Sportsinfo (StuID VARCHAR, sex VARCHAR, sportname VARCHAR); CREATE TABLE Student (StuID VARCHAR, sex VARCHAR, sportname VARCHAR)
SELECT outgoing_manager FROM table_name_77 WHERE date_of_vacancy = "25 september 2008"
What is Outgoing Manager, when Date of Vacancy is "25 September 2008"?
CREATE TABLE table_name_77 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR)
SELECT score FROM table_name_21 WHERE date = "04 september 2006"
What is the score for 04 september 2006?
CREATE TABLE table_name_21 (score VARCHAR, date VARCHAR)
SELECT MIN(muslim___percentage_of_total_population_) FROM table_name_37 WHERE census_year > 2011
What is the lowest Muslim (% of Total population) of a year after 2011?
CREATE TABLE table_name_37 (muslim___percentage_of_total_population_ INTEGER, census_year INTEGER)
SELECT COUNT(start_of_conflict) FROM table_1921_1 WHERE location = "Afghanistan"
How many conflicts started in Afghanistan?
CREATE TABLE table_1921_1 (start_of_conflict VARCHAR, location VARCHAR)
SELECT date FROM table_name_37 WHERE time___et__ = "1:00 pm" AND game_site = "arrowhead stadium"
What date is the 1:00 pm game at arrowhead stadium?
CREATE TABLE table_name_37 (date VARCHAR, time___et__ VARCHAR, game_site VARCHAR)
SELECT population__1980_ FROM table_11656578_2 WHERE capital = "Siedlce"
How many people lived in the voivodenship whose capital is Siedlce in the year of 1980?
CREATE TABLE table_11656578_2 (population__1980_ VARCHAR, capital VARCHAR)
SELECT AVG(quantity) FROM table_name_91 WHERE numbers = "29-36"
What is the quantity of the item with the numbers of 29-36?
CREATE TABLE table_name_91 (quantity INTEGER, numbers VARCHAR)
SELECT date FROM table_name_84 WHERE visitor = "florida"
Can you tell me the Date that has the Visitor of florida?
CREATE TABLE table_name_84 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_63 WHERE away_team = "geelong"
What is the date with geelong as Away team?
CREATE TABLE table_name_63 (date VARCHAR, away_team VARCHAR)
SELECT representative FROM table_10284385_1 WHERE date_of_birth = "January 31, 1866"
Which representative has a birthday of January 31, 1866?
CREATE TABLE table_10284385_1 (representative VARCHAR, date_of_birth VARCHAR)
SELECT years_with_franchise FROM table_name_16 WHERE number = 9
How many years did the team in slot number 9 have a franchise?
CREATE TABLE table_name_16 (years_with_franchise VARCHAR, number VARCHAR)
SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'
Find the number of dog pets that are raised by female students (with sex F).
CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR); CREATE TABLE student (stuid VARCHAR, sex VARCHAR)
SELECT power FROM table_name_58 WHERE year < 1999
How powerful is the model before 1999?
CREATE TABLE table_name_58 (power VARCHAR, year INTEGER)
SELECT country FROM table_name_70 WHERE to_par = "+3" AND player = "ed sneed"
What country is player ed sneed, who has a to par of +3, from?
CREATE TABLE table_name_70 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT region FROM table_name_43 WHERE format = "cd" AND catalog = "alca-9203"
Name the region for cd with catalog of alca-9203
CREATE TABLE table_name_43 (region VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT ncbi_accession_number__mrna_protein_ FROM table_16849531_2 WHERE length__bp_aa_ = "5304bp/377aa"
What is the NCBI Accession Number for the length of 5304bp/377aa?
CREATE TABLE table_16849531_2 (ncbi_accession_number__mrna_protein_ VARCHAR, length__bp_aa_ VARCHAR)
SELECT opponent FROM table_name_38 WHERE competition = "friendly" AND date = "15-08-2012"
Which opponent is friendly and played on 15-08-2012?
CREATE TABLE table_name_38 (opponent VARCHAR, competition VARCHAR, date VARCHAR)
SELECT MAX(laps) FROM table_name_24 WHERE time_retired = "+2 laps" AND driver = "felice bonetto"
Tell me the highest laps for time/retired of +2 laps and driver of felice bonetto
CREATE TABLE table_name_24 (laps INTEGER, time_retired VARCHAR, driver VARCHAR)
SELECT away_team FROM table_name_16 WHERE venue = "arden street oval"
Who was the away team at the game held at Arden Street Oval?
CREATE TABLE table_name_16 (away_team VARCHAR, venue VARCHAR)
SELECT result FROM table_1342270_3 WHERE district = "Alabama 1"
what are all the result with district being alabama 1
CREATE TABLE table_1342270_3 (result VARCHAR, district VARCHAR)
SELECT Police_force FROM county_public_safety WHERE LOCATION = "East" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION = "West"
Show the police force shared by counties with location on the east and west.
CREATE TABLE county_public_safety (Police_force VARCHAR, LOCATION VARCHAR)
SELECT district FROM table_25030512_4 WHERE incumbent = "Spencer Bachus"
Name the district for spencer bachus
CREATE TABLE table_25030512_4 (district VARCHAR, incumbent VARCHAR)
SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid
Find the first name and age of students who have a pet.
CREATE TABLE student (fname VARCHAR, age VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR)
SELECT COUNT(pick__number) FROM table_name_5 WHERE affiliation = "university of portland"
Tell me the total number of pick for university of portland
CREATE TABLE table_name_5 (pick__number VARCHAR, affiliation VARCHAR)
SELECT MAX(previous_br_no) FROM table_2079664_3
Name the most previous br number
CREATE TABLE table_2079664_3 (previous_br_no INTEGER)
SELECT date FROM table_name_99 WHERE company_name = "samsung electronics co ltd" AND hardware_model = "gt-i9100"
When did Samsung Electronics Co LTD make the GT-i9100?
CREATE TABLE table_name_99 (date VARCHAR, company_name VARCHAR, hardware_model VARCHAR)
SELECT away_team FROM table_name_12 WHERE venue = "princes park"
What was the away team when the game was at Princes Park?
CREATE TABLE table_name_12 (away_team VARCHAR, venue VARCHAR)
SELECT AVG(rank) FROM table_name_55 WHERE lane < 3 AND nationality = "australia"
What is the average Rank for a lane smaller than 3 with a nationality of Australia?
CREATE TABLE table_name_55 (rank INTEGER, lane VARCHAR, nationality VARCHAR)
SELECT territory FROM table_name_23 WHERE channel = 144 AND broadcaster = "astro"
Which territory has a channel of 144 and a broadcaster of Astro?
CREATE TABLE table_name_23 (territory VARCHAR, channel VARCHAR, broadcaster VARCHAR)
SELECT class_aA FROM table_14601528_2 WHERE school_year = "1998-99"
Name the class aa for 1998-99
CREATE TABLE table_14601528_2 (class_aA VARCHAR, school_year VARCHAR)
SELECT record FROM table_17288861_5 WHERE team = "Cleveland"
What was the team record when the team was Cleveland?
CREATE TABLE table_17288861_5 (record VARCHAR, team VARCHAR)
SELECT date FROM table_name_8 WHERE opponent = "bye"
When did the Texans play BYE?
CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR)
SELECT american_labor_ticket FROM table_name_3 WHERE liberal_ticket = "henry epstein"
What is the American Labor ticket when Henry Epstein is the liberal ticket?
CREATE TABLE table_name_3 (american_labor_ticket VARCHAR, liberal_ticket VARCHAR)
SELECT SUM(attendance) FROM table_name_96 WHERE tie_no = "13"
What was the attendance for the game that has a tie number of 13?
CREATE TABLE table_name_96 (attendance INTEGER, tie_no VARCHAR)
SELECT COUNT(player) FROM table_1473672_9 WHERE nhl_team = "Vancouver Canucks"
how many player with nhl team being vancouver canucks
CREATE TABLE table_1473672_9 (player VARCHAR, nhl_team VARCHAR)
SELECT author___editor___source FROM table_name_86 WHERE world_ranking__1_ = "35" AND countries_sampled > 100
Who is the Author/Editor/Source for more than 100 countries sampled and has a 35 world ranking?
CREATE TABLE table_name_86 (author___editor___source VARCHAR, world_ranking__1_ VARCHAR, countries_sampled VARCHAR)
SELECT opponent FROM table_name_58 WHERE date = "december 17, 1995"
Who was the opponent on December 17, 1995?
CREATE TABLE table_name_58 (opponent VARCHAR, date VARCHAR)
SELECT engine FROM table_20866024_2 WHERE gvw__kg_ton_ = "2500/2.46" AND model_designation = "97G00"
What's the engine for the model model designation 97G00 and GVW of 2500/2.46 kg/ton?
CREATE TABLE table_20866024_2 (engine VARCHAR, gvw__kg_ton_ VARCHAR, model_designation VARCHAR)
SELECT district FROM table_27366772_3 WHERE armenian = "Քանաքեր-Զեյթուն"
What district is known in Armenian as քանաքեր-զեյթուն?
CREATE TABLE table_27366772_3 (district VARCHAR, armenian VARCHAR)
SELECT score FROM table_name_40 WHERE place = "t3" AND player = "bobby locke"
What is T3 Place Player Bobby Locke's Score?
CREATE TABLE table_name_40 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT COUNT(year_joined) FROM table_20887670_1 WHERE colors = "Red and Gold"
in what year did the colors red and gold join?
CREATE TABLE table_20887670_1 (year_joined VARCHAR, colors VARCHAR)
SELECT con__gress FROM table_name_50 WHERE date = "2010"
Which congress was held in 2010?
CREATE TABLE table_name_50 (con__gress VARCHAR, date VARCHAR)
SELECT SUM(year) FROM table_name_36 WHERE length = "4:45" AND album = "les mots"
What's the total Year with a Length of 4:45 an has an Album of Les Mots?
CREATE TABLE table_name_36 (year INTEGER, length VARCHAR, album VARCHAR)
SELECT team FROM table_name_73 WHERE kitmaker = "saller" AND shirt_sponsor = "krombacher"
Which team uses the kitmaker Saller and has Krombacher as their shirt sponsor?
CREATE TABLE table_name_73 (team VARCHAR, kitmaker VARCHAR, shirt_sponsor VARCHAR)