answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT tournament FROM table_name_18 WHERE partner = "janet young"
CREATE TABLE table_name_18 (tournament VARCHAR, partner VARCHAR)
In what Tournament was Janet Young a Partner?
SELECT outcome FROM table_name_57 WHERE score = "w/o"
CREATE TABLE table_name_57 (outcome VARCHAR, score VARCHAR)
What was the Outcome of the match with a Score of w/o?
SELECT school_club_team FROM table_name_60 WHERE pick = 139
CREATE TABLE table_name_60 (school_club_team VARCHAR, pick VARCHAR)
Which school or club team has a pick of 139?
SELECT SUM(pick) FROM table_name_97 WHERE position = "tackle" AND round < 15
CREATE TABLE table_name_97 (pick INTEGER, position VARCHAR, round VARCHAR)
What is the pick number for the player playing tackle position, and a round less than 15?
SELECT school_club_team FROM table_name_83 WHERE pick = 46
CREATE TABLE table_name_83 (school_club_team VARCHAR, pick VARCHAR)
Which school of club team has a pick of 46?
SELECT name FROM table_name_15 WHERE qual_2 = "59.486"
CREATE TABLE table_name_15 (name VARCHAR, qual_2 VARCHAR)
Who got 59.486 for Qual 2?
SELECT name FROM table_name_79 WHERE qual_1 = "59.578"
CREATE TABLE table_name_79 (name VARCHAR, qual_1 VARCHAR)
Who got 59.578 for Qual 1?
SELECT team FROM table_name_78 WHERE name = "andrew ranger"
CREATE TABLE table_name_78 (team VARCHAR, name VARCHAR)
What team was Andrew Ranger in?
SELECT team FROM table_name_37 WHERE qual_1 = "59.372"
CREATE TABLE table_name_37 (team VARCHAR, qual_1 VARCHAR)
What team has 59.372 for qual 1?
SELECT qual_1 FROM table_name_93 WHERE name = "alex tagliani"
CREATE TABLE table_name_93 (qual_1 VARCHAR, name VARCHAR)
What did Alex Tagliani get for Qual 1?
SELECT result FROM table_name_9 WHERE date = "november 7, 1999"
CREATE TABLE table_name_9 (result VARCHAR, date VARCHAR)
What was the result of the game on November 7, 1999?
SELECT date FROM table_name_26 WHERE week < 15 AND result = "bye"
CREATE TABLE table_name_26 (date VARCHAR, week VARCHAR, result VARCHAR)
When was the game before week 15 with the result of bye?
SELECT writer FROM table_name_15 WHERE year < 2008 AND notes = "short film" AND title = "wallace & gromit: a close shave"
CREATE TABLE table_name_15 (writer VARCHAR, title VARCHAR, year VARCHAR, notes VARCHAR)
Who is the writer of Wallace & Gromit: A Close Shave, a short film from before 2008?
SELECT notes FROM table_name_31 WHERE title = "creature comforts"
CREATE TABLE table_name_31 (notes VARCHAR, title VARCHAR)
What notes did the creature comforts film have?
SELECT director FROM table_name_99 WHERE title = "wallace & gromit: the curse of the were-rabbit"
CREATE TABLE table_name_99 (director VARCHAR, title VARCHAR)
Who is the director of Wallace & Gromit: The Curse of the Were-Rabbit?
SELECT MIN(year) FROM table_name_13 WHERE title = "wallace & gromit: the curse of the were-rabbit"
CREATE TABLE table_name_13 (year INTEGER, title VARCHAR)
What is the earliest year of Wallace & Gromit: The Curse of the Were-Rabbit?
SELECT length FROM table_name_10 WHERE date = "may 19"
CREATE TABLE table_name_10 (length VARCHAR, date VARCHAR)
what was the length of the game on may 19
SELECT MIN(game) FROM table_name_24 WHERE march = 26
CREATE TABLE table_name_24 (game INTEGER, march VARCHAR)
March of 26 has what lowest game?
SELECT MAX(game) FROM table_name_40 WHERE march = 29
CREATE TABLE table_name_40 (game INTEGER, march VARCHAR)
March of 29 involves what highest scoring game?
SELECT score FROM table_name_60 WHERE game > 76 AND march > 26
CREATE TABLE table_name_60 (score VARCHAR, game VARCHAR, march VARCHAR)
Game larger than 76, and a March larger than 26 involves what score?
SELECT time_retired FROM table_name_62 WHERE laps < 66 AND grid = 15
CREATE TABLE table_name_62 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
What was the time when the laps were smaller than 66 and the grid was 15?
SELECT COUNT(grid) FROM table_name_86 WHERE driver = "anthony davidson" AND laps < 8
CREATE TABLE table_name_86 (grid VARCHAR, driver VARCHAR, laps VARCHAR)
What was the grid for anthony davidson when the laps were less than 8?
SELECT team FROM table_name_69 WHERE points < 21 AND year = 1983
CREATE TABLE table_name_69 (team VARCHAR, points VARCHAR, year VARCHAR)
What team did carlos cardus drive for in 1983 when he got less than 21 points?
SELECT SUM(points) FROM table_name_93 WHERE team = "repsol honda" AND rank = "8th"
CREATE TABLE table_name_93 (points INTEGER, team VARCHAR, rank VARCHAR)
What is the sum of the points when Carlos drove for repsol honda in 8th place?
SELECT AVG(points) FROM table_name_5 WHERE wins < 0
CREATE TABLE table_name_5 (points INTEGER, wins INTEGER)
What is the average points won when Carlos had 0 wins?
SELECT MAX(year) FROM table_name_56 WHERE team = "repsol honda" AND wins < 4 AND points < 162
CREATE TABLE table_name_56 (year INTEGER, points VARCHAR, team VARCHAR, wins VARCHAR)
What is the highest year that Carlos drove for repsol honda and had less than 4 wins and less than 162 points?
SELECT SUM(goals) FROM table_name_46 WHERE tries = 24 AND points > 96
CREATE TABLE table_name_46 (goals INTEGER, tries VARCHAR, points VARCHAR)
What is the total number of goals from 24 tries and 96 or greater points?
SELECT year FROM table_name_38 WHERE tries < 24 AND points = 0
CREATE TABLE table_name_38 (year VARCHAR, tries VARCHAR, points VARCHAR)
What year has tries less than 24 and 0 points?
SELECT game FROM table_name_91 WHERE location = "philadelphia spectrum" AND opponent = "new york knicks"
CREATE TABLE table_name_91 (game VARCHAR, location VARCHAR, opponent VARCHAR)
What Game has a Location of Philadelphia Spectrum and an Opponent of New York Knicks?
SELECT game FROM table_name_80 WHERE location = "philadelphia spectrum" AND date = "april 1"
CREATE TABLE table_name_80 (game VARCHAR, location VARCHAR, date VARCHAR)
What Game has a Location of Philadelphia Spectrum and a Date of April 1?
SELECT segment_a FROM table_name_94 WHERE netflix = "s08e04"
CREATE TABLE table_name_94 (segment_a VARCHAR, netflix VARCHAR)
What is the segment for Netflix episode S08E04?
SELECT netflix FROM table_name_64 WHERE series_ep = "15-01"
CREATE TABLE table_name_64 (netflix VARCHAR, series_ep VARCHAR)
What is the Netflix episode for series episode 15-01?
SELECT segment_a FROM table_name_10 WHERE segment_d = "children's ride-on cars"
CREATE TABLE table_name_10 (segment_a VARCHAR, segment_d VARCHAR)
What is the segment A for the episode with Children's Ride-on Cars for segment D?
SELECT MIN(year) FROM table_name_12 WHERE wins < 5 AND points = 89
CREATE TABLE table_name_12 (year INTEGER, wins VARCHAR, points VARCHAR)
What is the earliest year with fewer than 5 wins and 89 points?
SELECT MAX(year) FROM table_name_69 WHERE points > 27 AND wins > 5
CREATE TABLE table_name_69 (year INTEGER, points VARCHAR, wins VARCHAR)
When is the most recent year with more than 27 points and more than 5 wins?
SELECT SUM(points) FROM table_name_85 WHERE wins = 0 AND year = 1989
CREATE TABLE table_name_85 (points INTEGER, wins VARCHAR, year VARCHAR)
What are the sum of points in 1989 with 0 wins?
SELECT class FROM table_name_48 WHERE points < 89 AND team = "honda" AND year > 1987
CREATE TABLE table_name_48 (class VARCHAR, year VARCHAR, points VARCHAR, team VARCHAR)
Which class has fewer than 89 points and the Honda team later than 1987?
SELECT COUNT(points) FROM table_name_12 WHERE year > 1992
CREATE TABLE table_name_12 (points VARCHAR, year INTEGER)
How many points are there later than 1992?
SELECT location FROM table_name_12 WHERE date = "june 10"
CREATE TABLE table_name_12 (location VARCHAR, date VARCHAR)
Where was the event on June 10?
SELECT event FROM table_name_55 WHERE location = "new orleans, louisiana, usa"
CREATE TABLE table_name_55 (event VARCHAR, location VARCHAR)
What event was in New Orleans, Louisiana, USA?
SELECT ppv_buyrate FROM table_name_77 WHERE date = "september 10" AND event = "strikeforce: heavyweight grand prix semifinals"
CREATE TABLE table_name_77 (ppv_buyrate VARCHAR, date VARCHAR, event VARCHAR)
On September 10 during Strikeforce: Heavyweight Grand Prix Semifinals, what was the PPV buyrate?
SELECT MAX(points) FROM table_name_94 WHERE november = 7
CREATE TABLE table_name_94 (points INTEGER, november VARCHAR)
How many points are there on november 7?
SELECT score FROM table_name_95 WHERE home = "blazers"
CREATE TABLE table_name_95 (score VARCHAR, home VARCHAR)
What was the score in the game where the Blazers were the home team?
SELECT attendance FROM table_name_47 WHERE visitor = "clippers"
CREATE TABLE table_name_47 (attendance VARCHAR, visitor VARCHAR)
How many people attended the game that had the Clippers as visiting team?
SELECT team FROM table_name_1 WHERE car__number < 99 AND make = "toyota" AND driver = "mike skinner"
CREATE TABLE table_name_1 (team VARCHAR, driver VARCHAR, car__number VARCHAR, make VARCHAR)
Which team has a car # before 99, a Toyota, and is driven by Mike Skinner?
SELECT MIN(pos) FROM table_name_94 WHERE driver = "kyle busch"
CREATE TABLE table_name_94 (pos INTEGER, driver VARCHAR)
What is the lowest position for driver Kyle Busch?
SELECT team FROM table_name_90 WHERE make = "chevrolet" AND pos < 7 AND car__number = 88
CREATE TABLE table_name_90 (team VARCHAR, car__number VARCHAR, make VARCHAR, pos VARCHAR)
Who is the team of the Chevrolet, and has a position less than 7, for car # 88?
SELECT film FROM table_name_67 WHERE result = "nominated" AND year = 2001
CREATE TABLE table_name_67 (film VARCHAR, result VARCHAR, year VARCHAR)
Which Film has a Result of nominated, and a Year of 2001?
SELECT award FROM table_name_39 WHERE group = "césar awards" AND result = "nominated" AND year > 2001 AND film = "8 women (8 femmes)"
CREATE TABLE table_name_39 (award VARCHAR, film VARCHAR, year VARCHAR, group VARCHAR, result VARCHAR)
Which Award has a Group of césar awards, and a Result of nominated, and a Year larger than 2001, and a Film of 8 women (8 femmes)?
SELECT AVG(year) FROM table_name_41 WHERE group = "césar awards" AND result = "nominated" AND award = "best actress" AND film = "8 women (8 femmes)"
CREATE TABLE table_name_41 (year INTEGER, film VARCHAR, award VARCHAR, group VARCHAR, result VARCHAR)
Which Year has a Group of césar awards, and a Result of nominated, and an Award of the best actress, and a Film of 8 women (8 femmes)?
SELECT award FROM table_name_85 WHERE result = "nominated" AND year = 2003
CREATE TABLE table_name_85 (award VARCHAR, result VARCHAR, year VARCHAR)
Which Award has a Result of nominated, and a Year of 2003?
SELECT result FROM table_name_32 WHERE year > 2003 AND award = "best supporting actress"
CREATE TABLE table_name_32 (result VARCHAR, year VARCHAR, award VARCHAR)
Which Result has a Year larger than 2003, and an Award of best supporting actress?
SELECT COUNT(valid_poll) FROM table_name_67 WHERE seats > 4 AND candidates > 9
CREATE TABLE table_name_67 (valid_poll VARCHAR, seats VARCHAR, candidates VARCHAR)
Name the total number of valid poll with seats more than 4 and candidates more than 9
SELECT MIN(valid_poll) FROM table_name_50 WHERE constituency = "munster"
CREATE TABLE table_name_50 (valid_poll INTEGER, constituency VARCHAR)
Name the least valid poll for munster
SELECT AVG(valid_poll) FROM table_name_45 WHERE seats < 3
CREATE TABLE table_name_45 (valid_poll INTEGER, seats INTEGER)
Name the average valid poll for seats less than 3
SELECT label FROM table_name_12 WHERE region = "canada"
CREATE TABLE table_name_12 (label VARCHAR, region VARCHAR)
Which Label has a Region of canada?
SELECT date FROM table_name_63 WHERE catalog = "887 195-2" AND format = "cd maxi"
CREATE TABLE table_name_63 (date VARCHAR, catalog VARCHAR, format VARCHAR)
Which Date has a Catalog of 887 195-2, and a Format of cd maxi?
SELECT date FROM table_name_90 WHERE region = "france"
CREATE TABLE table_name_90 (date VARCHAR, region VARCHAR)
Which Date has a Region of france?
SELECT time FROM table_name_39 WHERE opponent = "shamil abdurahimov"
CREATE TABLE table_name_39 (time VARCHAR, opponent VARCHAR)
Which Time has an Opponent of shamil abdurahimov?
SELECT record FROM table_name_35 WHERE event = "cage rage 23"
CREATE TABLE table_name_35 (record VARCHAR, event VARCHAR)
Which Record has an Event of cage rage 23?
SELECT AVG(date) FROM table_name_29 WHERE record = "30-31-9" AND game > 70
CREATE TABLE table_name_29 (date INTEGER, record VARCHAR, game VARCHAR)
What was the average date with a record of 30-31-9 in a game over 70?
SELECT MAX(date) FROM table_name_88 WHERE location_attendance = "los angeles" AND game < 62
CREATE TABLE table_name_88 (date INTEGER, location_attendance VARCHAR, game VARCHAR)
What is the latest date at Los Angeles with a game less than 62?
SELECT MAX(date) FROM table_name_49 WHERE game > 69 AND opponent = "st. louis blues"
CREATE TABLE table_name_49 (date INTEGER, game VARCHAR, opponent VARCHAR)
What is the latest date for a game over 69 with a St. Louis Blues opponent?
SELECT MAX(game) FROM table_name_26 WHERE opponent = "oakland seals" AND record = "27-30-6" AND date > 7
CREATE TABLE table_name_26 (game INTEGER, date VARCHAR, opponent VARCHAR, record VARCHAR)
What is the highest game with Oakland Seals opponent and a record of 27-30-6 on a date more than 7?
SELECT SUM(attendance) FROM table_name_3 WHERE date = "october 5"
CREATE TABLE table_name_3 (attendance INTEGER, date VARCHAR)
What is the total attendance for the date of october 5?
SELECT record FROM table_name_59 WHERE date = "september 21"
CREATE TABLE table_name_59 (record VARCHAR, date VARCHAR)
What record has September 21 as the date?
SELECT score FROM table_name_63 WHERE date = "december 19, 2009"
CREATE TABLE table_name_63 (score VARCHAR, date VARCHAR)
What was the score of the match on December 19, 2009?
SELECT MAX(game) FROM table_name_16 WHERE opponent = "new york rangers" AND points > 55
CREATE TABLE table_name_16 (game INTEGER, opponent VARCHAR, points VARCHAR)
What's the highest game against the New York Rangers with more than 55 points?
SELECT record FROM table_name_25 WHERE points > 54 AND game > 44 AND opponent = "dallas stars"
CREATE TABLE table_name_25 (record VARCHAR, opponent VARCHAR, points VARCHAR, game VARCHAR)
What's the record for a game past 44 against the Dallas Stars with more than 54 points?
SELECT MAX(fiscal_year) FROM table_name_95 WHERE revenues = "$4.3 billion" AND employees > 85 OFFSET 335
CREATE TABLE table_name_95 (fiscal_year INTEGER, revenues VARCHAR, employees VARCHAR)
What is the latest Fiscal Year with Revenues of $4.3 billion, and more than 85,335 employees?
SELECT AVG(fiscal_year) FROM table_name_55 WHERE headquarters = "noida" AND employees < 85 OFFSET 335
CREATE TABLE table_name_55 (fiscal_year INTEGER, headquarters VARCHAR, employees VARCHAR)
What is the average Fiscal Year of the firm Headquartered in noida, with less than 85,335 employees?
SELECT COUNT(points) FROM table_name_49 WHERE year > 1991
CREATE TABLE table_name_49 (points VARCHAR, year INTEGER)
What are the Points after 1991?
SELECT class FROM table_name_68 WHERE points = 36
CREATE TABLE table_name_68 (class VARCHAR, points VARCHAR)
What Class has 36 Points?
SELECT class FROM table_name_13 WHERE year > 1986
CREATE TABLE table_name_13 (class VARCHAR, year INTEGER)
What is the Class after 1986?
SELECT SUM(attendance) FROM table_name_11 WHERE opponent = "detroit lions"
CREATE TABLE table_name_11 (attendance INTEGER, opponent VARCHAR)
How many attendances had the Detroit Lions as opponents?
SELECT nationality FROM table_name_26 WHERE distance = "500m" AND year < 2012 AND record = "1:37.071s"
CREATE TABLE table_name_26 (nationality VARCHAR, record VARCHAR, distance VARCHAR, year VARCHAR)
Which nationality's distance was 500m before 2012, when the record was 1:37.071s?
SELECT location FROM table_name_33 WHERE year = 2001 AND record = "3:52.983s"
CREATE TABLE table_name_33 (location VARCHAR, year VARCHAR, record VARCHAR)
Which location's year was 2001 when the record was 3:52.983s?
SELECT nationality FROM table_name_10 WHERE distance = "200m" AND year > 1994 AND record = "33.778s"
CREATE TABLE table_name_10 (nationality VARCHAR, record VARCHAR, distance VARCHAR, year VARCHAR)
Which nationality's distance was 200m and had a year more recent than 1994 when the record was 33.778s?
SELECT MIN(total) FROM table_name_71 WHERE bronze = 1 AND rank = "8" AND silver > 1
CREATE TABLE table_name_71 (total INTEGER, silver VARCHAR, bronze VARCHAR, rank VARCHAR)
How many Total medals for the team with a Rank of 8, 1 Bronze and more than 1 Silver?
SELECT MAX(gold) FROM table_name_45 WHERE rank = "12" AND total < 2
CREATE TABLE table_name_45 (gold INTEGER, rank VARCHAR, total VARCHAR)
How many Gold does the Nation in Rank 12 with less than 2 Total medals have?
SELECT nhl_team FROM table_name_49 WHERE pick__number = "89"
CREATE TABLE table_name_49 (nhl_team VARCHAR, pick__number VARCHAR)
Which NHL team got pick 89?
SELECT player FROM table_name_22 WHERE position = "goaltender" AND nhl_team = "vancouver canucks"
CREATE TABLE table_name_22 (player VARCHAR, position VARCHAR, nhl_team VARCHAR)
Who plays goaltender for the Vancouver Canucks?
SELECT _percentage_change FROM table_name_68 WHERE airport = "london heathrow airport"
CREATE TABLE table_name_68 (_percentage_change VARCHAR, airport VARCHAR)
What is the % Change at London Heathrow airport?
SELECT 2003 AS rank FROM table_name_60 WHERE code__iata_ = "sin"
CREATE TABLE table_name_60 (code__iata_ VARCHAR)
What 2003 rank does the airport IATA code SIN have?
SELECT airport FROM table_name_73 WHERE code__iata_ = "ams"
CREATE TABLE table_name_73 (airport VARCHAR, code__iata_ VARCHAR)
Which airport has an IATA code of AMS?
SELECT code__iata_ FROM table_name_20 WHERE total_cargo__metric_tonnes_ = "1,838,894"
CREATE TABLE table_name_20 (code__iata_ VARCHAR, total_cargo__metric_tonnes_ VARCHAR)
What is the IATA code of the airport that has a Total Cargo of 1,838,894 Metric Tonnes?
SELECT 2003 AS rank FROM table_name_17 WHERE airport = "los angeles international airport"
CREATE TABLE table_name_17 (airport VARCHAR)
What is the 2003 rank for Los Angeles International airport?
SELECT district FROM table_name_19 WHERE incumbent = "wyatt aiken"
CREATE TABLE table_name_19 (district VARCHAR, incumbent VARCHAR)
What district is Wyatt Aiken in?
SELECT SUM(gold) FROM table_name_51 WHERE silver > 0 AND total < 3 AND nation = "bulgaria" AND bronze < 0
CREATE TABLE table_name_51 (gold INTEGER, bronze VARCHAR, nation VARCHAR, silver VARCHAR, total VARCHAR)
Silver larger than 0, and a Total smaller than 3, and a Nation of bulgaria, and a Bronze smaller than 0 had what sum of gold?
SELECT SUM(gold) FROM table_name_36 WHERE nation = "total"
CREATE TABLE table_name_36 (gold INTEGER, nation VARCHAR)
Nation of total has what sum of gold?
SELECT SUM(bronze) FROM table_name_27 WHERE total = 3 AND gold > 0 AND nation = "belarus" AND silver > 2
CREATE TABLE table_name_27 (bronze INTEGER, silver VARCHAR, nation VARCHAR, total VARCHAR, gold VARCHAR)
Total of 3, and a Gold larger than 0, and a Nation of belarus, and a Silver larger than 2 has what sum of bronze?
SELECT AVG(silver) FROM table_name_99 WHERE bronze = 22
CREATE TABLE table_name_99 (silver INTEGER, bronze VARCHAR)
Bronze of 22 has what average silver?
SELECT position FROM table_name_63 WHERE games_played = 5 AND w_l_d = "1-2-2"
CREATE TABLE table_name_63 (position VARCHAR, games_played VARCHAR, w_l_d VARCHAR)
Which position had 5 games played and a record of 1-2-2?
SELECT name FROM table_name_49 WHERE term_end = "2013"
CREATE TABLE table_name_49 (name VARCHAR, term_end VARCHAR)
What was the name of the leader whose term ended in 2013?
SELECT term_start FROM table_name_12 WHERE term_end = "1919" AND date_of_birth = "january 8, 1859"
CREATE TABLE table_name_12 (term_start VARCHAR, term_end VARCHAR, date_of_birth VARCHAR)
When was the start of the leader's term who was born on January 8, 1859 and whose term ended in 1919?
SELECT name FROM table_name_50 WHERE term_start < 1984 AND date_of_birth = "december 17, 1874"
CREATE TABLE table_name_50 (name VARCHAR, term_start VARCHAR, date_of_birth VARCHAR)
Which leader born on December 17, 1874 started their term before 1984?
SELECT date FROM table_name_54 WHERE outcome = "winner" AND opponents_in_the_final = "nikola fraňková carmen klaschka"
CREATE TABLE table_name_54 (date VARCHAR, outcome VARCHAR, opponents_in_the_final VARCHAR)
What date shows the Outcome of winner against nikola fraňková carmen klaschka?
SELECT outcome FROM table_name_73 WHERE tournament = "jounieh"
CREATE TABLE table_name_73 (outcome VARCHAR, tournament VARCHAR)
What is the Outcome of the jounieh tournament?
SELECT date FROM table_name_53 WHERE score = "6–3 6–4"
CREATE TABLE table_name_53 (date VARCHAR, score VARCHAR)
What date was the score of 6–3 6–4?
SELECT date FROM table_name_89 WHERE opponent = "indiana pacers"
CREATE TABLE table_name_89 (date VARCHAR, opponent VARCHAR)
when indiana pacers were the opponent what was the date?