answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT tournament FROM table_name_54 WHERE score_in_final = "5–7, 7–5, 6–4"
At what tournament was the Score 5–7, 7–5, 6–4?
CREATE TABLE table_name_54 (tournament VARCHAR, score_in_final VARCHAR)
SELECT date FROM table_name_26 WHERE record = "10-8"
When did the team have a 10-8 record?
CREATE TABLE table_name_26 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_9 WHERE opponent = "adrián menéndez-maceiras"
What date was the match against adrián menéndez-maceiras?
CREATE TABLE table_name_9 (date VARCHAR, opponent VARCHAR)
SELECT MAX(pick__number) FROM table_name_95 WHERE cfl_team = "toronto argonauts"
What is the highest Pick # when the CFL Team is the Toronto Argonauts?
CREATE TABLE table_name_95 (pick__number INTEGER, cfl_team VARCHAR)
SELECT icao FROM table_name_63 WHERE callsign = "air busan"
What is the ICAO for Air Busan?
CREATE TABLE table_name_63 (icao VARCHAR, callsign VARCHAR)
SELECT tournament FROM table_name_26 WHERE date > 1986 AND score_in_the_final = "7–6, 3–6, 6–2"
What tournament took place after 1986 and had a final score of 7–6, 3–6, 6–2?
CREATE TABLE table_name_26 (tournament VARCHAR, date VARCHAR, score_in_the_final VARCHAR)
SELECT MIN(attendance) FROM table_name_98 WHERE opponent = "buffalo bills"
What is the low attendance rate against buffalo bills?
CREATE TABLE table_name_98 (attendance INTEGER, opponent VARCHAR)
SELECT rider FROM table_name_70 WHERE laps = "22" AND time_retired = "+1:44.775"
Who is the rider with 22 laps and a +1:44.775 time/retired?
CREATE TABLE table_name_70 (rider VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT open_cup FROM table_name_30 WHERE division > 4
WHich Open Cup has a Division larger than 4?
CREATE TABLE table_name_30 (open_cup VARCHAR, division INTEGER)
SELECT pages FROM table_name_69 WHERE date = "1987-08"
How many pages does the story from 1987-08 have?
CREATE TABLE table_name_69 (pages VARCHAR, date VARCHAR)
SELECT capital___exonym__ FROM table_1008653_1 WHERE capital___endonym__ = "St. John's"
What is the English name given to the city of St. John's?
CREATE TABLE table_1008653_1 (capital___exonym__ VARCHAR, capital___endonym__ VARCHAR)
SELECT episode FROM table_name_10 WHERE result = "safe" AND order__number = "5" AND original_artist = "hoagy carmichael"
Which episode had Hoagy carmichael safe with an order of 5?
CREATE TABLE table_name_10 (episode VARCHAR, original_artist VARCHAR, result VARCHAR, order__number VARCHAR)
SELECT commissioned FROM table_name_40 WHERE launched = "28 june 1934" AND pennant_number = "h.78"
Which commission was launched 28 june 1934, and has a Pennant number of h.78?
CREATE TABLE table_name_40 (commissioned VARCHAR, launched VARCHAR, pennant_number VARCHAR)
SELECT COUNT(points) FROM table_name_69 WHERE games_played < 22
What is the number of points of the match with less than 22 games played?
CREATE TABLE table_name_69 (points VARCHAR, games_played INTEGER)
SELECT MAX(game) FROM table_27756314_8 WHERE team = "@ L.A. Clippers"
What is the highest game with team @ l.a. clippers?
CREATE TABLE table_27756314_8 (game INTEGER, team VARCHAR)
SELECT revenues FROM table_name_15 WHERE name = "ōoka tadayoshi (2nd) (大岡忠愛)"
What are the revenues for ōoka tadayoshi (2nd) (大岡忠愛)?
CREATE TABLE table_name_15 (revenues VARCHAR, name VARCHAR)
SELECT date FROM table_name_60 WHERE opponent = "hayes & yeading united"
What was the date of the game against Hayes & Yeading United?
CREATE TABLE table_name_60 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(total) FROM table_name_84 WHERE tally = "1-19" AND matches < 2
What are the total number of matches smaller than 2 with a tally of 1-19?
CREATE TABLE table_name_84 (total VARCHAR, tally VARCHAR, matches VARCHAR)
SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy'
Find the number of routes with destination airports in Italy.
CREATE TABLE routes (dst_apid VARCHAR); CREATE TABLE airports (apid VARCHAR, country VARCHAR)
SELECT COUNT(game) FROM table_23453931_8 WHERE opponent = "Carolina Hurricanes"
How many games did they play the carolina hurricanes?
CREATE TABLE table_23453931_8 (game VARCHAR, opponent VARCHAR)
SELECT MAX(combo) FROM table_18676973_3 WHERE rank = "3"
When 3 is the rank what is the highest combo?
CREATE TABLE table_18676973_3 (combo INTEGER, rank VARCHAR)
SELECT date FROM table_name_71 WHERE opponent = "indiana state college"
What is the Date with an Opponent that is indiana state college?
CREATE TABLE table_name_71 (date VARCHAR, opponent VARCHAR)
SELECT stadium FROM table_24039173_1 WHERE team = "San Juan Jabloteh"
San Juan Jabloteh calls which stadium home?
CREATE TABLE table_24039173_1 (stadium VARCHAR, team VARCHAR)
SELECT rank FROM table_name_22 WHERE name = "tricia flores"
What rank does Tricia Flores have?
CREATE TABLE table_name_22 (rank VARCHAR, name VARCHAR)
SELECT team__a_ FROM table_1594772_2 WHERE match_date = "Feb 27, 1996"
Namethe team for feb 27, 1996
CREATE TABLE table_1594772_2 (team__a_ VARCHAR, match_date VARCHAR)
SELECT stadium FROM table_name_2 WHERE date = "december 23, 2001"
What stadium was the game held at on December 23, 2001?
CREATE TABLE table_name_2 (stadium VARCHAR, date VARCHAR)
SELECT date FROM table_name_90 WHERE series = "1-4"
What was the date of the game in which the series was 1-4?
CREATE TABLE table_name_90 (date VARCHAR, series VARCHAR)
SELECT attendance FROM table_name_48 WHERE date = "august 2"
What was the attendance on August 2?
CREATE TABLE table_name_48 (attendance VARCHAR, date VARCHAR)
SELECT district FROM table_name_48 WHERE result = "lost re-election republican gain"
result is lost re-election republican gain, what is the district?
CREATE TABLE table_name_48 (district VARCHAR, result VARCHAR)
SELECT COUNT(district) FROM table_1341930_24 WHERE incumbent = "W. Arthur Winstead"
How many districts have W. Arthur Winstead as elected official?
CREATE TABLE table_1341930_24 (district VARCHAR, incumbent VARCHAR)
SELECT swim__15km_ FROM table_17085947_32 WHERE athlete = "Daniela Ryf"
What was the duration of Daniela Ryf's swimming stage?
CREATE TABLE table_17085947_32 (swim__15km_ VARCHAR, athlete VARCHAR)
SELECT best_actor FROM table_name_44 WHERE best_director = "takeshi kitano for outrage beyond"
Which Best Actor has a Best Director of takeshi kitano for outrage beyond?
CREATE TABLE table_name_44 (best_actor VARCHAR, best_director VARCHAR)
SELECT SUM(week) FROM table_name_78 WHERE date = "december 24, 1994"
What week was the December 24, 1994 game?
CREATE TABLE table_name_78 (week INTEGER, date VARCHAR)
SELECT COUNT(high_rebounds) FROM table_22669044_9 WHERE location_attendance = "United Center 19,335"
Name the number of high rebounds for united center 19,335
CREATE TABLE table_22669044_9 (high_rebounds VARCHAR, location_attendance VARCHAR)
SELECT SUM(overall) FROM table_name_86 WHERE position = "wr" AND college = "alberta"
How much Overall has a Position of wr, and a College of alberta?
CREATE TABLE table_name_86 (overall INTEGER, position VARCHAR, college VARCHAR)
SELECT MAX(production_code) FROM table_27713890_1 WHERE us_viewers__millions_ = "24.8"
What is the production code that had 24.8 million u.s. viewers?
CREATE TABLE table_27713890_1 (production_code INTEGER, us_viewers__millions_ VARCHAR)
SELECT venue FROM table_name_23 WHERE competition = "2002 fifa world cup qualifier" AND result = "8-2"
What is the Venue for the 2002 fifa world cup qualifier, and a Result of 8-2?
CREATE TABLE table_name_23 (venue VARCHAR, competition VARCHAR, result VARCHAR)
SELECT report FROM table_1132600_3 WHERE grand_prix = "Belgian grand_prix"
What was the report of the Belgian Grand Prix?
CREATE TABLE table_1132600_3 (report VARCHAR, grand_prix VARCHAR)
SELECT COUNT(swimsuit) FROM table_12338595_1 WHERE state = "Virginia"
What swimsuit score did the state of Virginia contestant achieve?
CREATE TABLE table_12338595_1 (swimsuit VARCHAR, state VARCHAR)
SELECT method FROM table_name_3 WHERE time = "5:00" AND record = "14–6–1"
What is the method when the time is 5:00, and the record is 14–6–1?
CREATE TABLE table_name_3 (method VARCHAR, time VARCHAR, record VARCHAR)
SELECT name FROM building ORDER BY height_feet DESC LIMIT 1
What is the name of the tallest building?
CREATE TABLE building (name VARCHAR, height_feet VARCHAR)
SELECT AVG(gold) FROM table_name_51 WHERE nation = "japan (jpn)" AND total < 5
Japan (JPN) with a total of less than 5, has what average gold medals?
CREATE TABLE table_name_51 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT rider FROM table_name_98 WHERE laps < 11 AND bike = "kawasaki zx-10r" AND grid = 8
Name the Rider which has Laps smaller than 11 and a Bike of kawasaki zx-10r, and a Grid of 8?
CREATE TABLE table_name_98 (rider VARCHAR, grid VARCHAR, laps VARCHAR, bike VARCHAR)
SELECT coaster_name FROM table_name_40 WHERE year_opened = "1978" AND track = "wooden"
What is the coaster name that was opened in 1978, and have wooden track?
CREATE TABLE table_name_40 (coaster_name VARCHAR, year_opened VARCHAR, track VARCHAR)
SELECT note FROM death WHERE note LIKE '%East%'
What are the notes of the death events which has substring 'East'?
CREATE TABLE death (note VARCHAR)
SELECT AVG(round) FROM table_name_11 WHERE position = "lw" AND college_junior_club_team__league_ = "swift current broncos (wchl)"
Which Round has a Position of lw, and a College/Junior/Club Team (League) of swift current broncos (wchl)?
CREATE TABLE table_name_11 (round INTEGER, position VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT constructor FROM table_name_6 WHERE winning_driver = "jim clark" AND circuit = "syracuse"
Which Constructor has the Winning Driver, Jim Clark and the Circuit, Syracuse?
CREATE TABLE table_name_6 (constructor VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
SELECT result FROM table_name_78 WHERE date = "30 july 2004"
What is the result of the match on 30 July 2004?
CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR)
SELECT record FROM table_11964047_7 WHERE score = "L 109–116 2 OT"
what records have a score of l 109–116 2 ot
CREATE TABLE table_11964047_7 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_57 WHERE date = "april 1"
What was the record on April 1?
CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR)
SELECT COUNT(year) FROM table_name_90 WHERE award = "inte awards"
How many times was the award inte awards?
CREATE TABLE table_name_90 (year VARCHAR, award VARCHAR)
SELECT SUM(number_of_seasons_in_top_division) FROM table_name_48 WHERE position_in_2012_13 = "009 9th" AND number_of_seasons_in_the_premier_league < 3
I want the sum of number of seasons in top division for position in 2012-13 of 009 9th and number of seasons in premier league less than 3
CREATE TABLE table_name_48 (number_of_seasons_in_top_division INTEGER, position_in_2012_13 VARCHAR, number_of_seasons_in_the_premier_league VARCHAR)
SELECT score FROM table_name_54 WHERE competition = "friendly" AND result = "7-2"
What was the score of the Friendly competition where the result was 7-2?
CREATE TABLE table_name_54 (score VARCHAR, competition VARCHAR, result VARCHAR)
SELECT COUNT(english_gloss) FROM table_1499774_5 WHERE northern_lakota = "wakȟáŋyeža"
Name the number of english gloss for wakȟáŋyeža
CREATE TABLE table_1499774_5 (english_gloss VARCHAR, northern_lakota VARCHAR)
SELECT location FROM table_name_12 WHERE name = "woodburn dragstrip"
What is the Location for the woodburn dragstrip?
CREATE TABLE table_name_12 (location VARCHAR, name VARCHAR)
SELECT AVG(points) FROM table_name_23 WHERE opponent = "cleveland barons" AND january > 3
What is the average number of points of the game after January 3 against the Cleveland Barons?
CREATE TABLE table_name_23 (points INTEGER, opponent VARCHAR, january VARCHAR)
SELECT COUNT(overall) FROM table_name_86 WHERE school_club_team = "arizona" AND round > 11
How many times was Arizona the team and the round was bigger than 11?
CREATE TABLE table_name_86 (overall VARCHAR, school_club_team VARCHAR, round VARCHAR)
SELECT record FROM table_name_18 WHERE opponent = "manchester wolves" AND date = "july 30, 2004"
What was the record after the game with the Manchester Wolves on July 30, 2004?
CREATE TABLE table_name_18 (record VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT school_club_team FROM table_name_34 WHERE player = "andre wakefield"
Which School/Club Team did Andre Wakefield play for?
CREATE TABLE table_name_34 (school_club_team VARCHAR, player VARCHAR)
SELECT COUNT(domestic_freight) FROM table_1754531_4 WHERE international_mail > 1.0 AND domestic_mail = 260
Namw the total number for domestic freight for international mail is larger than 1.0 with domestic mail for 260
CREATE TABLE table_1754531_4 (domestic_freight VARCHAR, international_mail VARCHAR, domestic_mail VARCHAR)
SELECT MIN(heat) FROM table_name_65 WHERE race_title = "lakeside"
What is the lowest heat of the Lakeside race?
CREATE TABLE table_name_65 (heat INTEGER, race_title VARCHAR)
SELECT driver_s_ FROM table_name_18 WHERE crew_chief = "gary ritter"
Who is the driver that has a crew chief Gary Ritter?
CREATE TABLE table_name_18 (driver_s_ VARCHAR, crew_chief VARCHAR)
SELECT winner FROM table_name_44 WHERE date = "june 2, 2007"
Who is the Winner on June 2, 2007?
CREATE TABLE table_name_44 (winner VARCHAR, date VARCHAR)
SELECT SUM(top_25) FROM table_name_71 WHERE top_5 > 9 AND wins < 11
Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11?
CREATE TABLE table_name_71 (top_25 INTEGER, top_5 VARCHAR, wins VARCHAR)
SELECT MAX(no_votes) FROM table_256286_14
Name the most no votes
CREATE TABLE table_256286_14 (no_votes INTEGER)
SELECT result FROM table_name_15 WHERE date = "october 1, 1989"
What was the result on October 1, 1989?
CREATE TABLE table_name_15 (result VARCHAR, date VARCHAR)
SELECT electorate FROM table_20217811_1 WHERE united_future = "4.47%"
Name the electoraate for united future being 4.47%
CREATE TABLE table_20217811_1 (electorate VARCHAR, united_future VARCHAR)
SELECT bronze FROM table_name_7 WHERE year = 2006
Who won bronze is 2006?
CREATE TABLE table_name_7 (bronze VARCHAR, year VARCHAR)
SELECT points_classification FROM table_name_93 WHERE young_rider_classification = "chris anker sørensen" AND general_classification = "christian vande velde"
What is the point classification with chris anker sørensen as the young rider classification and Christian vande velde as the general classification?
CREATE TABLE table_name_93 (points_classification VARCHAR, young_rider_classification VARCHAR, general_classification VARCHAR)
SELECT school FROM table_name_50 WHERE college_hall_of_fame = "nevers hof profile"
What is the school of the player with a college hall of fame nevers hof profile?
CREATE TABLE table_name_50 (school VARCHAR, college_hall_of_fame VARCHAR)
SELECT dismissals FROM table_name_67 WHERE player = "source: cricinfo.com"
What is the Dismissals with a Player with source: cricinfo.com?
CREATE TABLE table_name_67 (dismissals VARCHAR, player VARCHAR)
SELECT venue FROM table_name_46 WHERE date = "23,24,26,27,28,29 feb, 1 mar 1912"
What is Venue, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
CREATE TABLE table_name_46 (venue VARCHAR, date VARCHAR)
SELECT played FROM table_name_35 WHERE club = "morriston rfc"
What is listed under Played that has a Club of Morriston RFC?
CREATE TABLE table_name_35 (played VARCHAR, club VARCHAR)
SELECT active_service FROM table_name_72 WHERE reason_for_termination = "death" AND senior_status = "1972–2005"
Which active services years ended in death and had senior status in 1972–2005?
CREATE TABLE table_name_72 (active_service VARCHAR, reason_for_termination VARCHAR, senior_status VARCHAR)
SELECT team FROM table_name_6 WHERE date_of_appointment = "10 november 2008"
What is Team, when Date of Appointment is "10 November 2008"?
CREATE TABLE table_name_6 (team VARCHAR, date_of_appointment VARCHAR)
SELECT MAX(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings'
List the maximum scores of the team Boston Red Stockings when the team won in postseason?
CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE postseason (wins INTEGER, team_id_winner VARCHAR)
SELECT date FROM table_name_17 WHERE result = "1–0" AND attendance > 668 AND opponent = "ayr united"
On what date was the opponent Ayr United, the result 1–0, and the attendance more than 668?
CREATE TABLE table_name_17 (date VARCHAR, opponent VARCHAR, result VARCHAR, attendance VARCHAR)
SELECT type FROM table_name_91 WHERE moving_to = "panionios"
What is the type for the Panionios moving to?
CREATE TABLE table_name_91 (type VARCHAR, moving_to VARCHAR)
SELECT COUNT(title) FROM table_23242933_2 WHERE us_viewers__millions_ = "7.84"
How many different titles are there of episodes that have been seen by 7.84 million people in the US/
CREATE TABLE table_23242933_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT name FROM table_name_27 WHERE decile = 8 AND roll = 705
Which school has a decile of 8 and a roll of 705?
CREATE TABLE table_name_27 (name VARCHAR, decile VARCHAR, roll VARCHAR)
SELECT COUNT(crowd) FROM table_name_91 WHERE home_team = "richmond"
What is the combined of Crowd when richmond played at home?
CREATE TABLE table_name_91 (crowd VARCHAR, home_team VARCHAR)
SELECT episodes FROM table_name_20 WHERE title = "jewboy"
what episode is called jewboy
CREATE TABLE table_name_20 (episodes VARCHAR, title VARCHAR)
SELECT COUNT(vuelta_wins) FROM table_name_31 WHERE country = "ireland" AND points > 4
How many times is the country ireland and points more than 4?
CREATE TABLE table_name_31 (vuelta_wins VARCHAR, country VARCHAR, points VARCHAR)
SELECT steals FROM table_22824302_3 WHERE games_played = 31
How many interceptions for the team who played 31 games?
CREATE TABLE table_22824302_3 (steals VARCHAR, games_played VARCHAR)
SELECT performer_3 FROM table_name_40 WHERE performer_2 = "chip esten"
Performer 2 of chip esten has what performer 3?
CREATE TABLE table_name_40 (performer_3 VARCHAR, performer_2 VARCHAR)
SELECT SUM(points) FROM table_name_96 WHERE team = "suzuki" AND year < 1981 AND wins < 0
Before 1981, how many Points did Team Suzuki have with less than 0 Wins?
CREATE TABLE table_name_96 (points INTEGER, wins VARCHAR, team VARCHAR, year VARCHAR)
SELECT location FROM table_name_76 WHERE reign = "3"
Name the location of reign 3
CREATE TABLE table_name_76 (location VARCHAR, reign VARCHAR)
SELECT score FROM table_name_76 WHERE date = "june 4, 2008"
What is the score of the match on June 4, 2008?
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR)
SELECT MAX(year_established) FROM table_1784514_1
What is the latest year a division was established?
CREATE TABLE table_1784514_1 (year_established INTEGER)
SELECT away_team AS score FROM table_name_83 WHERE home_team = "brisbane lions"
What was the away team score when the home team was the Brisbane Lions?
CREATE TABLE table_name_83 (away_team VARCHAR, home_team VARCHAR)
SELECT host FROM table_name_12 WHERE venue = "hammons student center"
What was the host of the round at Hammons Student Center?
CREATE TABLE table_name_12 (host VARCHAR, venue VARCHAR)
SELECT country FROM table_name_2 WHERE place = "t2" AND score = 69 - 69 - 69 = 207
What is the Country of the T2 Place Player with a Score of 69-69-69=207?
CREATE TABLE table_name_2 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT MIN(bodyweight) FROM table_name_36 WHERE clean_ & _jerk = "145.0" AND snatch < 122.5
What is the least Bodyweight for the Clean & jerk of 145.0, and a Snatch smaller than 122.5?
CREATE TABLE table_name_36 (bodyweight INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT COUNT(to_par) FROM table_name_4 WHERE player = "lee trevino"
What is the total number of To par for Lee Trevino?
CREATE TABLE table_name_4 (to_par VARCHAR, player VARCHAR)
SELECT producer FROM table_name_79 WHERE power_plant = "chennai mohan"
What company is the producer in the chennai mohan power plant?
CREATE TABLE table_name_79 (producer VARCHAR, power_plant VARCHAR)
SELECT runner_s__up FROM table_1590652_4 WHERE tournament = "WGC-Accenture Match Play Championship"
Name the runners up for when tournament is wgc-accenture match play championship
CREATE TABLE table_1590652_4 (runner_s__up VARCHAR, tournament VARCHAR)
SELECT holding FROM table_name_56 WHERE component = "customers"
What is the holding of the customers?
CREATE TABLE table_name_56 (holding VARCHAR, component VARCHAR)
SELECT COUNT(pick__number) FROM table_name_91 WHERE name = "james britt" AND round > 2
How many pick #'s have james britt as the name, with a round greater than 2?
CREATE TABLE table_name_91 (pick__number VARCHAR, name VARCHAR, round VARCHAR)
SELECT COUNT(location) FROM table_24123547_2 WHERE week = 7
How many locations did the team play at on week 7?
CREATE TABLE table_24123547_2 (location VARCHAR, week VARCHAR)
SELECT date_given FROM table_name_35 WHERE head_of_household = "rica"
What date was Rica head of household?
CREATE TABLE table_name_35 (date_given VARCHAR, head_of_household VARCHAR)