answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT current_account_balance__percent_of_gdp_ FROM table_30133_1 WHERE gdp_at_current_prices__usd_billions_ = "142.640"
What is the current account balance for a GDP at current prices of 142.640?
CREATE TABLE table_30133_1 (current_account_balance__percent_of_gdp_ VARCHAR, gdp_at_current_prices__usd_billions_ VARCHAR)
SELECT SUM(seats_2001) FROM table_name_7 WHERE seats_2006 = 2 AND _percentage_2001 > 7.6
There are communities listed that a percentage larger than 7.6 in 2001, but none of them has 2 seats listed in 2006.
CREATE TABLE table_name_7 (seats_2001 INTEGER, seats_2006 VARCHAR, _percentage_2001 VARCHAR)
SELECT SUM(draws) FROM table_name_67 WHERE against = 1731 AND losses < 10
What is the sum of draws for teams with against of 1731 and under 10 losses?
CREATE TABLE table_name_67 (draws INTEGER, against VARCHAR, losses VARCHAR)
SELECT MAX(mir_hossein_mousavi) FROM table_23390604_1 WHERE province = "Azarbaijan, West"
What was the highest score of candidate mir-hossein mousavi in the location known as azarbaijan, west?
CREATE TABLE table_23390604_1 (mir_hossein_mousavi INTEGER, province VARCHAR)
SELECT opponent FROM table_name_69 WHERE championship = "pétange"
What is Opponent, when Championship is Pétange?
CREATE TABLE table_name_69 (opponent VARCHAR, championship VARCHAR)
SELECT rank FROM table_name_30 WHERE 2010 = "5,040,000"
What was the rank of the park that had a value of 5,040,000 in 2010?
CREATE TABLE table_name_30 (rank VARCHAR)
SELECT spanish FROM table_name_83 WHERE english = "garden"
what is the spanish word for garden
CREATE TABLE table_name_83 (spanish VARCHAR, english VARCHAR)
SELECT opponent FROM table_name_26 WHERE save = "|| 36,388 ||15-7||"
Who was the Opponent when the Save was || 36,388 ||15-7||?
CREATE TABLE table_name_26 (opponent VARCHAR, save VARCHAR)
SELECT MAX(diameter__km_) FROM table_name_52 WHERE longitude = "152.5e" AND year_named < 1997
What is the Diameter (km) of the Valle with a Longitude of 152.5e named before 1997?
CREATE TABLE table_name_52 (diameter__km_ INTEGER, longitude VARCHAR, year_named VARCHAR)
SELECT to_par FROM table_name_93 WHERE country = "england" AND place = "t1"
What is the to par of the player from England with a t1 place?
CREATE TABLE table_name_93 (to_par VARCHAR, country VARCHAR, place VARCHAR)
SELECT body_styles FROM table_name_4 WHERE model = "6/75"
What body styles have 6/75 as the model?
CREATE TABLE table_name_4 (body_styles VARCHAR, model VARCHAR)
SELECT current_west_end_cast FROM table_19529639_3 WHERE original_west_end_cast = "Jodie Jacobs"
What member of the current West End cast plays the character played by Jodie Jacobs in the original West End cast?
CREATE TABLE table_19529639_3 (current_west_end_cast VARCHAR, original_west_end_cast VARCHAR)
SELECT MIN(silver) FROM table_name_83 WHERE bronze < 0
What is the least amount of silver when there is less than 0 bronze?
CREATE TABLE table_name_83 (silver INTEGER, bronze INTEGER)
SELECT venue FROM table_name_89 WHERE year > 2003 AND tournament = "hypo-meeting"
What is Venue, when Year is after 2003, and when Tournament is "Hypo-Meeting"?
CREATE TABLE table_name_89 (venue VARCHAR, year VARCHAR, tournament VARCHAR)
SELECT location FROM table_1602620_1 WHERE term_ended = "December 2, 1976"
What is the location for the office whose term ended December 2, 1976
CREATE TABLE table_1602620_1 (location VARCHAR, term_ended VARCHAR)
SELECT MAX(attendance) FROM table_name_99 WHERE venue = "td banknorth garden" AND series = "montreal leads 3-1"
Name the most that attendend when the venue was td banknorth garden and the series of montreal leads 3-1
CREATE TABLE table_name_99 (attendance INTEGER, venue VARCHAR, series VARCHAR)
SELECT nader_percentage FROM table_20573232_1 WHERE obama_percentage = "44.6%"
What is Nader's percentage when Obama is 44.6%?
CREATE TABLE table_20573232_1 (nader_percentage VARCHAR, obama_percentage VARCHAR)
SELECT elector FROM table_name_86 WHERE cardinalatial_title = "deacon of ss. cosma e damiano"
Who is the elector that has the cardinalatial title of Deacon of SS. Cosma e Damiano?
CREATE TABLE table_name_86 (elector VARCHAR, cardinalatial_title VARCHAR)
SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = "White" GROUP BY T2.Winery ORDER BY COUNT(*) DESC LIMIT 3
Find the top 3 wineries with the greatest number of wines made of white color grapes.
CREATE TABLE GRAPES (GRAPE VARCHAR, Color VARCHAR); CREATE TABLE WINE (Winery VARCHAR, GRAPE VARCHAR)
SELECT pick FROM table_name_42 WHERE player = "mark hayes"
What was the pick number when mark hayes was drafted?
CREATE TABLE table_name_42 (pick VARCHAR, player VARCHAR)
SELECT safari FROM table_name_70 WHERE internet_explorer = "28.0%"
What is the safari value with a 28.0% internet explorer?
CREATE TABLE table_name_70 (safari VARCHAR, internet_explorer VARCHAR)
SELECT MAX(area__acres__) FROM table_30121082_1 WHERE poor_law_union = "Skibbereen" AND civil_parish = "Tullagh"
What is the greatest area when the Poor Law Union is Skibbereen and the Civil Parish is Tullagh?
CREATE TABLE table_30121082_1 (area__acres__ INTEGER, poor_law_union VARCHAR, civil_parish VARCHAR)
SELECT club FROM table_name_46 WHERE year = 2012 AND order = "15th"
What was the 15th club in 2012?
CREATE TABLE table_name_46 (club VARCHAR, year VARCHAR, order VARCHAR)
SELECT class_aAA FROM table_name_58 WHERE class_aAAAA = duncanville AND school_year = "1993-94"
What is the class AAA of the 1993-94 school year with a class AAAAA of Duncanville?
CREATE TABLE table_name_58 (class_aAA VARCHAR, class_aAAAA VARCHAR, duncanville VARCHAR, school_year VARCHAR)
SELECT COUNT(position) FROM table_25369796_1 WHERE points = "56"
How many team position scored 56 points?
CREATE TABLE table_25369796_1 (position VARCHAR, points VARCHAR)
SELECT SUM(earnings__) AS $__ FROM table_name_63 WHERE rank < 1
Tell me the sum of earnings for rank less than 1
CREATE TABLE table_name_63 (earnings__ INTEGER, rank INTEGER)
SELECT MIN(year) FROM table_18106841_1 WHERE winners__percentage_votes = "55.99%"
What year was the winners vote 55.99%?
CREATE TABLE table_18106841_1 (year INTEGER, winners__percentage_votes VARCHAR)
SELECT license FROM table_25474825_1 WHERE description = "Tool for designing and executing workflows"
What is the license that is described as a tool for designing and executing workflows?
CREATE TABLE table_25474825_1 (license VARCHAR, description VARCHAR)
SELECT home FROM table_name_3 WHERE plyff = "(0-0)" AND opponent = "la crosse spartans"
Which home team has a playoff record of (0-0) and played La Crosse Spartans?
CREATE TABLE table_name_3 (home VARCHAR, plyff VARCHAR, opponent VARCHAR)
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= "2009-01-01" AND T2.date_order_placed <= "2010-01-01"
Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01.
CREATE TABLE orders (customer_id VARCHAR, date_order_placed VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
SELECT manufacturer FROM table_name_82 WHERE quantity_made = "6" AND quantity_preserved = "1"
What manufacturer made 6 and preserved 1?
CREATE TABLE table_name_82 (manufacturer VARCHAR, quantity_made VARCHAR, quantity_preserved VARCHAR)
SELECT incumbent FROM table_13833770_3 WHERE opponent = "Anthony Weiner (D) unopposed"
who is the the incumbent with opponent being anthony weiner (d) unopposed
CREATE TABLE table_13833770_3 (incumbent VARCHAR, opponent VARCHAR)
SELECT COUNT(week) FROM table_name_79 WHERE date = "dec. 19"
What was the week number when they played on Dec. 19?
CREATE TABLE table_name_79 (week VARCHAR, date VARCHAR)
SELECT authority FROM table_name_54 WHERE decile = 6 AND area = "levin" AND roll = 226
What authority controls the school in Levin that has a decile of 6, and a roll of 226?
CREATE TABLE table_name_54 (authority VARCHAR, roll VARCHAR, decile VARCHAR, area VARCHAR)
SELECT record FROM table_23248940_7 WHERE date = "December 8"
Name the record for december 8
CREATE TABLE table_23248940_7 (record VARCHAR, date VARCHAR)
SELECT year FROM table_name_99 WHERE publication = "pazz & jop"
Which year had a publication of Pazz & Jop?
CREATE TABLE table_name_99 (year VARCHAR, publication VARCHAR)
SELECT position FROM table_26533354_8 WHERE player = "Stanley Havili"
Name the position for stanley havili
CREATE TABLE table_26533354_8 (position VARCHAR, player VARCHAR)
SELECT score FROM table_name_99 WHERE home = "deportes savio"
What is the Score when Deportes Savio is the Home team?
CREATE TABLE table_name_99 (score VARCHAR, home VARCHAR)
SELECT release AS date FROM table_28540539_2 WHERE release = "1.1.10"
What's the release date in the 1.1.10 release?
CREATE TABLE table_28540539_2 (release VARCHAR)
SELECT territory FROM table_name_91 WHERE screens = 17
What is the territory with 17 screens?
CREATE TABLE table_name_91 (territory VARCHAR, screens VARCHAR)
SELECT AVG(bronze) FROM table_name_23 WHERE total = 7 AND silver > 1
What is the average Bronze, when Total is 7, and when Silver is greater than 1?
CREATE TABLE table_name_23 (bronze INTEGER, total VARCHAR, silver VARCHAR)
SELECT bronze FROM table_name_90 WHERE location = "hiroshima"
Who won the bronze medal in Hiroshima?
CREATE TABLE table_name_90 (bronze VARCHAR, location VARCHAR)
SELECT year_s__won FROM table_name_50 WHERE to_par < 12 AND player = "john daly"
Which Year(s) won has a To par smaller than 12, and a Player of john daly?
CREATE TABLE table_name_50 (year_s__won VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT record FROM table_name_53 WHERE march = 12
which Record is on March of 12
CREATE TABLE table_name_53 (record VARCHAR, march VARCHAR)
SELECT COUNT(age) FROM table_22265261_1 WHERE sp = "200/1"
How old was the horse when the SP was 200/1?
CREATE TABLE table_22265261_1 (age VARCHAR, sp VARCHAR)
SELECT record FROM table_name_26 WHERE week = "9"
What was the record at week 9?
CREATE TABLE table_name_26 (record VARCHAR, week VARCHAR)
SELECT MIN(number_of_dances) FROM table_name_93 WHERE rank_by_average > 4 AND place = 8
What is the lowest number of dances with a rank larger than 4 and a place of 8?
CREATE TABLE table_name_93 (number_of_dances INTEGER, rank_by_average VARCHAR, place VARCHAR)
SELECT power_provided FROM table_174151_5 WHERE transfer_speed__mb_s_ = "1250"
Name the power provided for transfer speed mb/s is 1250
CREATE TABLE table_174151_5 (power_provided VARCHAR, transfer_speed__mb_s_ VARCHAR)
SELECT 1990 FROM table_name_45 WHERE 1989 = "a" AND 1985 = "a" AND 1993 = "a"
What is the value in 1990 when it is A in 1989, 1985, and 1993?
CREATE TABLE table_name_45 (Id VARCHAR)
SELECT d_44_√ FROM table_name_32 WHERE d_46_√ = "r 26"
What is the D 44 √ when the D 46 √ is r 26?
CREATE TABLE table_name_32 (d_44_√ VARCHAR, d_46_√ VARCHAR)
SELECT english_translation FROM table_name_73 WHERE traditional_chinese = "哀郢"
What is the english translation of the traditional Chinese word, 哀郢?
CREATE TABLE table_name_73 (english_translation VARCHAR, traditional_chinese VARCHAR)
SELECT notes FROM table_name_9 WHERE rank < 3 AND stadium = "yuvileiny stadium (sumy)"
What are the notes with a less than 3 rank at Yuvileiny Stadium (sumy)?
CREATE TABLE table_name_9 (notes VARCHAR, rank VARCHAR, stadium VARCHAR)
SELECT MIN(total) FROM table_name_24 WHERE year_s__won = "1964"
What is the total medals in 1964?
CREATE TABLE table_name_24 (total INTEGER, year_s__won VARCHAR)
SELECT MAX(points) FROM table_name_92 WHERE team = "vitória" AND played > 38
What is the highest number of points team vitória, which had more than 38 played, had?
CREATE TABLE table_name_92 (points INTEGER, team VARCHAR, played VARCHAR)
SELECT SUM(conceded) FROM table_name_39 WHERE draws < 5 AND position > 6
Which Conceded has Draws smaller than 5, and a Position larger than 6?
CREATE TABLE table_name_39 (conceded INTEGER, draws VARCHAR, position VARCHAR)
SELECT COUNT(*) FROM phone WHERE Company_name = "Nokia Corporation"
How many phone hardware models are produced by the company named "Nokia Corporation"?
CREATE TABLE phone (Company_name VARCHAR)
SELECT away_team FROM table_name_51 WHERE venue = "princes park"
What was the away team that played at Princes Park?
CREATE TABLE table_name_51 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(year) FROM table_name_87 WHERE points > 0
What is the total number of years that an entrant had more than 0 points?
CREATE TABLE table_name_87 (year VARCHAR, points INTEGER)
SELECT COUNT(*) FROM Projects
Show the number of projects.
CREATE TABLE Projects (Id VARCHAR)
SELECT country FROM table_name_23 WHERE builder = "karljohansverns verft" AND ship = "brage"
What country was Brage, built by karljohansverns verft, from?
CREATE TABLE table_name_23 (country VARCHAR, builder VARCHAR, ship VARCHAR)
SELECT episode FROM table_name_10 WHERE nominee_s_ = "gary murphy and neil thompson" AND year = 2003
Which episode in year 2003 that have Gary Murphy and Neil Thompson?
CREATE TABLE table_name_10 (episode VARCHAR, nominee_s_ VARCHAR, year VARCHAR)
SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo
Show student ids who don't have any sports.
CREATE TABLE Sportsinfo (StuID VARCHAR); CREATE TABLE Student (StuID VARCHAR)
SELECT COUNT(DISTINCT professional_id) FROM Treatments
How many professionals have performed any treatment to dogs?
CREATE TABLE Treatments (professional_id VARCHAR)
SELECT pick__number FROM table_name_70 WHERE name = "bill athey"
What number pick was Bill Athey?
CREATE TABLE table_name_70 (pick__number VARCHAR, name VARCHAR)
SELECT country FROM table_name_77 WHERE player = "billy maxwell"
What is Country, when Player is "Billy Maxwell"?
CREATE TABLE table_name_77 (country VARCHAR, player VARCHAR)
SELECT COUNT(round) FROM table_name_60 WHERE name = "ron hansen" AND overall > 332
What is the number of the round in which Ron Hansen was drafted and the overall is greater than 332?
CREATE TABLE table_name_60 (round VARCHAR, name VARCHAR, overall VARCHAR)
SELECT segment_c FROM table_15187735_19 WHERE segment_b = "Film Digitization"
What is the segment C of the episode where segment B is Film Digitization?
CREATE TABLE table_15187735_19 (segment_c VARCHAR, segment_b VARCHAR)
SELECT website FROM table_name_53 WHERE ages = "8-16" AND locality = "cheadle"
What is the Website of the Cheadle School for Ages 8-16?
CREATE TABLE table_name_53 (website VARCHAR, ages VARCHAR, locality VARCHAR)
SELECT MIN(lost) FROM table_19179465_1 WHERE points = 34
How many games were lost when the club got 34 points
CREATE TABLE table_19179465_1 (lost INTEGER, points VARCHAR)
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "2192"
Find the distinct last names of all the students who have president votes and whose advisor is not 2192.
CREATE TABLE STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR)
SELECT MIN(date) FROM table_name_23 WHERE region = "korea" AND format = "cd"
WHAT IS THE LOWEST DATE FOR KOREA, IN CD FORMAT?
CREATE TABLE table_name_23 (date INTEGER, region VARCHAR, format VARCHAR)
SELECT AVG(league_goals) FROM table_name_26 WHERE fa_cup_goals < 0
What is the average number of League Goals for palyers with 0 FA Cup Goals?
CREATE TABLE table_name_26 (league_goals INTEGER, fa_cup_goals INTEGER)
SELECT class FROM table_name_20 WHERE city_of_license = "richmond, virginia"
Which class has a city of Richmond, Virginia?
CREATE TABLE table_name_20 (class VARCHAR, city_of_license VARCHAR)
SELECT film FROM table_name_68 WHERE role = "taylor"
Which film has a role named Taylor?
CREATE TABLE table_name_68 (film VARCHAR, role VARCHAR)
SELECT AVG(gold) FROM table_name_82 WHERE bronze = 5
What is the average number of Gold medals when there are 5 bronze medals?
CREATE TABLE table_name_82 (gold INTEGER, bronze VARCHAR)
SELECT location FROM table_18461635_1 WHERE county = "Sussex"
Where is the team in Sussex county located?
CREATE TABLE table_18461635_1 (location VARCHAR, county VARCHAR)
SELECT date FROM table_name_39 WHERE score = "1-0"
What day was the score 1-0?
CREATE TABLE table_name_39 (date VARCHAR, score VARCHAR)
SELECT example_meaning_in_english FROM table_name_49 WHERE standard_thai = "ผ่า"
What example in English has a Standard Thai of ผ่า?
CREATE TABLE table_name_49 (example_meaning_in_english VARCHAR, standard_thai VARCHAR)
SELECT party FROM table_1341884_45 WHERE district = "Texas 12"
what is the political affiliation of the texas 12 district
CREATE TABLE table_1341884_45 (party VARCHAR, district VARCHAR)
SELECT AVG(draws) FROM table_name_9 WHERE losses > 8 AND against < 1344
What is the average number of draws for losses over 8 and Against values under 1344?
CREATE TABLE table_name_9 (draws INTEGER, losses VARCHAR, against VARCHAR)
SELECT arranger_s_ FROM table_name_8 WHERE lyricist_s_ = "sirapatara kalayapanid"
Who was the arranger for the song that had a lyricist of Sirapatara Kalayapanid?
CREATE TABLE table_name_8 (arranger_s_ VARCHAR, lyricist_s_ VARCHAR)
SELECT hanja FROM table_name_78 WHERE province = "sakju"
What is the Hanja for the sakju province?
CREATE TABLE table_name_78 (hanja VARCHAR, province VARCHAR)
SELECT language_rebroadcast FROM table_name_30 WHERE branding = "cbc radio one"
what is the language/rebroadcast for cbc radio one?
CREATE TABLE table_name_30 (language_rebroadcast VARCHAR, branding VARCHAR)
SELECT COUNT(title) FROM table_26493520_1 WHERE written_by = "Alexander Woo" AND directed_by = "Scott Winant"
How many episodes were written by Alexander Woo and directed by Scott Winant?
CREATE TABLE table_26493520_1 (title VARCHAR, written_by VARCHAR, directed_by VARCHAR)
SELECT nation FROM table_name_22 WHERE team = "discovery channel"
What nation is the cyclist from team discovery channel?
CREATE TABLE table_name_22 (nation VARCHAR, team VARCHAR)
SELECT date FROM table_name_58 WHERE score = "106–112"
Which Date has a Score of 106–112?
CREATE TABLE table_name_58 (date VARCHAR, score VARCHAR)
SELECT candidates FROM table_1342149_13 WHERE incumbent = "Fred E. Busbey"
What is the candidates for fred e. busbey?
CREATE TABLE table_1342149_13 (candidates VARCHAR, incumbent VARCHAR)
SELECT points_classification FROM table_22464308_2 WHERE stage = 4
Which points classification has 4 as the stage?
CREATE TABLE table_22464308_2 (points_classification VARCHAR, stage VARCHAR)
SELECT points_difference FROM table_name_20 WHERE points_against = "786"
Which Points difference has Points against of 786?
CREATE TABLE table_name_20 (points_difference VARCHAR, points_against VARCHAR)
SELECT maidens FROM table_15700367_2 WHERE overs_bowled = "13"
Name the maaidens where overs bowled is 13
CREATE TABLE table_15700367_2 (maidens VARCHAR, overs_bowled VARCHAR)
SELECT record FROM table_name_14 WHERE date = "april 6"
What is the record after the April 6 game?
CREATE TABLE table_name_14 (record VARCHAR, date VARCHAR)
SELECT runners FROM table_name_88 WHERE course = "longchamp"
Name the runners for longchamp
CREATE TABLE table_name_88 (runners VARCHAR, course VARCHAR)
SELECT Box AS score FROM table_name_3 WHERE home_team = "melbourne tigers"
what is the box score when the home team is melbourne tigers?
CREATE TABLE table_name_3 (Box VARCHAR, home_team VARCHAR)
SELECT high_assists FROM table_name_21 WHERE date = "november 24"
WHAT IS THE HIGH ASSISTS ON NOVEMBER 24?
CREATE TABLE table_name_21 (high_assists VARCHAR, date VARCHAR)
SELECT manufacturer FROM table_name_13 WHERE grid = "14"
What is the manufacturer with a 14 grid?
CREATE TABLE table_name_13 (manufacturer VARCHAR, grid VARCHAR)
SELECT MAX(crowd) FROM table_name_67 WHERE away_team = "collingwood"
What was the largest crowd when Collingwood was the away team?
CREATE TABLE table_name_67 (crowd INTEGER, away_team VARCHAR)
SELECT town FROM table_14015965_1 WHERE arena__capacity_ = "Volleyball Sportiv Complex (3 500)"
What town is Volleyball Sportiv Complex (3 500) located in?
CREATE TABLE table_14015965_1 (town VARCHAR, arena__capacity_ VARCHAR)
SELECT facility FROM table_25346763_1 WHERE year_opened = "1954"
What facility opening in 1954?
CREATE TABLE table_25346763_1 (facility VARCHAR, year_opened VARCHAR)
SELECT second_vice_president FROM table_name_49 WHERE inaugurated = "15 march 1935"
What is Second Vice President, when Inaugurated is "15 March 1935"?
CREATE TABLE table_name_49 (second_vice_president VARCHAR, inaugurated VARCHAR)
SELECT founded FROM table_name_95 WHERE suburb = "beaudesert"
What year was the Beaudesert suburb club founded
CREATE TABLE table_name_95 (founded VARCHAR, suburb VARCHAR)