answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT away_team AS score FROM table_name_82 WHERE venue = "vfl park"
I want to know the away team score for vfl park venue
CREATE TABLE table_name_82 (away_team VARCHAR, venue VARCHAR)
SELECT qual_1 FROM table_name_50 WHERE best < 58.669 AND qual_2 < 57.897
Which qualifying 1 time has a best under 58.669 and a qualifying 2 time under 57.897?
CREATE TABLE table_name_50 (qual_1 VARCHAR, best VARCHAR, qual_2 VARCHAR)
SELECT second_member FROM table_name_99 WHERE election = "1835"
What is Second Member, when Election is "1835"?
CREATE TABLE table_name_99 (second_member VARCHAR, election VARCHAR)
SELECT driver FROM table_name_9 WHERE laps = 248
Which driver had 248 laps?
CREATE TABLE table_name_9 (driver VARCHAR, laps VARCHAR)
SELECT country FROM table_name_49 WHERE nominating_festival = "prix uip ghent"
What country was the prix uip ghent nominating festival?
CREATE TABLE table_name_49 (country VARCHAR, nominating_festival VARCHAR)
SELECT name FROM table_name_72 WHERE championship > 2 AND total > 4 AND fa_cup > 0
Which Name has a Championship larger than 2, and a Total larger than 4, and an FA Cup larger than 0?
CREATE TABLE table_name_72 (name VARCHAR, fa_cup VARCHAR, championship VARCHAR, total VARCHAR)
SELECT originalairdate FROM table_27218002_2 WHERE written_by = "Fintan Ryan"
What date did the episode that was written by Fintan Ryan originally air?
CREATE TABLE table_27218002_2 (originalairdate VARCHAR, written_by VARCHAR)
SELECT goals FROM table_name_4 WHERE years_active = "2006"
How many goals did a player active since 2006 have?
CREATE TABLE table_name_4 (goals VARCHAR, years_active VARCHAR)
SELECT MAX(total) FROM table_name_14 WHERE nation = "romania" AND bronze < 2
What's the highest total of Romania when the bronze was less than 2?
CREATE TABLE table_name_14 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT SUM(pick__number) FROM table_name_79 WHERE college = "laurier"
What is the sum of Pick #, when College is Laurier?
CREATE TABLE table_name_79 (pick__number INTEGER, college VARCHAR)
SELECT earnings__€_ FROM table_12821159_14 WHERE cuts_made = 19 AND money_list_rank = 3
What was the number of earnings were cuts made are 19 and money list rank is 3?
CREATE TABLE table_12821159_14 (earnings__€_ VARCHAR, cuts_made VARCHAR, money_list_rank VARCHAR)
SELECT tongyong FROM table_name_36 WHERE hanyu = "sanmin"
Where in Tongyong is Hanyu Sanmin?
CREATE TABLE table_name_36 (tongyong VARCHAR, hanyu VARCHAR)
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands"
What are the vocal types used in song "Badlands"?
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT grid FROM table_name_79 WHERE time_retired = "+27.112"
what is the grid when the time/retired is +27.112?
CREATE TABLE table_name_79 (grid VARCHAR, time_retired VARCHAR)
SELECT score FROM table_name_7 WHERE couple = "cristián & cheryl" AND style = "cha-cha-cha"
Which Score has a Couple of cristián & cheryl, and a Style of cha-cha-cha?
CREATE TABLE table_name_7 (score VARCHAR, couple VARCHAR, style VARCHAR)
SELECT set_1 FROM table_name_37 WHERE date = "24 may" AND total = "57–75"
Which Set 1 has a Date of 24 may, and a Total of 57–75?
CREATE TABLE table_name_37 (set_1 VARCHAR, date VARCHAR, total VARCHAR)
SELECT score FROM table_name_96 WHERE record = "21-27"
What is the score from the 21-27 Record?
CREATE TABLE table_name_96 (score VARCHAR, record VARCHAR)
SELECT number_of_mobile_phones FROM table_name_11 WHERE last_updated_date = "april 2013"
How many mobile phones were there as of April 2013?
CREATE TABLE table_name_11 (number_of_mobile_phones VARCHAR, last_updated_date VARCHAR)
SELECT time FROM table_name_47 WHERE manufacturer = "yamaha" AND grid < 8 AND laps < 23
How long did it take for the rider of a Yamaha with a grid less than 8 and laps less than 23?
CREATE TABLE table_name_47 (time VARCHAR, laps VARCHAR, manufacturer VARCHAR, grid VARCHAR)
SELECT MIN(wins) FROM table_name_26 WHERE draws < 7 AND played > 30
What is the fewest number of wins that had fewer than 7 draws and more than 30 played?
CREATE TABLE table_name_26 (wins INTEGER, draws VARCHAR, played VARCHAR)
SELECT accolade FROM table_name_76 WHERE year < 2002 AND publication = "rolling stone" AND rank = 48
What is Accolade, when Year is less than 2002, when Publication is "Rolling Stone", and when Rank is "48"?
CREATE TABLE table_name_76 (accolade VARCHAR, rank VARCHAR, year VARCHAR, publication VARCHAR)
SELECT school_club_team FROM table_name_76 WHERE player = "wayne cooper"
What school does Wayne Cooper play for?
CREATE TABLE table_name_76 (school_club_team VARCHAR, player VARCHAR)
SELECT T2.type, COUNT(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T2.type
Show the type of school and the number of buses for each type.
CREATE TABLE school (type VARCHAR, school_id VARCHAR); CREATE TABLE school_bus (school_id VARCHAR)
SELECT SUM(pct) FROM table_name_89 WHERE years = "1957–1970" AND wins < 78
Which Pct has Years of 1957–1970, and Wins smaller than 78?
CREATE TABLE table_name_89 (pct INTEGER, years VARCHAR, wins VARCHAR)
SELECT record FROM table_name_56 WHERE team = "detroit" AND date = "june 10"
What is the Record with a Team that is detroit and a Date that is june 10?
CREATE TABLE table_name_56 (record VARCHAR, team VARCHAR, date VARCHAR)
SELECT drawn FROM table_name_85 WHERE points_for = "402"
What is the drawn when there are 402 points?
CREATE TABLE table_name_85 (drawn VARCHAR, points_for VARCHAR)
SELECT score FROM table_name_92 WHERE record = "21-25-7-4"
What score has a record of 21-25-7-4?
CREATE TABLE table_name_92 (score VARCHAR, record VARCHAR)
SELECT MAX(episode) FROM table_15187735_1 WHERE segment_d = "ned Can Corn"
In what episode was segment D ned Can Corn?
CREATE TABLE table_15187735_1 (episode INTEGER, segment_d VARCHAR)
SELECT COUNT(losses) FROM table_name_43 WHERE byes > 0
What is the total number of losses for teams with more than 0 byes?
CREATE TABLE table_name_43 (losses VARCHAR, byes INTEGER)
SELECT title FROM table_name_13 WHERE original_air_date = "march 19, 1998"
What title aired on March 19, 1998?
CREATE TABLE table_name_13 (title VARCHAR, original_air_date VARCHAR)
SELECT loss FROM table_name_50 WHERE attendance = "41,212"
What was the loss of the game attended by 41,212?
CREATE TABLE table_name_50 (loss VARCHAR, attendance VARCHAR)
SELECT competition FROM table_name_33 WHERE score = "0-1" AND opponents = "pkns fc"
Which Competition has a Score of 0-1, and Opponents of pkns fc?
CREATE TABLE table_name_33 (competition VARCHAR, score VARCHAR, opponents VARCHAR)
SELECT COUNT(prothrombin_time) FROM table_238124_1 WHERE condition = "Von Willebrand disease"
What is the prothrombin time of von willebrand disease?
CREATE TABLE table_238124_1 (prothrombin_time VARCHAR, condition VARCHAR)
SELECT written_by FROM table_15284274_1 WHERE directed_by = "Will Waring" AND no_in_season = 11
Who wrote episode 11, of which was directed by Will Waring?
CREATE TABLE table_15284274_1 (written_by VARCHAR, directed_by VARCHAR, no_in_season VARCHAR)
SELECT pole_position FROM table_name_82 WHERE location = "jerez"
Who had the pole position in Jerez?
CREATE TABLE table_name_82 (pole_position VARCHAR, location VARCHAR)
SELECT fastest_lap FROM table_1139087_2 WHERE rd = 8
Who drove the fastest lap for round 8?
CREATE TABLE table_1139087_2 (fastest_lap VARCHAR, rd VARCHAR)
SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE shipping_method_code = 'FedEx' AND order_status_code = 'Paid'
Show the names of customers having an order with shipping method FedEx and order status Paid.
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR)
SELECT conventional FROM table_2008069_2 WHERE uyghur___k̢ona_yezik̢__ = "تاغارما"
Name the conventional for تاغارما
CREATE TABLE table_2008069_2 (conventional VARCHAR, uyghur___k̢ona_yezik̢__ VARCHAR)
SELECT score FROM table_name_29 WHERE team = "@ memphis"
What is Score, when Team is "@ Memphis"?
CREATE TABLE table_name_29 (score VARCHAR, team VARCHAR)
SELECT mintage FROM table_name_76 WHERE theme = "toronto maple leafs" AND issue_price < 24.95
What is the mintage of the coin with a Toronto Maple Leafs theme and an issue price below 24.95?
CREATE TABLE table_name_76 (mintage VARCHAR, theme VARCHAR, issue_price VARCHAR)
SELECT clubs_remaining FROM table_18328569_1 WHERE winners_from_previous_round = "4"
How many clubs are remaining when the winners from the previous round totals 4?
CREATE TABLE table_18328569_1 (clubs_remaining VARCHAR, winners_from_previous_round VARCHAR)
SELECT COUNT(mccain_number) FROM table_20684390_1 WHERE obama_percentage = "17.34%"
What is the total number of McCain vote totals where Obama percentages was 17.34%?
CREATE TABLE table_20684390_1 (mccain_number VARCHAR, obama_percentage VARCHAR)
SELECT outgoing_manager FROM table_17115950_2 WHERE replaced_by = "Marian Bucurescu"
Who was the outgoing manager replaced by Marian Bucurescu?
CREATE TABLE table_17115950_2 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT AVG(year) FROM table_name_64 WHERE champion = "john mcenroe"
What year weas John McEnroe the champion?
CREATE TABLE table_name_64 (year INTEGER, champion VARCHAR)
SELECT result FROM table_name_21 WHERE date = "september 24"
What was the Result on September 24?
CREATE TABLE table_name_21 (result VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_54 WHERE record = "6-0"
What Opponent has a 6-0 Record?
CREATE TABLE table_name_54 (opponent VARCHAR, record VARCHAR)
SELECT AVG(points) FROM table_name_32 WHERE performer = "rob burke band" AND draw > 1
Which Points has a Performer of rob burke band and a Draw larger than 1?
CREATE TABLE table_name_32 (points INTEGER, performer VARCHAR, draw VARCHAR)
SELECT period FROM table_24565004_11 WHERE appearances¹ = 219
What time period had appearances of 219?
CREATE TABLE table_24565004_11 (period VARCHAR, appearances¹ VARCHAR)
SELECT method FROM table_name_90 WHERE opponent = "dan new"
What method does the opponent of Dan New use?
CREATE TABLE table_name_90 (method VARCHAR, opponent VARCHAR)
SELECT race_name FROM table_name_36 WHERE sanctioning = "cart" AND city_location = "brooklyn, michigan"
What was the name of the race that occurred in Brooklyn, Michigan with a sanctioning of cart?
CREATE TABLE table_name_36 (race_name VARCHAR, sanctioning VARCHAR, city_location VARCHAR)
SELECT MAX(wickets) FROM table_16570286_4 WHERE player = "Alec Bedser"
How many wickets did Alec bedser have?
CREATE TABLE table_16570286_4 (wickets INTEGER, player VARCHAR)
SELECT opponent FROM table_name_70 WHERE date = "29 september 1997"
Which Opponent is on 29 september 1997?
CREATE TABLE table_name_70 (opponent VARCHAR, date VARCHAR)
SELECT result FROM table_name_54 WHERE venue = "home" AND date = "3 october 1987"
Which Result has a Venue of home, and a Date of 3 october 1987?
CREATE TABLE table_name_54 (result VARCHAR, venue VARCHAR, date VARCHAR)
SELECT young_rider_classification FROM table_25580292_13 WHERE winner = "Manuel Cardoso"
What was the young rider classification when manuel cardoso was the winner?
CREATE TABLE table_25580292_13 (young_rider_classification VARCHAR, winner VARCHAR)
SELECT year FROM table_23284597_3 WHERE opponent_in_the_final = "Guillermo Cañas"
Name the year for guillermo cañas
CREATE TABLE table_23284597_3 (year VARCHAR, opponent_in_the_final VARCHAR)
SELECT COUNT(vacator) FROM table_2159547_3 WHERE successor = "Dave E. Satterfield, Jr. (D)"
How many people vacated to successor Dave E. Satterfield, Jr. (d)?
CREATE TABLE table_2159547_3 (vacator VARCHAR, successor VARCHAR)
SELECT original_air_date__atv_ FROM table_1439096_1 WHERE episode_no = 1
What was the original air date (atv) of episode 1?
CREATE TABLE table_1439096_1 (original_air_date__atv_ VARCHAR, episode_no VARCHAR)
SELECT MAX(bronze) FROM table_name_80 WHERE silver > 1 AND gold = 1 AND total < 4
Which country has the most bronze and has more than one silver, 1 gold, and less than 4 total medals.
CREATE TABLE table_name_80 (bronze INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT MAX(bronze) FROM table_name_74 WHERE silver = 1 AND gold = 0 AND rank = "11" AND total > 1
what is the bronze when silver is 1, gold is 0 the rank is 11 and the total is more than 1?
CREATE TABLE table_name_74 (bronze INTEGER, total VARCHAR, rank VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT COUNT(motogp_winner) FROM table_26781017_1 WHERE circuit = "Catalunya"
How many MotoGP winners were there when the circuit was Catalunya?
CREATE TABLE table_26781017_1 (motogp_winner VARCHAR, circuit VARCHAR)
SELECT swimsuit FROM table_name_93 WHERE interview < 8.808
What is the number for swimsuit when the interview number is less than 8.808?
CREATE TABLE table_name_93 (swimsuit VARCHAR, interview INTEGER)
SELECT notes FROM table_name_10 WHERE rank = 6
Rank 6 has what notes?
CREATE TABLE table_name_10 (notes VARCHAR, rank VARCHAR)
SELECT T2.employee_name, T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id
What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?
CREATE TABLE Employees (employee_name VARCHAR, employee_id VARCHAR); CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR, Destroyed_by_Employee_ID VARCHAR)
SELECT time_retired FROM table_name_47 WHERE laps = 47 AND driver = "rené arnoux"
Tell me the time/retired with Laps of 47 and driver of rené arnoux
CREATE TABLE table_name_47 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT date FROM table_name_44 WHERE time = "1:07.18"
On what date was the record set with a time of 1:07.18?
CREATE TABLE table_name_44 (date VARCHAR, time VARCHAR)
SELECT COUNT(pct) FROM table_name_17 WHERE lost = 20 AND seasons > 1
How many percentages have 20 losses and more than 1 season?
CREATE TABLE table_name_17 (pct VARCHAR, lost VARCHAR, seasons VARCHAR)
SELECT time_retired FROM table_name_8 WHERE grid = 5
What is the time/retired for grid 5?
CREATE TABLE table_name_8 (time_retired VARCHAR, grid VARCHAR)
SELECT away_team FROM table_name_30 WHERE crowd > 17 OFFSET 000
Which away team has an attendance of more than 17,000?
CREATE TABLE table_name_30 (away_team VARCHAR, crowd INTEGER)
SELECT written_by FROM table_name_57 WHERE code = "1.2 1.3"
Which Written by has a Code of 1.2 1.3?
CREATE TABLE table_name_57 (written_by VARCHAR, code VARCHAR)
SELECT set_3 FROM table_name_56 WHERE score = "0–3" AND time = "18:30" AND date = "july 10"
Which Set 3 has a Score of 0–3, a Time of 18:30, and a Date of july 10?
CREATE TABLE table_name_56 (set_3 VARCHAR, date VARCHAR, score VARCHAR, time VARCHAR)
SELECT MIN(season_3) FROM table_26240046_1 WHERE played_by = "Stefan van Ray"
How many season 3 appearances by the character played by Stefan Van Ray?
CREATE TABLE table_26240046_1 (season_3 INTEGER, played_by VARCHAR)
SELECT MAX(team_defense_rank) FROM table_1402270_1 WHERE nfl_team = "Green Bay Packers"
what the highest number for the opposite of offense for the green bay packers
CREATE TABLE table_1402270_1 (team_defense_rank INTEGER, nfl_team VARCHAR)
SELECT opponent_in_the_final FROM table_name_91 WHERE tournament = "kuwait"
Who was the opponent during the tournament in Kuwait?
CREATE TABLE table_name_91 (opponent_in_the_final VARCHAR, tournament VARCHAR)
SELECT COUNT(crowd) FROM table_name_67 WHERE away_team = "geelong"
How many people in the crowd with Away team of geelong?
CREATE TABLE table_name_67 (crowd VARCHAR, away_team VARCHAR)
SELECT points FROM table_name_52 WHERE year > 1986 AND chassis = "ags jh23b"
How many points does the year after 1986 with a AGS JH23B chassis have?
CREATE TABLE table_name_52 (points VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT weekly_rank FROM table_name_43 WHERE airdate = "sunday, june 14, 2009"
Name the weekly rank for sunday, june 14, 2009
CREATE TABLE table_name_43 (weekly_rank VARCHAR, airdate VARCHAR)
SELECT MIN(rank) FROM table_name_86 WHERE country = "great britain"
What was the lowest ranking rower from Great Britain?
CREATE TABLE table_name_86 (rank INTEGER, country VARCHAR)
SELECT record FROM table_23486853_6 WHERE opponent = "Pittsburgh Penguins"
What is the record when the opposing team was the Pittsburgh Penguins?
CREATE TABLE table_23486853_6 (record VARCHAR, opponent VARCHAR)
SELECT AVG(yards) FROM table_name_46 WHERE starts > 12
What was the average number of yards Michael Henig had in a year when he had more than 12 starts/
CREATE TABLE table_name_46 (yards INTEGER, starts INTEGER)
SELECT date FROM table_name_57 WHERE tie_no = "replay" AND away_team = "watford"
What date had a tie no of replay, and an away team of watford?
CREATE TABLE table_name_57 (date VARCHAR, tie_no VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_42 WHERE venue = "arden street oval"
Who was the home team in the game played at arden street oval?
CREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(top_division_titles) FROM table_name_55 WHERE number_of_seasons_in_top_division > 40 AND first_season_of_current_spell_in_top_division = "1943-44" AND number_of_seasons_in_liga_mx > 89
What is the total number of Top division titles for the club that has more than 40 seasons in top division, a First season of current spell in top division of 1943-44, and more than 89 seasons in Liga MX?
CREATE TABLE table_name_55 (top_division_titles VARCHAR, number_of_seasons_in_liga_mx VARCHAR, number_of_seasons_in_top_division VARCHAR, first_season_of_current_spell_in_top_division VARCHAR)
SELECT COUNT(*) FROM ROLES
How many roles are there?
CREATE TABLE ROLES (Id VARCHAR)
SELECT director FROM table_22073745_1 WHERE original_title = "Perl oder Pica"
Who is the director of the original title perl oder pica?
CREATE TABLE table_22073745_1 (director VARCHAR, original_title VARCHAR)
SELECT works_number FROM table_name_44 WHERE number = "55"
What is Works Number, when Number is 55?
CREATE TABLE table_name_44 (works_number VARCHAR, number VARCHAR)
SELECT MAX(first_elected) FROM table_1342270_3 WHERE district = "Alabama 5"
what is the maximum first elected with district being alabama 5
CREATE TABLE table_1342270_3 (first_elected INTEGER, district VARCHAR)
SELECT score FROM table_name_15 WHERE place = "t1"
What is Score, when Place is "T1"?
CREATE TABLE table_name_15 (score VARCHAR, place VARCHAR)
SELECT home_team AS score FROM table_name_4 WHERE venue = "lake oval"
When lake oval is the venue, what's the score of the home team?
CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR)
SELECT released FROM table_name_6 WHERE album_number = "1st"
Album # of 1st was released on what date?
CREATE TABLE table_name_6 (released VARCHAR, album_number VARCHAR)
SELECT away_team AS score FROM table_name_98 WHERE home_team = "geelong"
When the home team was geelong, what did the away team score?
CREATE TABLE table_name_98 (away_team VARCHAR, home_team VARCHAR)
SELECT opponent FROM table_name_13 WHERE score = "3 - 2" AND decision = "raycroft" AND record = "25-29-1"
What was the opponent when the score was 3 - 2, and the decision was Raycroft, with a record of 25-29-1?
CREATE TABLE table_name_13 (opponent VARCHAR, record VARCHAR, score VARCHAR, decision VARCHAR)
SELECT position_in_table FROM table_17201869_3 WHERE replaced_by = "Lucas Alcaraz"
What was the team's position when the new manager was Lucas Alcaraz?
CREATE TABLE table_17201869_3 (position_in_table VARCHAR, replaced_by VARCHAR)
SELECT pregame_analysts FROM table_2941848_2 WHERE trophy_presentation = "Chris Rose"
What is every pregame analyst with Chris Rose as trophy presenter?
CREATE TABLE table_2941848_2 (pregame_analysts VARCHAR, trophy_presentation VARCHAR)
SELECT MAX(households) FROM table_21310575_2
Name the most households
CREATE TABLE table_21310575_2 (households INTEGER)
SELECT name FROM table_name_72 WHERE winning_driver = "bobby unser"
What race did Bobby Unser win?
CREATE TABLE table_name_72 (name VARCHAR, winning_driver VARCHAR)
SELECT SUM(attendance) FROM table_name_16 WHERE score = "8–7"
What was the attendance when the score was 8–7?
CREATE TABLE table_name_16 (attendance INTEGER, score VARCHAR)
SELECT awardee_s_ FROM table_25926120_3 WHERE name_of_award = "Best Actress"
Who won best actress?
CREATE TABLE table_25926120_3 (awardee_s_ VARCHAR, name_of_award VARCHAR)
SELECT valvetrain FROM table_name_12 WHERE model = "diesel engines"
What is the Valvetrain of the Diesel Engines Model?
CREATE TABLE table_name_12 (valvetrain VARCHAR, model VARCHAR)
SELECT money_requested__£_ FROM table_name_92 WHERE investing_dragon_s_ = "peter jones" AND episode = "episode 2"
How much was requested from Investing Dragon Peter Jones request in episode 2?
CREATE TABLE table_name_92 (money_requested__£_ VARCHAR, investing_dragon_s_ VARCHAR, episode VARCHAR)
SELECT finish FROM table_name_13 WHERE qual = "99.550"
Which finish has a 99.550 Qual?
CREATE TABLE table_name_13 (finish VARCHAR, qual VARCHAR)