question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What season has a runner-up of waseda, and a title of 47th?
CREATE TABLE table_name_25 (season VARCHAR, runner_up VARCHAR, title VARCHAR)
SELECT season FROM table_name_25 WHERE runner_up = "waseda" AND title = "47th"
What was the streak on April 2?
CREATE TABLE table_name_61 (streak VARCHAR, date VARCHAR)
SELECT streak FROM table_name_61 WHERE date = "april 2"
What college did Marcus Wilson attend?
CREATE TABLE table_name_45 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_45 WHERE player = "marcus wilson"
Which Nationality has a Fate of sunk (mine), and a Tonnage (GRT) smaller than 2,266?
CREATE TABLE table_name_80 (nationality VARCHAR, fate VARCHAR, tonnage__grt_ VARCHAR)
SELECT nationality FROM table_name_80 WHERE fate = "sunk (mine)" AND tonnage__grt_ < 2 OFFSET 266
How many total laps did the Chevrolet that won $97,508 make?
CREATE TABLE table_name_53 (laps VARCHAR, make VARCHAR, winnings VARCHAR)
SELECT COUNT(laps) FROM table_name_53 WHERE make = "chevrolet" AND winnings = "$97,508"
Name the total number of total with silver of 6, bronze more than 5 and gold less than 4
CREATE TABLE table_name_57 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT COUNT(total) FROM table_name_57 WHERE silver = 6 AND bronze > 5 AND gold < 4
What score has a record of 22-28-7-4?
CREATE TABLE table_name_9 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_9 WHERE record = "22-28-7-4"
When was the race that set the record for the Izod Indycar Series?
CREATE TABLE table_name_47 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_47 WHERE record = "izod indycar series"
Name the date for race title lakeside
CREATE TABLE table_name_21 (date VARCHAR, race_title VARCHAR)
SELECT date FROM table_name_21 WHERE race_title = "lakeside"
What was the sum of ranks of those called Fernando Cavenaghi who appeared less than 7.
CREATE TABLE table_name_5 (rank INTEGER, name VARCHAR, appearances VARCHAR)
SELECT SUM(rank) FROM table_name_5 WHERE name = "fernando cavenaghi" AND appearances < 7
What driver has grid number 18?
CREATE TABLE table_name_98 (driver VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_98 WHERE grid = 18
How many episodes had a viewership of 2.65 million?
CREATE TABLE table_18274425_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(no_in_season) FROM table_18274425_1 WHERE us_viewers__millions_ = "2.65"
what is the nickname founded in 1902?
CREATE TABLE table_1715730_2 (nickname VARCHAR, founded VARCHAR)
SELECT nickname FROM table_1715730_2 WHERE founded = 1902
What team had a capacity of 102.3%?
CREATE TABLE table_28884858_2 (team VARCHAR, capacity_percentage VARCHAR)
SELECT team FROM table_28884858_2 WHERE capacity_percentage = "102.3%"
How many people were in the crowd at collingwood's home game?
CREATE TABLE table_name_46 (crowd INTEGER, home_team VARCHAR)
SELECT SUM(crowd) FROM table_name_46 WHERE home_team = "collingwood"
What did billy andrade to par?
CREATE TABLE table_name_5 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_5 WHERE player = "billy andrade"
What was the score when 7260 people attended the game?
CREATE TABLE table_20745746_1 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_20745746_1 WHERE attendance = 7260
What tournament was on May 31, 1987?
CREATE TABLE table_name_93 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_93 WHERE date = "may 31, 1987"
what's the engine where builder is gloucester rcw and withdrawn is 1959
CREATE TABLE table_1181375_1 (engine VARCHAR, builder VARCHAR, withdrawn VARCHAR)
SELECT engine FROM table_1181375_1 WHERE builder = "Gloucester RCW" AND withdrawn = "1959"
What is the number of points that driver fernando alonso has in the season he had 20 races?
CREATE TABLE table_name_72 (points INTEGER, races VARCHAR, driver VARCHAR)
SELECT SUM(points) FROM table_name_72 WHERE races = 20 AND driver = "fernando alonso"
what is the average rating when the air date is november 23, 2007?
CREATE TABLE table_name_46 (rating INTEGER, air_date VARCHAR)
SELECT AVG(rating) FROM table_name_46 WHERE air_date = "november 23, 2007"
Find the types of documents with more than 4 documents.
CREATE TABLE documents (document_type_code VARCHAR)
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 4
Who was the player associated with Ole Miss in years after 2008 with a Mississippi St. name of Eric Moulds?
CREATE TABLE table_name_90 (ole_miss VARCHAR, year VARCHAR, mississippi_st VARCHAR)
SELECT ole_miss FROM table_name_90 WHERE year > 2008 AND mississippi_st = "eric moulds"
Which Opponents have a Team of arsenal, and a Year of 1963–64?
CREATE TABLE table_name_49 (opponents VARCHAR, team VARCHAR, year VARCHAR)
SELECT opponents FROM table_name_49 WHERE team = "arsenal" AND year = "1963–64"
What shows for 2007 at the Olympic Games as tournament.
CREATE TABLE table_name_55 (tournament VARCHAR)
SELECT 2007 FROM table_name_55 WHERE tournament = "olympic games"
What is the title where the studio was RKO, the role was Dolly, and the year was later than 1943?
CREATE TABLE table_name_98 (title VARCHAR, role VARCHAR, year VARCHAR, studio VARCHAR)
SELECT title FROM table_name_98 WHERE year > 1943 AND studio = "rko" AND role = "dolly"
What is the number of laps of the grid larger than 22 with a +1:29.001 time?
CREATE TABLE table_name_44 (laps VARCHAR, grid VARCHAR, time VARCHAR)
SELECT laps FROM table_name_44 WHERE grid > 22 AND time = "+1:29.001"
What is the result from 2013?
CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR)
SELECT result FROM table_name_49 WHERE year = 2013
Which position has a pick less than 41 from Ohio State?
CREATE TABLE table_name_31 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR)
SELECT position FROM table_name_31 WHERE pick < 41 AND school_club_team = "ohio state"
What is the description of the intact software?
CREATE TABLE table_25474825_1 (description VARCHAR, software VARCHAR)
SELECT description FROM table_25474825_1 WHERE software = "IntAct"
Who had the highest rebounds of the game with a game number higher than 65 on March 28?
CREATE TABLE table_name_73 (high_rebounds VARCHAR, game VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_name_73 WHERE game > 65 AND date = "march 28"
Which tournament had a score of 7–5, 2–6, 7–6?
CREATE TABLE table_name_7 (tournament VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_7 WHERE score = "7–5, 2–6, 7–6"
Which team was the opponent on october 21?
CREATE TABLE table_27734577_2 (team VARCHAR, date VARCHAR)
SELECT team FROM table_27734577_2 WHERE date = "October 21"
What is the lowest number of events the Open Championship has with a less than 0 top-10?
CREATE TABLE table_name_30 (events INTEGER, tournament VARCHAR, top_10 VARCHAR)
SELECT MIN(events) FROM table_name_30 WHERE tournament = "the open championship" AND top_10 < 0
How many weights are there when the flange with is 304?
CREATE TABLE table_2071644_2 (weight__kg_m_ VARCHAR, flange_width__mm_ VARCHAR)
SELECT COUNT(weight__kg_m_) FROM table_2071644_2 WHERE flange_width__mm_ = 304
When houdet ( fra ) w 6-2, 6-1 is the quarterfinals what is the final/bronze medal match?
CREATE TABLE table_18602462_21 (final__bronze_medal_match VARCHAR, quarterfinals VARCHAR)
SELECT final__bronze_medal_match FROM table_18602462_21 WHERE quarterfinals = "Houdet ( FRA ) W 6-2, 6-1"
When was Season Three premiered in region 2?
CREATE TABLE table_2113721_7 (region_2 VARCHAR, dvd_name VARCHAR)
SELECT region_2 FROM table_2113721_7 WHERE dvd_name = "Season Three"
How much money, in millions, is paid to Infotalent?
CREATE TABLE table_name_92 (amount__millions_ VARCHAR, payee VARCHAR)
SELECT amount__millions_ FROM table_name_92 WHERE payee = "infotalent"
For which tournament was Anthony Wall the runner-up?
CREATE TABLE table_name_11 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT tournament FROM table_name_11 WHERE runner_s__up = "anthony wall"
When the communities name is Balmoral and the area is over 43.51 kilometers squared, what's the total population amount?
CREATE TABLE table_name_56 (population VARCHAR, official_name VARCHAR, area_km_2 VARCHAR)
SELECT COUNT(population) FROM table_name_56 WHERE official_name = "balmoral" AND area_km_2 > 43.51
Which 2013 has a 2006 of grand slam tournaments?
CREATE TABLE table_name_64 (Id VARCHAR)
SELECT 2013 FROM table_name_64 WHERE 2006 = "grand slam tournaments"
Farr Yacht Design designed boats for how many country/flags?
CREATE TABLE table_19872699_1 (flag VARCHAR, design_firm VARCHAR)
SELECT COUNT(flag) FROM table_19872699_1 WHERE design_firm = "Farr Yacht Design"
What year was holly hunter a nominee?
CREATE TABLE table_name_30 (year__ceremony_ VARCHAR, result VARCHAR, actor_actress VARCHAR)
SELECT year__ceremony_ FROM table_name_30 WHERE result = "nominee" AND actor_actress = "holly hunter"
What livery was worn on the date before 1936, with the description of Gresley RF?
CREATE TABLE table_name_82 (livery VARCHAR, date VARCHAR, description VARCHAR)
SELECT livery FROM table_name_82 WHERE date < 1936 AND description = "gresley rf"
What was the loss of the game that had a score of 9-7?
CREATE TABLE table_name_65 (loss VARCHAR, score VARCHAR)
SELECT loss FROM table_name_65 WHERE score = "9-7"
Which premiere had more than 15 episodes?
CREATE TABLE table_name_36 (premiere VARCHAR, episodes INTEGER)
SELECT premiere FROM table_name_36 WHERE episodes > 15
How many different original U.S. air dates appear where the U.S. viewers were 2.5 million?
CREATE TABLE table_25246990_5 (original_us_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(original_us_air_date) FROM table_25246990_5 WHERE us_viewers__millions_ = "2.5"
Name the Pick # which has a Position of lb, and a CFL Team of winnipeg?
CREATE TABLE table_name_74 (pick__number INTEGER, position VARCHAR, cfl_team VARCHAR)
SELECT SUM(pick__number) FROM table_name_74 WHERE position = "lb" AND cfl_team = "winnipeg"
Who is the president representing the Creuse department?
CREATE TABLE table_name_10 (président VARCHAR, départment__or_collectivity_ VARCHAR)
SELECT président FROM table_name_10 WHERE départment__or_collectivity_ = "creuse"
How many ERP W is it that has a Call sign of w273bs?
CREATE TABLE table_name_40 (erp_w INTEGER, call_sign VARCHAR)
SELECT SUM(erp_w) FROM table_name_40 WHERE call_sign = "w273bs"
What is the lowest lap with a 145.926 qual?
CREATE TABLE table_name_6 (laps INTEGER, qual VARCHAR)
SELECT MIN(laps) FROM table_name_6 WHERE qual = "145.926"
What is the date where john wall (11) had the high assists?
CREATE TABLE table_27721131_6 (date VARCHAR, high_assists VARCHAR)
SELECT date FROM table_27721131_6 WHERE high_assists = "John Wall (11)"
What is the average total with less than 8 bronze, 3 silver, and a Rank smaller than 2?
CREATE TABLE table_name_76 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT AVG(total) FROM table_name_76 WHERE bronze < 8 AND silver = 3 AND rank < 2
What is the outgoing manager when the incoming manager is štefan tarkovič?
CREATE TABLE table_27683516_3 (outgoing_manager VARCHAR, incoming_manager VARCHAR)
SELECT outgoing_manager FROM table_27683516_3 WHERE incoming_manager = "Štefan Tarkovič"
What is the name of team 2 that has 1-2 as the score?
CREATE TABLE table_name_91 (team_2 VARCHAR, score VARCHAR)
SELECT team_2 FROM table_name_91 WHERE score = "1-2"
Please give me a list of cities whose regional population is over 10000000.
CREATE TABLE city (city VARCHAR, regional_population INTEGER)
SELECT city FROM city WHERE regional_population > 10000000
who was the director of the episode with production code ad1a26?
CREATE TABLE table_name_38 (directed_by VARCHAR, production_code VARCHAR)
SELECT directed_by FROM table_name_38 WHERE production_code = "ad1a26"
List the codes of all courses that take place in room KLR209.
CREATE TABLE CLASS (class_code VARCHAR, class_room VARCHAR)
SELECT class_code FROM CLASS WHERE class_room = 'KLR209'
What day did the team play charlotte?
CREATE TABLE table_17058116_6 (date VARCHAR, team VARCHAR)
SELECT date FROM table_17058116_6 WHERE team = "Charlotte"
What Player has a To par of +1 and the Score 75-70-71-73=289?
CREATE TABLE table_name_10 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT player FROM table_name_10 WHERE to_par = "+1" AND score = 75 - 70 - 71 - 73 = 289
Which Team has a Record of 17–8?
CREATE TABLE table_name_74 (team VARCHAR, record VARCHAR)
SELECT team FROM table_name_74 WHERE record = "17–8"
How many points have November of 15?
CREATE TABLE table_name_45 (points INTEGER, november VARCHAR)
SELECT SUM(points) FROM table_name_45 WHERE november = 15
Find the number of different departments in each school whose number of different departments is less than 5.
CREATE TABLE department (school_code VARCHAR, dept_name VARCHAR)
SELECT COUNT(DISTINCT dept_name), school_code FROM department GROUP BY school_code HAVING COUNT(DISTINCT dept_name) < 5
What's the original air date of the episode with a broadcast order s04 e01?
CREATE TABLE table_1231892_4 (us_air_date VARCHAR, broadcast_order VARCHAR)
SELECT us_air_date FROM table_1231892_4 WHERE broadcast_order = "S04 E01"
In what city is the July temperature 23/9°c (73/48°f)?
CREATE TABLE table_name_49 (city VARCHAR, july VARCHAR)
SELECT city FROM table_name_49 WHERE july = "23/9°c (73/48°f)"
Who is the incoming manager when the date of vacancy was 21 march 2011?
CREATE TABLE table_26914854_3 (incoming_manager VARCHAR, date_of_vacancy VARCHAR)
SELECT incoming_manager FROM table_26914854_3 WHERE date_of_vacancy = "21 March 2011"
Who is the June playmate with the November playmate Lorraine Olivia?
CREATE TABLE table_name_3 (june VARCHAR, november VARCHAR)
SELECT june FROM table_name_3 WHERE november = "lorraine olivia"
Which season reported wickets of 7th?
CREATE TABLE table_1670921_1 (season VARCHAR, wicket VARCHAR)
SELECT season FROM table_1670921_1 WHERE wicket = "7th"
If the world record is the African record, what is the 1:53.28 total number?
CREATE TABLE table_24001246_2 (world_record VARCHAR)
SELECT COUNT(1) AS :5328 FROM table_24001246_2 WHERE world_record = "African record"
Which Gold has a Nation of south korea (kor), and Bronze smaller than 65?
CREATE TABLE table_name_83 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT AVG(gold) FROM table_name_83 WHERE nation = "south korea (kor)" AND bronze < 65
What stage did team Carrera Jeans-Tassoni have when Mario Cipollini won and Claudio Chiappucci had the points?
CREATE TABLE table_name_78 (stage VARCHAR, points_classification VARCHAR, trofeo_fast_team VARCHAR, winner VARCHAR)
SELECT stage FROM table_name_78 WHERE trofeo_fast_team = "carrera jeans-tassoni" AND winner = "mario cipollini" AND points_classification = "claudio chiappucci"
Who was the lead for the 2008 WCC?
CREATE TABLE table_name_5 (lead VARCHAR, event VARCHAR)
SELECT lead FROM table_name_5 WHERE event = "2008 wcc"
Who scored 67-73-70=210?
CREATE TABLE table_name_93 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_93 WHERE score = 67 - 73 - 70 = 210
What is the number of rank with the viewership of 5.96 million?
CREATE TABLE table_11251109_3 (Rank VARCHAR, viewers__m_ VARCHAR)
SELECT COUNT(Rank) AS (_number) FROM table_11251109_3 WHERE viewers__m_ = "5.96"
What country has a loan as the type?
CREATE TABLE table_name_6 (country VARCHAR, type VARCHAR)
SELECT country FROM table_name_6 WHERE type = "loan"
What's the English name for the month with พ.ย. abbreviation?
CREATE TABLE table_180802_2 (english_name VARCHAR, abbr VARCHAR)
SELECT english_name FROM table_180802_2 WHERE abbr = "พ.ย."
Who wrote the episode that has the production code ad1c05?
CREATE TABLE table_name_4 (written_by VARCHAR, production_code VARCHAR)
SELECT written_by FROM table_name_4 WHERE production_code = "ad1c05"
What is the number of the division for the 1st round?
CREATE TABLE table_1046071_1 (division VARCHAR, open_cup VARCHAR)
SELECT COUNT(division) FROM table_1046071_1 WHERE open_cup = "1st Round"
What website has an Ofsted less than 106478 in Atherton?
CREATE TABLE table_name_33 (website VARCHAR, ofsted VARCHAR, locality VARCHAR)
SELECT website FROM table_name_33 WHERE ofsted < 106478 AND locality = "atherton"
Who was the opponent at the away game with a score of 5-4?
CREATE TABLE table_name_67 (opponents VARCHAR, venue VARCHAR, score VARCHAR)
SELECT opponents FROM table_name_67 WHERE venue = "away" AND score = "5-4"
What is the first prize amount of the person who has a score of 207 (-9) and a purse amount of more than 800,000?
CREATE TABLE table_name_54 (score VARCHAR, purse__$__ VARCHAR)
SELECT COUNT(1 AS st_prize__) AS $__ FROM table_name_54 WHERE score = "207 (-9)" AND purse__$__ > 800 OFFSET 000
Name the number of director for huelepega: ley de la calle
CREATE TABLE table_18123274_1 (director VARCHAR, original_title VARCHAR)
SELECT COUNT(director) FROM table_18123274_1 WHERE original_title = "Huelepega: Ley de la Calle"
When 2012 (85th) is the year (ceremony) how many results?
CREATE TABLE table_26555737_1 (result VARCHAR, year__ceremony_ VARCHAR)
SELECT COUNT(result) FROM table_26555737_1 WHERE year__ceremony_ = "2012 (85th)"
What is the party for the representative who was first elected before 2002 and the results were re-elected?
CREATE TABLE table_name_7 (party VARCHAR, results VARCHAR, first_elected VARCHAR)
SELECT party FROM table_name_7 WHERE results = "re-elected" AND first_elected < 2002
What is the total market value in billions of the company with 20.96 billion in profits and less than 166.99 billions in assets?
CREATE TABLE table_name_34 (market_value__billion_ VARCHAR, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)
SELECT COUNT(market_value__billion_) AS $_ FROM table_name_34 WHERE profits__billion_$_ = 20.96 AND assets__billion_$_ < 166.99
Who has 6/1 odds?
CREATE TABLE table_name_50 (trainer VARCHAR, odds VARCHAR)
SELECT trainer FROM table_name_50 WHERE odds = "6/1"
What is the numbers of the thn unit with a power greater than 220?
CREATE TABLE table_name_49 (numbers VARCHAR, power__horsepower_ VARCHAR, type VARCHAR)
SELECT numbers FROM table_name_49 WHERE power__horsepower_ > 220 AND type = "thn"
What interface is used on the scanner that has a 36 pages per minute?
CREATE TABLE table_16409745_1 (interface VARCHAR, pages_per_minute__color_ VARCHAR)
SELECT interface FROM table_16409745_1 WHERE pages_per_minute__color_ = 36
For a year that is later than 2002 what is the class position?
CREATE TABLE table_name_53 (class VARCHAR, year INTEGER)
SELECT class AS pos FROM table_name_53 WHERE year > 2002
what is the highest rank for east germany with points of 128.98 and places less than 70?
CREATE TABLE table_name_40 (rank INTEGER, places VARCHAR, nation VARCHAR, points VARCHAR)
SELECT MAX(rank) FROM table_name_40 WHERE nation = "east germany" AND points = 128.98 AND places < 70
Name the most ceiling temperature for intermediate
CREATE TABLE table_1538516_1 (maximum_ceiling_temperature VARCHAR, temperature_classification VARCHAR)
SELECT maximum_ceiling_temperature FROM table_1538516_1 WHERE temperature_classification = "Intermediate"
What is the character name that has phyllis welch as the leading lady?
CREATE TABLE table_name_97 (character_name VARCHAR, leading_lady VARCHAR)
SELECT character_name FROM table_name_97 WHERE leading_lady = "phyllis welch"
Who was the home team when grimsby town was the away team?
CREATE TABLE table_name_91 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_91 WHERE away_team = "grimsby town"
In what rounds did Luigi Fagioli drive for Alfa Romeo SPA?
CREATE TABLE table_name_69 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_69 WHERE entrant = "alfa romeo spa" AND driver = "luigi fagioli"
What was the session at the circuit of lowes motor speedway?
CREATE TABLE table_name_70 (session VARCHAR, circuit VARCHAR)
SELECT session FROM table_name_70 WHERE circuit = "lowes motor speedway"
List the final tables made and the best finishes of poker players.
CREATE TABLE poker_player (Final_Table_Made VARCHAR, Best_Finish VARCHAR)
SELECT Final_Table_Made, Best_Finish FROM poker_player
What Release date has a Version of 1.0, a Category of utilities, a Developer of microsoft, and a Title of msn money?
CREATE TABLE table_name_36 (release_date VARCHAR, title VARCHAR, developer VARCHAR, version VARCHAR, category VARCHAR)
SELECT release_date FROM table_name_36 WHERE version = "1.0" AND category = "utilities" AND developer = "microsoft" AND title = "msn money"
Which Sub-Parish (Sogn) is in the Parish (Prestegjeld) of hafslo parish and has a church called Hafslo Kyrkje?
CREATE TABLE table_name_30 (sub_parish__sogn_ VARCHAR, parish__prestegjeld_ VARCHAR, church_name VARCHAR)
SELECT sub_parish__sogn_ FROM table_name_30 WHERE parish__prestegjeld_ = "hafslo parish" AND church_name = "hafslo kyrkje"
Name the sum of attendacne for 16 weeks
CREATE TABLE table_name_30 (attendance INTEGER, week VARCHAR)
SELECT SUM(attendance) FROM table_name_30 WHERE week = 16
Which Blagojevich (D) has a Source of zogby/wsj, and a Date of october 16, 2006?
CREATE TABLE table_name_70 (blagojevich__d_ VARCHAR, source VARCHAR, date VARCHAR)
SELECT blagojevich__d_ FROM table_name_70 WHERE source = "zogby/wsj" AND date = "october 16, 2006"