answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MIN(valves) FROM table_21021796_1
What is the greatest number of valves?
CREATE TABLE table_21021796_1 (valves INTEGER)
SELECT won FROM table_12807904_3 WHERE try_bonus = "11"
HOW MANY GAMES HAD A WIN WITH A BONUS OF 11
CREATE TABLE table_12807904_3 (won VARCHAR, try_bonus VARCHAR)
SELECT name FROM table_name_85 WHERE pos = "fullback, hooker"
What is the name when the position was fullback, hooker?
CREATE TABLE table_name_85 (name VARCHAR, pos VARCHAR)
SELECT missouri_vs FROM table_16201038_4 WHERE at_opponents_venue = "UI, 4-1"
Which is the team against which Missouri Tigers have a record of ui, 4-1 at the opponent's venue?How
CREATE TABLE table_16201038_4 (missouri_vs VARCHAR, at_opponents_venue VARCHAR)
SELECT COUNT(district) FROM table_1341718_43 WHERE incumbent = "Ed Jones"
How many districts does Ed Jones represent?
CREATE TABLE table_1341718_43 (district VARCHAR, incumbent VARCHAR)
SELECT SUM(points) FROM table_name_60 WHERE year < 1971 AND entrant = "scuderia ferrari" AND engine = "ferrari v12"
What's the total points that Scuderia Ferrari with a Ferrari V12 engine have before 1971?
CREATE TABLE table_name_60 (points INTEGER, engine VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT label FROM table_name_61 WHERE country = "united kingdom" AND date = "22 september 2008" AND catalogue_number_s_ = "eredv711"
Which Label has a Country of united kingdom, a Date of 22 september 2008, and a Catalogue number(s) of eredv711?
CREATE TABLE table_name_61 (label VARCHAR, catalogue_number_s_ VARCHAR, country VARCHAR, date VARCHAR)
SELECT MAX(population) FROM table_name_8 WHERE country_territory_entity = "seychelles" AND rank < 13
Name the most population for seychelles and rank less than 13
CREATE TABLE table_name_8 (population INTEGER, country_territory_entity VARCHAR, rank VARCHAR)
SELECT kicker FROM table_name_92 WHERE yards = 45 AND date = "november 8, 1971"
Yards of 45, and a Date of november 8, 1971 is what kicker?
CREATE TABLE table_name_92 (kicker VARCHAR, yards VARCHAR, date VARCHAR)
SELECT score FROM table_name_1 WHERE competition = "1995 southeast asian games"
what is the score when the competition is 1995 southeast asian games?
CREATE TABLE table_name_1 (score VARCHAR, competition VARCHAR)
SELECT 2012 FROM table_name_28 WHERE 2011 = "qf" AND 2010 = "3r"
what is the 2012 performance when in 2011 is qf and 2010 is 3r?
CREATE TABLE table_name_28 (Id VARCHAR)
SELECT part_4 FROM table_1745843_7 WHERE part_3 = "borgen"
What's the part 4 for the verb whose part 3 is borgen?
CREATE TABLE table_1745843_7 (part_4 VARCHAR, part_3 VARCHAR)
SELECT MIN(podiums) FROM table_name_23 WHERE series = "formula renault 2000 brazil" AND poles < 1
What are the fewest number of podiums associated with a Series of formula renault 2000 brazil, and under 1 pole?
CREATE TABLE table_name_23 (podiums INTEGER, series VARCHAR, poles VARCHAR)
SELECT name FROM table_24143253_1 WHERE deceased_spouse = "Louis Malle"
Name the name for deceased spouse being louis malle
CREATE TABLE table_24143253_1 (name VARCHAR, deceased_spouse VARCHAR)
SELECT champion FROM table_2331549_1 WHERE third_place = "Michigan Technological University"
Who were the champions in years where michigan technological university was in third place?
CREATE TABLE table_2331549_1 (champion VARCHAR, third_place VARCHAR)
SELECT MAX(new_points) FROM table_29572583_20 WHERE player = "Roberta Vinci"
how many new points does the player roberta vinci have?
CREATE TABLE table_29572583_20 (new_points INTEGER, player VARCHAR)
SELECT preliminaries FROM table_12094609_1 WHERE evening_gown = "8.988"
what's the preliminaries where evening gown is 8.988
CREATE TABLE table_12094609_1 (preliminaries VARCHAR, evening_gown VARCHAR)
SELECT date FROM table_name_87 WHERE home_team = "carlton"
What day is carlton the home side?
CREATE TABLE table_name_87 (date VARCHAR, home_team VARCHAR)
SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1
What is the highest acc percent score in the competition?
CREATE TABLE basketball_match (acc_percent VARCHAR)
SELECT terrain FROM table_name_69 WHERE stage = "10"
What was the terrain for stage 10 of the tour?
CREATE TABLE table_name_69 (terrain VARCHAR, stage VARCHAR)
SELECT MIN(laps) FROM table_name_4 WHERE year > 2002 AND co_drivers = "alexander frei bruno besson"
What is the lowest Laps that has a Year after 2002 with Alexander Frei Bruno Besson?
CREATE TABLE table_name_4 (laps INTEGER, year VARCHAR, co_drivers VARCHAR)
SELECT COUNT(prominence__m_) FROM table_name_27 WHERE country = "ethiopia" AND col__m_ = 1728 AND elevation__m_ < 3 OFFSET 358
What is the total prominence number in m of ethiopia, which has a col in m of 1728 and an elevation less than 3,358?
CREATE TABLE table_name_27 (prominence__m_ VARCHAR, elevation__m_ VARCHAR, country VARCHAR, col__m_ VARCHAR)
SELECT player FROM table_name_67 WHERE to_par = "–7" AND country = "spain"
which Player has a To par of –7, and a Country of spain?
CREATE TABLE table_name_67 (player VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT score FROM table_name_62 WHERE record = "28–19"
What was the score of the game when the record was 28–19?
CREATE TABLE table_name_62 (score VARCHAR, record VARCHAR)
SELECT MIN(total) FROM table_name_81 WHERE gold < 2 AND rank = 4 AND bronze < 1
What is the least total that has fewer golds than 2, a higher rank than 4 and fewer bronzes than 1?
CREATE TABLE table_name_81 (total INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT COUNT(wins) FROM table_name_60 WHERE percentage_wins = "52.11%" AND flags < 8
What's the number of wins when the flags were less than 8 and 52.11% of wins?
CREATE TABLE table_name_60 (wins VARCHAR, percentage_wins VARCHAR, flags VARCHAR)
SELECT player FROM table_18373863_2 WHERE fcsl_team = "Winter Park" AND years_played = "2006"
When 2006 is the year played and winter park is the fcsl team who is the player?
CREATE TABLE table_18373863_2 (player VARCHAR, fcsl_team VARCHAR, years_played VARCHAR)
SELECT opponent FROM table_23314951_4 WHERE date = "7-21-2006"
If the date is 7-21-2006, who was the opponent?
CREATE TABLE table_23314951_4 (opponent VARCHAR, date VARCHAR)
SELECT MAX(winnings__) AS $_ FROM table_23239946_3 WHERE position = 7
What are the winnings for position 7?
CREATE TABLE table_23239946_3 (winnings__ INTEGER, position VARCHAR)
SELECT MAX(position) FROM table_23239946_3
How many positions are there in Canadian Nascar?
CREATE TABLE table_23239946_3 (position INTEGER)
SELECT callsign FROM table_name_42 WHERE analog = "19"
what is the callsign for analog 19?
CREATE TABLE table_name_42 (callsign VARCHAR, analog VARCHAR)
SELECT det_pre_amp FROM table_name_74 WHERE _number_tubes = "8"
Name the det/pre-amp with # of tubes of 8
CREATE TABLE table_name_74 (det_pre_amp VARCHAR, _number_tubes VARCHAR)
SELECT 2011 FROM table_name_99 WHERE 2012 = "a" AND tournament = "french open"
What is 2011, when 2012 is "A", and when Tournament is "French Open"?
CREATE TABLE table_name_99 (tournament VARCHAR)
SELECT rank FROM table_name_35 WHERE time = "2:11.83"
What is the rank of the swimmer with a time of 2:11.83?
CREATE TABLE table_name_35 (rank VARCHAR, time VARCHAR)
SELECT SUM(year) FROM table_name_46 WHERE chassis = "kurtis kraft 500f"
What is the year when kurtis kraft 500f was the chassis?
CREATE TABLE table_name_46 (year INTEGER, chassis VARCHAR)
SELECT constructor FROM table_name_55 WHERE driver = "jenson button"
who is the constructor when the driver is jenson button?
CREATE TABLE table_name_55 (constructor VARCHAR, driver VARCHAR)
SELECT MAX(disposable_usd_growth) FROM table_24486462_1 WHERE country = "Australia"
What is Australia's Disposable USD growth?
CREATE TABLE table_24486462_1 (disposable_usd_growth INTEGER, country VARCHAR)
SELECT MAX(2002) FROM table_name_38 WHERE 2008 > 19.5 AND 2006 < 24.5 AND 1999 = 18.3
What is the maximum 2002 figure when 2008 is 19.5, 2006 is less than 24.5 and 1999 is 18.3?
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT oklahoma FROM table_name_41 WHERE nebraska = "bush" AND year = "2004"
What is the oklahoma has Bush from Nebraska in year 2004?
CREATE TABLE table_name_41 (oklahoma VARCHAR, nebraska VARCHAR, year VARCHAR)
SELECT player FROM table_name_76 WHERE school_club_team = "florida state"
Which player gradyated from Florida State?
CREATE TABLE table_name_76 (player VARCHAR, school_club_team VARCHAR)
SELECT power FROM table_name_15 WHERE torque = "n·m (lb·ft) at1,500rpm"
What is the power of the engine with a torque of n·m (lb·ft) at1,500rpm?
CREATE TABLE table_name_15 (power VARCHAR, torque VARCHAR)
SELECT year FROM table_15301258_1 WHERE best_supporting_actor = "Sammo Hung for Ip Man 2"
Name the year for sammo hung for ip man 2
CREATE TABLE table_15301258_1 (year VARCHAR, best_supporting_actor VARCHAR)
SELECT purpose FROM table_name_18 WHERE band = "am" AND frequency = "0 846"
Band of am, and a Frequency of 0 846 has what purpose?
CREATE TABLE table_name_18 (purpose VARCHAR, band VARCHAR, frequency VARCHAR)
SELECT opponents_in_the_final FROM table_name_65 WHERE date < 1998 AND tournament = "bucharest, romania"
Who are the Opponents in the final prior to 1998 in the Bucharest, Romania Tournament?
CREATE TABLE table_name_65 (opponents_in_the_final VARCHAR, date VARCHAR, tournament VARCHAR)
SELECT gene_name FROM table_27155678_2 WHERE accession_number = "BX897700.1"
Name the gene name for accession number bx897700.1
CREATE TABLE table_27155678_2 (gene_name VARCHAR, accession_number VARCHAR)
SELECT li_fes_2 FROM table_name_9 WHERE type = "nominal voltage"
What is Li-FeS 2, when Type is Nominal Voltage?
CREATE TABLE table_name_9 (li_fes_2 VARCHAR, type VARCHAR)
SELECT record FROM table_22669044_10 WHERE high_rebounds = "Brad Miller (7)"
What's the record in the game in which Brad Miller (7) did the high rebounds?
CREATE TABLE table_22669044_10 (record VARCHAR, high_rebounds VARCHAR)
SELECT class FROM table_name_79 WHERE rank = "5th"
Which class has a rank of 5th?
CREATE TABLE table_name_79 (class VARCHAR, rank VARCHAR)
SELECT SUM(draws) FROM table_name_74 WHERE against > 1158 AND wins = 9 AND losses < 9
Which Draws has an Against larger than 1158, and a Wins of 9, and a Losses smaller than 9?
CREATE TABLE table_name_74 (draws INTEGER, losses VARCHAR, against VARCHAR, wins VARCHAR)
SELECT MAX(rank) FROM table_name_4 WHERE react = 0.198 AND time > 20.42
What is the highest rank for the react of 0.198, and the time more than 20.42?
CREATE TABLE table_name_4 (rank INTEGER, react VARCHAR, time VARCHAR)
SELECT place FROM table_name_38 WHERE player = "leo diegel"
What place is player leo diegel?
CREATE TABLE table_name_38 (place VARCHAR, player VARCHAR)
SELECT boxscore FROM table_name_32 WHERE attendance = "54,773"
Which box score has an Attendance of 54,773?
CREATE TABLE table_name_32 (boxscore VARCHAR, attendance VARCHAR)
SELECT party FROM table_2668329_18 WHERE incumbent = "Hutchins G. Burton"
Name the party for hutchins g. burton
CREATE TABLE table_2668329_18 (party VARCHAR, incumbent VARCHAR)
SELECT home_team FROM table_name_96 WHERE away_team = "essendon"
Who is the home team of the game against Essendon?
CREATE TABLE table_name_96 (home_team VARCHAR, away_team VARCHAR)
SELECT AVG(average) FROM table_name_52 WHERE evening_gown > 9.35 AND state = "south carolina" AND swimsuit > 9.4
What is the mean average score when the evening gown score is more than 9.35, the state is South Carolina, and the swimsuit score is more than 9.4?
CREATE TABLE table_name_52 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR, state VARCHAR)
SELECT written_by FROM table_26826304_1 WHERE production_code = "5AKY04"
Who was the writer of the episode with a production code of 5aky04?
CREATE TABLE table_26826304_1 (written_by VARCHAR, production_code VARCHAR)
SELECT position FROM table_name_97 WHERE player = "tyronn lue" AND years_in_orlando = "2003–2004"
Which Position has a Player of tyronn lue, and a Years in Orlando of 2003–2004?
CREATE TABLE table_name_97 (position VARCHAR, player VARCHAR, years_in_orlando VARCHAR)
SELECT COUNT(tdp___w__) FROM table_name_3 WHERE codename = "sb850"
What is the TDP (w) of the chipset with a codename sb850?
CREATE TABLE table_name_3 (tdp___w__ VARCHAR, codename VARCHAR)
SELECT record FROM table_name_46 WHERE game_site = "raymond james stadium"
What is the record when the game was played at raymond james stadium?
CREATE TABLE table_name_46 (record VARCHAR, game_site VARCHAR)
SELECT kentucky FROM table_18461045_1 WHERE illinois = "Rock Falls LL Rock Falls"
What was the little league team from Kentucky when the little league team from Illinois was Rock Falls LL Rock Falls?
CREATE TABLE table_18461045_1 (kentucky VARCHAR, illinois VARCHAR)
SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20
Find all the customer last names that do not have invoice totals larger than 20.
CREATE TABLE CUSTOMER (LastName VARCHAR); CREATE TABLE CUSTOMER (LastName VARCHAR, CustomerId VARCHAR); CREATE TABLE Invoice (CustomerId VARCHAR, total INTEGER)
SELECT entrant FROM table_name_59 WHERE year > 1955
Which entrant has a year after 1955?
CREATE TABLE table_name_59 (entrant VARCHAR, year INTEGER)
SELECT to_par FROM table_name_20 WHERE score = 72 - 67 - 68 - 71 = 278
What is the To par when the score was 72-67-68-71=278?
CREATE TABLE table_name_20 (to_par VARCHAR, score VARCHAR)
SELECT MAX(f_laps) FROM table_24491017_1 WHERE position = "8th"
How many f/laps when he finished 8th?
CREATE TABLE table_24491017_1 (f_laps INTEGER, position VARCHAR)
SELECT tournament FROM table_name_3 WHERE score = "6–7 (0–7) , 6–2, 4–6"
Which tournament had a score of 6–7 (0–7) , 6–2, 4–6?
CREATE TABLE table_name_3 (tournament VARCHAR, score VARCHAR)
SELECT section_name, section_description FROM Sections
What are the names and descriptions of all the sections?
CREATE TABLE Sections (section_name VARCHAR, section_description VARCHAR)
SELECT COUNT(top_25) FROM table_name_59 WHERE cuts_made = 22 AND wins < 1
Tell me the total number of top 25 for wins less than 1 and cuts made of 22
CREATE TABLE table_name_59 (top_25 VARCHAR, cuts_made VARCHAR, wins VARCHAR)
SELECT tournament FROM table_name_62 WHERE semi_finalists = "martina hingis joannette kruger"
Which Tournament has a Semi finalists of martina hingis joannette kruger?
CREATE TABLE table_name_62 (tournament VARCHAR, semi_finalists VARCHAR)
SELECT MIN(communes) FROM table_1175233_1 WHERE arrondissement = "Cosne-Cours-sur-Loire"
How many communes when the arrondissement is cosne-cours-sur-loire?
CREATE TABLE table_1175233_1 (communes INTEGER, arrondissement VARCHAR)
SELECT institution FROM table_name_30 WHERE type = "public" AND nickname = "grenadiers"
Which public college has a nickname of The Grenadiers?
CREATE TABLE table_name_30 (institution VARCHAR, type VARCHAR, nickname VARCHAR)
SELECT MAX(capacity) FROM table_name_66 WHERE team = "torpedo"
Can you tell me the highest Capacity that has the Team of torpedo?
CREATE TABLE table_name_66 (capacity INTEGER, team VARCHAR)
SELECT Name FROM company ORDER BY Sales_in_Billion
List the names of companies by ascending number of sales.
CREATE TABLE company (Name VARCHAR, Sales_in_Billion VARCHAR)
SELECT SUM(swimsuit) FROM table_name_31 WHERE average > 9.23 AND country = "delaware" AND interview > 9.73
Name the sum of swimsuit for average more than 9.23 for delaware for interview more than 9.73
CREATE TABLE table_name_31 (swimsuit INTEGER, interview VARCHAR, average VARCHAR, country VARCHAR)
SELECT date FROM table_name_60 WHERE japan = "0.57 million"
Which date had Japanese sales of 0.57 million?
CREATE TABLE table_name_60 (date VARCHAR, japan VARCHAR)
SELECT opponent FROM table_name_89 WHERE week = 8
Who were the opponents on Week 8?
CREATE TABLE table_name_89 (opponent VARCHAR, week VARCHAR)
SELECT graphical FROM table_22915134_2 WHERE example = "Shinya Nakano's Kawasaki Ninja ZX-RR"
When shinya nakano's kawasaki ninja zx-rr is the example what is the graphical?
CREATE TABLE table_22915134_2 (graphical VARCHAR, example VARCHAR)
SELECT player FROM table_name_27 WHERE place = "1"
What Player is in Place 1?
CREATE TABLE table_name_27 (player VARCHAR, place VARCHAR)
SELECT commissioned FROM table_name_88 WHERE builder = "scotts, greenock"
when was it commissioned when the destroyer was built by scotts, greenock?
CREATE TABLE table_name_88 (commissioned VARCHAR, builder VARCHAR)
SELECT duration FROM table_21422977_2 WHERE nº = 33
What is the duration for no 33?
CREATE TABLE table_21422977_2 (duration VARCHAR, nº VARCHAR)
SELECT SUM(wins) FROM table_name_26 WHERE teams = "chiefs" AND losses > 1
How many wins have more than 1 loss and a team of chiefs?
CREATE TABLE table_name_26 (wins INTEGER, teams VARCHAR, losses VARCHAR)
SELECT circuit FROM table_name_20 WHERE winning_constructor = "bugatti" AND winning_driver = "edward bret"
What Circuit has a Winning constructor of bugatti, and a Winning driver of edward bret?
CREATE TABLE table_name_20 (circuit VARCHAR, winning_constructor VARCHAR, winning_driver VARCHAR)
SELECT loss FROM table_name_84 WHERE date = "june 29"
Who lost on June 29?
CREATE TABLE table_name_84 (loss VARCHAR, date VARCHAR)
SELECT year FROM table_name_70 WHERE engine = "yamaha v12" AND chassis = "brabham bt60y"
In what year did a car have a yamaha v12 engine and a brabham bt60y chassis
CREATE TABLE table_name_70 (year VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT location FROM table_23612439_2 WHERE date = "October 28"
Which location has the date of October 28?
CREATE TABLE table_23612439_2 (location VARCHAR, date VARCHAR)
SELECT COUNT(position) FROM table_24330803_1 WHERE points = "30"
How many positions were given when 30 points were won?
CREATE TABLE table_24330803_1 (position VARCHAR, points VARCHAR)
SELECT MAX(poles) FROM table_name_74 WHERE wins < 0
What is the highest Poles with a win that is smaller than 0?
CREATE TABLE table_name_74 (poles INTEGER, wins INTEGER)
SELECT surface FROM table_name_95 WHERE date = "july 5, 2009"
What is the surface of the match on July 5, 2009?
CREATE TABLE table_name_95 (surface VARCHAR, date VARCHAR)
SELECT viewers__millions_ FROM table_24212608_1 WHERE broadcast_date = 2010
What was the number of viewers in millions for the broadcast from 2010?
CREATE TABLE table_24212608_1 (viewers__millions_ VARCHAR, broadcast_date VARCHAR)
SELECT winning_driver FROM table_name_95 WHERE constructor = "ferrari" AND race_name = "xv grand prix de l'albigeois"
What driver won in the xv grand prix de l'albigeois in a vehicle by ferrari?
CREATE TABLE table_name_95 (winning_driver VARCHAR, constructor VARCHAR, race_name VARCHAR)
SELECT round FROM table_name_84 WHERE event = "strikeforce: shamrock vs. diaz"
How many rounds did Brett go for the Strikeforce: Shamrock vs. Diaz match?
CREATE TABLE table_name_84 (round VARCHAR, event VARCHAR)
SELECT MIN(crowd) FROM table_name_38 WHERE home_team = "melbourne"
What is the smallest crowd for a game when Melbourne is the home team?
CREATE TABLE table_name_38 (crowd INTEGER, home_team VARCHAR)
SELECT sub_parish__sokn_ FROM table_178381_1 WHERE location_of_the_church = "Eikefjord"
What's the sub-parish (sokn) of Eikefjord?
CREATE TABLE table_178381_1 (sub_parish__sokn_ VARCHAR, location_of_the_church VARCHAR)
SELECT location FROM table_name_23 WHERE method = "tko (punches)"
At what Location was the match Method TKO (punches)?
CREATE TABLE table_name_23 (location VARCHAR, method VARCHAR)
SELECT attendance FROM table_name_24 WHERE week = 8
What was the attendance of week 8?
CREATE TABLE table_name_24 (attendance VARCHAR, week VARCHAR)
SELECT inductee_s_ FROM table_name_56 WHERE venue = "ecw arena"
What is the name of the inductee for the ecw arena?
CREATE TABLE table_name_56 (inductee_s_ VARCHAR, venue VARCHAR)
SELECT COUNT(position) FROM table_name_21 WHERE 2012 = "0.92"
What is the number of positions that have 2012 ratings of 0.92?
CREATE TABLE table_name_21 (position VARCHAR)
SELECT score FROM table_name_31 WHERE location = "mex cancun"
which Score has a Location of mex cancun?
CREATE TABLE table_name_31 (score VARCHAR, location VARCHAR)
SELECT COUNT(*), dept_code FROM student GROUP BY dept_code
Find the number of students for each department.
CREATE TABLE student (dept_code VARCHAR)
SELECT school_club_team FROM table_name_34 WHERE player = "deandre liggins"
Which School/Club Team has a Player of deandre liggins?
CREATE TABLE table_name_34 (school_club_team VARCHAR, player VARCHAR)
SELECT COUNT(copies_sold) FROM table_name_43 WHERE first_week_sales = 206 OFFSET 030
What's the total number of copies sold for the single that sold 206,030 in the first week?
CREATE TABLE table_name_43 (copies_sold VARCHAR, first_week_sales VARCHAR)