answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT class FROM table_name_74 WHERE laps > 134 AND pos = "4th"
In what class is the laps greater than 134 and the position is 4th?
CREATE TABLE table_name_74 (class VARCHAR, laps VARCHAR, pos VARCHAR)
SELECT MAX(weight__kg_) FROM table_name_67 WHERE race = "farnley stakes"
What is the highest weight for the Farnley Stakes race?
CREATE TABLE table_name_67 (weight__kg_ INTEGER, race VARCHAR)
SELECT builder FROM table_name_15 WHERE date < 1913 AND length = "feet (m)" AND number = "15"
Which Builder has a Date smaller than 1913, and a Length of feet (m), and a Number of 15?
CREATE TABLE table_name_15 (builder VARCHAR, number VARCHAR, date VARCHAR, length VARCHAR)
SELECT MIN(total) FROM table_28723146_2
What is the least total?
CREATE TABLE table_28723146_2 (total INTEGER)
SELECT decision FROM table_name_42 WHERE series = "3 – 3"
Which Decision has a Series of 3 – 3?
CREATE TABLE table_name_42 (decision VARCHAR, series VARCHAR)
SELECT wavelength FROM table_name_53 WHERE frequency__mhz_ = "14.050–14.150"
What is the Wavelength of Frequency (MHz) 14.050–14.150?
CREATE TABLE table_name_53 (wavelength VARCHAR, frequency__mhz_ VARCHAR)
SELECT location FROM table_1973842_2 WHERE nickname = "Tigers"
Where is the school with nickname Tigers located?
CREATE TABLE table_1973842_2 (location VARCHAR, nickname VARCHAR)
SELECT COUNT(industrial_and_commercial_panel) FROM table_name_45 WHERE labour_panel > 1 AND nominated_by_the_taoiseach < 11 AND cultural_and_educational_panel < 0
What is the total of Industrial and Commercial Panels that have a Labour Panel greater than 1, a Nominated by the Taoiseach lesss than 11 and a Cultural and Educational Panel smaller than 0
CREATE TABLE table_name_45 (industrial_and_commercial_panel VARCHAR, cultural_and_educational_panel VARCHAR, labour_panel VARCHAR, nominated_by_the_taoiseach VARCHAR)
SELECT incumbent FROM table_1341586_39 WHERE candidates = "Bud Shuster (R) Unopposed"
who is the incumbent with candidates being bud shuster (r) unopposed
CREATE TABLE table_1341586_39 (incumbent VARCHAR, candidates VARCHAR)
SELECT fname FROM student WHERE age > 20
Find the first name of students who is older than 20.
CREATE TABLE student (fname VARCHAR, age INTEGER)
SELECT tie_no FROM table_name_43 WHERE attendance = "11,997"
How many ties are there where attendance is 11,997?
CREATE TABLE table_name_43 (tie_no VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_98 WHERE crowd > 36 OFFSET 766
What is the date of the game with 36,766 fans?
CREATE TABLE table_name_98 (date VARCHAR, crowd INTEGER)
SELECT DISTINCT payment_method_code FROM INVOICES
What are the distinct payment method codes in all the invoices?
CREATE TABLE INVOICES (payment_method_code VARCHAR)
SELECT score FROM table_16967990_1 WHERE _number = "4"
Name the score for number 4
CREATE TABLE table_16967990_1 (score VARCHAR, _number VARCHAR)
SELECT 2 AS nd_member FROM table_name_31 WHERE election = "1885"
Who is the 2nd member during 1885 election?
CREATE TABLE table_name_31 (election VARCHAR)
SELECT surface FROM table_name_14 WHERE date = "21 july 1997"
What type of surface did they play on 21 July 1997
CREATE TABLE table_name_14 (surface VARCHAR, date VARCHAR)
SELECT lifetime__years_ FROM table_21350772_2 WHERE chemical_formula = "CH 4"
What is the lifetime (years) for chemical formula ch 4?
CREATE TABLE table_21350772_2 (lifetime__years_ VARCHAR, chemical_formula VARCHAR)
SELECT opponent FROM table_name_70 WHERE date = "november 15, 1981"
Who was the opponent on November 15, 1981?
CREATE TABLE table_name_70 (opponent VARCHAR, date VARCHAR)
SELECT event FROM table_name_66 WHERE time = "0:55"
Which of the events only lasted no more than 0:55?
CREATE TABLE table_name_66 (event VARCHAR, time VARCHAR)
SELECT pick__number FROM table_26996293_7 WHERE cfl_team = "BC Lions (7)"
What is the pick # of cfl team bc lions (7)
CREATE TABLE table_26996293_7 (pick__number VARCHAR, cfl_team VARCHAR)
SELECT venue FROM table_17120964_6 WHERE date = "19th"
On the 19th, where was the venue?
CREATE TABLE table_17120964_6 (venue VARCHAR, date VARCHAR)
SELECT DISTINCT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = "warm"
List the all the distinct names of the products with the characteristic name 'warm'.
CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
SELECT outcome FROM table_name_72 WHERE partner = "jordan kerr" AND date = "11 october 2009"
What was the outcome on 11 October 2009, when his partner was Jordan Kerr?
CREATE TABLE table_name_72 (outcome VARCHAR, partner VARCHAR, date VARCHAR)
SELECT player FROM table_name_8 WHERE span = "1998-2009"
What is the player with a Span of 1998-2009?
CREATE TABLE table_name_8 (player VARCHAR, span VARCHAR)
SELECT AVG(attendance) FROM table_name_58 WHERE week > 16
What was the average attendance in weeks after 16?
CREATE TABLE table_name_58 (attendance INTEGER, week INTEGER)
SELECT outcome FROM table_name_89 WHERE opponent = "roger federer"
What is the outcome of the match with Roger Federer as the opponent?
CREATE TABLE table_name_89 (outcome VARCHAR, opponent VARCHAR)
SELECT COUNT(manufacturer) FROM table_10007452_3 WHERE model = "GE40LFR"
how many times is the model ge40lfr?
CREATE TABLE table_10007452_3 (manufacturer VARCHAR, model VARCHAR)
SELECT league FROM table_name_33 WHERE home = "3-1"
What league has a 3-1 home?
CREATE TABLE table_name_33 (league VARCHAR, home VARCHAR)
SELECT round FROM table_name_74 WHERE overall < 102
When the Overall is under 102, what's the round played?
CREATE TABLE table_name_74 (round VARCHAR, overall INTEGER)
SELECT COUNT(field_goals__5_points_) FROM table_14342210_14 WHERE player = "Walter Shaw"
How many field goals did Walter Shaw make?
CREATE TABLE table_14342210_14 (field_goals__5_points_ VARCHAR, player VARCHAR)
SELECT laid_down FROM table_name_17 WHERE name = "uss cambridge"
What year was the USS Cambridge laid down?
CREATE TABLE table_name_17 (laid_down VARCHAR, name VARCHAR)
SELECT catalog FROM table_name_47 WHERE region = "germany"
What Catalog was released in Germany?
CREATE TABLE table_name_47 (catalog VARCHAR, region VARCHAR)
SELECT channel FROM table_name_39 WHERE financed_by = "commercials"
What was the channel that was financed by commercials?
CREATE TABLE table_name_39 (channel VARCHAR, financed_by VARCHAR)
SELECT date FROM table_name_31 WHERE record = "17-17"
When was the record 17-17?
CREATE TABLE table_name_31 (date VARCHAR, record VARCHAR)
SELECT SUM(total) FROM table_name_89 WHERE rank < 5 AND gold > 5 AND bronze > 8
What is the total with a rank less than 5, gold larger than 5 and bronze larger than 8?
CREATE TABLE table_name_89 (total INTEGER, bronze VARCHAR, rank VARCHAR, gold VARCHAR)
SELECT opponent FROM table_name_66 WHERE game > 3 AND date = "may 9"
On May 9 after Game 3, what was the Opponent?
CREATE TABLE table_name_66 (opponent VARCHAR, game VARCHAR, date VARCHAR)
SELECT start FROM table_name_20 WHERE qual = "84.300"
What was the start of the competitor with a qualifying time of 84.300?
CREATE TABLE table_name_20 (start VARCHAR, qual VARCHAR)
SELECT AVG(top_10) FROM table_name_93 WHERE cuts_made = 17 AND wins < 0
What is the average Top-10 when there were 17 cuts made with less than 0 wins?
CREATE TABLE table_name_93 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR)
SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'
What is the description of the department whose name has the substring the computer?
CREATE TABLE Departments (department_description VARCHAR, department_name VARCHAR)
SELECT away_team FROM table_name_22 WHERE home_team = "south melbourne"
What team played South Melbourne at their home game?
CREATE TABLE table_name_22 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(census_ranking) FROM table_170969_2 WHERE area_km_2 = "375.06"
How many areas of 375.06 km 2 have a census ranking?
CREATE TABLE table_170969_2 (census_ranking VARCHAR, area_km_2 VARCHAR)
SELECT score FROM table_name_65 WHERE date = "august 19"
What was the score on August 19?
CREATE TABLE table_name_65 (score VARCHAR, date VARCHAR)
SELECT COUNT(earnings___) AS $__ FROM table_name_1 WHERE wins > 2 AND rank < 2
What's the total earnings ($) with more than two wins and a rank less than 2?
CREATE TABLE table_name_1 (earnings___ VARCHAR, wins VARCHAR, rank VARCHAR)
SELECT MIN(clock_speed__mhz_) FROM table_name_36 WHERE introduced = "april 1986"
With April 1986 as the introduced, what is the least clock speed (MHz)?
CREATE TABLE table_name_36 (clock_speed__mhz_ INTEGER, introduced VARCHAR)
SELECT MAX(wins) FROM table_name_89 WHERE series = "british formula three" AND season = "2005" AND poles < 0
WHAT IS THE HIGHEST WINS WITH A SERIES OF BRITISH FORMULA THREE, SEASON 2005, POLES SMALLER THAN 0?
CREATE TABLE table_name_89 (wins INTEGER, poles VARCHAR, series VARCHAR, season VARCHAR)
SELECT location FROM table_name_47 WHERE circuit = "lowood circuit" AND race = "lowood trophy"
what is the location when the circuit is lowood circuit and the race is lowood trophy?
CREATE TABLE table_name_47 (location VARCHAR, circuit VARCHAR, race VARCHAR)
SELECT COUNT(erp_w) FROM table_name_84 WHERE class = "d" AND call_sign = "k299ar"
ERP W that has a Class of d, and a Call sign of k299ar is what total number?
CREATE TABLE table_name_84 (erp_w VARCHAR, class VARCHAR, call_sign VARCHAR)
SELECT MAX(cup_goals) FROM table_10556257_1 WHERE season = "1911-12"
What is the most cup goals for seasson 1911-12?
CREATE TABLE table_10556257_1 (cup_goals INTEGER, season VARCHAR)
SELECT points FROM table_name_27 WHERE try_bonus = "5" AND club = "barry rfc"
What is the points when the club is Barry RFC with a 5 as the try bonus?
CREATE TABLE table_name_27 (points VARCHAR, try_bonus VARCHAR, club VARCHAR)
SELECT location FROM table_26476336_2 WHERE team_nickname = "Red Raiders"
Where is the nickname the Red Raiders?
CREATE TABLE table_26476336_2 (location VARCHAR, team_nickname VARCHAR)
SELECT result FROM table_name_89 WHERE venue = "tiger stadium"
what number of people went to the tiger stadium
CREATE TABLE table_name_89 (result VARCHAR, venue VARCHAR)
SELECT championship FROM table_name_41 WHERE surface = "clay" AND score_in_the_final = "6–2, 5–7, 6–4, 6–2"
What was the championship that had final score of 6–2, 5–7, 6–4, 6–2 and was on a clay surface?
CREATE TABLE table_name_41 (championship VARCHAR, surface VARCHAR, score_in_the_final VARCHAR)
SELECT opponent FROM table_name_10 WHERE record = "3-9"
What was the Opponent when the Cavaliers had a Record of 3-9?
CREATE TABLE table_name_10 (opponent VARCHAR, record VARCHAR)
SELECT high_assists FROM table_23248869_6 WHERE team = "Portland"
Who did the high assists in the game against Portland?
CREATE TABLE table_23248869_6 (high_assists VARCHAR, team VARCHAR)
SELECT COUNT(gold) FROM table_name_70 WHERE bronze > 1 AND total > 4
What is the total number of Gold medals for the Nation with more than 1 Bronze and more the 4 Total medals?
CREATE TABLE table_name_70 (gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT kickoff_[a_] FROM table_name_60 WHERE week = "5"
What time was the kickoff on week 5?
CREATE TABLE table_name_60 (kickoff_ VARCHAR, a_ VARCHAR, week VARCHAR)
SELECT towns__villages FROM table_16278825_1 WHERE county_seat = "Budapest"
Name the towns/villages for budapest
CREATE TABLE table_16278825_1 (towns__villages VARCHAR, county_seat VARCHAR)
SELECT length FROM table_name_74 WHERE year = 1986 AND version = "instrumental"
How long was the instrumental version in 1986?
CREATE TABLE table_name_74 (length VARCHAR, year VARCHAR, version VARCHAR)
SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
What is the name of the high schooler who has the greatest number of likes?
CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR)
SELECT start FROM table_name_58 WHERE tries = "8" AND conv = "0"
Which Start has 8 Tries and 0 Convs?
CREATE TABLE table_name_58 (start VARCHAR, tries VARCHAR, conv VARCHAR)
SELECT tv_season FROM table_2669287_1 WHERE episodes = 23
What tv season was episode 23 broadcast?
CREATE TABLE table_2669287_1 (tv_season VARCHAR, episodes VARCHAR)
SELECT number FROM table_name_7 WHERE works_number < 1563 AND builder = "hinkley locomotive works"
Hinkley Locomotive Works is listed as what number as it has a works number smaller than 1563?
CREATE TABLE table_name_7 (number VARCHAR, works_number VARCHAR, builder VARCHAR)
SELECT MAX(fa_cup_goals) FROM table_name_85 WHERE total_apps__sub_ = "52" AND total_goals < 5
What division has the highest FA Cup Goals, but a Total Goal score less than 5, and a Total Apps of 52?
CREATE TABLE table_name_85 (fa_cup_goals INTEGER, total_apps__sub_ VARCHAR, total_goals VARCHAR)
SELECT opponent FROM table_name_41 WHERE week < 7 AND date = "september 12, 1988"
Which Opponent that has a Week smaller than 7 on september 12, 1988?
CREATE TABLE table_name_41 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_38 WHERE round = "3" AND time = "n/a" AND rules = "n/a"
Which Opponent has a Round of 3, a Time of n/a, and a Rules of n/a?
CREATE TABLE table_name_38 (opponent VARCHAR, rules VARCHAR, round VARCHAR, time VARCHAR)
SELECT college_junior_club_team FROM table_2850912_1 WHERE pick__number = 18
What college team did draft pick 18 come from?
CREATE TABLE table_2850912_1 (college_junior_club_team VARCHAR, pick__number VARCHAR)
SELECT rank FROM table_name_80 WHERE player = "andy bichel (qld)"
What rank has andy bichel (qld) as the player?
CREATE TABLE table_name_80 (rank VARCHAR, player VARCHAR)
SELECT goals FROM table_name_57 WHERE since < 2007 AND app_gs_sub_ = "97 (69/28)"
Name the goals with since less than 2007 and App(GS/Sub) of 97 (69/28)
CREATE TABLE table_name_57 (goals VARCHAR, since VARCHAR, app_gs_sub_ VARCHAR)
SELECT candidates FROM table_25030512_24 WHERE first_elected = "1998"
Name the candidates for 1998
CREATE TABLE table_25030512_24 (candidates VARCHAR, first_elected VARCHAR)
SELECT time FROM table_name_3 WHERE opponent = "josh branham"
Which Time has an Opponent of josh branham?
CREATE TABLE table_name_3 (time VARCHAR, opponent VARCHAR)
SELECT MAX(laps) AS Led FROM table_17693171_1 WHERE laps = 191
If the laps is 191, what is the maximum laps led?
CREATE TABLE table_17693171_1 (laps INTEGER)
SELECT attendance FROM table_13258972_2 WHERE record = "1-1"
What was the attendance when the record was 1-1?
CREATE TABLE table_13258972_2 (attendance VARCHAR, record VARCHAR)
SELECT notes FROM table_1000181_1 WHERE current_slogan = "SOUTH AUSTRALIA"
Tell me what the notes are for South Australia
CREATE TABLE table_1000181_1 (notes VARCHAR, current_slogan VARCHAR)
SELECT party FROM table_1341395_44 WHERE incumbent = "Kevin Brady"
What party was Kevin Brady?
CREATE TABLE table_1341395_44 (party VARCHAR, incumbent VARCHAR)
SELECT no_in_series FROM table_16581695_4 WHERE production_code = "303"
What is the series episode number of the episode with production code 303?
CREATE TABLE table_16581695_4 (no_in_series VARCHAR, production_code VARCHAR)
SELECT assists FROM table_17309500_1 WHERE games = 157
Name the assists for 157 games
CREATE TABLE table_17309500_1 (assists VARCHAR, games VARCHAR)
SELECT COUNT(gold) FROM table_name_56 WHERE rank = "1" AND total > 16
How many gold are a rank 1 and larger than 16?
CREATE TABLE table_name_56 (gold VARCHAR, rank VARCHAR, total VARCHAR)
SELECT record FROM table_name_96 WHERE score = "6–4" AND opponent = "@ marlins"
Score of 6–4, and a Opponent of @ marlins had what record?
CREATE TABLE table_name_96 (record VARCHAR, score VARCHAR, opponent VARCHAR)
SELECT studio_host FROM table_name_38 WHERE play_by_play = "bob cole" AND colour_commentator_s_ = "harry neale"
Who is the studio host that has a play-by-play announcer of Bob Cole and a colour commentator of Harry Neale?
CREATE TABLE table_name_38 (studio_host VARCHAR, play_by_play VARCHAR, colour_commentator_s_ VARCHAR)
SELECT club FROM table_name_63 WHERE points_against = "431"
What is the club had 431 points against them?
CREATE TABLE table_name_63 (club VARCHAR, points_against VARCHAR)
SELECT deceased_spouse FROM table_24143253_1 WHERE length_of_marriage = "24 years"
Name the deceased spouse for length of marriage being 24 years
CREATE TABLE table_24143253_1 (deceased_spouse VARCHAR, length_of_marriage VARCHAR)
SELECT dvd_name FROM table_name_61 WHERE duration = "2 hours 22 minutes"
What DVD has a time of 2 hours 22 minutes?
CREATE TABLE table_name_61 (dvd_name VARCHAR, duration VARCHAR)
SELECT away_team AS score FROM table_name_79 WHERE home_team = "north melbourne"
What did the away team score when playing North Melbourne?
CREATE TABLE table_name_79 (away_team VARCHAR, home_team VARCHAR)
SELECT MAX(week) FROM table_name_60 WHERE game_site = "miami orange bowl" AND attendance > 49 OFFSET 754
Game site of miami orange bowl, and a Attendance larger than 49,754 happened on what highest week?
CREATE TABLE table_name_60 (week INTEGER, game_site VARCHAR, attendance VARCHAR)
SELECT qual FROM table_name_28 WHERE rank = "19"
What is the qual with a 19 rank?
CREATE TABLE table_name_28 (qual VARCHAR, rank VARCHAR)
SELECT MAX(tonnage_grt) FROM table_name_80 WHERE date = "16 jan 16"
what is the most tonnage grt of any ship sunk or captured on 16 jan 16?
CREATE TABLE table_name_80 (tonnage_grt INTEGER, date VARCHAR)
SELECT rating / SHARE(18 - 49) FROM table_23730973_5 WHERE viewers__millions_ = "5.90"
What was the rating/share for 18-49 for the episode that had 5.90 million viewers?
CREATE TABLE table_23730973_5 (rating VARCHAR, viewers__millions_ VARCHAR)
SELECT COUNT(matches) FROM table_name_16 WHERE clubs = "588 → 406"
What is the total number of Matches, when Clubs is 588 → 406?
CREATE TABLE table_name_16 (matches VARCHAR, clubs VARCHAR)
SELECT region__year_ FROM table_name_51 WHERE no_7 = "william" AND no_2 = "alexander"
What is Region (Year), when No. 7 is William, and when No. 2 is Alexander?
CREATE TABLE table_name_51 (region__year_ VARCHAR, no_7 VARCHAR, no_2 VARCHAR)
SELECT venue FROM table_name_81 WHERE date = "27 may 2000"
What venue was on 27 May 2000?
CREATE TABLE table_name_81 (venue VARCHAR, date VARCHAR)
SELECT result FROM table_name_30 WHERE distance = "10f" AND winner_or_2nd = "lampra"
What is the result for the distance of 10f, and a winner or 2nd of Lampra?
CREATE TABLE table_name_30 (result VARCHAR, distance VARCHAR, winner_or_2nd VARCHAR)
SELECT MAX(sales), _receipts, _or_shipments__$1, 000 AS _ FROM table_23802822_1 WHERE establishments = 49319
If the establishment is 49319, what is the sales, receipts or shipments maximum amount?
CREATE TABLE table_23802822_1 (_receipts VARCHAR, _or_shipments__$1 VARCHAR, sales INTEGER, establishments VARCHAR)
SELECT MIN(top_5) FROM table_name_12 WHERE events < 0
With events less than 0, what is the fewest Top-5?
CREATE TABLE table_name_12 (top_5 INTEGER, events INTEGER)
SELECT AVG(capacity) FROM table_name_46 WHERE suites = "150"
What is the average capacity for 150 suites?
CREATE TABLE table_name_46 (capacity INTEGER, suites VARCHAR)
SELECT away_captain FROM table_name_34 WHERE venue = "brisbane cricket ground"
Who was the away captain at Brisbane Cricket Ground?
CREATE TABLE table_name_34 (away_captain VARCHAR, venue VARCHAR)
SELECT method FROM table_name_83 WHERE record = "4-0"
Which method has a record of 4-0?
CREATE TABLE table_name_83 (method VARCHAR, record VARCHAR)
SELECT cfl_team FROM table_20170644_1 WHERE player = "Darcy Brown"
What CFL team did Darcy Brown play for?
CREATE TABLE table_20170644_1 (cfl_team VARCHAR, player VARCHAR)
SELECT catalog FROM table_name_60 WHERE label = "village records" AND date = "february 14, 2002"
Which catalog did Village Records have on February 14, 2002?
CREATE TABLE table_name_60 (catalog VARCHAR, label VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_76 WHERE result = "l 17–10"
How many were in attendance with a Result of l 17–10?
CREATE TABLE table_name_76 (attendance VARCHAR, result VARCHAR)
SELECT SUM(attendance) FROM table_name_94 WHERE game = 24
What is the Attendance of Game 24?
CREATE TABLE table_name_94 (attendance INTEGER, game VARCHAR)