answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT venue FROM table_1520559_1 WHERE champion = "Lorena Ochoa"
At what venues did Lorena Ochoa win the championship?
CREATE TABLE table_1520559_1 (venue VARCHAR, champion VARCHAR)
SELECT country FROM table_name_5 WHERE play = "medea"
What country had the play Medea?
CREATE TABLE table_name_5 (country VARCHAR, play VARCHAR)
SELECT title FROM table_name_65 WHERE producer = "2003"
What is the title of the film when the producer was 2003?
CREATE TABLE table_name_65 (title VARCHAR, producer VARCHAR)
SELECT obese_children_and_adolescents FROM table_name_1 WHERE obesity_rank = 48
What's the count for obese children and adolescents ranked 48?
CREATE TABLE table_name_1 (obese_children_and_adolescents VARCHAR, obesity_rank VARCHAR)
SELECT hanyu_pinyin FROM table_name_66 WHERE name = "jinning township"
What Hanyu Pinyin is in the Jinning Township?
CREATE TABLE table_name_66 (hanyu_pinyin VARCHAR, name VARCHAR)
SELECT built FROM table_name_58 WHERE number_in_class < 10 AND owner = "downer rail"
What was built in a class with less than 10, and the Downer Rail owner?
CREATE TABLE table_name_58 (built VARCHAR, number_in_class VARCHAR, owner VARCHAR)
SELECT others_percentage FROM table_1733513_1 WHERE bush_number = 1329
What is the percentage of others when the number for Bush is 1329?
CREATE TABLE table_1733513_1 (others_percentage VARCHAR, bush_number VARCHAR)
SELECT place FROM table_name_46 WHERE score = 70 - 66 - 67 = 203
What is the place of the player with a 70-66-67=203 score?
CREATE TABLE table_name_46 (place VARCHAR, score VARCHAR)
SELECT AVG(hexadecimal) FROM table_name_2 WHERE decimal > 57
What is the average hexadecimal with a decimal greater than 57?
CREATE TABLE table_name_2 (hexadecimal INTEGER, decimal INTEGER)
SELECT division FROM table_name_76 WHERE wins = "2"
What is the division with wins of 2?
CREATE TABLE table_name_76 (division VARCHAR, wins VARCHAR)
SELECT 1998 FROM table_name_60 WHERE 2003 = "2r"
What is the 1998 value with 2r in 2003?
CREATE TABLE table_name_60 (Id VARCHAR)
SELECT location_attendance FROM table_13619135_5 WHERE team = "Portland"
What was the location and attendance of the game against Portland?
CREATE TABLE table_13619135_5 (location_attendance VARCHAR, team VARCHAR)
SELECT to_par FROM table_name_1 WHERE place = "t8" AND score = 73 - 68 = 141 AND country = "zimbabwe"
What's the to par score in T8 place from Zimbabwe and has a score of 73-68=141?
CREATE TABLE table_name_1 (to_par VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
SELECT location FROM table_name_3 WHERE lineup = "start" AND date = "2008-06-17"
What is the location on 2008-06-17 when the lineup was start?
CREATE TABLE table_name_3 (location VARCHAR, lineup VARCHAR, date VARCHAR)
SELECT candidates FROM table_1341586_43 WHERE first_elected = 1964
Name the candidates in 1964
CREATE TABLE table_1341586_43 (candidates VARCHAR, first_elected VARCHAR)
SELECT COUNT(year) FROM table_name_93 WHERE nominee = "outstanding musical"
How many years were they nominated for outstanding musical?
CREATE TABLE table_name_93 (year VARCHAR, nominee VARCHAR)
SELECT country FROM stadium WHERE capacity > 60000 INTERSECT SELECT country FROM stadium WHERE capacity < 50000
Which country has both stadiums with capacity greater than 60000 and stadiums with capacity less than 50000?
CREATE TABLE stadium (country VARCHAR, capacity INTEGER)
SELECT game FROM table_name_33 WHERE platform_s_ = "playstation 3" AND genre = "platform game"
What game has a platform(s) of playstation 3, when the genre is platform game?
CREATE TABLE table_name_33 (game VARCHAR, platform_s_ VARCHAR, genre VARCHAR)
SELECT club FROM table_name_84 WHERE try_bp = "0"
Can you tell me the Club thay has the Try BP of 0?
CREATE TABLE table_name_84 (club VARCHAR, try_bp VARCHAR)
SELECT tries_for FROM table_name_24 WHERE club = "croesyceiliog rfc"
How many tries did the club Croesyceiliog rfc have?
CREATE TABLE table_name_24 (tries_for VARCHAR, club VARCHAR)
SELECT season FROM table_2110959_1 WHERE pct__percentage = "0.552"
In what season was the pct % 0.552?
CREATE TABLE table_2110959_1 (season VARCHAR, pct__percentage VARCHAR)
SELECT winning_score FROM table_2167226_3 WHERE margin_of_victory = "5 strokes"
What is the winning score when 5 strokes is the margin of victory?
CREATE TABLE table_2167226_3 (winning_score VARCHAR, margin_of_victory VARCHAR)
SELECT region FROM table_name_70 WHERE area__km²_ = "14,037"
Which Region has an area of 14,037km²?
CREATE TABLE table_name_70 (region VARCHAR, area__km²_ VARCHAR)
SELECT MIN(points) FROM table_name_62 WHERE draw = 6 AND rank > 10
What is the lowest points with 6 draws and lower than rank 10?
CREATE TABLE table_name_62 (points INTEGER, draw VARCHAR, rank VARCHAR)
SELECT AVG(capacity) FROM table_name_85 WHERE city = "foligno"
What is the average capacity that has foligno as the city?
CREATE TABLE table_name_85 (capacity INTEGER, city VARCHAR)
SELECT performer_1 FROM table_name_64 WHERE episode = 16
Episode of 16 involves which performer 1?
CREATE TABLE table_name_64 (performer_1 VARCHAR, episode VARCHAR)
SELECT nba_draft FROM table_name_38 WHERE college = "lsu"
What is the NBA Draft status of the person who went to college at LSU?
CREATE TABLE table_name_38 (nba_draft VARCHAR, college VARCHAR)
SELECT position FROM table_name_76 WHERE round = 2
What is the position played for the player drafted in round 2?
CREATE TABLE table_name_76 (position VARCHAR, round VARCHAR)
SELECT part_4 FROM table_name_65 WHERE part_2 = "hljóp"
What is Part 4, when Part 2 is "hljóp"?
CREATE TABLE table_name_65 (part_4 VARCHAR, part_2 VARCHAR)
SELECT MAX(money_list_rank) FROM table_29504351_2 WHERE player = "Doug Barron"
What is the money list rank for player Doug Barron?
CREATE TABLE table_29504351_2 (money_list_rank INTEGER, player VARCHAR)
SELECT best_supported_club FROM table_name_75 WHERE goals = 25 AND per_game > 1 OFFSET 156
what is the best supported club with a 25 Goal and a per game larger than 1,156?
CREATE TABLE table_name_75 (best_supported_club VARCHAR, goals VARCHAR, per_game VARCHAR)
SELECT location_attendance FROM table_name_51 WHERE game = 6
What was the Location and Attendance of Game 6?
CREATE TABLE table_name_51 (location_attendance VARCHAR, game VARCHAR)
SELECT COUNT(first_elected) FROM table_1342379_41 WHERE incumbent = "Cordell Hull"
How many times was incumbent cordell hull first elected?
CREATE TABLE table_1342379_41 (first_elected VARCHAR, incumbent VARCHAR)
SELECT league_cup_apps FROM table_name_76 WHERE league_cup_goals > 0
What is the league cup app with league cup goals more than 0?
CREATE TABLE table_name_76 (league_cup_apps VARCHAR, league_cup_goals INTEGER)
SELECT COUNT(draws) FROM table_name_21 WHERE against = 1134 AND byes < 2
What is the total number of Draws, when Against is "1134", and when Byes is less than 2?
CREATE TABLE table_name_21 (draws VARCHAR, against VARCHAR, byes VARCHAR)
SELECT home_team FROM table_name_80 WHERE date = "april 13, 2008" AND away_team = "itabuna"
Who was the home team on April 13, 2008 when Itabuna was the away team?
CREATE TABLE table_name_80 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT author FROM table_name_73 WHERE title = "destination: nerva"
who is the author when the title is destination: nerva?
CREATE TABLE table_name_73 (author VARCHAR, title VARCHAR)
SELECT player FROM table_name_4 WHERE round = 27
Which player had a round of 27?
CREATE TABLE table_name_4 (player VARCHAR, round VARCHAR)
SELECT team FROM table_name_63 WHERE laps > 49 AND grid = 8
What team has more than 49 laps and a grid of 8?
CREATE TABLE table_name_63 (team VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT official_name FROM table_name_50 WHERE area_km_2 = 16.13
What is the Official Name of the Community with an Area km 2 of 16.13?
CREATE TABLE table_name_50 (official_name VARCHAR, area_km_2 VARCHAR)
SELECT COUNT(league_of_communists) FROM table_15306124_1 WHERE municipality = "Bar"
How many league of communists have the municipality of bar?
CREATE TABLE table_15306124_1 (league_of_communists VARCHAR, municipality VARCHAR)
SELECT role_code FROM Employees GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1
What is the role code with the largest number of employees?
CREATE TABLE Employees (role_code VARCHAR)
SELECT cfl_team FROM table_28059992_1 WHERE pick__number = 1
What is every CFL team with pick#1?
CREATE TABLE table_28059992_1 (cfl_team VARCHAR, pick__number VARCHAR)
SELECT COUNT(pick) FROM table_name_67 WHERE round > 6 AND position = "tight end"
What is the pick number for the tight end who was picked after round 6?
CREATE TABLE table_name_67 (pick VARCHAR, round VARCHAR, position VARCHAR)
SELECT fc_matches FROM table_name_52 WHERE location = "darlington"
What FC Match was played in Darlington?
CREATE TABLE table_name_52 (fc_matches VARCHAR, location VARCHAR)
SELECT MIN(events) FROM table_name_75 WHERE cuts_made > 5 AND top_25 < 13
What is the lowest number of events a tournament with more tha 5 cuts and less than 13 top-25 has?
CREATE TABLE table_name_75 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR)
SELECT name FROM table_name_19 WHERE overall < 224 AND round < 6 AND pick = 15 AND college = "nebraska"
Which player was drafted overall from the college of Nebraska in a round under 6, pick of 15, and overall under 224?
CREATE TABLE table_name_19 (name VARCHAR, college VARCHAR, pick VARCHAR, overall VARCHAR, round VARCHAR)
SELECT draft_round FROM table_20589703_2 WHERE college = "Rio Hondo" AND draft_year = 2012
In what draft round in 2012 did a player from Rio Hondo get drafted?
CREATE TABLE table_20589703_2 (draft_round VARCHAR, college VARCHAR, draft_year VARCHAR)
SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars = 4
find the ids of reviewers who did not give 4 star.
CREATE TABLE Rating (rID VARCHAR, stars VARCHAR)
SELECT date FROM table_name_61 WHERE venue = "a" AND opponent = "stoke city"
Which date has an A venue with an Opponent of stoke city?
CREATE TABLE table_name_61 (date VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT MIN(total) FROM table_name_58 WHERE finish = "t46" AND year_s__won = "1981, 1987"
When the year won is 1981, 1987, and the finish is t46, what is the lowest total?
CREATE TABLE table_name_58 (total INTEGER, finish VARCHAR, year_s__won VARCHAR)
SELECT directed_by FROM table_27969432_4 WHERE production = "2M5901"
Who directed the episode whose production code is 2m5901?
CREATE TABLE table_27969432_4 (directed_by VARCHAR, production VARCHAR)
SELECT MIN(rank) FROM table_name_54 WHERE nation = "venezuela" AND bronze > 9
What is the highest rank of Venezuela, which has more than 9 bronze medals?
CREATE TABLE table_name_54 (rank INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT MAX(games) FROM table_name_69 WHERE drawn > 1
Name the most games with drawn more than 1
CREATE TABLE table_name_69 (games INTEGER, drawn INTEGER)
SELECT years FROM table_name_33 WHERE finals = "10 (0)"
What years have 10 (0) in the finals?
CREATE TABLE table_name_33 (years VARCHAR, finals VARCHAR)
SELECT type FROM table_name_14 WHERE year > 2004
What was the type after 2004?
CREATE TABLE table_name_14 (type VARCHAR, year INTEGER)
SELECT team FROM table_name_63 WHERE pos = "f" AND player = "trey gilder"
What team does F Trey Gilder play for?
CREATE TABLE table_name_63 (team VARCHAR, pos VARCHAR, player VARCHAR)
SELECT COUNT(rank_timeslot_) FROM table_27987623_4 WHERE airdate = "March 30, 2011"
what is the total rank on airdate march 30, 2011?
CREATE TABLE table_27987623_4 (rank_timeslot_ VARCHAR, airdate VARCHAR)
SELECT date FROM table_name_34 WHERE away_team = "grimsby town"
What date was Grimsby Town the away team?
CREATE TABLE table_name_34 (date VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_19 WHERE home_team = "south melbourne"
What was South Melbourne's score as the home team?
CREATE TABLE table_name_19 (home_team VARCHAR)
SELECT MAX(pos) FROM table_23385853_19 WHERE points = 2
What is the lowest position for a driver with 2 points?
CREATE TABLE table_23385853_19 (pos INTEGER, points VARCHAR)
SELECT player FROM table_name_61 WHERE caps > 16 AND date_of_birth__age_ = "1 february 1982"
Which player has a 1 February 1982 birthday and more than 16 caps?
CREATE TABLE table_name_61 (player VARCHAR, caps VARCHAR, date_of_birth__age_ VARCHAR)
SELECT place FROM table_name_28 WHERE score = 70 - 68 = 138
What is the Place of the Player with a Score of 70-68=138?
CREATE TABLE table_name_28 (place VARCHAR, score VARCHAR)
SELECT name FROM table_12834315_5 WHERE barrel_profile = "A2"
What models have an a2 barrel profile?
CREATE TABLE table_12834315_5 (name VARCHAR, barrel_profile VARCHAR)
SELECT SUM(grid) FROM table_name_27 WHERE time_retired = "+ 1:33.141" AND laps < 70
What is the grid total that has a Time/Retired of + 1:33.141, and under 70 laps?
CREATE TABLE table_name_27 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT version FROM table_name_60 WHERE length = "5:15"
what album is 5:15 long
CREATE TABLE table_name_60 (version VARCHAR, length VARCHAR)
SELECT name AS origin FROM table_16799784_9 WHERE longitude = "355.0E"
At the longitude of 355.0e, what is the name origin?
CREATE TABLE table_16799784_9 (name VARCHAR, longitude VARCHAR)
SELECT COUNT(*) FROM players
Find the total number of players.
CREATE TABLE players (Id VARCHAR)
SELECT high_points FROM table_27756572_6 WHERE team = "Detroit"
Who and what were the high points player for the game against Detroit?
CREATE TABLE table_27756572_6 (high_points VARCHAR, team VARCHAR)
SELECT COUNT(clean_electric_grid_california__san_francisco_) FROM table_24620684_2 WHERE vehicle = "BMW ActiveE"
When bmw activee is the vehicle type how many clean electric grid california (san francisco) measurements are there?
CREATE TABLE table_24620684_2 (clean_electric_grid_california__san_francisco_ VARCHAR, vehicle VARCHAR)
SELECT COUNT(original_air_date) FROM table_2226817_12 WHERE production_code = "11.19"
when was the episode premiere if the production code is 11.19?
CREATE TABLE table_2226817_12 (original_air_date VARCHAR, production_code VARCHAR)
SELECT position_in_table FROM table_name_21 WHERE replaced_by = "sergio bueno"
What is Position in Table, when Replaced By is "Sergio Bueno"?
CREATE TABLE table_name_21 (position_in_table VARCHAR, replaced_by VARCHAR)
SELECT date FROM table_name_37 WHERE against < 21 AND status = "second test"
Which Date has an Against smaller than 21, and a Status of second test?
CREATE TABLE table_name_37 (date VARCHAR, against VARCHAR, status VARCHAR)
SELECT T1.name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T2.Position = "Right Wing"
Show the names of clubs that have players with position "Right Wing".
CREATE TABLE club (name VARCHAR, Club_ID VARCHAR); CREATE TABLE player (Club_ID VARCHAR, Position VARCHAR)
SELECT name FROM table_name_78 WHERE snatch = "157.0"
Who has a Snatch of 157.0?
CREATE TABLE table_name_78 (name VARCHAR, snatch VARCHAR)
SELECT time FROM table_name_69 WHERE rider = "noriyuki haga"
What is noriyuki haga's time?
CREATE TABLE table_name_69 (time VARCHAR, rider VARCHAR)
SELECT year_built FROM table_name_54 WHERE current_status = "tbsc" AND boat_builder = "j. jones, trearddur bay"
What year did J. Jones, trearddur bay build a boat with a current status of tbsc?
CREATE TABLE table_name_54 (year_built VARCHAR, current_status VARCHAR, boat_builder VARCHAR)
SELECT home_team FROM table_name_40 WHERE tie_no = "8"
What home team has 8 ties?
CREATE TABLE table_name_40 (home_team VARCHAR, tie_no VARCHAR)
SELECT description FROM table_name_56 WHERE date = "1962"
Which description is dated 1962?
CREATE TABLE table_name_56 (description VARCHAR, date VARCHAR)
SELECT COUNT(season) FROM table_name_5 WHERE coach = "steve fisher"
How many seasons did coach steve fisher have?
CREATE TABLE table_name_5 (season VARCHAR, coach VARCHAR)
SELECT MAX(sex_ratio__child_) FROM table_name_24 WHERE work_participation___percentage_ = "37.7%"
What is the child sex ration for the population with 37.7% work participation?
CREATE TABLE table_name_24 (sex_ratio__child_ INTEGER, work_participation___percentage_ VARCHAR)
SELECT COUNT(18 AS _49) FROM table_name_1 WHERE air_date = "july 2, 2009" AND viewers > 3.5
What is the total 18-49 for the episode that aired on July 2, 2009 with more than 3.5 viewers?
CREATE TABLE table_name_1 (air_date VARCHAR, viewers VARCHAR)
SELECT MIN(pick__number) FROM table_2679061_6 WHERE nhl_team = "Vancouver Canucks"
What is the pick # for nhl team vancouver canucks?
CREATE TABLE table_2679061_6 (pick__number INTEGER, nhl_team VARCHAR)
SELECT winning_team FROM table_name_81 WHERE pole_position = "robby gordon" AND date = "june 11"
Who's the Winning team with a Pole position of robby gordon, and a Date of june 11?
CREATE TABLE table_name_81 (winning_team VARCHAR, pole_position VARCHAR, date VARCHAR)
SELECT presentation_of_credentials FROM table_name_45 WHERE appointed_by = "grover cleveland" AND representative = "charles w. buck"
Name the presentation of credentials for appointed by of grover cleveland and representative of charles w. buck
CREATE TABLE table_name_45 (presentation_of_credentials VARCHAR, appointed_by VARCHAR, representative VARCHAR)
SELECT score FROM table_name_29 WHERE date > 7 AND game = 82
What is Score, when Date is greater than 7, and when Game is "82"?
CREATE TABLE table_name_29 (score VARCHAR, date VARCHAR, game VARCHAR)
SELECT last_performance FROM table_name_77 WHERE style = "street dance" AND name = "george maguire"
What is the date of the last performance when the style is street dance and the name is George Maguire?
CREATE TABLE table_name_77 (last_performance VARCHAR, style VARCHAR, name VARCHAR)
SELECT capacity FROM table_name_95 WHERE country = "usa" AND city = "tucson"
What is the capacity of the team in tucson, USA?
CREATE TABLE table_name_95 (capacity VARCHAR, country VARCHAR, city VARCHAR)
SELECT artist FROM table_name_92 WHERE english_translation = "all this is music"
Which Artist has an English translation of all this is music?
CREATE TABLE table_name_92 (artist VARCHAR, english_translation VARCHAR)
SELECT champion FROM table_name_82 WHERE runner_up = "peter fleming"
Who won when Peter Fleming was a runner-up?
CREATE TABLE table_name_82 (champion VARCHAR, runner_up VARCHAR)
SELECT COUNT(ebit__us_) AS $m_ FROM table_name_35 WHERE revenue__us_$million_ > 434.8 AND net_profit__us_$m_ > 96.4
COunt the EBIT (US $m) which has a Revenue (US $million) larger than 434.8 and a Net profit (US $m) larger than 96.4?
CREATE TABLE table_name_35 (ebit__us_ VARCHAR, revenue__us_$million_ VARCHAR, net_profit__us_$m_ VARCHAR)
SELECT AVG(losses) FROM table_name_63 WHERE runs_allowed < 25 AND wins = 5
What is the average number of losses the team with less than 25 runs allowed and 5 wins have?
CREATE TABLE table_name_63 (losses INTEGER, runs_allowed VARCHAR, wins VARCHAR)
SELECT winner FROM table_name_98 WHERE prize = "€880,000"
Who is the Winner, when the Prize is €880,000?
CREATE TABLE table_name_98 (winner VARCHAR, prize VARCHAR)
SELECT pos FROM table_name_52 WHERE asts < 117
What's the pos for an asts less than 117?
CREATE TABLE table_name_52 (pos VARCHAR, asts INTEGER)
SELECT network FROM table_1601792_4 WHERE television_station = "TV1"
What are the network(s) for tv1?
CREATE TABLE table_1601792_4 (network VARCHAR, television_station VARCHAR)
SELECT COUNT(against) FROM table_name_47 WHERE losses = 13 AND draws > 0
What's the against when the draw was more than 0 and had 13 losses?
CREATE TABLE table_name_47 (against VARCHAR, losses VARCHAR, draws VARCHAR)
SELECT location FROM table_name_68 WHERE score = "w 82-76"
At what location was the score W 82-76?
CREATE TABLE table_name_68 (location VARCHAR, score VARCHAR)
SELECT COUNT(runner_up_a) FROM table_22754310_1 WHERE constituency = "Perambalur"
Name the total number of runner up a for perambalur
CREATE TABLE table_22754310_1 (runner_up_a VARCHAR, constituency VARCHAR)
SELECT vs_protoss FROM table_name_97 WHERE vs_terran = "10 wins"
What is the score vs. Protoss when the score vs. Terran is 10 wins?
CREATE TABLE table_name_97 (vs_protoss VARCHAR, vs_terran VARCHAR)
SELECT score FROM table_name_79 WHERE date = "10 november 2006"
What was the score on 10 November 2006?
CREATE TABLE table_name_79 (score VARCHAR, date VARCHAR)