answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT record FROM table_name_66 WHERE opponent = "vs. calgary stampeders" AND week < 15
What was the record the the match against vs. calgary stampeders before week 15?
CREATE TABLE table_name_66 (record VARCHAR, opponent VARCHAR, week VARCHAR)
SELECT name FROM table_name_32 WHERE rank > 3 AND lane < 6 AND time = "1:58.15"
Who had a larger rank than 3, less than 6 lanes, and a time of 1:58.15?
CREATE TABLE table_name_32 (name VARCHAR, time VARCHAR, rank VARCHAR, lane VARCHAR)
SELECT 2 AS nd_party FROM table_name_66 WHERE election = "1918"
What was the 2nd Party in the 1918 Election?
CREATE TABLE table_name_66 (election VARCHAR)
SELECT COUNT(grid) FROM table_name_86 WHERE driver = "anthony davidson" AND laps < 8
What was the grid for anthony davidson when the laps were less than 8?
CREATE TABLE table_name_86 (grid VARCHAR, driver VARCHAR, laps VARCHAR)
SELECT team FROM table_name_64 WHERE average < 1.12 AND goalkeeper = "carlos sánchez"
What team has Carlos Sánchez as a goalkeeper and an average below 1.12?
CREATE TABLE table_name_64 (team VARCHAR, average VARCHAR, goalkeeper VARCHAR)
SELECT SUM(year) FROM table_name_96 WHERE event = "100 m hurdles" AND competition = "world championships" AND venue = "osaka, japan"
How many years had a 100 m hurdles event at the world championships in Osaka, Japan?
CREATE TABLE table_name_96 (year INTEGER, venue VARCHAR, event VARCHAR, competition VARCHAR)
SELECT results FROM table_1805191_6 WHERE incumbent = "Grace Napolitano"
What were the result(s) of the election featuring grace napolitano as the incumbent?
CREATE TABLE table_1805191_6 (results VARCHAR, incumbent VARCHAR)
SELECT music FROM table_name_30 WHERE couple = "mario & karina"
What music did Mario & Karina perform?
CREATE TABLE table_name_30 (music VARCHAR, couple VARCHAR)
SELECT points FROM table_name_56 WHERE year > 1987
Name the points for year more than 1987
CREATE TABLE table_name_56 (points VARCHAR, year INTEGER)
SELECT MAX(silver) FROM table_name_54 WHERE gold > "1" AND bronze = 3 AND rank = "1" AND total < 12
What is the most silver won by the country with more than 1 gold, 3 bronze, ranked 1, and less than 12 as the total?
CREATE TABLE table_name_54 (silver INTEGER, total VARCHAR, rank VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT date_to FROM table_name_90 WHERE name = "ron-robert zieler"
When was ron-robert zieler loaned out until ?
CREATE TABLE table_name_90 (date_to VARCHAR, name VARCHAR)
SELECT MAX(att) FROM table_name_24 WHERE long = 27 AND yards > 27
Tell me the most Att with a long of 27 with yards longer than 27
CREATE TABLE table_name_24 (att INTEGER, long VARCHAR, yards VARCHAR)
SELECT isbn_us FROM table_name_72 WHERE title = "crisis in space"
What is ISBN US, when Title is "Crisis In Space"?
CREATE TABLE table_name_72 (isbn_us VARCHAR, title VARCHAR)
SELECT position FROM table_14342210_2 WHERE player = "Shorts"
Name the position for shorts
CREATE TABLE table_14342210_2 (position VARCHAR, player VARCHAR)
SELECT scored_1, 500 AS _points FROM table_name_34 WHERE years_played = "2004–2008" AND name = "jolene anderson"
WHich Scored 1,500 Points has a Years Played of 2004–2008 and a Name of jolene anderson?
CREATE TABLE table_name_34 (scored_1 VARCHAR, years_played VARCHAR, name VARCHAR)
SELECT SUM(year) FROM table_name_6 WHERE city = "santiago de compostela"
How many years did he play in santiago de compostela?
CREATE TABLE table_name_6 (year INTEGER, city VARCHAR)
SELECT MAX(pick__number) FROM table_name_5 WHERE position = "defensive tackle" AND round < 7
Before round 7, what is the greatest Pick # for a player that plays defensive tackle?
CREATE TABLE table_name_5 (pick__number INTEGER, position VARCHAR, round VARCHAR)
SELECT order FROM table_name_84 WHERE species_authority = "hydrochaeris hydrochaeris (linnaeus, 1766)"
What order has the Species Authority of hydrochaeris hydrochaeris (linnaeus, 1766)?
CREATE TABLE table_name_84 (order VARCHAR, species_authority VARCHAR)
SELECT team_2 FROM table_name_4 WHERE team_1 = "al qadsia"
What is the name of Team 2 with a Team 1 of Al Qadsia?
CREATE TABLE table_name_4 (team_2 VARCHAR, team_1 VARCHAR)
SELECT home_team FROM table_name_26 WHERE tie_no = "6"
Which Home has a Tie no of 6?
CREATE TABLE table_name_26 (home_team VARCHAR, tie_no VARCHAR)
SELECT year_s__won FROM table_name_61 WHERE total > 148 AND to_par < 17 AND country = "new zealand"
Which Year(s) won has a Total larger than 148, and a To par smaller than 17, and a Country of new zealand?
CREATE TABLE table_name_61 (year_s__won VARCHAR, country VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT netflix FROM table_name_64 WHERE series_ep = "15-01"
What is the Netflix episode for series episode 15-01?
CREATE TABLE table_name_64 (netflix VARCHAR, series_ep VARCHAR)
SELECT MAX(displacement__cc_) FROM table_name_12 WHERE model = "r fwd auto phase1"
What is the highest displacement value for the R Fwd Auto Phase1?
CREATE TABLE table_name_12 (displacement__cc_ INTEGER, model VARCHAR)
SELECT country FROM table_name_77 WHERE rank = 5
Which Country has a Rank of 5?
CREATE TABLE table_name_77 (country VARCHAR, rank VARCHAR)
SELECT result FROM table_name_32 WHERE week < 3 AND attendance = "53,658"
What was the result of the game before week 3 with an attendance of 53,658?
CREATE TABLE table_name_32 (result VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT year FROM table_name_96 WHERE attempts = "888"
In what year was the number of attempts 888?
CREATE TABLE table_name_96 (year VARCHAR, attempts VARCHAR)
SELECT MAX(against) FROM table_name_35 WHERE losses < 17 AND draws > 1
WHAT IS THE HIGHEST AGAINST WITH LOSSES SMALLER THAN 17, DRAWS LARGER THAN 1?
CREATE TABLE table_name_35 (against INTEGER, losses VARCHAR, draws VARCHAR)
SELECT COUNT(attempts) FROM table_name_95 WHERE rank > 4 AND net_yds < 1674
What is the total number of Attempts when Rank was larger than 4, and Net Yds was smaller than 1674?
CREATE TABLE table_name_95 (attempts VARCHAR, rank VARCHAR, net_yds VARCHAR)
SELECT away_team FROM table_name_51 WHERE venue = "lake oval"
What team played at lake oval while away?
CREATE TABLE table_name_51 (away_team VARCHAR, venue VARCHAR)
SELECT density FROM table_2013618_1 WHERE traditional = "古田縣"
Name the density for 古田縣
CREATE TABLE table_2013618_1 (density VARCHAR, traditional VARCHAR)
SELECT director FROM table_22265716_1 WHERE film_title_used_in_nomination = "Three Summer Days"
Who directed the film with the title three summer days?
CREATE TABLE table_22265716_1 (director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT 2009 FROM table_name_5 WHERE 2005 = "a" AND tournament = "australian open"
What was the value in 2009 when 2005 was A for the Australian Open?
CREATE TABLE table_name_5 (tournament VARCHAR)
SELECT pole_position FROM table_26267607_2 WHERE winning_driver = "Bruno Spengler" AND circuit = "Showevent Olympiastadion München"
In the circuit Showevent Olympiastadion München, where the winning driver is Bruno Spengler, what is the pole position?
CREATE TABLE table_26267607_2 (pole_position VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
SELECT COUNT(game) FROM table_30087032_5 WHERE high_rebounds = "Oliver Miller (7)"
In how many different games did Oliver Miller (7) did the high rebounds?
CREATE TABLE table_30087032_5 (game VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(languages) FROM table_22073745_1 WHERE film_title_used_in_nomination = "Elles"
How many languages have elles as the film title used in nomination?
CREATE TABLE table_22073745_1 (languages VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT visiting_team FROM table_name_67 WHERE stadium = "ralph wilson stadium"
Name the visiting team for stadium of ralph wilson stadium
CREATE TABLE table_name_67 (visiting_team VARCHAR, stadium VARCHAR)
SELECT segment_d FROM table_name_51 WHERE episode = 60
What was the D segment for episode 60?
CREATE TABLE table_name_51 (segment_d VARCHAR, episode VARCHAR)
SELECT COUNT(interview_subject) FROM table_1566852_6 WHERE centerfold_model = "Tamara Witmer"
How many total interview subjects wererthere when the centerfold model was Tamara Witmer?
CREATE TABLE table_1566852_6 (interview_subject VARCHAR, centerfold_model VARCHAR)
SELECT COUNT(flange_width__mm_) FROM table_2071644_1 WHERE cross_section_area__cm_2__ = "16.4"
What is the flange width (mm) for cross section area (cm 2) 16.4?
CREATE TABLE table_2071644_1 (flange_width__mm_ VARCHAR, cross_section_area__cm_2__ VARCHAR)
SELECT COUNT(elverum) FROM table_19439864_2 WHERE song = "Et sted i Scandinavia"
How many elverum are tehre for et sted i scandinavia?
CREATE TABLE table_19439864_2 (elverum VARCHAR, song VARCHAR)
SELECT team_classification FROM table_26257223_13 WHERE winner = "Chris Horner"
Who led team classification during the stage whose winner was Chris Horner?
CREATE TABLE table_26257223_13 (team_classification VARCHAR, winner VARCHAR)
SELECT inscription FROM table_name_26 WHERE identification = "john vanbrugh"
What is the inscription with John Vanbrugh listed as the identification?
CREATE TABLE table_name_26 (inscription VARCHAR, identification VARCHAR)
SELECT opponent FROM table_name_48 WHERE round < 3 AND time = "1:09"
Which Opponent has a Round smaller than 3, and a Time of 1:09?
CREATE TABLE table_name_48 (opponent VARCHAR, round VARCHAR, time VARCHAR)
SELECT outgoing_manager FROM table_17327458_1 WHERE date_of_vacancy = "24 January"
Who left a position on 24 January?
CREATE TABLE table_17327458_1 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR)
SELECT score FROM table_name_83 WHERE place = "t6" AND player = "k.j. choi"
What is the score with a place of t6 for the player k.j. choi?
CREATE TABLE table_name_83 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT MIN(area_km_2) FROM table_name_21 WHERE population > 1 OFFSET 395
What is Area km 2, when Population is greater than 1,395?
CREATE TABLE table_name_21 (area_km_2 INTEGER, population INTEGER)
SELECT type FROM table_262495_1 WHERE nickname = "Falcons"
When falcons are the nickname what is the type?
CREATE TABLE table_262495_1 (type VARCHAR, nickname VARCHAR)
SELECT results¹ FROM table_name_70 WHERE city = "belgrade"
What's the result of the game played in Belgrade?
CREATE TABLE table_name_70 (results¹ VARCHAR, city VARCHAR)
SELECT high_points FROM table_17288869_7 WHERE high_rebounds = "Dirk Nowitzki (13)"
Who had the high points while Dirk Nowitzki (13) had the high rebounds?
CREATE TABLE table_17288869_7 (high_points VARCHAR, high_rebounds 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 away_team FROM table_name_8 WHERE home_team = "bristol rovers"
What is listed as the Away team for the Home team of the Bristol Rovers?
CREATE TABLE table_name_8 (away_team VARCHAR, home_team VARCHAR)
SELECT rank FROM table_name_16 WHERE date = "september 9, 2004"
Which Rank that is on september 9, 2004?
CREATE TABLE table_name_16 (rank VARCHAR, date VARCHAR)
SELECT record FROM table_name_37 WHERE date = "october 31"
What is Record, when Date is October 31?
CREATE TABLE table_name_37 (record VARCHAR, date VARCHAR)
SELECT MIN(league_goals) FROM table_name_43 WHERE position = "fw" AND total_goals > 9 AND league_cup_goals > 4
What is the lowest league goals that has fw as the position, total goals greater than 9, with league cup goals greater than 4?
CREATE TABLE table_name_43 (league_goals INTEGER, league_cup_goals VARCHAR, position VARCHAR, total_goals VARCHAR)
SELECT jockey FROM table_name_55 WHERE odds = "5/1"
Who has 5/1 odds?
CREATE TABLE table_name_55 (jockey VARCHAR, odds VARCHAR)
SELECT author FROM table_name_1 WHERE last_issue = "ongoing"
What is the Author of the Title with an Ongoing Last Issue?
CREATE TABLE table_name_1 (author VARCHAR, last_issue VARCHAR)
SELECT loser FROM table_name_72 WHERE sport = "hockey"
What losing team plays hockey?
CREATE TABLE table_name_72 (loser VARCHAR, sport VARCHAR)
SELECT result FROM table_1342270_42 WHERE district = "Tennessee 2"
What was the result of the Tennessee 2 district election?
CREATE TABLE table_1342270_42 (result VARCHAR, district VARCHAR)
SELECT original_album FROM table_name_92 WHERE performer = "brad mehldau"
On the title feature brad mehldau as the performer, what is the original album?
CREATE TABLE table_name_92 (original_album VARCHAR, performer VARCHAR)
SELECT guest FROM table_name_56 WHERE result = "0:3"
Who was the guest when the result was 0:3?
CREATE TABLE table_name_56 (guest VARCHAR, result VARCHAR)
SELECT team_1 FROM table_name_9 WHERE season = "2005" AND score = "0-4"
In the 2005 season with a score of 0-4 what is the team 1?
CREATE TABLE table_name_9 (team_1 VARCHAR, season VARCHAR, score VARCHAR)
SELECT MIN(production_code) FROM table_12226390_3 WHERE written_by = "Jay Sommers & Dick Chevillat and Al Schwartz"
what's the minimum production code written by jay sommers & dick chevillat and al schwartz
CREATE TABLE table_12226390_3 (production_code INTEGER, written_by VARCHAR)
SELECT COUNT(no) FROM table_28005100_1 WHERE title = "Kam Wa7ed Fina"
How many numbers are there for kam wa7ed fina?
CREATE TABLE table_28005100_1 (no VARCHAR, title VARCHAR)
SELECT MAX(rank) FROM table_name_44 WHERE nation = "belarus (blr)" AND total < 15
What rank is Belarus (BLR), which earned 15 medals total?
CREATE TABLE table_name_44 (rank INTEGER, nation VARCHAR, total VARCHAR)
SELECT COUNT(brunos_vote) FROM table_12305325_4 WHERE eliminated = "Willie and Erin"
What is the total number of brunos vote when willie and erin are eliminated?
CREATE TABLE table_12305325_4 (brunos_vote VARCHAR, eliminated VARCHAR)
SELECT 2 AS nd_leg FROM table_name_57 WHERE team_1 = "chicago croatian"
What was the 2nd leg when Team 1 was Chicago Croatian?
CREATE TABLE table_name_57 (team_1 VARCHAR)
SELECT date FROM table_name_93 WHERE home = "tampa bay" AND decision = "ramo" AND record = "24–27–6"
What was the date of the 24–27–6 Lightning home game against Tampa Bay that had a decision of Ramo?
CREATE TABLE table_name_93 (date VARCHAR, record VARCHAR, home VARCHAR, decision VARCHAR)
SELECT visiting_team FROM table_name_59 WHERE date = "october 15, 2006"
Who was the visiting team on October 15, 2006?
CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_48 WHERE date = "august 2"
What was the attendance on August 2?
CREATE TABLE table_name_48 (attendance VARCHAR, date VARCHAR)
SELECT centennial FROM table_15977768_1 WHERE akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river = "1992"
Name the centennial for 1992 akimel
CREATE TABLE table_15977768_1 (centennial VARCHAR, akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river VARCHAR)
SELECT week FROM table_name_42 WHERE date = "november 10, 1996"
What is the Week on November 10, 1996?
CREATE TABLE table_name_42 (week VARCHAR, date VARCHAR)
SELECT senior_2nd_viii FROM table_name_60 WHERE senior_iv = "stm"
Which 2nd senior VIII that also has a 4th senior stm?
CREATE TABLE table_name_60 (senior_2nd_viii VARCHAR, senior_iv VARCHAR)
SELECT manner_of_departure FROM table_29414946_3 WHERE outgoing_manager = "Geninho"
Why did Geninho leave as manager?
CREATE TABLE table_29414946_3 (manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT binary FROM table_name_98 WHERE operation = "find-min"
Operation of find-min has what binary?
CREATE TABLE table_name_98 (binary VARCHAR, operation VARCHAR)
SELECT visitor FROM table_name_5 WHERE date = "april 22"
On the date of April 22, which city was a visitor?
CREATE TABLE table_name_5 (visitor VARCHAR, date VARCHAR)
SELECT COUNT(year) FROM table_name_76 WHERE name = "prof. aditya naraian purohit"
What is the total number of years that prof. aditya naraian purohit won?
CREATE TABLE table_name_76 (year VARCHAR, name VARCHAR)
SELECT MAX(prod_code) FROM table_29102100_1 WHERE directed_by = "Rondell Sheridan"
What was the production code of the episode directed by Rondell Sheridan?
CREATE TABLE table_29102100_1 (prod_code INTEGER, directed_by VARCHAR)
SELECT date_of_appointment FROM table_24231638_3 WHERE team = "Osasuna"
what is the date of appointment for the team osasuna?
CREATE TABLE table_24231638_3 (date_of_appointment VARCHAR, team VARCHAR)
SELECT party FROM table_name_2 WHERE result = "re-elected" AND district = "south carolina 5"
Which party was re-elected in south carolina 5 district?
CREATE TABLE table_name_2 (party VARCHAR, result VARCHAR, district VARCHAR)
SELECT MIN(against) FROM table_name_45 WHERE date = "27/03/1971"
What's the lowest against on 27/03/1971?
CREATE TABLE table_name_45 (against INTEGER, date VARCHAR)
SELECT status FROM table_name_50 WHERE net_capacity = "1212 mw"
What is the status of the unit with a net capacity of 1212 MW?
CREATE TABLE table_name_50 (status VARCHAR, net_capacity VARCHAR)
SELECT COUNT(friday) FROM table_18173916_6 WHERE wednesday = "190 Boardwalk Empire"
How many episodes were shown on Friday if 190 Boardwalk Empire was shown on Wednesday?
CREATE TABLE table_18173916_6 (friday VARCHAR, wednesday VARCHAR)
SELECT MIN(won) FROM table_13018091_1 WHERE club = "Whitehaven"
How many games did whitehaven win?
CREATE TABLE table_13018091_1 (won INTEGER, club VARCHAR)
SELECT deleted FROM table_name_71 WHERE county = "tolland"
What is the deleted for tolland?
CREATE TABLE table_name_71 (deleted VARCHAR, county VARCHAR)
SELECT runner_up FROM table_name_6 WHERE year = "1925"
What runner-up has 1925 as the year?
CREATE TABLE table_name_6 (runner_up VARCHAR, year VARCHAR)
SELECT semifinalists FROM table_name_82 WHERE finalist = "andrei chesnokov"
Which Semifinalists have a Finalist of andrei chesnokov?
CREATE TABLE table_name_82 (semifinalists VARCHAR, finalist VARCHAR)
SELECT notes FROM table_name_23 WHERE venue = "venice, italy"
What is the Notes with a Venue that is venice, italy?
CREATE TABLE table_name_23 (notes VARCHAR, venue VARCHAR)
SELECT COUNT(first_elected) FROM table_1341472_34 WHERE district = "New York 1"
Name the first elected for new york 1
CREATE TABLE table_1341472_34 (first_elected VARCHAR, district VARCHAR)
SELECT COUNT(doubles_champions) FROM table_11900378_1 WHERE tournament = "Serbia F6 Futures"
How many doubles champions were there for the Serbia f6 Futures tournament?
CREATE TABLE table_11900378_1 (doubles_champions VARCHAR, tournament VARCHAR)
SELECT MIN(week) FROM table_name_69 WHERE opponent = "pittsburgh steelers" AND attendance > 47 OFFSET 727
Which Week has an Opponent of pittsburgh steelers, and an Attendance larger than 47,727?
CREATE TABLE table_name_69 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT total FROM table_name_39 WHERE years = "1925"
What was the total for the year of 1925?
CREATE TABLE table_name_39 (total VARCHAR, years VARCHAR)
SELECT position FROM table_2508633_8 WHERE nfl_team = "Minnesota Vikings"
If the NFL team is the Minnesota Vikings, what is the position?
CREATE TABLE table_2508633_8 (position VARCHAR, nfl_team VARCHAR)
SELECT laid_down FROM table_name_55 WHERE ship = "hyperion"
What is the Laid down for the Hyperion ship?
CREATE TABLE table_name_55 (laid_down VARCHAR, ship VARCHAR)
SELECT circuit FROM table_name_42 WHERE session = "race" AND discipline = "open wheel" AND event = "1977 japanese grand prix"
What circuit has a race for the session, and open wheel as the discipline, and the 1977 Japanese Grand Prix as the event?
CREATE TABLE table_name_42 (circuit VARCHAR, event VARCHAR, session VARCHAR, discipline VARCHAR)
SELECT MAX(attendance) FROM table_name_56 WHERE home = "lakers"
What is the highest attendace of the game with the Lakers as the home team?
CREATE TABLE table_name_56 (attendance INTEGER, home VARCHAR)
SELECT MIN(year) FROM table_name_18 WHERE album = "les mots"
Album of les mots had what lowest year?
CREATE TABLE table_name_18 (year INTEGER, album VARCHAR)
SELECT tie_no FROM table_name_89 WHERE home_team = "everton"
Which Tie is from everton?
CREATE TABLE table_name_89 (tie_no VARCHAR, home_team VARCHAR)
SELECT location FROM table_1974545_2 WHERE nickname = "Falcons"
Where is the school whose students are nicknamed falcons located?
CREATE TABLE table_1974545_2 (location VARCHAR, nickname VARCHAR)
SELECT co_drivers FROM table_name_42 WHERE laps > 310 AND team = "aston martin racing bms"
Who were the co-drivers with more than 310 laps and team aston martin racing bms?
CREATE TABLE table_name_42 (co_drivers VARCHAR, laps VARCHAR, team VARCHAR)
SELECT label FROM table_name_90 WHERE catalogue = "rtradlp 346"
What label has RTRADLP 346 as catalogue?
CREATE TABLE table_name_90 (label VARCHAR, catalogue VARCHAR)