answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MIN(rank) FROM table_name_73 WHERE candidate_name = "aliyya qadi" AND votes < 1421
What rank is aliyya qadi with less than 1421 votes?
CREATE TABLE table_name_73 (rank INTEGER, candidate_name VARCHAR, votes VARCHAR)
SELECT voltage_center__v_ FROM table_name_71 WHERE input_clock__mhz_ = "25 x 3" AND part_number = "a80486dx4-75"
Which Voltage Center (V) has an Input Clock (MHz) of 25 x 3, and a Part Number of a80486dx4-75?
CREATE TABLE table_name_71 (voltage_center__v_ VARCHAR, input_clock__mhz_ VARCHAR, part_number VARCHAR)
SELECT MIN(silver) FROM table_name_17 WHERE total < 6 AND rank = "8"
Tell me the least silver for total less than 6 and rank of 8
CREATE TABLE table_name_17 (silver INTEGER, total VARCHAR, rank VARCHAR)
SELECT AVG(total) FROM table_name_60 WHERE name = "simon gillett category:articles with hcards" AND other > 3
What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3?
CREATE TABLE table_name_60 (total INTEGER, name VARCHAR, other VARCHAR)
SELECT SUM(laps) FROM table_name_8 WHERE team = "dale coyne racing" AND points = 0
What is the sum of lap for the Dale Coyne Racing Team, and 0 points?
CREATE TABLE table_name_8 (laps INTEGER, team VARCHAR, points VARCHAR)
SELECT year_location FROM table_28138035_20 WHERE womens_doubles = "Jing Junhong Li Jiawei"
Where was the tour when jing junhong li jiawei played womens doubles?
CREATE TABLE table_28138035_20 (year_location VARCHAR, womens_doubles VARCHAR)
SELECT date FROM table_name_25 WHERE venue = "china"
Which date has china as the venue?
CREATE TABLE table_name_25 (date VARCHAR, venue VARCHAR)
SELECT COUNT(air_date) FROM table_11274401_3 WHERE viewers__m_ = "1.82"
What's the total number of episodes whose original airings were viewed by 1.82 million viewers?
CREATE TABLE table_11274401_3 (air_date VARCHAR, viewers__m_ VARCHAR)
SELECT round FROM table_name_17 WHERE venue = "a" AND result = "1-2" AND date = "7 december 2004"
What is the round of the match at venue A with a result of 1-2 on 7 December 2004?
CREATE TABLE table_name_17 (round VARCHAR, date VARCHAR, venue VARCHAR, result VARCHAR)
SELECT record FROM table_name_72 WHERE attendance = "4,516"
When the Attendance was 4,516, what was the Record?
CREATE TABLE table_name_72 (record VARCHAR, attendance VARCHAR)
SELECT MAX(total) FROM table_name_4 WHERE bronze > 2 AND rank > 3 AND nation = "united states" AND silver > 3
For the United States, with greater than 2 bronze metals, greater than 3 silver medals, and a rank higher than 3, what is the highest total number of medals?
CREATE TABLE table_name_4 (total INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT original_name FROM table_name_50 WHERE location = "orillia, on"
What was the original name of the restaurant located in Orillia, ON?
CREATE TABLE table_name_50 (original_name VARCHAR, location VARCHAR)
SELECT player FROM table_11677100_4 WHERE hometown = "Spring, TX"
What player is from Spring, Tx?
CREATE TABLE table_11677100_4 (player VARCHAR, hometown VARCHAR)
SELECT COUNT(year_location) FROM table_28138035_20 WHERE mens_doubles = "Lin Gaoyuan Wu Jiaji"
How many years did lin gaoyuan wu jiaji play mens doubles?
CREATE TABLE table_28138035_20 (year_location VARCHAR, mens_doubles VARCHAR)
SELECT COUNT(DISTINCT party_name) FROM party
How many parties do we have?
CREATE TABLE party (party_name VARCHAR)
SELECT 2013 AS _14_division FROM table_name_60 WHERE team = "wolverhampton wildcats"
What is the 2013-2014 division for the Wolverhampton Wildcats?
CREATE TABLE table_name_60 (team VARCHAR)
SELECT incumbent FROM table_1341930_40 WHERE first_elected = 1956
Name the incumbent for first elected 1956
CREATE TABLE table_1341930_40 (incumbent VARCHAR, first_elected VARCHAR)
SELECT results¹ FROM table_name_99 WHERE type_of_game = "friendly" AND date = "november 22"
On November 22, what were the results of the friendly type game?
CREATE TABLE table_name_99 (results¹ VARCHAR, type_of_game VARCHAR, date VARCHAR)
SELECT runs FROM table_name_42 WHERE match = "42"
With 42 as the match what are the runs?
CREATE TABLE table_name_42 (runs VARCHAR, match VARCHAR)
SELECT club_province FROM table_name_74 WHERE caps < 2 AND player = "jonathan sexton"
What Club/province have caps less than 2 and Jonathan Sexton as player?
CREATE TABLE table_name_74 (club_province VARCHAR, caps VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_8 WHERE acquisition_via = "trade" AND name = "jondan salvador"
Which School/ Club Team acquired Jondan Salvador via trade?
CREATE TABLE table_name_8 (school_club_team VARCHAR, acquisition_via VARCHAR, name VARCHAR)
SELECT line FROM table_name_81 WHERE current_status = "demolished" AND closed = "late 1970s" AND location = "toolamba"
What is the line of the station in Toolamba that is currently demolished and closed in the late 1970s?
CREATE TABLE table_name_81 (line VARCHAR, location VARCHAR, current_status VARCHAR, closed VARCHAR)
SELECT SUM(round) FROM table_name_44 WHERE event = "golden trophy 1999"
What round did the match at the Golden Trophy 1999 event end?
CREATE TABLE table_name_44 (round INTEGER, event VARCHAR)
SELECT SUM(game) FROM table_name_52 WHERE date = "february 28"
What is the sum of Game on february 28?
CREATE TABLE table_name_52 (game INTEGER, date VARCHAR)
SELECT original_title FROM table_name_99 WHERE winner_and_nominees = "the king's speech"
What was the original title of the king's speech?
CREATE TABLE table_name_99 (original_title VARCHAR, winner_and_nominees VARCHAR)
SELECT name, cost FROM procedures ORDER BY cost DESC
List the name and cost of all procedures sorted by the cost from the highest to the lowest.
CREATE TABLE procedures (name VARCHAR, cost VARCHAR)
SELECT team FROM table_11190568_7 WHERE outgoing_manager = "John Meyler"
Which team has the outgoing manager John Meyler?
CREATE TABLE table_11190568_7 (team VARCHAR, outgoing_manager VARCHAR)
SELECT injunctive FROM table_16337329_5 WHERE past_habitual = "गर्यो garyo 'he did'"
Name the injunctive for गर्यो garyo 'he did'
CREATE TABLE table_16337329_5 (injunctive VARCHAR, past_habitual VARCHAR)
SELECT discovery FROM table_name_4 WHERE operator_s_ = "lundin"
Which Discoveryhas an Operator(s) of lundin?
CREATE TABLE table_name_4 (discovery VARCHAR, operator_s_ VARCHAR)
SELECT multi_1 FROM table_name_46 WHERE model_number = "athlon x2 be-2400"
What is the multi 1 for the Athlon x2 BE-2400?
CREATE TABLE table_name_46 (multi_1 VARCHAR, model_number VARCHAR)
SELECT linke FROM table_name_99 WHERE state = "tyrol"
What percent did LINKE get in Tyrol?
CREATE TABLE table_name_99 (linke VARCHAR, state VARCHAR)
SELECT coach FROM table_name_8 WHERE details = "2010 gold coast titans season"
Who is the coach of the 2010 Gold Coast Titans season?
CREATE TABLE table_name_8 (coach VARCHAR, details VARCHAR)
SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING COUNT(*) > 1
Find the name of the ships that have more than one captain.
CREATE TABLE captain (ship_id VARCHAR); CREATE TABLE ship (name VARCHAR, ship_id VARCHAR)
SELECT COUNT(high_rebounds) FROM table_27704187_8 WHERE game = 35
How many high rebounds are listed for game 35?
CREATE TABLE table_27704187_8 (high_rebounds VARCHAR, game VARCHAR)
SELECT COUNT(mens_doubles) FROM table_12193259_1 WHERE season = "2004/2005"
Name the number of mens doubles for 2004/2005
CREATE TABLE table_12193259_1 (mens_doubles VARCHAR, season VARCHAR)
SELECT name FROM table_21284653_1 WHERE population_density = "200"
What is the only city name with a population density of 200?
CREATE TABLE table_21284653_1 (name VARCHAR, population_density VARCHAR)
SELECT COUNT(*) FROM list
Find the number of students in total.
CREATE TABLE list (Id VARCHAR)
SELECT city___town FROM table_28668784_1 WHERE stadium = "Stadion Zlatica"
What town holds Stadion Zlatica?
CREATE TABLE table_28668784_1 (city___town VARCHAR, stadium VARCHAR)
SELECT grand_prix FROM table_1137696_3 WHERE winning_driver = "Michael Schumacher" AND fastest_lap = "Michael Schumacher" AND round = 7
Name the grand prix with a driver of Michael Schumacher and a round of 7?
CREATE TABLE table_1137696_3 (grand_prix VARCHAR, round VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR)
SELECT transmission FROM table_name_99 WHERE engine = "2.0l" AND acceleration_0_100km_h__0_62mph_ = "10.5 s"
What is the transmission when the engine is 2.0l, and acceleration 0–100km/h (0–62mph) is 10.5 s?
CREATE TABLE table_name_99 (transmission VARCHAR, engine VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)
SELECT name FROM table_name_39 WHERE block = 320 AND spike > 336 AND date_of_birth = "12.10.1978"
What is Name, when Block is 320, when Spike is more than 336, and when Date of Birth is 12.10.1978?
CREATE TABLE table_name_39 (name VARCHAR, date_of_birth VARCHAR, block VARCHAR, spike VARCHAR)
SELECT MAX(blocks) FROM table_25342713_5 WHERE steals = 20
If the Steals are 20, what are the blocks?
CREATE TABLE table_25342713_5 (blocks INTEGER, steals VARCHAR)
SELECT AVG(rank) FROM table_name_33 WHERE country = "denmark"
What is the average rank for Denmark?
CREATE TABLE table_name_33 (rank INTEGER, country VARCHAR)
SELECT finish FROM table_name_89 WHERE year = "1939"
In 1939, what was the finish?
CREATE TABLE table_name_89 (finish VARCHAR, year VARCHAR)
SELECT time FROM table_name_39 WHERE opponent = "shamil abdurahimov"
Which Time has an Opponent of shamil abdurahimov?
CREATE TABLE table_name_39 (time VARCHAR, opponent VARCHAR)
SELECT type FROM table_name_92 WHERE country = "sco"
What is the type of sco country?
CREATE TABLE table_name_92 (type VARCHAR, country VARCHAR)
SELECT 08 AS _pts FROM table_22011138_7 WHERE pos = 3
If the POS is 3, what is the 08 points?
CREATE TABLE table_22011138_7 (pos VARCHAR)
SELECT attendance FROM table_name_54 WHERE week > 10 AND date = "november 20, 1966"
What is the attendance of the game on November 20, 1966 after week 10?
CREATE TABLE table_name_54 (attendance VARCHAR, week VARCHAR, date VARCHAR)
SELECT MAX(year_of_release) FROM table_name_40 WHERE label = "mca"
What was the last year MCA had a Release?
CREATE TABLE table_name_40 (year_of_release INTEGER, label VARCHAR)
SELECT model FROM table_name_52 WHERE gcm__kg__technical_capacity = "42000"
Which Model has the GCM (kg) Technical Capacity of 42000?
CREATE TABLE table_name_52 (model VARCHAR, gcm__kg__technical_capacity VARCHAR)
SELECT MAX(z___p__) FROM table_name_46 WHERE element = "arsenic" AND n___n__ > 42
What is the highest Z (p) when arsenic is the element, and the N (n) is more than 42
CREATE TABLE table_name_46 (z___p__ INTEGER, element VARCHAR, n___n__ VARCHAR)
SELECT partner FROM table_name_31 WHERE score_in_the_final = "4–6, 6–7"
Who was the partner for the match with a score in the final of 4–6, 6–7?
CREATE TABLE table_name_31 (partner VARCHAR, score_in_the_final VARCHAR)
SELECT COUNT(decile) FROM table_name_51 WHERE gender = "coed"
How many Deciles are coed?
CREATE TABLE table_name_51 (decile VARCHAR, gender VARCHAR)
SELECT tournament FROM table_name_13 WHERE date = "apr 6"
What is the tournament on Apr 6?
CREATE TABLE table_name_13 (tournament VARCHAR, date VARCHAR)
SELECT population__2010_ FROM table_255829_1 WHERE no_of_barangays = 31
What is the 2010 population of the municipality with 31 barangays?
CREATE TABLE table_255829_1 (population__2010_ VARCHAR, no_of_barangays VARCHAR)
SELECT MAX(laps) FROM table_name_12 WHERE rider = "max biaggi" AND grid > 2
What is the highest number of laps that max biaggi rode on a grid larger than 2?
CREATE TABLE table_name_12 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT director FROM table_name_76 WHERE production_number = "11-14"
Who is the Director of the Filmography with Production Number of 11-14?
CREATE TABLE table_name_76 (director VARCHAR, production_number VARCHAR)
SELECT state__class_ FROM table_224839_3 WHERE successor = "Joseph Anderson ( DR )"
What are all the states (class) when the successor was Joseph Anderson ( DR )?
CREATE TABLE table_224839_3 (state__class_ VARCHAR, successor VARCHAR)
SELECT record FROM table_name_6 WHERE loss = "lilly (0-1)"
What was their record when they lost with Lilly (0-1) pitching?
CREATE TABLE table_name_6 (record VARCHAR, loss VARCHAR)
SELECT last_school_college FROM table_29598261_1 WHERE name = "Chris McNamara"
what is the school for chris mcnamara?
CREATE TABLE table_29598261_1 (last_school_college VARCHAR, name VARCHAR)
SELECT COUNT(date) FROM table_17058226_10 WHERE team = "Phoenix"
On how many dates did the Timberwolves play Phoenix?
CREATE TABLE table_17058226_10 (date VARCHAR, team VARCHAR)
SELECT manufacturer FROM table_2268216_1 WHERE team = "Ranier-Lundy"
Whose is the manufacturer for team Ranier-Lundy?
CREATE TABLE table_2268216_1 (manufacturer VARCHAR, team VARCHAR)
SELECT match_number FROM table_17103566_1 WHERE result = "ICL World by 8 wickets"
What is the match number where the result is ICL World by 8 wickets?
CREATE TABLE table_17103566_1 (match_number VARCHAR, result VARCHAR)
SELECT team FROM table_name_77 WHERE date_of_vacancy = "9 december 2008"
What team replaced their manager on 9 December 2008?
CREATE TABLE table_name_77 (team VARCHAR, date_of_vacancy VARCHAR)
SELECT COUNT(language) FROM table_2509112_3 WHERE tacachi_municipality = 3
What is the language total number if the Tacachi Municipality is 3?
CREATE TABLE table_2509112_3 (language VARCHAR, tacachi_municipality VARCHAR)
SELECT surface FROM table_name_37 WHERE opponent = "sascha kloer"
What is the surface of the tournament with Sascha Kloer as the opponent?
CREATE TABLE table_name_37 (surface VARCHAR, opponent VARCHAR)
SELECT college FROM table_name_10 WHERE pick < 25 AND overall > 159 AND round < 10 AND position = "wr"
Which college has a pick less than 25, an overall greater than 159, a round less than 10, and wr as the position?
CREATE TABLE table_name_10 (college VARCHAR, position VARCHAR, round VARCHAR, pick VARCHAR, overall VARCHAR)
SELECT points_per_game FROM table_27487336_1 WHERE passing_yards_per_game = "179.6"
What is every value for points per game if passing yards per game is 179.6?
CREATE TABLE table_27487336_1 (points_per_game VARCHAR, passing_yards_per_game VARCHAR)
SELECT AVG(points) FROM table_name_21 WHERE artist = "catcat" AND draw > 2
How many points does catcat have with more than 2 draws?
CREATE TABLE table_name_21 (points INTEGER, artist VARCHAR, draw VARCHAR)
SELECT candidate_name FROM table_name_61 WHERE votes > 279 AND rank < 50 AND gender = "♀" AND list = "al-ahd"
Which candidate has more than 279 votes, rank less than 50, is ♀ and al-ahd?
CREATE TABLE table_name_61 (candidate_name VARCHAR, list VARCHAR, gender VARCHAR, votes VARCHAR, rank VARCHAR)
SELECT gold FROM table_name_76 WHERE silver = "pan cheng-tsung"
Who won gold in the games where Pan Cheng-Tsung won silver?
CREATE TABLE table_name_76 (gold VARCHAR, silver VARCHAR)
SELECT high_assists FROM table_27712702_9 WHERE date = "January 17"
Who led in assists on January 17, and with how many?
CREATE TABLE table_27712702_9 (high_assists VARCHAR, date VARCHAR)
SELECT city FROM airports WHERE country = 'United States' GROUP BY city HAVING COUNT(*) > 3
Return the cities with more than 3 airports in the United States.
CREATE TABLE airports (city VARCHAR, country VARCHAR)
SELECT COUNT(rank) FROM table_name_17 WHERE club_s_ = "valencia" AND u_17_caps = 20
What is the rank of Club Valencia with a U-17 Caps of 20?
CREATE TABLE table_name_17 (rank VARCHAR, club_s_ VARCHAR, u_17_caps VARCHAR)
SELECT MIN(year) FROM table_name_66 WHERE yellow_jersey = "jacques anquetil"
What year was yellow jersey of Jacques Anquetil?
CREATE TABLE table_name_66 (year INTEGER, yellow_jersey VARCHAR)
SELECT COUNT(losses) FROM table_name_71 WHERE goals_for = 30 AND points > 24
Hiw many losses have 30 for the goals with points greater than 24?
CREATE TABLE table_name_71 (losses VARCHAR, goals_for VARCHAR, points VARCHAR)
SELECT MAX(year) FROM table_name_67 WHERE event = "800 m" AND venue = "santiago de chile"
What's the highest Year for the Venue of Santiago De Chile and the Event of 800 m?
CREATE TABLE table_name_67 (year INTEGER, event VARCHAR, venue VARCHAR)
SELECT MIN(attendance) FROM table_name_50 WHERE date = "14 april 2007"
How many were in attendance on 14 April 2007?
CREATE TABLE table_name_50 (attendance INTEGER, date VARCHAR)
SELECT pick__number FROM table_name_49 WHERE round = 10
What is Pick #, when Round is "10"?
CREATE TABLE table_name_49 (pick__number VARCHAR, round VARCHAR)
SELECT institution FROM table_261913_1 WHERE location__all_in_minnesota_ = "St. Peter"
What institution is located in St. Peter?
CREATE TABLE table_261913_1 (institution VARCHAR, location__all_in_minnesota_ VARCHAR)
SELECT winners FROM table_name_34 WHERE runners_up = "np cooper av cooke"
Who won when np cooper av cooke was runner up?
CREATE TABLE table_name_34 (winners VARCHAR, runners_up VARCHAR)
SELECT us_viewers__in_million_ FROM table_27987623_1 WHERE written_by = "Kevin Biegel & Bill Lawrence"
How many viewers saw the episode written by kevin biegel & bill lawrence?
CREATE TABLE table_27987623_1 (us_viewers__in_million_ VARCHAR, written_by VARCHAR)
SELECT attendance FROM table_name_88 WHERE location = "busch stadium (ii)" AND time = "3:54"
How many attended the game at Busch Stadium (ii) when the time was 3:54?
CREATE TABLE table_name_88 (attendance VARCHAR, location VARCHAR, time VARCHAR)
SELECT entrepreneur_s_ FROM table_name_69 WHERE company_or_product_name = "mixalbum"
Which Entrepreneur(s) have mixalbum?
CREATE TABLE table_name_69 (entrepreneur_s_ VARCHAR, company_or_product_name VARCHAR)
SELECT status FROM table_22815568_6 WHERE poverty_rate = "11.4%"
What is the status if the poverty rate is 11.4%?
CREATE TABLE table_22815568_6 (status VARCHAR, poverty_rate VARCHAR)
SELECT COUNT(top_10) FROM table_1671401_3 WHERE position = "51st"
name the total number of top 10 also where the position is 51st
CREATE TABLE table_1671401_3 (top_10 VARCHAR, position VARCHAR)
SELECT authority FROM table_name_2 WHERE name = "upper valley middle school"
Is Upper valley middle school public or private?
CREATE TABLE table_name_2 (authority VARCHAR, name VARCHAR)
SELECT country FROM table_name_77 WHERE medal = "silver" AND event = "boxing, heavyweight"
What country has a silver medal in the boxing, heavyweight event?
CREATE TABLE table_name_77 (country VARCHAR, medal VARCHAR, event VARCHAR)
SELECT bodyweight FROM table_name_18 WHERE total__kg_ = "145.0"
Which bodyweight has a Total (kg) of 145.0?
CREATE TABLE table_name_18 (bodyweight VARCHAR, total__kg_ VARCHAR)
SELECT game_site FROM table_name_75 WHERE opponent = "buffalo bills"
Which game site has an Opponent of buffalo bills?
CREATE TABLE table_name_75 (game_site VARCHAR, opponent VARCHAR)
SELECT name FROM table_name_63 WHERE region = "kansai" AND date_of_reclassification = "2012-04-01 ( core city )"
WHose Name has a Region of kansai on 2012-04-01 ( core city )?
CREATE TABLE table_name_63 (name VARCHAR, region VARCHAR, date_of_reclassification VARCHAR)
SELECT name FROM table_name_47 WHERE average = 48.83
Which Name has an Average of 48.83?
CREATE TABLE table_name_47 (name VARCHAR, average VARCHAR)
SELECT opponent FROM table_name_76 WHERE venue = "away" AND date = "28th"
What opponent played on the 28th with a venue of away?
CREATE TABLE table_name_76 (opponent VARCHAR, venue VARCHAR, date VARCHAR)
SELECT MAX(crowd) FROM table_name_51 WHERE venue = "windy hill"
What is the highest crowd at windy hill?
CREATE TABLE table_name_51 (crowd INTEGER, venue VARCHAR)
SELECT date_of_successors_taking_office FROM table_2417445_4 WHERE successor = "Rudolph Kleberg (D)"
When rudolph kleberg (d) is the successor what is the date of successors taking office?
CREATE TABLE table_2417445_4 (date_of_successors_taking_office VARCHAR, successor VARCHAR)
SELECT opponent FROM table_name_34 WHERE game < 47 AND record = "24-13-4"
Who was the opponent for game number less than 47 and a record of 24-13-4?
CREATE TABLE table_name_34 (opponent VARCHAR, game VARCHAR, record VARCHAR)
SELECT SUM(bronze) FROM table_name_49 WHERE total < 8 AND rank = 9 AND silver < 0
What is the sum of the bronze medals when there were less than 8 total medals, 0 silver medals and a rank of 9?
CREATE TABLE table_name_49 (bronze INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR)
SELECT airport_name FROM table_18047346_4 WHERE location = "Chicago, Illinois"
If the location is Chicago, Illinois, what is the airport name?
CREATE TABLE table_18047346_4 (airport_name VARCHAR, location VARCHAR)
SELECT COUNT(year) FROM table_name_65 WHERE engine = "brm straight-4"
Name the total number of years for brm straight-4
CREATE TABLE table_name_65 (year VARCHAR, engine VARCHAR)
SELECT name FROM table_26916717_1 WHERE team_school = "California"
What player attended california university?
CREATE TABLE table_26916717_1 (name VARCHAR, team_school VARCHAR)