question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which transfer window was moving from borussia dortmund?
CREATE TABLE table_name_38 (transfer_window VARCHAR, moving_from VARCHAR)
SELECT transfer_window FROM table_name_38 WHERE moving_from = "borussia dortmund"
Who is the Athlete with a rowing Time of 6:36.05?
CREATE TABLE table_name_49 (athlete VARCHAR, time VARCHAR)
SELECT athlete FROM table_name_49 WHERE time = "6:36.05"
Which Country has a Player of arjun atwal?
CREATE TABLE table_name_19 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_19 WHERE player = "arjun atwal"
who was the pitcher in seasons 1982, 1984, 1985, 1987, 1988, 1989
CREATE TABLE table_19864214_3 (pitcher VARCHAR, seasons VARCHAR)
SELECT pitcher FROM table_19864214_3 WHERE seasons = "1982, 1984, 1985, 1987, 1988, 1989"
How many Laps did Team Primagaz Competition have?
CREATE TABLE table_name_14 (laps VARCHAR, team VARCHAR)
SELECT laps FROM table_name_14 WHERE team = "primagaz competition"
If second leg is Newell's Old Boys, what name is first leg?
CREATE TABLE table_17968229_1 (home__2nd_leg_ VARCHAR)
SELECT 1 AS st_leg FROM table_17968229_1 WHERE home__2nd_leg_ = "Newell's Old Boys"
What was Staten Island when Brooklyn was 940?
CREATE TABLE table_1108394_6 (staten_island VARCHAR, brooklyn VARCHAR)
SELECT staten_island FROM table_1108394_6 WHERE brooklyn = "940"
Show the maximum share count of transactions where the amount is smaller than 10000
CREATE TABLE TRANSACTIONS (share_count INTEGER, amount_of_transaction INTEGER)
SELECT MAX(share_count) FROM TRANSACTIONS WHERE amount_of_transaction < 10000
What is the Score on January 23?
CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_8 WHERE date = "january 23"
What was the lowest overall for Louis Coleman?
CREATE TABLE table_name_91 (overall INTEGER, player VARCHAR)
SELECT MIN(overall) FROM table_name_91 WHERE player = "louis coleman"
WHAT IS THE AWAY WITH HOME AT 2-2?
CREATE TABLE table_name_15 (away VARCHAR, home VARCHAR)
SELECT away FROM table_name_15 WHERE home = "2-2"
Name the party for 1998 first elected
CREATE TABLE table_25030512_24 (party VARCHAR, first_elected VARCHAR)
SELECT party FROM table_25030512_24 WHERE first_elected = "1998"
How many attended the game with north melbourne as the away side?
CREATE TABLE table_name_99 (crowd VARCHAR, away_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_99 WHERE away_team = "north melbourne"
How many distinct types of accounts are there?
CREATE TABLE customer (acc_type VARCHAR)
SELECT COUNT(DISTINCT acc_type) FROM customer
What is the smallest crowd when richmond is away?
CREATE TABLE table_name_44 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(crowd) FROM table_name_44 WHERE away_team = "richmond"
What is Site, when Date is "November 13"?
CREATE TABLE table_name_15 (site VARCHAR, date VARCHAR)
SELECT site FROM table_name_15 WHERE date = "november 13"
What is the Format o Catalog F4 87199?
CREATE TABLE table_name_99 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_99 WHERE catalog = "f4 87199"
In the game with the venue of mcg, what was the attendance?
CREATE TABLE table_name_22 (crowd VARCHAR, venue VARCHAR)
SELECT crowd FROM table_name_22 WHERE venue = "mcg"
What was the attendance for the game in Week 3?
CREATE TABLE table_name_94 (attendance VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_94 WHERE week = 3
What results has euro '84 qualifying as the type of game and norway as the opponent?
CREATE TABLE table_name_90 (results¹ VARCHAR, type_of_game VARCHAR, opponent VARCHAR)
SELECT results¹ FROM table_name_90 WHERE type_of_game = "euro '84 qualifying" AND opponent = "norway"
Who is the player from Japan?
CREATE TABLE table_name_9 (player VARCHAR, country VARCHAR)
SELECT player FROM table_name_9 WHERE country = "japan"
What is the Entrant with a Engine of talbot l6, and Eugène Chaboud was the driver?
CREATE TABLE table_name_80 (entrant VARCHAR, engine VARCHAR, driver VARCHAR)
SELECT entrant FROM table_name_80 WHERE engine = "talbot l6" AND driver = "eugène chaboud"
Name the name for organization date being unknown
CREATE TABLE table_25794010_1 (name VARCHAR, organization_date VARCHAR)
SELECT name FROM table_25794010_1 WHERE organization_date = "Unknown"
What is the most silver medals when the total is more than 2 medals, and with a rank of total, and the number of gold medals is greater than 44?
CREATE TABLE table_name_78 (silver INTEGER, gold VARCHAR, rank VARCHAR)
SELECT MAX(silver) FROM table_name_78 WHERE "total" > 2 AND rank = "total" AND gold > 44
How many times was the candidates paul tsongas (d) 60.6% paul w. cronin (r) 39.4%?
CREATE TABLE table_1341690_21 (incumbent VARCHAR, candidates VARCHAR)
SELECT COUNT(incumbent) FROM table_1341690_21 WHERE candidates = "Paul Tsongas (D) 60.6% Paul W. Cronin (R) 39.4%"
What college did the defensive back attend?
CREATE TABLE table_16376436_1 (college VARCHAR, position VARCHAR)
SELECT college FROM table_16376436_1 WHERE position = "Defensive Back"
what is the nationality when the heat is less than 3 and the time is 2:35.31?
CREATE TABLE table_name_81 (nationality VARCHAR, heat VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_81 WHERE heat < 3 AND time = "2:35.31"
What country was the player from with a score of 70-79-74-68=291?
CREATE TABLE table_name_74 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_74 WHERE score = 70 - 79 - 74 - 68 = 291
Where was the GTE Suncoast Classic tournament held?
CREATE TABLE table_11622562_1 (location VARCHAR, tournament VARCHAR)
SELECT location FROM table_11622562_1 WHERE tournament = "GTE Suncoast Classic"
What date has 6 as the tie no.?
CREATE TABLE table_name_73 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_73 WHERE tie_no = "6"
How many episodes in the series has a production code of 111?
CREATE TABLE table_24425976_2 (series VARCHAR, production_code VARCHAR)
SELECT COUNT(series) FROM table_24425976_2 WHERE production_code = "111"
What was the largest founded year for schools having enrollment of exactly 696?
CREATE TABLE table_2076608_1 (founded INTEGER, enrollment VARCHAR)
SELECT MAX(founded) FROM table_2076608_1 WHERE enrollment = "696"
Which Branding has a frequency of 1080khz?
CREATE TABLE table_name_27 (branding VARCHAR, frequency VARCHAR)
SELECT branding FROM table_name_27 WHERE frequency = "1080khz"
What is the Region of the Warner Music Canada Label release?
CREATE TABLE table_name_29 (region VARCHAR, label VARCHAR)
SELECT region FROM table_name_29 WHERE label = "warner music canada"
What was the away team that played at Princes Park?
CREATE TABLE table_name_97 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_97 WHERE venue = "princes park"
What is the channel with a 2011 rating of 8.5?
CREATE TABLE table_name_64 (channel VARCHAR)
SELECT channel FROM table_name_64 WHERE 2011 = "8.5"
What is Jon Thorne's average speed?
CREATE TABLE table_1963459_2 (average_speed__mph_ VARCHAR, team VARCHAR)
SELECT average_speed__mph_ FROM table_1963459_2 WHERE team = "Jon Thorne"
How many family friendly games are in the 1990s?
CREATE TABLE table_14160327_4 (family_friendly VARCHAR, decade VARCHAR)
SELECT COUNT(family_friendly) FROM table_14160327_4 WHERE decade = "1990s"
What is the Capacity in use with an Annual change that is 21.8%?
CREATE TABLE table_name_31 (capacity_in_use VARCHAR, annual_change VARCHAR)
SELECT capacity_in_use FROM table_name_31 WHERE annual_change = "21.8%"
Who is the runner-up in 1901?
CREATE TABLE table_name_78 (runner_up VARCHAR, year VARCHAR)
SELECT runner_up FROM table_name_78 WHERE year = "1901"
How many teams had a #1 draft pick that won the Rookie of the Year Award?
CREATE TABLE table_1004033_1 (team VARCHAR, draft_pick__number VARCHAR)
SELECT COUNT(team) FROM table_1004033_1 WHERE draft_pick__number = "1"
What horizontal bar score also has a pommel horse score of 15.250?
CREATE TABLE table_name_60 (horizontal_bar VARCHAR, pommel_horse VARCHAR)
SELECT horizontal_bar FROM table_name_60 WHERE pommel_horse = "15.250"
what is the player who's college is listed as direct to nba, school is st. vincent – st. mary high school and the year is 2001-2002?
CREATE TABLE table_11677760_1 (player VARCHAR, year VARCHAR, college VARCHAR, school VARCHAR)
SELECT player FROM table_11677760_1 WHERE college = "Direct to NBA" AND school = "St. Vincent – St. Mary High school" AND year = "2001-2002"
What is the July temperature where plant hardiness zone is 2B and January figure is −12/−23°c (10-9°f)?
CREATE TABLE table_name_32 (july VARCHAR, plant_hardiness_zone VARCHAR, january VARCHAR)
SELECT july FROM table_name_32 WHERE plant_hardiness_zone = "2b" AND january = "−12/−23°c (10-9°f)"
what is season 6 sum of both the number of times processing ID 2397162 was assigned and the number of times chip chalmers managed an episode
CREATE TABLE table_10953197_6 (no_in_season INTEGER, director VARCHAR, production_code VARCHAR)
SELECT MAX(no_in_season) FROM table_10953197_6 WHERE director = "Chip Chalmers" AND production_code = "2397162"
What is the platelet count for congenital afibrinogenemia?
CREATE TABLE table_238124_1 (platelet_count VARCHAR, condition VARCHAR)
SELECT platelet_count FROM table_238124_1 WHERE condition = "Congenital afibrinogenemia"
What is the nationality of David Bairstow?
CREATE TABLE table_11303072_9 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_11303072_9 WHERE player = "David Bairstow"
Where was the game seen by 10056 people played?
CREATE TABLE table_27537518_6 (location VARCHAR, attendance VARCHAR)
SELECT location FROM table_27537518_6 WHERE attendance = 10056
What party did john s. barbour represent?
CREATE TABLE table_2668243_25 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_2668243_25 WHERE incumbent = "John S. Barbour"
On what Date did the friendly Competition take place?
CREATE TABLE table_name_49 (date VARCHAR, competition VARCHAR)
SELECT date FROM table_name_49 WHERE competition = "friendly"
How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?
CREATE TABLE Lessons (lesson_time INTEGER, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT SUM(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin"
What is the lowest rank when Jianshu is smaller than 9.66, for Richard Devine ( gbr ), with a total smaller than 19.02?
CREATE TABLE table_name_25 (rank INTEGER, total VARCHAR, jianshu VARCHAR, athlete VARCHAR)
SELECT MIN(rank) FROM table_name_25 WHERE jianshu < 9.66 AND athlete = "richard devine ( gbr )" AND total < 19.02
In round 9 what was the nationality?
CREATE TABLE table_name_98 (nationality VARCHAR, round VARCHAR)
SELECT nationality FROM table_name_98 WHERE round = "9"
How many goals against have 64 for games, a loss less than 12, with points greater than 107?
CREATE TABLE table_name_37 (goals_against INTEGER, points VARCHAR, games VARCHAR, lost VARCHAR)
SELECT SUM(goals_against) FROM table_name_37 WHERE games = 64 AND lost < 12 AND points > 107
who had the high assists when the game was less than 13 and the score was w 75-66?
CREATE TABLE table_name_41 (high_assists VARCHAR, game VARCHAR, score VARCHAR)
SELECT high_assists FROM table_name_41 WHERE game < 13 AND score = "w 75-66"
What player placed t6 for the United States with a score of 67-69=136?
CREATE TABLE table_name_71 (player VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
SELECT player FROM table_name_71 WHERE country = "united states" AND place = "t6" AND score = 67 - 69 = 136
What team was Pearson on when his winnings were $5,200?
CREATE TABLE table_2626564_2 (team_s_ VARCHAR, winnings VARCHAR)
SELECT team_s_ FROM table_2626564_2 WHERE winnings = "$5,200"
What are the names of entrepreneurs whose investor is not "Rachel Elnaugh"?
CREATE TABLE entrepreneur (People_ID VARCHAR, Investor VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor <> "Rachel Elnaugh"
What is the barony for the Ballintaggart townland?
CREATE TABLE table_30120619_1 (barony VARCHAR, townland VARCHAR)
SELECT barony FROM table_30120619_1 WHERE townland = "Ballintaggart"
Name the winner for 29 march
CREATE TABLE table_name_98 (winning_driver VARCHAR, date VARCHAR)
SELECT winning_driver FROM table_name_98 WHERE date = "29 march"
What is the sum for December against the vancouver canucks earlier than game 33?
CREATE TABLE table_name_59 (december INTEGER, opponent VARCHAR, game VARCHAR)
SELECT SUM(december) FROM table_name_59 WHERE opponent = "vancouver canucks" AND game < 33
What is the Second when the third is don walchuk?
CREATE TABLE table_name_91 (second VARCHAR, third VARCHAR)
SELECT second FROM table_name_91 WHERE third = "don walchuk"
What is Denmark's rank?
CREATE TABLE table_name_87 (rank VARCHAR, nation VARCHAR)
SELECT rank FROM table_name_87 WHERE nation = "denmark"
List the players with 1285 new points?
CREATE TABLE table_24431264_18 (player VARCHAR, new_points VARCHAR)
SELECT player FROM table_24431264_18 WHERE new_points = 1285
Who is the Opponent on January 7?
CREATE TABLE table_name_21 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_21 WHERE date = "january 7"
What was the overall draft number of Tom Fleming, a wide receiver?
CREATE TABLE table_name_28 (overall VARCHAR, position VARCHAR, player VARCHAR)
SELECT COUNT(overall) FROM table_name_28 WHERE position = "wide receiver" AND player = "tom fleming"
What is Cabinet, when Year is after 1981, when Fractievoorzitter is "Hans Van Mierlo", and when Chair is "W.I.J.M. Vrijhoef"?
CREATE TABLE table_name_42 (cabinet VARCHAR, chair VARCHAR, year VARCHAR, fractievoorzitter VARCHAR)
SELECT cabinet FROM table_name_42 WHERE year > 1981 AND fractievoorzitter = "hans van mierlo" AND chair = "w.i.j.m. vrijhoef"
What tournament has 1r as a 2004, and 1r as a 2007?
CREATE TABLE table_name_77 (tournament VARCHAR)
SELECT tournament FROM table_name_77 WHERE 2004 = "1r" AND 2007 = "1r"
According to the August 2008 poll that reported 36% New Demcratic, what percentage aligned with the Liberal party?
CREATE TABLE table_name_37 (liberal VARCHAR, new_democratic VARCHAR, dates VARCHAR)
SELECT liberal FROM table_name_37 WHERE new_democratic = "36%" AND dates = "august 2008"
What party is the person who was first elected in 2000 and was re-elected?
CREATE TABLE table_name_50 (party VARCHAR, results VARCHAR, first_elected VARCHAR)
SELECT party FROM table_name_50 WHERE results = "re-elected" AND first_elected = 2000
What is the first elected date for the incumbent in the South Carolina 4 district?
CREATE TABLE table_name_98 (first_elected VARCHAR, district VARCHAR)
SELECT first_elected FROM table_name_98 WHERE district = "south carolina 4"
What are the school colors for the college whose main campus is overland park?
CREATE TABLE table_name_66 (school_colors VARCHAR, main_campus_location VARCHAR)
SELECT school_colors FROM table_name_66 WHERE main_campus_location = "overland park"
What's the type on Sestri Levante to Riomaggiore?
CREATE TABLE table_name_39 (type VARCHAR, course VARCHAR)
SELECT type FROM table_name_39 WHERE course = "sestri levante to riomaggiore"
What successful defenses has 126 days held and a Reigns of 3?
CREATE TABLE table_name_89 (successful_defenses VARCHAR, days_held VARCHAR, reigns VARCHAR)
SELECT successful_defenses FROM table_name_89 WHERE days_held = 126 AND reigns = "3"
What is the result for the match against Wataru Sakata?
CREATE TABLE table_name_55 (res VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_55 WHERE opponent = "wataru sakata"
What nationality has 116 appearances?
CREATE TABLE table_name_63 (nationality VARCHAR, appearances VARCHAR)
SELECT nationality FROM table_name_63 WHERE appearances = 116
Who did the high rebounds in the game where Carl Landry (23) did the most high points?
CREATE TABLE table_23281862_6 (high_rebounds VARCHAR, high_points VARCHAR)
SELECT high_rebounds FROM table_23281862_6 WHERE high_points = "Carl Landry (23)"
With 0 Goals and less than 1 Tries, what is Matt James position?
CREATE TABLE table_name_38 (position VARCHAR, player VARCHAR, goals VARCHAR, tries VARCHAR)
SELECT position FROM table_name_38 WHERE goals = "0" AND tries < 1 AND player = "matt james"
Which Melbourne has Sydney yes, Gold Coast yes, and Perth yes?
CREATE TABLE table_name_71 (melbourne VARCHAR, perth VARCHAR, sydney VARCHAR, gold_coast VARCHAR)
SELECT melbourne FROM table_name_71 WHERE sydney = "yes" AND gold_coast = "yes" AND perth = "yes"
What is the highest points value for 1962, in the 125cc class, and with 0 wins?
CREATE TABLE table_name_66 (points INTEGER, wins VARCHAR, year VARCHAR, class VARCHAR)
SELECT MAX(points) FROM table_name_66 WHERE year = 1962 AND class = "125cc" AND wins < 0
which Place has a Player of mark brooks?
CREATE TABLE table_name_30 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_30 WHERE player = "mark brooks"
What is the Position of Pick #321?
CREATE TABLE table_name_97 (position VARCHAR, pick__number VARCHAR)
SELECT position FROM table_name_97 WHERE pick__number = 321
Who did they play at lincoln financial field at 8:30 (ET) after week 14?
CREATE TABLE table_name_88 (opponent VARCHAR, time__et_ VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT opponent FROM table_name_88 WHERE week > 14 AND game_site = "lincoln financial field" AND time__et_ = "8:30"
What is the Year named of the Ganga Valles?
CREATE TABLE table_name_39 (year_named INTEGER, name VARCHAR)
SELECT MAX(year_named) FROM table_name_39 WHERE name = "ganga valles"
what is the outcome when the date is 10 october 1994?
CREATE TABLE table_name_40 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_40 WHERE date = "10 october 1994"
What is the total number of players who had a money list rank of 96?
CREATE TABLE table_20590020_2 (best_finish VARCHAR, money_list_rank VARCHAR)
SELECT COUNT(best_finish) FROM table_20590020_2 WHERE money_list_rank = 96
Which Gold has a Nation of india, and a Bronze smaller than 0?
CREATE TABLE table_name_84 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT AVG(gold) FROM table_name_84 WHERE nation = "india" AND bronze < 0
What week was the tournament at Cincinnati?
CREATE TABLE table_name_57 (week VARCHAR, tournament VARCHAR)
SELECT week FROM table_name_57 WHERE tournament = "cincinnati"
For nations with more than 6 silvers and more than 10 golds, what is the lowest total?
CREATE TABLE table_name_6 (total INTEGER, silver VARCHAR, gold VARCHAR)
SELECT MIN(total) FROM table_name_6 WHERE silver > 6 AND gold > 10
What is Highest Attendance, when Rank is 90, and when Venue Name is Infineon Raceway?
CREATE TABLE table_name_69 (highest_attendance VARCHAR, rank VARCHAR, venue_name VARCHAR)
SELECT highest_attendance FROM table_name_69 WHERE rank = 90 AND venue_name = "infineon raceway"
What is Away Team, when Home Team is "Swindon Town"?
CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_3 WHERE home_team = "swindon town"
Who was the director for the episode originally airing September 29, 2003?
CREATE TABLE table_23916272_6 (directed_by VARCHAR, original_air_date VARCHAR)
SELECT directed_by FROM table_23916272_6 WHERE original_air_date = "September 29, 2003"
What is the most amount of games played this season?
CREATE TABLE table_28768469_5 (game INTEGER)
SELECT MAX(game) FROM table_28768469_5
What are the date, mean temperature and mean humidity for the top 3 days with the largest max gust speeds?
CREATE TABLE weather (date VARCHAR, mean_temperature_f VARCHAR, mean_humidity VARCHAR, max_gust_speed_mph VARCHAR)
SELECT date, mean_temperature_f, mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3
Which Title has a Dance Partner of adele astaire, and Lyrics of ira gershwin, and a Director of felix edwardes?
CREATE TABLE table_name_93 (title VARCHAR, director VARCHAR, dance_partner VARCHAR, lyrics VARCHAR)
SELECT title FROM table_name_93 WHERE dance_partner = "adele astaire" AND lyrics = "ira gershwin" AND director = "felix edwardes"
I want the D 46 which has a D 44 of r 17
CREATE TABLE table_name_35 (d_46 VARCHAR, d_44 VARCHAR)
SELECT d_46 FROM table_name_35 WHERE d_44 = "r 17"
How many times did Roy Emerson win the Australian Open?
CREATE TABLE table_197638_6 (australian_open VARCHAR, player VARCHAR)
SELECT COUNT(australian_open) FROM table_197638_6 WHERE player = "Roy Emerson"
How many opponents was a game with a record 17-6 played against?
CREATE TABLE table_18894744_6 (opponent VARCHAR, record VARCHAR)
SELECT COUNT(opponent) FROM table_18894744_6 WHERE record = "17-6"
Which driver has 7 points for team Australia?
CREATE TABLE table_name_28 (driver VARCHAR, points VARCHAR, team VARCHAR)
SELECT driver FROM table_name_28 WHERE points = 7 AND team = "team australia"
Name the 1st prize for senior pga championship
CREATE TABLE table_25938117_1 (tournament VARCHAR)
SELECT 1 AS st_prize___$__ FROM table_25938117_1 WHERE tournament = "Senior PGA Championship"