answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT sodium FROM table_name_66 WHERE potassium = "lii (1.5)"
what is the properties of sodium when potassium is lii (1.5)?
CREATE TABLE table_name_66 (sodium VARCHAR, potassium VARCHAR)
SELECT AVG(round) FROM table_name_93 WHERE college = "florida" AND overall < 166
In what Round was the draft pick from Florida with an Overall less than 166?
CREATE TABLE table_name_93 (round INTEGER, college VARCHAR, overall VARCHAR)
SELECT COUNT(*) FROM (SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid')
How many schools have some students playing in goalie and mid positions.
CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR)
SELECT MAX(points) FROM table_15405904_1 WHERE position = 2
How many points are listed when the position is 2?
CREATE TABLE table_15405904_1 (points INTEGER, position VARCHAR)
SELECT COUNT(age) FROM table_24501530_1 WHERE result = "Fired in week 6"
How many age figures for the player fired in week 6?
CREATE TABLE table_24501530_1 (age VARCHAR, result VARCHAR)
SELECT tournament FROM table_name_14 WHERE runner_s__up = "howard twitty"
Howard Twitty was the runner-up of what tournament?
CREATE TABLE table_name_14 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT opponent FROM table_name_52 WHERE december = 2
Can you tell me the Opponent that has the December of 2?
CREATE TABLE table_name_52 (opponent VARCHAR, december VARCHAR)
SELECT MAX(wins) FROM table_name_71 WHERE cuts_made > 5
I want to know the highest wins for cuts made more than 5
CREATE TABLE table_name_71 (wins INTEGER, cuts_made INTEGER)
SELECT COUNT(wins) FROM table_name_92 WHERE draws < 0
What's the total wins when the draws are less than 0?
CREATE TABLE table_name_92 (wins VARCHAR, draws INTEGER)
SELECT region FROM table_name_89 WHERE catalog = "alca-487"
What is the Region with a Catalog of alca-487?
CREATE TABLE table_name_89 (region VARCHAR, catalog VARCHAR)
SELECT entrant FROM table_name_25 WHERE year = 1975 AND chassis = "hill gh1"
Name the entrant for 1975 and chassis of hill gh1
CREATE TABLE table_name_25 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT COUNT(byes) FROM table_name_80 WHERE wins = 14 AND losses > 2
Can you tell me the total number of Byes that has the Wins of 14, and the Losses larger than 2?
CREATE TABLE table_name_80 (byes VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT loss FROM table_name_52 WHERE date = "september 8"
Who did the team lose to on September 8?
CREATE TABLE table_name_52 (loss VARCHAR, date VARCHAR)
SELECT home_team AS score FROM table_name_37 WHERE home_team = "melbourne"
What was Melbourne's score when they were the home team?
CREATE TABLE table_name_37 (home_team VARCHAR)
SELECT home_away FROM table_name_96 WHERE opponent = "rattlers" AND field = "united sports training center"
Was the game against the Rattlers at the United Sports Training Center a home game or an away game?
CREATE TABLE table_name_96 (home_away VARCHAR, opponent VARCHAR, field VARCHAR)
SELECT COUNT(interview) FROM table_name_36 WHERE state = "indiana" AND average < 8.3
What is the total interview score a contestant from Indiana with an average smaller than 8.3 has?
CREATE TABLE table_name_36 (interview VARCHAR, state VARCHAR, average VARCHAR)
SELECT team FROM table_25318033_1 WHERE points = "137"
What team has 137 points?
CREATE TABLE table_25318033_1 (team VARCHAR, points VARCHAR)
SELECT COUNT(rank_world) FROM table_2248784_3 WHERE country = "Bhutan"
Name the number of rank world for bhutan
CREATE TABLE table_2248784_3 (rank_world VARCHAR, country VARCHAR)
SELECT date FROM table_name_87 WHERE home_team = "st kilda"
What day is st kilda the home side?
CREATE TABLE table_name_87 (date VARCHAR, home_team VARCHAR)
SELECT SUM(enrollment) FROM table_name_79 WHERE year_joined = 1958 AND location = "clarksville"
what is the enrollement for the year joined 1958 in clarksville?
CREATE TABLE table_name_79 (enrollment INTEGER, year_joined VARCHAR, location VARCHAR)
SELECT home_team FROM table_name_6 WHERE score = "1-3"
Which home team had the score 1-3?
CREATE TABLE table_name_6 (home_team VARCHAR, score VARCHAR)
SELECT player FROM table_name_78 WHERE matches = "9"
what player matched up with 9
CREATE TABLE table_name_78 (player VARCHAR, matches VARCHAR)
SELECT COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini"
How many orders does Lucas Mancini has?
CREATE TABLE invoices (customer_id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT date FROM table_name_39 WHERE attendance = "45,122"
What was the date of the game attended by 45,122?
CREATE TABLE table_name_39 (date VARCHAR, attendance VARCHAR)
SELECT MIN(lost) FROM table_name_69 WHERE difference = "9" AND drawn < 3
What is the fewest lost with a difference of 9 and a less than 3 drawn?
CREATE TABLE table_name_69 (lost INTEGER, difference VARCHAR, drawn VARCHAR)
SELECT SUM(1980) FROM table_name_6 WHERE 1996[2] > 68 AND 1990 < 352 AND 1970 > 105 AND 1950 = 119
1996[2] larger than 68, and a 1990 smaller than 352, and a 1970 larger than 105, and a 1950 of 119 is the sum of what 1980?
CREATE TABLE table_name_6 (Id VARCHAR)
SELECT score FROM table_name_60 WHERE partner = "albert montañés"
What is the score for the match where albert montañés was the partner?
CREATE TABLE table_name_60 (score VARCHAR, partner VARCHAR)
SELECT AVG(tied) FROM table_name_33 WHERE wins > 19
What is the average number of ties for years with more than 19 wins?
CREATE TABLE table_name_33 (tied INTEGER, wins INTEGER)
SELECT player FROM table_name_71 WHERE college = "cincinnati"
Who is the Cincinnati College player?
CREATE TABLE table_name_71 (player VARCHAR, college VARCHAR)
SELECT median_house__hold_income FROM table_1840495_2 WHERE place = "Upper Arlington"
For upper Arlington, what was the median household income?
CREATE TABLE table_1840495_2 (median_house__hold_income VARCHAR, place VARCHAR)
SELECT manager FROM table_name_48 WHERE club = "fc twente"
Who is the manager of club fc twente?
CREATE TABLE table_name_48 (manager VARCHAR, club VARCHAR)
SELECT team FROM table_name_17 WHERE score = "w 101–97 (2ot)"
What is the Team with a Score that is w 101–97 (2ot)?
CREATE TABLE table_name_17 (team VARCHAR, score VARCHAR)
SELECT college FROM table_name_68 WHERE position = "offensive tackle"
Which College has a Position of Offensive Tackle?
CREATE TABLE table_name_68 (college VARCHAR, position VARCHAR)
SELECT album_s_ FROM table_23667534_1 WHERE song_s__title = "My Chariot"
What album was the song My Chariot on?
CREATE TABLE table_23667534_1 (album_s_ VARCHAR, song_s__title VARCHAR)
SELECT nhl_team FROM table_name_7 WHERE round = "5" AND overall = "#154"
What is the NHL team for Round 5 and an overall ranking of #154?
CREATE TABLE table_name_7 (nhl_team VARCHAR, round VARCHAR, overall VARCHAR)
SELECT netflix FROM table_name_99 WHERE segment_b = "aerospace fuel lines"
Segment B of aerospace fuel lines is what netflix episode?
CREATE TABLE table_name_99 (netflix VARCHAR, segment_b VARCHAR)
SELECT time_retired FROM table_name_55 WHERE driver = "emerson fittipaldi"
What is the time/retired for the driver emerson fittipaldi?
CREATE TABLE table_name_55 (time_retired VARCHAR, driver VARCHAR)
SELECT report FROM table_1140088_6 WHERE race_name = "I Brazilian Grand Prix"
Did the I Brazilian Grand Prix have a report?
CREATE TABLE table_1140088_6 (report VARCHAR, race_name VARCHAR)
SELECT home_team FROM table_name_13 WHERE away_team = "bolton wanderers"
Who was the home team against the Bolton Wanderers?
CREATE TABLE table_name_13 (home_team VARCHAR, away_team VARCHAR)
SELECT SUM(position) FROM table_name_36 WHERE drawn = 10 AND lost < 25 AND goal_difference = "+20" AND played < 42
What is the sum of the positions for the player who had less than 25 losses, a goal difference of +20, 10 draws, and played less than 42?
CREATE TABLE table_name_36 (position INTEGER, played VARCHAR, goal_difference VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT floor FROM table_name_1 WHERE position < 21 AND total < 81.2 AND pommel_horse = "13.925"
What is the score of the floor when the position is less than 21, and less than 81.2 total, and the pommel horse score is 13.925?
CREATE TABLE table_name_1 (floor VARCHAR, pommel_horse VARCHAR, position VARCHAR, total VARCHAR)
SELECT T2.Name FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name HAVING SUM(T1.Num_of_stock) >= 2000 ORDER BY SUM(T1.Num_of_stock) DESC
Show the names of phones that have total number of stocks bigger than 2000, in descending order of the total number of stocks.
CREATE TABLE phone_market (Phone_ID VARCHAR, Num_of_stock INTEGER); CREATE TABLE phone (Name VARCHAR, Phone_ID VARCHAR)
SELECT team FROM table_name_96 WHERE year < 2007 AND class = "gts"
Which Team has a Year smaller than 2007, and a Class of gts?
CREATE TABLE table_name_96 (team VARCHAR, year VARCHAR, class VARCHAR)
SELECT COUNT(high_rebounds) FROM table_13762472_5 WHERE record = "19-13"
How many people had the high rebound total when the team was 19-13?
CREATE TABLE table_13762472_5 (high_rebounds VARCHAR, record VARCHAR)
SELECT team FROM table_name_79 WHERE rider = "adam barclay"
What team has adam barclay as the rider?
CREATE TABLE table_name_79 (team VARCHAR, rider VARCHAR)
SELECT COUNT(period_of_validity) FROM table_222666_1 WHERE former_country_name = "Upper Volta"
Name the total number for period of validity for upper volta
CREATE TABLE table_222666_1 (period_of_validity VARCHAR, former_country_name VARCHAR)
SELECT tobago FROM table_1850282_5 WHERE species = "Helicops angulatus"
there are in tobago species name helicops angulatus
CREATE TABLE table_1850282_5 (tobago VARCHAR, species VARCHAR)
SELECT score_in_final FROM table_23197088_4 WHERE championship = "Moscow"
such as are entire the rating of closing where championship is moscow
CREATE TABLE table_23197088_4 (score_in_final VARCHAR, championship VARCHAR)
SELECT COUNT(party) FROM table_1342249_11 WHERE incumbent = "Stephen Pace"
How many parties does incumbent stephen pace represent?
CREATE TABLE table_1342249_11 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(opened) FROM table_name_49 WHERE stadium = "stade de la mosson" AND capacity > 32 OFFSET 939
What total number of opened has a stadium of stade de la mosson and is larger than 32,939 capacity?
CREATE TABLE table_name_49 (opened VARCHAR, stadium VARCHAR, capacity VARCHAR)
SELECT high_points FROM table_23285849_10 WHERE high_assists = "Chauncey Billups (4)"
When chauncey billups (4) has the highest amount of assists who has the highest amount of points?
CREATE TABLE table_23285849_10 (high_points VARCHAR, high_assists VARCHAR)
SELECT 1 AS st_prize__$__ FROM table_11622496_1 WHERE location = "Virginia"
What is the prize money for Virginia?
CREATE TABLE table_11622496_1 (location VARCHAR)
SELECT COUNT(points) FROM table_name_89 WHERE artist = "linda martin"
How many points did Linda Martin have?
CREATE TABLE table_name_89 (points VARCHAR, artist VARCHAR)
SELECT venue FROM table_21350934_2 WHERE score = "34-18"
What is the venue that has 34-18 as the score?
CREATE TABLE table_21350934_2 (venue VARCHAR, score VARCHAR)
SELECT date FROM table_name_91 WHERE opponent = "dallas cowboys"
What date has dallas cowboys as the opponent?
CREATE TABLE table_name_91 (date VARCHAR, opponent VARCHAR)
SELECT AVG(gold) FROM table_name_45 WHERE total > 12
What is the average amount of gold medals for a country with more than 12 total medals?
CREATE TABLE table_name_45 (gold INTEGER, total INTEGER)
SELECT date FROM table_name_73 WHERE record = "2–7–0–1"
WHich Date has a Record of 2–7–0–1?
CREATE TABLE table_name_73 (date VARCHAR, record VARCHAR)
SELECT website FROM table_name_25 WHERE year_started = 2008
Which website was started in 2008?
CREATE TABLE table_name_25 (website VARCHAR, year_started VARCHAR)
SELECT COUNT(capacity) FROM table_name_15 WHERE opened = "1999"
What is the total capacity of venues that opened in 1999?
CREATE TABLE table_name_15 (capacity VARCHAR, opened VARCHAR)
SELECT COUNT(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')
Find the number of routes from the United States to Canada.
CREATE TABLE airports (dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR); CREATE TABLE routes (dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR)
SELECT launch_date__utc_ FROM table_2150068_1 WHERE nssdc_id = "1960-009A"
What is the launch date for the sattelite with a nssdc id of 1960-009a?
CREATE TABLE table_2150068_1 (launch_date__utc_ VARCHAR, nssdc_id VARCHAR)
SELECT away_team FROM table_name_54 WHERE venue = "glenferrie oval"
Which away team is based at glenferrie oval?
CREATE TABLE table_name_54 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(engine) FROM table_20866024_2 WHERE model_designation = "97G00"
How many different engines are there for the model with model designation 97G00?
CREATE TABLE table_20866024_2 (engine VARCHAR, model_designation VARCHAR)
SELECT location FROM table_name_76 WHERE reign = "3"
Name the location of reign 3
CREATE TABLE table_name_76 (location VARCHAR, reign VARCHAR)
SELECT title FROM table_2618152_1 WHERE original_air_date = "October 21, 1998"
What is the title of the episode with the original air date October 21, 1998?
CREATE TABLE table_2618152_1 (title VARCHAR, original_air_date VARCHAR)
SELECT MIN(population__may), _2000_ FROM table_2051288_1 WHERE location = "coastal" AND barangay = "Isio"
What was the population of the coastal location Isio in May of 2000?
CREATE TABLE table_2051288_1 (_2000_ VARCHAR, population__may INTEGER, location VARCHAR, barangay VARCHAR)
SELECT date FROM table_name_24 WHERE fastest_lap = "yuji tachikawa" AND round = 1
On what date does Yuji Tachikawa have the fastest lap in round 1?
CREATE TABLE table_name_24 (date VARCHAR, fastest_lap VARCHAR, round VARCHAR)
SELECT nhl_team FROM table_1473672_6 WHERE player = "Rob Palmer"
What NHL team drafted Rob Palmer?
CREATE TABLE table_1473672_6 (nhl_team VARCHAR, player VARCHAR)
SELECT AVG(byes) FROM table_name_16 WHERE against = 1076 AND wins < 13
How many Byes have Against of 1076 and Wins smaller than 13?
CREATE TABLE table_name_16 (byes INTEGER, against VARCHAR, wins VARCHAR)
SELECT year FROM table_name_29 WHERE 1851 = "634"
What's the year when 1851 had 634?
CREATE TABLE table_name_29 (year VARCHAR)
SELECT cust_name FROM customer ORDER BY acc_bal
List the name of all customers sorted by their account balance in ascending order.
CREATE TABLE customer (cust_name VARCHAR, acc_bal VARCHAR)
SELECT area_km_2 FROM table_name_38 WHERE official_name = "sackville"
How large, in square kilometers, is Sackville?
CREATE TABLE table_name_38 (area_km_2 VARCHAR, official_name VARCHAR)
SELECT manufacturer FROM table_name_73 WHERE time_retired = "accident"
Which Manufacturer has a Time/Retired of accident?
CREATE TABLE table_name_73 (manufacturer VARCHAR, time_retired VARCHAR)
SELECT polyunsaturated_fat FROM table_name_39 WHERE total_fat = "100g" AND saturated_fat = "7g"
Name the polyunsaturated fat with total fat of 100g and saturated fat of 7g
CREATE TABLE table_name_39 (polyunsaturated_fat VARCHAR, total_fat VARCHAR, saturated_fat VARCHAR)
SELECT COUNT(tries_for) FROM table_17675675_2 WHERE lost = "4"
With the given loss of 4, what was the number of tries?
CREATE TABLE table_17675675_2 (tries_for VARCHAR, lost VARCHAR)
SELECT tournament FROM table_name_91 WHERE 2007 = "1r" AND 2009 = "1r"
Which tournament has a 1R value in 2007 and 2009?
CREATE TABLE table_name_91 (tournament VARCHAR)
SELECT MIN(year) FROM table_name_51 WHERE tournament = "beijing"
What is the lowest Year, when Tournament is "Beijing"?
CREATE TABLE table_name_51 (year INTEGER, tournament VARCHAR)
SELECT week FROM table_name_55 WHERE date = "november 23, 1997"
Which week starts on November 23, 1997?
CREATE TABLE table_name_55 (week VARCHAR, date VARCHAR)
SELECT week_1 FROM table_name_3 WHERE week_3 = "natasha budhi"
Who is week 1 if week 3 is Natasha Budhi?
CREATE TABLE table_name_3 (week_1 VARCHAR, week_3 VARCHAR)
SELECT COUNT(english) FROM table_26263954_1 WHERE kunrei_shiki = "otya"
how many number of english when kunrei-shiki is otya
CREATE TABLE table_26263954_1 (english VARCHAR, kunrei_shiki VARCHAR)
SELECT kalamazoo__azo_ FROM table_1637981_7 WHERE lansing__lan_ = "$433.59"
During the year when Lansing's fare is $433.59, what is the fare to Kalamazoo?
CREATE TABLE table_1637981_7 (kalamazoo__azo_ VARCHAR, lansing__lan_ VARCHAR)
SELECT year FROM table_name_55 WHERE tyre = "d" AND chassis = "mazda 787"
What Year has a Tyre of D, and Chassis of Mazda 787?
CREATE TABLE table_name_55 (year VARCHAR, tyre VARCHAR, chassis VARCHAR)
SELECT others FROM table_name_33 WHERE martin = "9%" AND source = "ogm/news"
What percent of others did ogm/news count when MARTIN had 9%?
CREATE TABLE table_name_33 (others VARCHAR, martin VARCHAR, source VARCHAR)
SELECT region FROM table_name_68 WHERE format = "stereo lp" AND catalog = "amlh 66078"
What is the region for Catalog amlh 66078 in stereo lp format?
CREATE TABLE table_name_68 (region VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT party FROM table_1341522_24 WHERE district = "Massachusetts4"
What parties are represented in Massachusetts4 district?
CREATE TABLE table_1341522_24 (party VARCHAR, district VARCHAR)
SELECT subdivision_name___be____bgn_pcgn_ FROM table_290017_1 WHERE subdivision_name___ru____bgn_pcgn_ = "Grodnenskaya oblast'"
What is the subdivision name (BE) where subdivision name (RU) (BGN) is Grodnenskaya Oblast'?
CREATE TABLE table_290017_1 (subdivision_name___be____bgn_pcgn_ VARCHAR, subdivision_name___ru____bgn_pcgn_ VARCHAR)
SELECT SUM(league_apps) FROM table_name_22 WHERE cup_goals > 2 AND cup_apps > 6
How many league apps in the season with more than 2 cup goals and more than 6 cup apps?
CREATE TABLE table_name_22 (league_apps INTEGER, cup_goals VARCHAR, cup_apps VARCHAR)
SELECT MIN(term_limited) FROM table_26131768_4 WHERE first_elected = "2003 (Appt.)"
If first elected on 2003 (appt.), when was the term limited?
CREATE TABLE table_26131768_4 (term_limited INTEGER, first_elected VARCHAR)
SELECT l2_cache FROM table_name_65 WHERE model_number = "core i7-2635qm"
What is the L2 cache for the core i7-2635QM?
CREATE TABLE table_name_65 (l2_cache VARCHAR, model_number VARCHAR)
SELECT soap_opera FROM table_name_48 WHERE actor = "elin sogn"
what is the soap opera for elin sogn?
CREATE TABLE table_name_48 (soap_opera VARCHAR, actor VARCHAR)
SELECT MAX(total) FROM table_28606933_7 WHERE period = "9/21/1975 – 12/16/1984"
How many consecutive starts for the linebacker who played from 9/21/1975 – 12/16/1984?
CREATE TABLE table_28606933_7 (total INTEGER, period VARCHAR)
SELECT p FROM table_17596418_4 WHERE moving_from = "Everton"
What is the P for the player moving from Everton?
CREATE TABLE table_17596418_4 (p VARCHAR, moving_from VARCHAR)
SELECT MIN(touchdowns) FROM table_name_88 WHERE player = "total" AND field_goals > 0
What is the smallest amount of touchdowns when there is a total player and a number of field goals of more than 0?
CREATE TABLE table_name_88 (touchdowns INTEGER, player VARCHAR, field_goals VARCHAR)
SELECT passengers FROM table_name_65 WHERE carriers = "air canada"
Which Passengers have Carriers of air canada?
CREATE TABLE table_name_65 (passengers VARCHAR, carriers VARCHAR)
SELECT pos FROM table_name_29 WHERE driver = "brendan gaughan"
What is Driver Brendan Gaughan's Pos?
CREATE TABLE table_name_29 (pos VARCHAR, driver VARCHAR)
SELECT location FROM table_name_86 WHERE nationality = "lithuania" AND date = "12 october 2013"
Tell me the location of lithuania 12 october 2013
CREATE TABLE table_name_86 (location VARCHAR, nationality VARCHAR, date VARCHAR)
SELECT MAX(bronze) FROM table_name_67 WHERE silver = 0 AND gold > 0 AND total > 2
What is the highest bronze when the silver was 0, the gold was larger than 0, and the total was larger than 2?
CREATE TABLE table_name_67 (bronze INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT tournament FROM table_name_34 WHERE 2007 = "lq"
In which tournament did Pauline Parmentier finish LQ in 2007?
CREATE TABLE table_name_34 (tournament VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_43 WHERE score = 70 - 71 - 70 - 69 = 280
What is the sum of Money ($), when Score is 70-71-70-69=280?
CREATE TABLE table_name_43 (money___ INTEGER, score VARCHAR)
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE
Find the distinct last names of the students who have class president votes.
CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (CLASS_President_VOTE VARCHAR)