answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT date FROM table_name_59 WHERE opponent = "alfonse d'amore"
When did alfonse d'amore compete?
CREATE TABLE table_name_59 (date VARCHAR, opponent VARCHAR)
SELECT MAX(bronze) FROM table_name_21 WHERE nation = "austria" AND total > 6
Which Bronze has a Nation of austria, and a Total larger than 6?
CREATE TABLE table_name_21 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT kickoff FROM table_name_53 WHERE nflcom_recap = "recap" AND week < 17 AND game_site = "arrowhead stadium"
What is the kickoff that has a NFL.com recap, is played before week 17, and is played at arrowhead stadium?
CREATE TABLE table_name_53 (kickoff VARCHAR, game_site VARCHAR, nflcom_recap VARCHAR, week VARCHAR)
SELECT MAX(wins) FROM table_name_87 WHERE goals_scored > 64 AND position < 2
What was the highest win when there were more than 64 goals scored and a position smaller than 2?
CREATE TABLE table_name_87 (wins INTEGER, goals_scored VARCHAR, position VARCHAR)
SELECT 2 AS nd_leg FROM table_name_49 WHERE team__number1 = "kk bosna"
What is the second leg that has kk bosna?
CREATE TABLE table_name_49 (team__number1 VARCHAR)
SELECT district FROM table_1342379_23 WHERE candidates = "William Madison Whittington (D) Unopposed"
what's the district  with candidates being william madison whittington (d) unopposed
CREATE TABLE table_1342379_23 (district VARCHAR, candidates VARCHAR)
SELECT party FROM table_25030512_41 WHERE district = "Pennsylvania 10"
Name the party for pennsylvania 10
CREATE TABLE table_25030512_41 (party VARCHAR, district VARCHAR)
SELECT SUM(games_lost) FROM table_name_74 WHERE points_against = 61 AND points_difference < 42
Which Games lost has Points against of 61, and Points difference smaller than 42?
CREATE TABLE table_name_74 (games_lost INTEGER, points_against VARCHAR, points_difference VARCHAR)
SELECT series FROM table_25740774_1 WHERE position = "NC"
Which series is in position nc?
CREATE TABLE table_25740774_1 (series VARCHAR, position VARCHAR)
SELECT opponents FROM table_name_19 WHERE result = "d"
When the result is d, who are the opponents?
CREATE TABLE table_name_19 (opponents VARCHAR, result VARCHAR)
SELECT MAX(wins) FROM table_2169966_1
How many wins does he have?
CREATE TABLE table_2169966_1 (wins INTEGER)
SELECT opponent FROM table_name_21 WHERE method = "ko (slam)" AND record = "13–1"
What was the name of the opponent when the method was ko (slam), and record was 13–1?
CREATE TABLE table_name_21 (opponent VARCHAR, method VARCHAR, record VARCHAR)
SELECT royal_house FROM table_name_98 WHERE state = "chu"
Which royal house is in the state of chu?
CREATE TABLE table_name_98 (royal_house VARCHAR, state VARCHAR)
SELECT COUNT(jons_team) FROM table_23292220_17 WHERE episode = "15x10"
Name the number of jons team for 15x10
CREATE TABLE table_23292220_17 (jons_team VARCHAR, episode VARCHAR)
SELECT high_assists FROM table_name_12 WHERE date = "february 2"
What are the High assists for February 2?
CREATE TABLE table_name_12 (high_assists VARCHAR, date VARCHAR)
SELECT playoffs FROM table_1908049_1 WHERE avg_attendance = 3416
what where the playoffs where the avg attendance of the team was 3416
CREATE TABLE table_1908049_1 (playoffs VARCHAR, avg_attendance VARCHAR)
SELECT MAX(attendance) FROM table_name_40 WHERE result = "l 6-28"
What was the highest attendance when the result was L 6-28?
CREATE TABLE table_name_40 (attendance INTEGER, result VARCHAR)
SELECT COUNT(against) FROM table_name_66 WHERE losses < 52 AND matches > 4 AND draw < 2
What is the total number of Against, when Losses is less than 52, when Matches is greater than 4, and when Draw is less than 2?
CREATE TABLE table_name_66 (against VARCHAR, draw VARCHAR, losses VARCHAR, matches VARCHAR)
SELECT MIN(draws) FROM table_name_50 WHERE against > 2638
What was the lowest draw when the against was larger than 2638?
CREATE TABLE table_name_50 (draws INTEGER, against INTEGER)
SELECT manager FROM table_name_29 WHERE captain = "sol campbell"
Which manager has Sol Campbell as captain?
CREATE TABLE table_name_29 (manager VARCHAR, captain VARCHAR)
SELECT position FROM table_1213511_2 WHERE college_junior_club_team = "Peterborough Petes (OHA)"
What position does the player from Peterborough Petes (OHA) play on?
CREATE TABLE table_1213511_2 (position VARCHAR, college_junior_club_team VARCHAR)
SELECT MAX(2010) FROM table_name_62 WHERE code__iata_icao_ = "otp/lrop"
What was the value in 2010 for the airport coded OTP/LROP?
CREATE TABLE table_name_62 (code__iata_icao_ VARCHAR)
SELECT station FROM table_1397655_1 WHERE city = "Edmonton"
which station is located in edmonton
CREATE TABLE table_1397655_1 (station VARCHAR, city VARCHAR)
SELECT AVG(b_score) FROM table_name_47 WHERE position = "2nd" AND total < 15.525
Can you tell me the average B Score that has the Position of 2nd, and the Total smaller than 15.525?
CREATE TABLE table_name_47 (b_score INTEGER, position VARCHAR, total VARCHAR)
SELECT census_ranking FROM table_176521_2 WHERE official_name = "Maugerville"
What are the census ranking(s) of maugerville?
CREATE TABLE table_176521_2 (census_ranking VARCHAR, official_name VARCHAR)
SELECT wins FROM table_name_79 WHERE club = "ayr united"
How many wins did Ayr United have?
CREATE TABLE table_name_79 (wins VARCHAR, club VARCHAR)
SELECT AVG(total_goals) FROM table_name_91 WHERE fa_cup_goals = 0 AND name = "alan sweeney" AND league_cup_apps < 0
What's the total goals for Alan Sweeney having 0 FA Cup goals and fewer than 0 League Cup apps?
CREATE TABLE table_name_91 (total_goals INTEGER, league_cup_apps VARCHAR, fa_cup_goals VARCHAR, name VARCHAR)
SELECT t1.product_name, t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY COUNT(*) DESC LIMIT 1
Find the name and price of the product that has been ordered the greatest number of times.
CREATE TABLE products (product_name VARCHAR, product_price VARCHAR, product_id VARCHAR); CREATE TABLE regular_order_products (product_id VARCHAR)
SELECT team FROM table_name_83 WHERE points_against = "123"
Which team has 123 points agaibst the other team?
CREATE TABLE table_name_83 (team VARCHAR, points_against VARCHAR)
SELECT loss FROM table_name_73 WHERE record = "4-2"
What loss has 4-2 as the record?
CREATE TABLE table_name_73 (loss VARCHAR, record VARCHAR)
SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num
What are the first names of the professors who do not teach a class.
CREATE TABLE employee (emp_fname VARCHAR, emp_jobcode VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)
SELECT player FROM table_name_33 WHERE place = "t2"
Who are the players that placed t2?
CREATE TABLE table_name_33 (player VARCHAR, place VARCHAR)
SELECT COUNT(enrollment) FROM table_13759592_1 WHERE high_school = "Roosevelt"
How many enrollment figures are provided for Roosevelt High School?
CREATE TABLE table_13759592_1 (enrollment VARCHAR, high_school VARCHAR)
SELECT COUNT(high_points) FROM table_23285849_6 WHERE team = "Heat"
How many players has the highest points in the game against the Heat?
CREATE TABLE table_23285849_6 (high_points VARCHAR, team VARCHAR)
SELECT semifinalists FROM table_name_82 WHERE tournament = "hamburg"
WHO WAS THE SEMIFINALISTS FOR THE HAMBURG TOURNAMENT?
CREATE TABLE table_name_82 (semifinalists VARCHAR, tournament VARCHAR)
SELECT date_of_birth FROM table_name_45 WHERE name = "tim wollthan"
What is Tim Wollthan's Date of Birth?
CREATE TABLE table_name_45 (date_of_birth VARCHAR, name VARCHAR)
SELECT position FROM table_name_47 WHERE first_team_appearances = "ongoing" AND current_club = "aston villa" AND player = "graham burke"
What position has ongoing first-team appearances, Graham Burke for a player, and whose club is Aston Villa?
CREATE TABLE table_name_47 (position VARCHAR, player VARCHAR, first_team_appearances VARCHAR, current_club VARCHAR)
SELECT alternate FROM table_name_58 WHERE nation = "sweden"
Who is the Alternate for Sweden?
CREATE TABLE table_name_58 (alternate VARCHAR, nation VARCHAR)
SELECT AVG(grid) FROM table_name_45 WHERE bike = "honda cbr1000rr" AND laps = 18 AND time = "+1:12.884"
What is the average Grid for the honda cbr1000rr, with 18 laps and a time of +1:12.884?
CREATE TABLE table_name_45 (grid INTEGER, time VARCHAR, bike VARCHAR, laps VARCHAR)
SELECT season FROM table_name_97 WHERE name = "marcio lassiter"
What season had Marcio Lassiter?
CREATE TABLE table_name_97 (season VARCHAR, name VARCHAR)
SELECT partner FROM table_2820584_2 WHERE surface = "Hard"
Who was Betty's partner when the surface is hard?
CREATE TABLE table_2820584_2 (partner VARCHAR, surface VARCHAR)
SELECT MIN(game) FROM table_name_71 WHERE record = "59-15"
What was the game number when record is 59-15?
CREATE TABLE table_name_71 (game INTEGER, record VARCHAR)
SELECT performance_liaison FROM table_22410780_1 WHERE dramaturge = "Chrisena Ricci"
Who were the performance liaisons for the dramaturge Chrisena Ricci?
CREATE TABLE table_22410780_1 (performance_liaison VARCHAR, dramaturge VARCHAR)
SELECT candidates FROM table_1342149_18 WHERE district = "Louisiana 2"
Who was the candidate in the election in the Louisiana 2 district?
CREATE TABLE table_1342149_18 (candidates VARCHAR, district VARCHAR)
SELECT outgoing_manager FROM table_16075179_6 WHERE team = "Aberdeen"
Who was the outgoing manager for Aberdeen?
CREATE TABLE table_16075179_6 (outgoing_manager VARCHAR, team VARCHAR)
SELECT AVG(year) FROM table_name_95 WHERE venue = "tampere, finland"
What year did she compete in tampere, finland?
CREATE TABLE table_name_95 (year INTEGER, venue VARCHAR)
SELECT original_air_date FROM table_14724369_1 WHERE directed_by = "Michael DiMartino"
When did the show directed by Michael Dimartino first air?
CREATE TABLE table_14724369_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT date FROM table_name_10 WHERE status = "five nations" AND against = 23
On what date is there a status of Five Nations and an against of 23?
CREATE TABLE table_name_10 (date VARCHAR, status VARCHAR, against VARCHAR)
SELECT away FROM table_name_40 WHERE round = "second round"
What is the away where the round is the second round?
CREATE TABLE table_name_40 (away VARCHAR, round VARCHAR)
SELECT n117_2400_iec3 FROM table_name_10 WHERE n100_iec3 = "25"
What is the N117/2400 IEC3 associated with an N100IEC3 of 25?
CREATE TABLE table_name_10 (n117_2400_iec3 VARCHAR, n100_iec3 VARCHAR)
SELECT MIN(production_code) FROM table_25691838_8 WHERE original_airdate = "August 11"
What was the smallest production code for August 11's original episode?
CREATE TABLE table_25691838_8 (production_code INTEGER, original_airdate VARCHAR)
SELECT zip_code, AVG(mean_temperature_f) FROM weather WHERE date LIKE "8/%" GROUP BY zip_code
For each zip code, return the average mean temperature of August there.
CREATE TABLE weather (zip_code VARCHAR, mean_temperature_f INTEGER, date VARCHAR)
SELECT result FROM table_12175755_1 WHERE theme = "Finale" AND order__number = "3"
What theme placed as #3 in the finale?
CREATE TABLE table_12175755_1 (result VARCHAR, theme VARCHAR, order__number VARCHAR)
SELECT COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009
How many times did Boston Red Stockings lose in 2009 postseason?
CREATE TABLE postseason (team_id_loser VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)
SELECT conference FROM table_22165661_3 WHERE championship_game_opponent = "Ferris State"
What is the conference when Ferris State is the championship game opponent?
CREATE TABLE table_22165661_3 (conference VARCHAR, championship_game_opponent VARCHAR)
SELECT circuit FROM table_name_67 WHERE winning_constructor = "maserati" AND winning_drivers = "giuseppe campari"
What was the race that was won by a Maserati being driven by Giuseppe Campari?
CREATE TABLE table_name_67 (circuit VARCHAR, winning_constructor VARCHAR, winning_drivers VARCHAR)
SELECT name FROM table_name_89 WHERE wsu_year_s_ = "1981-82"
What is Name, when WSU Year(s) is 1981-82?
CREATE TABLE table_name_89 (name VARCHAR, wsu_year_s_ VARCHAR)
SELECT high_rebounds FROM table_name_9 WHERE team = "@ toronto"
who had the high rebounds when the team was @ toronto?
CREATE TABLE table_name_9 (high_rebounds VARCHAR, team VARCHAR)
SELECT captain FROM table_1301373_1 WHERE head_coach = "Alistair Edwards"
Who's the captain of the team whose head coach is Alistair Edwards?
CREATE TABLE table_1301373_1 (captain VARCHAR, head_coach VARCHAR)
SELECT tournament FROM table_name_55 WHERE result = "20th"
In which tournament did he place 20th?
CREATE TABLE table_name_55 (tournament VARCHAR, result VARCHAR)
SELECT AVG(laps) FROM table_name_6 WHERE grid < 21 AND driver = "renzo zorzi"
What is the average laps for the grid smaller than 21 for Renzo Zorzi?
CREATE TABLE table_name_6 (laps INTEGER, grid VARCHAR, driver VARCHAR)
SELECT COUNT(pf) FROM table_25714995_2 WHERE l = 3
How many pf catagories are listed for the skip that had 3 for l
CREATE TABLE table_25714995_2 (pf VARCHAR, l VARCHAR)
SELECT 24 AS _mountains FROM table_23406517_2 WHERE direction = "Northeast"
What are all values for 24 mountains when direction is Northeast?
CREATE TABLE table_23406517_2 (direction VARCHAR)
SELECT MAX(geo_id) FROM table_18600760_10 WHERE water__sqmi_ = "0.771"
What is the geo ID for the township with 0.771 square miles of water?
CREATE TABLE table_18600760_10 (geo_id INTEGER, water__sqmi_ VARCHAR)
SELECT MIN(game) FROM table_name_22 WHERE december > 13 AND score = "5 - 0"
What is the lowest Game, when December is greater than 13, and when Score is "5 - 0"?
CREATE TABLE table_name_22 (game INTEGER, december VARCHAR, score VARCHAR)
SELECT points_for FROM table_27293285_2 WHERE club = "Munster"
How many points for did Munster have?
CREATE TABLE table_27293285_2 (points_for VARCHAR, club VARCHAR)
SELECT year FROM table_name_45 WHERE position = "9"
Which year had a position of 9?
CREATE TABLE table_name_45 (year VARCHAR, position VARCHAR)
SELECT MAX(game) FROM table_name_77 WHERE record = "47-21-3"
What is the highest game with a 47-21-3 record?
CREATE TABLE table_name_77 (game INTEGER, record VARCHAR)
SELECT COUNT(outgoing_manager) FROM table_27374004_3 WHERE replaced_by = "Bob Peeters"
How many outgoing managers were replaced by Bob Peeters?
CREATE TABLE table_27374004_3 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT regular_season FROM table_2357201_1 WHERE year = 2006
How did Cleveland do in the regular season in 2006?
CREATE TABLE table_2357201_1 (regular_season VARCHAR, year VARCHAR)
SELECT directedby FROM table_20726262_5 WHERE production_code = "4WAB04"
Who directed the episode with a production code of 4WAB04?
CREATE TABLE table_20726262_5 (directedby VARCHAR, production_code VARCHAR)
SELECT time FROM table_name_88 WHERE heat < 5 AND lane = 5 AND nationality = "vietnam"
What is the time in a heat smaller than 5, in Lane 5, for Vietnam?
CREATE TABLE table_name_88 (time VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR)
SELECT high_points FROM table_17622423_12 WHERE date = "May 29"
Name the high points for may 29
CREATE TABLE table_17622423_12 (high_points VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_42 WHERE opponent_in_the_final = "olga blahotová"
Olga Blahotová was the opponent in the final at what tournament?
CREATE TABLE table_name_42 (tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT result FROM table_name_35 WHERE score = "1–0" AND date = "18 april 2009"
What is the Result with a Score of 1–0, and a Date with 18 april 2009?
CREATE TABLE table_name_35 (result VARCHAR, score VARCHAR, date VARCHAR)
SELECT winning_score FROM table_name_69 WHERE margin_of_victory = "2 strokes" AND runner_s__up = "pat bradley"
What was the winning score when the margin of victory was 2 strokes and the runner-up was Pat Bradley?
CREATE TABLE table_name_69 (winning_score VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT date FROM table_name_77 WHERE partner = "kira nagy"
On what Date was the match with partner Kira Nagy?
CREATE TABLE table_name_77 (date VARCHAR, partner VARCHAR)
SELECT SUM(gold) FROM table_name_94 WHERE total < 7 AND nation = "gabon" AND rank < 17
How many gold did Gabon have when they were ranked no higher than 17, and less than 7 in total?
CREATE TABLE table_name_94 (gold INTEGER, rank VARCHAR, total VARCHAR, nation VARCHAR)
SELECT iata FROM table_name_12 WHERE country = "norway" AND city = "sandefjord"
What is City of Sandefjord in Norway's IATA?
CREATE TABLE table_name_12 (iata VARCHAR, country VARCHAR, city VARCHAR)
SELECT COUNT(episode) FROM table_24122653_2 WHERE vote = "3-1"
What was the total number of episodes that had a 3-1 vote?
CREATE TABLE table_24122653_2 (episode VARCHAR, vote VARCHAR)
SELECT market_value__billion_$_ FROM table_1682026_6 WHERE sales__billion_$_ = "172.7"
What is the market value of a company in billions that has 172.7 billion in sales?
CREATE TABLE table_1682026_6 (market_value__billion_$_ VARCHAR, sales__billion_$_ VARCHAR)
SELECT to_par FROM table_name_76 WHERE winning_score = 67 - 68 - 70 - 66 = 271
What is the to par when the winning score was 67-68-70-66=271?
CREATE TABLE table_name_76 (to_par VARCHAR, winning_score VARCHAR)
SELECT MIN(season) FROM table_20319085_2 WHERE conference_record = "4-3"
In what season was the conference record 4-3?
CREATE TABLE table_20319085_2 (season INTEGER, conference_record VARCHAR)
SELECT high_rebounds FROM table_27700375_11 WHERE team = "Charlotte"
Name the high rebounds for charlotte
CREATE TABLE table_27700375_11 (high_rebounds VARCHAR, team VARCHAR)
SELECT developer_s_ FROM table_name_71 WHERE year > 2010 AND genre = "action rpg"
Who were the developers for the Action RPG made after 2010?
CREATE TABLE table_name_71 (developer_s_ VARCHAR, year VARCHAR, genre VARCHAR)
SELECT preliminary_average FROM table_name_58 WHERE evening_gown = "8.774 (6)"
what is the preliminary average score when the evening gown score is 8.774 (6)?
CREATE TABLE table_name_58 (preliminary_average VARCHAR, evening_gown VARCHAR)
SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
How many instruments does the song "Le Pop" use?
CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT MIN(engine) FROM table_name_60 WHERE model = "sl500" AND chassis < 129.067
Which Engine has a Model of sl500, and a Chassis smaller than 129.067?
CREATE TABLE table_name_60 (engine INTEGER, model VARCHAR, chassis VARCHAR)
SELECT school_club_team FROM table_name_23 WHERE pick = "28"
WHAT TEAM HAD A 28 PICK?
CREATE TABLE table_name_23 (school_club_team VARCHAR, pick VARCHAR)
SELECT callback_audition_date FROM table_27455867_1 WHERE episode_air_date = "February 2, 2011"
When was the callback audition date for the audition city from the episode aired on February 2, 2011?
CREATE TABLE table_27455867_1 (callback_audition_date VARCHAR, episode_air_date VARCHAR)
SELECT COUNT(friday) FROM table_18173916_6 WHERE wednesday = "210 Kirby's Epic Yarn"
How many episodes were shown on Friday if 210 Kirby's Epic Yarn was shown on Wednesday?
CREATE TABLE table_18173916_6 (friday VARCHAR, wednesday 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 score FROM table_name_87 WHERE attendance = "32,036"
What was the score of the game that had an attendance of 32,036?
CREATE TABLE table_name_87 (score VARCHAR, attendance VARCHAR)
SELECT COUNT(_number) FROM table_15781170_3 WHERE poll_winner = "Drinking Games"
How many times did drinking games win the poll?
CREATE TABLE table_15781170_3 (_number VARCHAR, poll_winner VARCHAR)
SELECT SUM(scottish_cup) FROM table_name_74 WHERE player = "damon gray" AND league > 1
What is the sum for the Scottish cup that has player Damon Gray, and more than 1 league?
CREATE TABLE table_name_74 (scottish_cup INTEGER, player VARCHAR, league VARCHAR)
SELECT AVG(game) FROM table_name_36 WHERE team = "philadelphia"
What game was played at Philadelphia?
CREATE TABLE table_name_36 (game INTEGER, team VARCHAR)
SELECT affiliation FROM table_25818630_1 WHERE candidate = "Daren Ireland"
What is every affiliation for candidate Daren Ireland?
CREATE TABLE table_25818630_1 (affiliation VARCHAR, candidate VARCHAR)
SELECT city FROM table_28719193_19 WHERE stadium = "Gerald J. Ford stadium"
What was the city whose stadium is Gerald J. Ford Stadium?
CREATE TABLE table_28719193_19 (city VARCHAR, stadium VARCHAR)
SELECT AVG(rebounds) FROM table_name_4 WHERE minutes_played = 113 AND games_played > 18
What is the average Rebounds, when Minutes Played is "113", and when Games Played is greater than "18"?
CREATE TABLE table_name_4 (rebounds INTEGER, minutes_played VARCHAR, games_played VARCHAR)
SELECT score FROM table_name_43 WHERE location = "montreal" AND champion = "john mcenroe"
When John Mcenroe won at Montreal, what was the score?
CREATE TABLE table_name_43 (score VARCHAR, location VARCHAR, champion VARCHAR)