question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the current account balance for an export volume of goods and service value of -4.2?
CREATE TABLE table_30133_1 (current_account_balance__percent_of_gdp_ VARCHAR, export_volume_of_goods_and_services__percent_change_ VARCHAR)
SELECT current_account_balance__percent_of_gdp_ FROM table_30133_1 WHERE export_volume_of_goods_and_services__percent_change_ = "-4.2"
What is the ICAO when the IATA is ist?
CREATE TABLE table_name_34 (icao VARCHAR, iata VARCHAR)
SELECT icao FROM table_name_34 WHERE iata = "ist"
Name the most number for 74 runs margins
CREATE TABLE table_1594772_2 (s_no INTEGER, margin VARCHAR)
SELECT MAX(s_no) FROM table_1594772_2 WHERE margin = "74 runs"
what's the trim with fuel mileage (latest epa mpg - us ) being 22 city, 30 hwy, 25 comb
CREATE TABLE table_1373768_1 (trim VARCHAR, fuel_mileage__latest_epa_mpg___us__ VARCHAR)
SELECT trim FROM table_1373768_1 WHERE fuel_mileage__latest_epa_mpg___us__ = "22 city, 30 hwy, 25 comb"
How many bronze medals were won when the total was larger than 2 and the more than 2 gold medals were won?
CREATE TABLE table_name_70 (bronze INTEGER, total VARCHAR, gold VARCHAR)
SELECT SUM(bronze) FROM table_name_70 WHERE total > 2 AND gold > 2
Name the player name with matches of 51
CREATE TABLE table_name_23 (player_name VARCHAR, matches VARCHAR)
SELECT player_name FROM table_name_23 WHERE matches = "51"
Name the attendance for time of 1:31
CREATE TABLE table_name_21 (attendance VARCHAR, time VARCHAR)
SELECT attendance FROM table_name_21 WHERE time = "1:31"
What is stumped when inning is 143?
CREATE TABLE table_24039597_26 (stumped VARCHAR, innings VARCHAR)
SELECT stumped FROM table_24039597_26 WHERE innings = 143
How much Overall has a Pick # smaller than 20, and a Round smaller than 6?
CREATE TABLE table_name_13 (overall INTEGER, pick__number VARCHAR, round VARCHAR)
SELECT SUM(overall) FROM table_name_13 WHERE pick__number < 20 AND round < 6
What is the name of the swimmer from Australia in lane 4 with a heat larger than 4?
CREATE TABLE table_name_16 (name VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR)
SELECT name FROM table_name_16 WHERE heat > 4 AND lane = 4 AND nationality = "australia"
What is the highest to par for the 76-70-76-76=298 score?
CREATE TABLE table_name_96 (to_par INTEGER, score VARCHAR)
SELECT MAX(to_par) FROM table_name_96 WHERE score = 76 - 70 - 76 - 76 = 298
Which Completions has Attempts of 1,271?
CREATE TABLE table_name_89 (completions VARCHAR, attempts VARCHAR)
SELECT completions FROM table_name_89 WHERE attempts = "1,271"
Show the ids of all employees who don't destroy any document.
CREATE TABLE Employees (employee_id VARCHAR, Destroyed_by_Employee_ID VARCHAR); CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destroyed_by_Employee_ID VARCHAR)
SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed
João Barbosa was the winner of which event?
CREATE TABLE table_name_93 (event VARCHAR, winner VARCHAR)
SELECT event FROM table_name_93 WHERE winner = "joão barbosa"
What is the average number of rounds for billy hicks who had an overall pick number bigger than 310?
CREATE TABLE table_name_1 (round INTEGER, overall VARCHAR, name VARCHAR)
SELECT AVG(round) FROM table_name_1 WHERE overall > 310 AND name = "billy hicks"
What is the percentage who speak Russian?
CREATE TABLE table_name_73 (percentage___percentage_ VARCHAR, language VARCHAR)
SELECT percentage___percentage_ FROM table_name_73 WHERE language = "russian"
What's the loss for September 16?
CREATE TABLE table_name_62 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_62 WHERE date = "september 16"
how many won 83 points for?
CREATE TABLE table_20396710_1 (won VARCHAR, points_for VARCHAR)
SELECT won FROM table_20396710_1 WHERE points_for = "83"
Which country has the Narita International Airport?
CREATE TABLE table_name_20 (country VARCHAR, airport VARCHAR)
SELECT country FROM table_name_20 WHERE airport = "narita international airport"
What is the time of the rider ranked 6?
CREATE TABLE table_name_76 (time VARCHAR, rank VARCHAR)
SELECT time FROM table_name_76 WHERE rank = 6
What series had more than 10 Podiums?
CREATE TABLE table_name_73 (series VARCHAR, podiums INTEGER)
SELECT series FROM table_name_73 WHERE podiums > 10
Which Player has an Opposition of clare?
CREATE TABLE table_name_11 (player VARCHAR, opposition VARCHAR)
SELECT player FROM table_name_11 WHERE opposition = "clare"
What was the score for Team 1 of Stade Lavallois (d1)?
CREATE TABLE table_name_7 (score VARCHAR, team_1 VARCHAR)
SELECT score FROM table_name_7 WHERE team_1 = "stade lavallois (d1)"
Find the average and maximum age for each type of pet.
CREATE TABLE pets (pettype VARCHAR, pet_age INTEGER)
SELECT AVG(pet_age), MAX(pet_age), pettype FROM pets GROUP BY pettype
Name the population % of eu for greece
CREATE TABLE table_1606824_1 (population__percentage_of_eu VARCHAR, member_state VARCHAR)
SELECT population__percentage_of_eu FROM table_1606824_1 WHERE member_state = "Greece"
What was the date of a game that had the odds of q rook?
CREATE TABLE table_name_33 (date INTEGER, odds VARCHAR)
SELECT AVG(date) FROM table_name_33 WHERE odds = "q rook"
What is the average number of laps with a dnf pos.?
CREATE TABLE table_name_6 (laps INTEGER, pos VARCHAR)
SELECT AVG(laps) FROM table_name_6 WHERE pos = "dnf"
Show all party names and their region names.
CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE party (party_name VARCHAR, region_id VARCHAR)
SELECT T1.party_name, T2.region_name FROM party AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id
What's the Score listed that has a Result of 1-0?
CREATE TABLE table_name_70 (score VARCHAR, result VARCHAR)
SELECT score FROM table_name_70 WHERE result = "1-0"
Which group has the RNCS formula?
CREATE TABLE table_name_66 (group VARCHAR, formula VARCHAR)
SELECT group FROM table_name_66 WHERE formula = "rncs"
what's the loss with points for being 594
CREATE TABLE table_12828723_3 (lost VARCHAR, points_for VARCHAR)
SELECT lost FROM table_12828723_3 WHERE points_for = "594"
When is Biddle's DOB?
CREATE TABLE table_name_5 (dob VARCHAR, surname VARCHAR)
SELECT dob FROM table_name_5 WHERE surname = "biddle"
How many copies were sold where the position is lager than 1 in 1988?
CREATE TABLE table_name_85 (copies_sold VARCHAR, oricon_position VARCHAR, year VARCHAR)
SELECT copies_sold FROM table_name_85 WHERE oricon_position > 1 AND year = 1988
What is the number of the truck that has the crew chief Billy Wilburn?
CREATE TABLE table_19908313_2 (_number INTEGER, crew_chief VARCHAR)
SELECT MAX(_number) FROM table_19908313_2 WHERE crew_chief = "Billy Wilburn"
Which manufacturer has more than 28 laps and less than 9 grids with jeremy mcwilliams?
CREATE TABLE table_name_53 (manufacturer VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT manufacturer FROM table_name_53 WHERE laps < 28 AND grid < 9 AND rider = "jeremy mcwilliams"
What is Record, when Location Attendance is "Pepsi Center 19,749"?
CREATE TABLE table_name_97 (record VARCHAR, location_attendance VARCHAR)
SELECT record FROM table_name_97 WHERE location_attendance = "pepsi center 19,749"
Where did Essendon play as the home team?
CREATE TABLE table_name_93 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_93 WHERE home_team = "essendon"
What is the average number of podiums in the 32nd position with less than 0 wins?
CREATE TABLE table_name_64 (podiums INTEGER, position VARCHAR, wins VARCHAR)
SELECT AVG(podiums) FROM table_name_64 WHERE position = "32nd" AND wins < 0
How big is the Venue of Brunswick Street Oval?
CREATE TABLE table_name_47 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_47 WHERE venue = "brunswick street oval"
What is the record of game 33?
CREATE TABLE table_name_97 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_97 WHERE game = 33
What is the entrant in 1999?
CREATE TABLE table_name_64 (entrant VARCHAR, year VARCHAR)
SELECT entrant FROM table_name_64 WHERE year = 1999
Show the name, average attendance, total attendance for stadiums where no accidents happened.
CREATE TABLE stadium (name VARCHAR, average_attendance VARCHAR, total_attendance VARCHAR, id VARCHAR); CREATE TABLE stadium (name VARCHAR, average_attendance VARCHAR, total_attendance VARCHAR); CREATE TABLE game (stadium_id VARCHAR, id VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR)
SELECT name, average_attendance, total_attendance FROM stadium EXCEPT SELECT T2.name, T2.average_attendance, T2.total_attendance FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id
What is the total number of Wins when 98 is the rank and the scoring average is more than 73.52?
CREATE TABLE table_name_54 (wins VARCHAR, rank VARCHAR, scoring_average VARCHAR)
SELECT COUNT(wins) FROM table_name_54 WHERE rank = "98" AND scoring_average > 73.52
What were the US Open's final scores?
CREATE TABLE table_22597626_1 (score_in_the_final VARCHAR, championship VARCHAR)
SELECT score_in_the_final FROM table_22597626_1 WHERE championship = "US Open"
What is the verb for the Proto-Polynesian word *mohe?
CREATE TABLE table_name_43 (verb VARCHAR, proto_polynesian VARCHAR)
SELECT verb FROM table_name_43 WHERE proto_polynesian = "*mohe"
Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name.
CREATE TABLE Engineer_Visits (engineer_id VARCHAR); CREATE TABLE Maintenance_Engineers (engineer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT T1.engineer_id, T1.first_name, T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id = T2.engineer_id GROUP BY T1.engineer_id ORDER BY COUNT(*) LIMIT 1
How many golds were there in a game that has 17 bronze and a total of 31?
CREATE TABLE table_name_8 (gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT gold FROM table_name_8 WHERE bronze = "17" AND total = "31"
Name the langauge for switzerland
CREATE TABLE table_name_96 (language VARCHAR, country VARCHAR)
SELECT language FROM table_name_96 WHERE country = "switzerland"
Who are the top 3 players in terms of overall rating?
CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (player_api_id VARCHAR)
SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY overall_rating DESC LIMIT 3
During round 8 when the Position being picked was rb, what was the highest overall pick?
CREATE TABLE table_name_62 (overall INTEGER, position VARCHAR, round VARCHAR)
SELECT MAX(overall) FROM table_name_62 WHERE position = "rb" AND round = 8
What position did the draft pick number play that was overall pick number 133?
CREATE TABLE table_name_20 (position VARCHAR, overall VARCHAR)
SELECT position FROM table_name_20 WHERE overall = 133
What is Website, when License is Apache License 2.0?
CREATE TABLE table_name_55 (website VARCHAR, license VARCHAR)
SELECT website FROM table_name_55 WHERE license = "apache license 2.0"
How many points where scored by the right end?
CREATE TABLE table_14342210_12 (points VARCHAR, position VARCHAR)
SELECT COUNT(points) FROM table_14342210_12 WHERE position = "Right end"
What is the name of the location of the game with a Result of 21–16?
CREATE TABLE table_name_26 (location VARCHAR, result VARCHAR)
SELECT location FROM table_name_26 WHERE result = "21–16"
What Circuit has a Date of 25 july?
CREATE TABLE table_name_55 (circuit VARCHAR, date VARCHAR)
SELECT circuit FROM table_name_55 WHERE date = "25 july"
Name the date for 17-32
CREATE TABLE table_23274514_7 (date VARCHAR, record VARCHAR)
SELECT date FROM table_23274514_7 WHERE record = "17-32"
What is the Nationality of the Aracataca Ship?
CREATE TABLE table_name_17 (nationality VARCHAR, ship VARCHAR)
SELECT nationality FROM table_name_17 WHERE ship = "aracataca"
when the area (km²) is 22721, what is the pop./ km²?
CREATE TABLE table_2252745_1 (pop__km² VARCHAR, area__km²_ VARCHAR)
SELECT pop__km² FROM table_2252745_1 WHERE area__km²_ = 22721
What team was the loser when the result was 119–113?
CREATE TABLE table_name_83 (loser VARCHAR, result VARCHAR)
SELECT loser FROM table_name_83 WHERE result = "119–113"
What was the Nominated Work earlier than 2003?
CREATE TABLE table_name_95 (nominated_work VARCHAR, year INTEGER)
SELECT nominated_work FROM table_name_95 WHERE year < 2003
What opponent got 44 points in their game?
CREATE TABLE table_23243769_4 (opponent VARCHAR, opp_points VARCHAR)
SELECT opponent FROM table_23243769_4 WHERE opp_points = 44
What CCM Chart had 18 total weeks?
CREATE TABLE table_name_94 (ccm_chart VARCHAR, total_wks VARCHAR)
SELECT ccm_chart FROM table_name_94 WHERE total_wks = 18
Where was the competition with a qualifying score of 58.425?
CREATE TABLE table_25143284_1 (location VARCHAR, score_qualifying VARCHAR)
SELECT location FROM table_25143284_1 WHERE score_qualifying = "58.425"
What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–12?
CREATE TABLE table_name_92 (set_1 VARCHAR, score VARCHAR, set_3 VARCHAR)
SELECT set_1 FROM table_name_92 WHERE score = "3–0" AND set_3 = "15–12"
What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30?
CREATE TABLE table_name_27 (aug_2013 INTEGER, jun_2011 VARCHAR, nov_2011 VARCHAR, jul_2012 VARCHAR)
SELECT MAX(aug_2013) FROM table_name_27 WHERE nov_2011 < 968 AND jul_2012 = 31 AND jun_2011 > 30
Show institution names along with the number of proteins for each institution.
CREATE TABLE institution (institution VARCHAR, institution_id VARCHAR); CREATE TABLE protein (institution_id VARCHAR)
SELECT T1.institution, COUNT(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id GROUP BY T1.institution_id
What Winning constructor has a Circuit of lasarte?
CREATE TABLE table_name_82 (winning_constructor VARCHAR, circuit VARCHAR)
SELECT winning_constructor FROM table_name_82 WHERE circuit = "lasarte"
Which home team has more than 19,000 spectators?
CREATE TABLE table_name_73 (home_team VARCHAR, crowd INTEGER)
SELECT home_team FROM table_name_73 WHERE crowd > 19 OFFSET 000
Name the class for schliefen
CREATE TABLE table_1745843_9 (class VARCHAR, part_3 VARCHAR)
SELECT class FROM table_1745843_9 WHERE part_3 = "schliefen"
Which record has a score of l 121–127?
CREATE TABLE table_name_93 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_93 WHERE score = "l 121–127"
When danilo di luca is the winner who is the general classification?
CREATE TABLE table_18733814_2 (general_classification VARCHAR, winner VARCHAR)
SELECT general_classification FROM table_18733814_2 WHERE winner = "Danilo Di Luca"
Which country's material was concrete when the span metres were less than 270, span feet is more than 837, and the year opened was 1943?
CREATE TABLE table_name_36 (country VARCHAR, year_opened VARCHAR, span_feet VARCHAR, material VARCHAR, span_metres VARCHAR)
SELECT country FROM table_name_36 WHERE material = "concrete" AND span_metres < 270 AND span_feet > 837 AND year_opened = "1943"
How many results have a game of 5?
CREATE TABLE table_21091127_1 (result VARCHAR, game VARCHAR)
SELECT COUNT(result) FROM table_21091127_1 WHERE game = 5
What was the time for a round less than 3?
CREATE TABLE table_name_35 (time VARCHAR, round INTEGER)
SELECT time FROM table_name_35 WHERE round < 3
What was the amount of loans received with a total debt of $169,256?
CREATE TABLE table_name_24 (loans_received VARCHAR, _3q VARCHAR, total_debt VARCHAR)
SELECT loans_received, _3q FROM table_name_24 WHERE total_debt = "$169,256"
What was the max when they score 2200?
CREATE TABLE table_20855452_4 (new_points INTEGER, points VARCHAR)
SELECT MAX(new_points) FROM table_20855452_4 WHERE points = 2200
How many points does Draw 5 have?
CREATE TABLE table_name_67 (points VARCHAR, draw VARCHAR)
SELECT points FROM table_name_67 WHERE draw = 5
What is the most goals made for a person with less than 208 matches and ranked lower than 12?
CREATE TABLE table_name_94 (goals INTEGER, matches VARCHAR, rank VARCHAR)
SELECT MAX(goals) FROM table_name_94 WHERE matches < 208 AND rank > 12
When did Kim Thompson win with 278 score?
CREATE TABLE table_name_87 (year INTEGER, score VARCHAR, champion VARCHAR)
SELECT SUM(year) FROM table_name_87 WHERE score = "278" AND champion = "kim thompson"
What is the para with a 0.1% sipaliwini?
CREATE TABLE table_name_70 (para VARCHAR, sipaliwini VARCHAR)
SELECT para FROM table_name_70 WHERE sipaliwini = "0.1%"
Where did aaron wagner go to college
CREATE TABLE table_20649850_1 (college VARCHAR, player VARCHAR)
SELECT college FROM table_20649850_1 WHERE player = "Aaron Wagner"
What is the highest Psychological Dependence, when Pleasure is less than 2.3, when Drug is "Cannabis", and when Physical Dependence is less than 0.8?
CREATE TABLE table_name_55 (psychological_dependence INTEGER, physical_dependence VARCHAR, pleasure VARCHAR, drug VARCHAR)
SELECT MAX(psychological_dependence) FROM table_name_55 WHERE pleasure < 2.3 AND drug = "cannabis" AND physical_dependence < 0.8
What is Lenth Feet, when Mi From Kingston is greater than 84.5, when Length Meters is greater than 55.5, and when Name is Unnamed?
CREATE TABLE table_name_28 (length_feet VARCHAR, name VARCHAR, mi_from_kingston VARCHAR, length_meters VARCHAR)
SELECT length_feet FROM table_name_28 WHERE mi_from_kingston > 84.5 AND length_meters > 55.5 AND name = "unnamed"
Who was the runner-up in 1989?
CREATE TABLE table_name_32 (runner_up VARCHAR, year VARCHAR)
SELECT runner_up FROM table_name_32 WHERE year = 1989
Which Touchdowns is the lowest one that has Extra points smaller than 14, and a Player of white, and Points smaller than 5?
CREATE TABLE table_name_98 (touchdowns INTEGER, points VARCHAR, extra_points VARCHAR, player VARCHAR)
SELECT MIN(touchdowns) FROM table_name_98 WHERE extra_points < 14 AND player = "white" AND points < 5
Which Test Standard has a Usage of secondary filters, and a Class of f5? Question 4
CREATE TABLE table_name_28 (test_standard VARCHAR, usage VARCHAR, class VARCHAR)
SELECT test_standard FROM table_name_28 WHERE usage = "secondary filters" AND class = "f5"
What position does Kerry Wood play in?
CREATE TABLE table_11677100_3 (position VARCHAR, player VARCHAR)
SELECT position FROM table_11677100_3 WHERE player = "Kerry Wood"
What is the score of the New Jersey home game?
CREATE TABLE table_name_42 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_42 WHERE home = "new jersey"
Which member has an Electorate of kennedy?
CREATE TABLE table_name_50 (member VARCHAR, electorate VARCHAR)
SELECT member FROM table_name_50 WHERE electorate = "kennedy"
What is the Mon 30 May time for the rider whose Fri 3 June time was 17' 13.46 131.431mph?
CREATE TABLE table_29218221_1 (mon_30_may VARCHAR, fri_3_june VARCHAR)
SELECT mon_30_may FROM table_29218221_1 WHERE fri_3_june = "17' 13.46 131.431mph"
Which date did the race name XII Pau Grand Prix take place on?
CREATE TABLE table_1140117_5 (date VARCHAR, race_name VARCHAR)
SELECT date FROM table_1140117_5 WHERE race_name = "XII Pau Grand Prix"
What is Trial Start Date, when Candidate Name is Notes?
CREATE TABLE table_name_36 (trial_start_date VARCHAR, candidate_name VARCHAR)
SELECT trial_start_date FROM table_name_36 WHERE candidate_name = "notes"
Which player has a position of FW?
CREATE TABLE table_name_25 (player VARCHAR, pos VARCHAR)
SELECT player FROM table_name_25 WHERE pos = "fw"
What was the score for the player from the United states that was +1 to par?
CREATE TABLE table_name_64 (score VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT score FROM table_name_64 WHERE to_par = "+1" AND country = "united states"
Find the name of the user who tweeted more than once, and number of tweets tweeted by them.
CREATE TABLE tweets (uid VARCHAR); CREATE TABLE user_profiles (name VARCHAR, uid VARCHAR)
SELECT T1.name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) > 1
What is the title of the episode directed by Rich Correll and written by Dennis Rinsler?
CREATE TABLE table_29102100_1 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT title FROM table_29102100_1 WHERE directed_by = "Rich Correll" AND written_by = "Dennis Rinsler"
what is the nation when the height (m) is 1.91 and the weight (kg) is 99?
CREATE TABLE table_name_83 (nation VARCHAR, height__m_ VARCHAR, weight__kg_ VARCHAR)
SELECT nation FROM table_name_83 WHERE height__m_ = "1.91" AND weight__kg_ = "99"
What is the round when Grand Slam was the Davis Cup?
CREATE TABLE table_name_92 (round VARCHAR, grand_slam VARCHAR)
SELECT round FROM table_name_92 WHERE grand_slam = "davis cup"
What's the value for oklahoma when nevada and colorado are clinton?
CREATE TABLE table_name_94 (oklahoma VARCHAR, nevada VARCHAR, colorado VARCHAR)
SELECT oklahoma FROM table_name_94 WHERE nevada = "clinton" AND colorado = "clinton"
What is the word count that is named omega dot?
CREATE TABLE table_name_37 (word__number VARCHAR, name VARCHAR)
SELECT word__number FROM table_name_37 WHERE name = "omega dot"