answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT category FROM table_name_9 WHERE award = "showest award"
What category has showest award for the category awards?
CREATE TABLE table_name_9 (category VARCHAR, award VARCHAR)
SELECT third FROM table_name_14 WHERE nation = "scotland"
Which Third has a Nation of scotland?
CREATE TABLE table_name_14 (third VARCHAR, nation VARCHAR)
SELECT COUNT(distance) FROM table_2923917_4 WHERE brisbane = "$3.80"
How many distance places have brisbane at $3.80?
CREATE TABLE table_2923917_4 (distance VARCHAR, brisbane VARCHAR)
SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE year__ceremony_ = "1990 (63rd)"
Which film title used in nomination has the year (ceremony) 1990 (63rd)?
CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, year__ceremony_ VARCHAR)
SELECT SUM(poles) FROM table_name_13 WHERE team = "la filière" AND points < 162
What is the sum of the poles of Team la filière, which has less than 162 points?
CREATE TABLE table_name_13 (poles INTEGER, team VARCHAR, points VARCHAR)
SELECT date FROM table_2062148_4 WHERE venue = "Moonee Valley"
Name the date for moonee valley
CREATE TABLE table_2062148_4 (date VARCHAR, venue VARCHAR)
SELECT MAX(attendance) FROM table_name_24 WHERE record = "15-28"
Which Attendance is the highest one that has a Record of 15-28?
CREATE TABLE table_name_24 (attendance INTEGER, record VARCHAR)
SELECT tournament FROM table_name_70 WHERE date = "14 may"
Which tournament included the round played on 14 May?
CREATE TABLE table_name_70 (tournament VARCHAR, date VARCHAR)
SELECT venue FROM table_name_21 WHERE score = "5-0" AND date = "august 3, 2005"
Where did the competition take place at on August 3, 2005 with a score of 5-0?
CREATE TABLE table_name_21 (venue VARCHAR, score VARCHAR, date VARCHAR)
SELECT round FROM table_name_15 WHERE opponent = "blackburn"
What is the Round with a Opponent with blackburn?
CREATE TABLE table_name_15 (round VARCHAR, opponent VARCHAR)
SELECT party FROM table_29486189_4 WHERE residence = "Newark"
which party is the newark representative from
CREATE TABLE table_29486189_4 (party VARCHAR, residence VARCHAR)
SELECT AVG(year) FROM table_name_15 WHERE venue = "ponce, puerto rico"
What is the average year for Ponce, Puerto Rico events?
CREATE TABLE table_name_15 (year INTEGER, venue VARCHAR)
SELECT us_viewers__millions_ FROM table_25246990_5 WHERE written_by = "Lazar Saric & Jed Spingarn"
How many U.S. viewers were there for the episode written by Lazar Saric & Jed Spingarn?
CREATE TABLE table_25246990_5 (us_viewers__millions_ VARCHAR, written_by VARCHAR)
SELECT result_f_a FROM table_name_37 WHERE date = "24 september 2002"
Date of 24 september 2002 had what F-A result?
CREATE TABLE table_name_37 (result_f_a VARCHAR, date VARCHAR)
SELECT platelet_count FROM table_238124_1 WHERE bleeding_time = "Unaffected" AND prothrombin_time = "Prolonged"
When the bleeding time is unaffected and prothrombin time is prolonged, what are the platelet counts?
CREATE TABLE table_238124_1 (platelet_count VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR)
SELECT form_factor FROM table_27615520_1 WHERE bandwidth__gb_s_ = "10"
What is the shape distortion for the range frequency of 10?
CREATE TABLE table_27615520_1 (form_factor VARCHAR, bandwidth__gb_s_ VARCHAR)
SELECT MAX(opponents) FROM table_21092427_1 WHERE record = "8-1"
Name the most opponents for 8-1 record
CREATE TABLE table_21092427_1 (opponents INTEGER, record VARCHAR)
SELECT grade FROM Highschooler
Show all the grades of the high schoolers.
CREATE TABLE Highschooler (grade VARCHAR)
SELECT qual_1 FROM table_name_43 WHERE best = "1:01.704"
Who had a qual 1 best of 1:01.704?
CREATE TABLE table_name_43 (qual_1 VARCHAR, best VARCHAR)
SELECT type FROM table_name_21 WHERE company = "epcor"
Which Type has a Company of epcor?
CREATE TABLE table_name_21 (type VARCHAR, company VARCHAR)
SELECT opponent_in_the_final FROM table_name_12 WHERE tournament = "rockford, illinois"
What opponent in the final has rockford, Illinois as the tournament?
CREATE TABLE table_name_12 (opponent_in_the_final VARCHAR, tournament VARCHAR)
SELECT MAX(attendance) FROM table_name_84 WHERE date = "december 16, 1962"
What is the largest attendance that has December 16, 1962 as the date?
CREATE TABLE table_name_84 (attendance INTEGER, date VARCHAR)
SELECT SUM(final_year) FROM table_name_15 WHERE notes = "replaced by i-96"
What is the total of Final year that has a Notes of replaced by i-96?
CREATE TABLE table_name_15 (final_year INTEGER, notes VARCHAR)
SELECT pictorials FROM table_name_40 WHERE date = "5-01"
Which Pictorials is on 5-01?
CREATE TABLE table_name_40 (pictorials VARCHAR, date VARCHAR)
SELECT T1.fname, T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID ORDER BY COUNT(*) DESC LIMIT 1
What is the first and last name of the faculty participating in the most activities?
CREATE TABLE Faculty_participates_in (facID VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR, facID VARCHAR)
SELECT COUNT(episode) FROM table_23292220_3 WHERE daves_team = "David Walliams and Louis Walsh"
In how many episodes was Dave's team made up of David Walliams and Louis Walsh?
CREATE TABLE table_23292220_3 (episode VARCHAR, daves_team VARCHAR)
SELECT AVG(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" AND T2.resolution < 800
What is the average duration of songs that have mp3 format and resolution below 800?
CREATE TABLE files (duration INTEGER, f_id VARCHAR, formats VARCHAR); CREATE TABLE song (f_id VARCHAR, resolution VARCHAR)
SELECT home_team FROM table_name_64 WHERE venue = "arden street oval"
Which Home team has a Venue of arden street oval?
CREATE TABLE table_name_64 (home_team VARCHAR, venue VARCHAR)
SELECT subscribers__2006___thousands_ FROM table_29395291_2 WHERE provider = "Glo Mobile"
How many subscribers, in 2006, does Glo Mobile have?
CREATE TABLE table_29395291_2 (subscribers__2006___thousands_ VARCHAR, provider VARCHAR)
SELECT prod__number FROM table_1971734_1 WHERE filmed = "Aug/Sept 1968"
What was the production number of the episode filmed in aug/sept 1968?
CREATE TABLE table_1971734_1 (prod__number VARCHAR, filmed VARCHAR)
SELECT date FROM table_name_88 WHERE country = "united kingdom" AND format = "lp"
What is the date for the United Kingdom with an LP format?
CREATE TABLE table_name_88 (date VARCHAR, country VARCHAR, format VARCHAR)
SELECT opera FROM table_name_53 WHERE date = "october 2010"
What percentage of browsers were using Opera in October 2010?
CREATE TABLE table_name_53 (opera VARCHAR, date VARCHAR)
SELECT COUNT(outgoing_manager) FROM table_28164986_4 WHERE team = "Sunshine Stars"
how many managers left sunshine stars?
CREATE TABLE table_28164986_4 (outgoing_manager VARCHAR, team VARCHAR)
SELECT chipset FROM table_name_97 WHERE graphics = "pci express" AND model = "precision t3400"
What type of chipset is in the Precision t3400 model with the PCI Express graphics?
CREATE TABLE table_name_97 (chipset VARCHAR, graphics VARCHAR, model VARCHAR)
SELECT hindi FROM table_name_99 WHERE lomavren = "saj"
What word in Hindi has the same meaning as the Lomavren word saj?
CREATE TABLE table_name_99 (hindi VARCHAR, lomavren VARCHAR)
SELECT MAX(attendance) FROM table_name_99 WHERE loss = "paniagua (3–3)"
WHICH Attendance that has a Loss of paniagua (3–3)?
CREATE TABLE table_name_99 (attendance INTEGER, loss VARCHAR)
SELECT class FROM table_name_14 WHERE quantity > 96
Which Class has a Quantity larger than 96?
CREATE TABLE table_name_14 (class VARCHAR, quantity INTEGER)
SELECT partnering FROM table_name_29 WHERE opponents_in_final = "marcelo melo andré sá"
Who is the partnering that had the opponents of Marcelo Melo André Sá?
CREATE TABLE table_name_29 (partnering VARCHAR, opponents_in_final VARCHAR)
SELECT MIN(created) FROM table_name_33 WHERE map_number = 10
What is the earliest created year when the map# was 10?
CREATE TABLE table_name_33 (created INTEGER, map_number VARCHAR)
SELECT COUNT(butter) FROM table_2493389_1 WHERE protein__g_ = "3"
Name the number of butters for 3 protein
CREATE TABLE table_2493389_1 (butter VARCHAR, protein__g_ VARCHAR)
SELECT type FROM table_name_6 WHERE rank = "13"
What is the type ranked 13?
CREATE TABLE table_name_6 (type VARCHAR, rank VARCHAR)
SELECT position FROM table_15463188_7 WHERE school_club_team = "San Beda"
Name the position for san beda
CREATE TABLE table_15463188_7 (position VARCHAR, school_club_team VARCHAR)
SELECT AVG(attendance) FROM table_name_58 WHERE week = 11
Tell me the average attendance for week of 11
CREATE TABLE table_name_58 (attendance INTEGER, week VARCHAR)
SELECT player FROM table_name_82 WHERE round = "9" AND pick = 263
Which Player has a Round of 9, and a Pick of 263?
CREATE TABLE table_name_82 (player VARCHAR, round VARCHAR, pick VARCHAR)
SELECT AVG(election) FROM table_name_69 WHERE municipality = "livorno"
What is livorno's average election?
CREATE TABLE table_name_69 (election INTEGER, municipality VARCHAR)
SELECT MAX(crowd) FROM table_name_95 WHERE home_team = "hawthorn"
What size was the biggest crowd that watched the home team Hawthorn play?
CREATE TABLE table_name_95 (crowd INTEGER, home_team VARCHAR)
SELECT method FROM table_name_87 WHERE event = "cage warriors 39"
What was the method of resolution for the fight at cage warriors 39?
CREATE TABLE table_name_87 (method VARCHAR, event VARCHAR)
SELECT name FROM table_name_55 WHERE windows = "partial"
What is the name when Windows is partial?
CREATE TABLE table_name_55 (name VARCHAR, windows VARCHAR)
SELECT MAX(wins) FROM table_name_26 WHERE matches < 5 AND year = 1994
What is the greatest Wins with Matches smaller than 5, and a Year of 1994?
CREATE TABLE table_name_26 (wins INTEGER, matches VARCHAR, year VARCHAR)
SELECT owner FROM table_name_90 WHERE frequency = "0 101.5 fm"
Who is the owner of the radio frequency of 0 101.5 fm?
CREATE TABLE table_name_90 (owner VARCHAR, frequency VARCHAR)
SELECT score FROM table_name_23 WHERE record = "72-74"
What was score of the game when the record was 72-74?
CREATE TABLE table_name_23 (score VARCHAR, record VARCHAR)
SELECT award FROM table_name_96 WHERE category = "excellence in tamil"
What was the award for the excellence in tamil category?
CREATE TABLE table_name_96 (award VARCHAR, category VARCHAR)
SELECT result_f_a FROM table_name_96 WHERE h___a = "h" AND round = "quarter-final first leg"
What is the Result F-A that was the quarter-final first leg round with a H/A of h?
CREATE TABLE table_name_96 (result_f_a VARCHAR, h___a VARCHAR, round VARCHAR)
SELECT SUM(overall) FROM table_name_50 WHERE round < 24 AND college = "north carolina state"
What is the sum of Overall, when Round is less than 24, and when College is North Carolina State?
CREATE TABLE table_name_50 (overall INTEGER, round VARCHAR, college VARCHAR)
SELECT year FROM table_name_58 WHERE award = "premios carlos gardel 2009"
What is the year of the Premios Carlos Gardel 2009 award?
CREATE TABLE table_name_58 (year VARCHAR, award VARCHAR)
SELECT man_of_the_match FROM table_17103566_1 WHERE team_1 = "ICL Pakistan"
Who is man of the match when Team 1 is ICL Pakistan?
CREATE TABLE table_17103566_1 (man_of_the_match VARCHAR, team_1 VARCHAR)
SELECT location__transmitter_site_ FROM table_2610582_3 WHERE power_kw__erp_ = "5kW (10kW ERP)"
What is the location that has a power of 5kw (10kw ERP)?
CREATE TABLE table_2610582_3 (location__transmitter_site_ VARCHAR, power_kw__erp_ VARCHAR)
SELECT result FROM table_name_39 WHERE date = "29 september 2007"
What is the result on 29 September 2007?
CREATE TABLE table_name_39 (result VARCHAR, date VARCHAR)
SELECT MAX(crowd) FROM table_name_65 WHERE venue = "punt road oval"
What was the biggest crowd at punt road oval?
CREATE TABLE table_name_65 (crowd INTEGER, venue VARCHAR)
SELECT AVG(population) FROM table_name_71 WHERE area_km_2 < 26.69 AND official_name = "rogersville"
What is the average population vlue for an area smaller than 26.69 square km and has an official name of Rogersville?
CREATE TABLE table_name_71 (population INTEGER, area_km_2 VARCHAR, official_name VARCHAR)
SELECT tie_no FROM table_name_83 WHERE away_team = "chester"
What is the Tie no when Chester is the away team?
CREATE TABLE table_name_83 (tie_no VARCHAR, away_team VARCHAR)
SELECT SUM(apps) FROM table_name_48 WHERE rank > 2 AND goals < 102
How many Apps have a Rank larger than 2, and Goals smaller than 102?
CREATE TABLE table_name_48 (apps INTEGER, rank VARCHAR, goals VARCHAR)
SELECT chassis FROM table_name_82 WHERE engine = "cosworth" AND drivers = "scott pruett" AND team = "dick simon racing"
What chassis belongs with the Cosworth Engine driven by Scott Pruett on the Dick Simon Racing team?
CREATE TABLE table_name_82 (chassis VARCHAR, team VARCHAR, engine VARCHAR, drivers VARCHAR)
SELECT current_venue FROM table_14903081_1 WHERE tournament = "Miami Masters"
What is the current venue for the Miami Masters tournament?
CREATE TABLE table_14903081_1 (current_venue VARCHAR, tournament VARCHAR)
SELECT party FROM table_1341453_7 WHERE first_elected = 1974
What party was first elected in 1974?
CREATE TABLE table_1341453_7 (party VARCHAR, first_elected VARCHAR)
SELECT highest_point FROM table_1416612_1 WHERE lowest_point = "Belle Fourche River at South Dakota border"
what's the highest point with lowest point being belle fourche river at south dakota border
CREATE TABLE table_1416612_1 (highest_point VARCHAR, lowest_point VARCHAR)
SELECT COUNT(wins) FROM table_14889048_1 WHERE points = 17
Name the number of wins for when points is 17
CREATE TABLE table_14889048_1 (wins VARCHAR, points VARCHAR)
SELECT SUM(laps) FROM table_name_79 WHERE year = "1954"
What was the sum of laps in 1954?
CREATE TABLE table_name_79 (laps INTEGER, year VARCHAR)
SELECT date FROM table_name_58 WHERE pitcher = "aníbal sánchez"
I want the date for aníbal sánchez
CREATE TABLE table_name_58 (date VARCHAR, pitcher VARCHAR)
SELECT last_10_meetings FROM table_name_43 WHERE games_played = "12"
What is the last 10 meetings that have 12 as the games played?
CREATE TABLE table_name_43 (last_10_meetings VARCHAR, games_played VARCHAR)
SELECT outcome FROM table_name_80 WHERE date = "13 may 2007"
What was the outcome on 13 may 2007?
CREATE TABLE table_name_80 (outcome VARCHAR, date VARCHAR)
SELECT sub_millisecond_cycle FROM table_name_28 WHERE "fieldbus" = "fieldbus"
What is the millisecond cycle for the Fieldbus?
CREATE TABLE table_name_28 (sub_millisecond_cycle VARCHAR)
SELECT school_club_team FROM table_10015132_7 WHERE player = "Rudy Gay"
what school is rudy gay from
CREATE TABLE table_10015132_7 (school_club_team VARCHAR, player VARCHAR)
SELECT software FROM table_15038373_1 WHERE version = "1.2.2.0"
What is the software with version 1.2.2.0?
CREATE TABLE table_15038373_1 (software VARCHAR, version VARCHAR)
SELECT poverty_rate FROM table_22815568_1 WHERE market_income_per_capita = "$20,518"
What is the povery rate of the county with market income per capita of $20,518?
CREATE TABLE table_22815568_1 (poverty_rate VARCHAR, market_income_per_capita VARCHAR)
SELECT MAX(league_cup) FROM table_name_38 WHERE total > 19 AND fa_cup > 6
Name the most league cups for total more than 19 and FA cups more than 6
CREATE TABLE table_name_38 (league_cup INTEGER, total VARCHAR, fa_cup VARCHAR)
SELECT MAX(bronze) FROM table_name_65 WHERE silver > 41
Which country has the highest bronze amount and a silver amount bigger than 41?
CREATE TABLE table_name_65 (bronze INTEGER, silver INTEGER)
SELECT COUNT(percent_yes) FROM table_name_68 WHERE jurisdiction = "alberta" AND percent_no > 60.2
What is the percent yes of Alberta, which had a percent no larger than 60.2?
CREATE TABLE table_name_68 (percent_yes VARCHAR, jurisdiction VARCHAR, percent_no VARCHAR)
SELECT COUNT(date) FROM table_name_94 WHERE surface = "carpet"
Tell me the total number of date for carpet
CREATE TABLE table_name_94 (date VARCHAR, surface VARCHAR)
SELECT MIN(production_code) FROM table_2818164_5 WHERE no_in_series = "96"
What is the production code for episode 96 in the series?
CREATE TABLE table_2818164_5 (production_code INTEGER, no_in_series VARCHAR)
SELECT COUNT(latitude) FROM table_name_62 WHERE township = "berlin" AND geo_id < 3801706260
what is the latitude for the berlin township with a geo id less than 3801706260
CREATE TABLE table_name_62 (latitude VARCHAR, township VARCHAR, geo_id VARCHAR)
SELECT company FROM table_name_62 WHERE sales__billion_$_ > 195.34 AND rank > 7 AND profits__billion_$_ > 11.29 AND market_value__billion_$_ > 198.14
What company has more than 195.34 billion in sales, ranked greater than 7, more than 11.29 billion in profits, and a market value greater than 198.14 billion?
CREATE TABLE table_name_62 (company VARCHAR, market_value__billion_$_ VARCHAR, profits__billion_$_ VARCHAR, sales__billion_$_ VARCHAR, rank VARCHAR)
SELECT oklahoma FROM table_name_94 WHERE nevada = "clinton" AND colorado = "clinton"
What's the value for oklahoma when nevada and colorado are clinton?
CREATE TABLE table_name_94 (oklahoma VARCHAR, nevada VARCHAR, colorado VARCHAR)
SELECT average FROM table_1354805_6 WHERE number_of_dances = 1
tell the competitions where the mean is 1
CREATE TABLE table_1354805_6 (average VARCHAR, number_of_dances VARCHAR)
SELECT MAX(inflation_index__2000) = 100 AS _ FROM table_name_67 WHERE per_capita_income__as__percentage_of_usa_ = 10.65 AND year < 1990
Which Inflation Index (2000=100) has a Per Capita Income (as % of USA) of 10.65, and a Year smaller than 1990?
CREATE TABLE table_name_67 (inflation_index__2000 INTEGER, per_capita_income__as__percentage_of_usa_ VARCHAR, year VARCHAR)
SELECT rank_in_english FROM table_1015521_2 WHERE commonwealth_equivalent = "Group Captain"
Give me a list of all spanish officer titles that could receive recognition as group captain in english
CREATE TABLE table_1015521_2 (rank_in_english VARCHAR, commonwealth_equivalent VARCHAR)
SELECT winner FROM table_name_48 WHERE stage = "p"
Which winner has a P stage?
CREATE TABLE table_name_48 (winner VARCHAR, stage VARCHAR)
SELECT city_of_license FROM table_name_43 WHERE frequency_mhz < 95.9 AND call_sign = "w223au"
What City of license has a Frequency MHz smaller than 95.9 with w223au as the call sign?
CREATE TABLE table_name_43 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
SELECT district FROM table_2417445_4 WHERE reason_for_vacancy = "Died May 22, 1895"
When the person died May 22, 1895 is the reason for vacancy what is the district?
CREATE TABLE table_2417445_4 (district VARCHAR, reason_for_vacancy VARCHAR)
SELECT Group AS song FROM table_name_60 WHERE name = "shine 王幸儿"
What Group Song of Shine 王幸儿?
CREATE TABLE table_name_60 (Group VARCHAR, name VARCHAR)
SELECT T1.date_in_location_from, T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = "Robin CV"
What is "the date in location from" and "the date in location to" for the document with name "Robin CV"?
CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (date_in_location_from VARCHAR, date_in_locaton_to VARCHAR, document_id VARCHAR)
SELECT AVG(silver) FROM table_name_54 WHERE gold > 4 AND total < 24
What is the silver number when gold is more than 4, and the total is less than 24?
CREATE TABLE table_name_54 (silver INTEGER, gold VARCHAR, total VARCHAR)
SELECT MAX(laps) FROM table_name_78 WHERE bike = "yamaha yzf-r1" AND rider = "david checa" AND grid > 18
What is the highest Laps, when Bike is "Yamaha YZF-R1", when Rider is "David Checa", and when Grid is greater than 18?
CREATE TABLE table_name_78 (laps INTEGER, grid VARCHAR, bike VARCHAR, rider VARCHAR)
SELECT SUM(goals) FROM table_name_71 WHERE rank > 10
What is the total Goals with Rank larger than 10?
CREATE TABLE table_name_71 (goals INTEGER, rank INTEGER)
SELECT competition FROM table_name_22 WHERE date = "13-11-2012"
Which competition was played on 13-11-2012?
CREATE TABLE table_name_22 (competition VARCHAR, date VARCHAR)
SELECT MIN(rank_subcontinent) FROM table_2248784_3 WHERE country = "Bangladesh"
Name the least rank subcontinent for bangladesh
CREATE TABLE table_2248784_3 (rank_subcontinent INTEGER, country VARCHAR)
SELECT MAX(silver) FROM table_name_43 WHERE bronze = 9 AND total < 27
What's the highest number of silver for 9 bronze and less than 27 total?
CREATE TABLE table_name_43 (silver INTEGER, bronze VARCHAR, total VARCHAR)
SELECT opponent FROM table_name_25 WHERE score = "4-6, 7-5, 4-6"
Who was the opponent with a score of 4-6, 7-5, 4-6?
CREATE TABLE table_name_25 (opponent VARCHAR, score VARCHAR)
SELECT score FROM table_27756572_10 WHERE date = "March 26"
What was the score in the game on March 26?
CREATE TABLE table_27756572_10 (score VARCHAR, date VARCHAR)
SELECT number FROM table_name_85 WHERE name = "chartist (чартист)"
what number is associated with the name chartist (чартист)?
CREATE TABLE table_name_85 (number VARCHAR, name VARCHAR)