answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(year) FROM table_1963459_2 WHERE average_speed__mph_ = "145.24"
What year was the average speed 145.24
CREATE TABLE table_1963459_2 (year INTEGER, average_speed__mph_ VARCHAR)
SELECT MAX(games) FROM table_name_18 WHERE team = "czechoslovakia" AND drawn > 0
How many games does team Czechoslovakia have that had a drawn greater than 0?
CREATE TABLE table_name_18 (games INTEGER, team VARCHAR, drawn VARCHAR)
SELECT result FROM table_14302582_1 WHERE home_matches = 14
What was the result when the team had contested 14 home games?
CREATE TABLE table_14302582_1 (result VARCHAR, home_matches VARCHAR)
SELECT location FROM table_12562214_1 WHERE date__to_ = "8 October 1922"
what is the location for the date (to) 8 october 1922?
CREATE TABLE table_12562214_1 (location VARCHAR, date__to_ VARCHAR)
SELECT date FROM table_name_38 WHERE score = "2-1"
On what date was the score 2-1?
CREATE TABLE table_name_38 (date VARCHAR, score VARCHAR)
SELECT genre FROM table_name_32 WHERE game = "portal 2"
What is the genre for Portal 2?
CREATE TABLE table_name_32 (genre VARCHAR, game VARCHAR)
SELECT runners_up FROM table_name_2 WHERE venue = "bergisch gladbach" AND year = "1983"
What team was runner-up at Bergisch Gladbach in 1983?
CREATE TABLE table_name_2 (runners_up VARCHAR, venue VARCHAR, year VARCHAR)
SELECT COUNT(episode) FROM table_24212608_1 WHERE broadcast_date = 2010
How many episodes were broadcast in 2010?
CREATE TABLE table_24212608_1 (episode VARCHAR, broadcast_date VARCHAR)
SELECT COUNT(country) FROM table_28281704_1 WHERE city = "Athens"
Name the country for athens
CREATE TABLE table_28281704_1 (country VARCHAR, city VARCHAR)
SELECT opponent FROM table_name_61 WHERE game < 57 AND score = "4–5"
What is the opponent before game 57 when the score was 4–5?
CREATE TABLE table_name_61 (opponent VARCHAR, game VARCHAR, score VARCHAR)
SELECT SUM(premier_league) FROM table_name_20 WHERE fa_cup = 0 AND total = 1 AND UEfa_cup > 1
How much Premier League has an FA Cup of 0, and a Total of 1, and a UEFA Cup larger than 1?
CREATE TABLE table_name_20 (premier_league INTEGER, UEfa_cup VARCHAR, fa_cup VARCHAR, total VARCHAR)
SELECT 2006 FROM table_name_7 WHERE 1990 = "grand slam tournaments"
What shows for 2006 when 1999 is Grand Slam Tournaments?
CREATE TABLE table_name_7 (Id VARCHAR)
SELECT record FROM table_27723228_8 WHERE score = "L 84–96 (OT)"
What is the record when the score was l 84–96 (ot)?
CREATE TABLE table_27723228_8 (record VARCHAR, score VARCHAR)
SELECT date FROM table_name_7 WHERE opponent = "new york jets"
What was the date of the game against the New York Jets?
CREATE TABLE table_name_7 (date VARCHAR, opponent VARCHAR)
SELECT location_attendance FROM table_name_16 WHERE team = "orlando"
What is Location Attendance, when Team is "Orlando"?
CREATE TABLE table_name_16 (location_attendance VARCHAR, team VARCHAR)
SELECT SUM(uci_points) FROM table_name_42 WHERE cyclist = "kim kirchen"
What is the sum of UCI points for Kim Kirchen?
CREATE TABLE table_name_42 (uci_points INTEGER, cyclist VARCHAR)
SELECT COUNT(wins) FROM table_name_79 WHERE tournament = "u.s. open" AND top_25 < 4
What is the number of Tournament of U.S. Open wins with a Top-25 smaller than 4?
CREATE TABLE table_name_79 (wins VARCHAR, tournament VARCHAR, top_25 VARCHAR)
SELECT tie_no FROM table_name_88 WHERE home_team = "altrincham"
What is the number of ties when Altrincham is the home team?
CREATE TABLE table_name_88 (tie_no VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_73 WHERE attendance = "67,472"
Which date had 67,472 in attendance?
CREATE TABLE table_name_73 (date VARCHAR, attendance VARCHAR)
SELECT AVG(february) FROM table_name_11 WHERE record = "18-26-10" AND game < 54
What is the average February that has 18-26-10 as the record, with a game less than 54?
CREATE TABLE table_name_11 (february INTEGER, record VARCHAR, game VARCHAR)
SELECT score FROM table_name_52 WHERE record = "35-31"
The record of 35-31 has what score?
CREATE TABLE table_name_52 (score VARCHAR, record VARCHAR)
SELECT title FROM table_28760804_1 WHERE directed_by = "Alex Reid"
What is the title of the episode Alex Reid directed?
CREATE TABLE table_28760804_1 (title VARCHAR, directed_by VARCHAR)
SELECT MAX(to_par) FROM table_name_33 WHERE player = "mike weir"
What score to highest to par did Mike Weir achieve?
CREATE TABLE table_name_33 (to_par INTEGER, player VARCHAR)
SELECT team FROM table_name_67 WHERE year = "1976"
What is the team for 1976?
CREATE TABLE table_name_67 (team VARCHAR, year VARCHAR)
SELECT COUNT(silver) FROM table_name_59 WHERE rank = "7" AND total > 1
What is the total number of silver medals of the team ranked 7 with more than 1 total medal?
CREATE TABLE table_name_59 (silver VARCHAR, rank VARCHAR, total VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_34 WHERE round = 6
What College/Junior/Club Team (League) has 6 as the Round?
CREATE TABLE table_name_34 (college_junior_club_team__league_ VARCHAR, round VARCHAR)
SELECT strongs_transliteration FROM table_1242447_1 WHERE hebrew_word = "יוֹחָנָן"
What is the strongs transliteration of the hebrew word יוֹחָנָן?
CREATE TABLE table_1242447_1 (strongs_transliteration VARCHAR, hebrew_word VARCHAR)
SELECT publisher FROM table_name_47 WHERE release_title = "martial law: substitutes"
Which publisher released Martial Law: Substitutes?
CREATE TABLE table_name_47 (publisher VARCHAR, release_title VARCHAR)
SELECT home_team FROM table_name_44 WHERE away_team = "hawthorn"
Which home team played Hawthorn as the away team?
CREATE TABLE table_name_44 (home_team VARCHAR, away_team VARCHAR)
SELECT gold FROM table_name_56 WHERE silver = 39
Name the gold for silver of 39
CREATE TABLE table_name_56 (gold VARCHAR, silver VARCHAR)
SELECT runner_up FROM table_name_35 WHERE winner = "janice yan (閻奕格)"
Name the runner-up for janice yan (閻奕格)
CREATE TABLE table_name_35 (runner_up VARCHAR, winner VARCHAR)
SELECT segment_a FROM table_15187735_12 WHERE segment_b = "Kevlar s Canoe"
What is Segment A where Segment B is Kevlar S Canoe?
CREATE TABLE table_15187735_12 (segment_a VARCHAR, segment_b VARCHAR)
SELECT student_id FROM students WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)
List the id of students who never attends courses?
CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE students (student_id VARCHAR)
SELECT MAX(pick) FROM table_name_15 WHERE position = "defensive end"
What is the highest pick for the position of defensive end?
CREATE TABLE table_name_15 (pick INTEGER, position VARCHAR)
SELECT score FROM table_name_8 WHERE date = "march 15"
What was the Score on March 15?
CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR)
SELECT player FROM table_name_13 WHERE score = 71 - 72 - 66 = 209
What player has 71-72-66=209 as the score?
CREATE TABLE table_name_13 (player VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_45 WHERE time = "1:47"
Who was the opponent when the time was 1:47?
CREATE TABLE table_name_45 (opponent VARCHAR, time VARCHAR)
SELECT kit_factory FROM table_name_90 WHERE manufacturer = "jabiru" AND model = "j250"
What Kit/Factory has a J250 model made by Jabiru?
CREATE TABLE table_name_90 (kit_factory VARCHAR, manufacturer VARCHAR, model VARCHAR)
SELECT weight FROM table_name_31 WHERE club = "uralochka zlatoust" AND date_of_birth = "1981-02-24"
What is the Weight of the person born 1981-02-24 from the Uralochka Zlatoust club ?
CREATE TABLE table_name_31 (weight VARCHAR, club VARCHAR, date_of_birth VARCHAR)
SELECT country FROM table_name_89 WHERE town = "dubai"
what country has dubai
CREATE TABLE table_name_89 (country VARCHAR, town VARCHAR)
SELECT AVG(rank) FROM table_name_73 WHERE lane = 6
What was the rank of the player in lane 6?
CREATE TABLE table_name_73 (rank INTEGER, lane VARCHAR)
SELECT inf_stem FROM table_name_10 WHERE subj_pres = "ou"
What is the infinitive stem that has a subjunctive present of ou?
CREATE TABLE table_name_10 (inf_stem VARCHAR, subj_pres VARCHAR)
SELECT score FROM table_name_6 WHERE tie_no = "21"
What was the score for a no. 21 tie?
CREATE TABLE table_name_6 (score VARCHAR, tie_no VARCHAR)
SELECT AVG(entered_service) FROM table_name_73 WHERE builder = "tom smith" AND number < 7007
When did the tom smith built train enter service with a number under 7007?
CREATE TABLE table_name_73 (entered_service INTEGER, builder VARCHAR, number VARCHAR)
SELECT elevation FROM table_name_24 WHERE route > 24 AND highway = "trail ridge road"
Route larger than 24, and a Highway of trail ridge road had what elevation?
CREATE TABLE table_name_24 (elevation VARCHAR, route VARCHAR, highway VARCHAR)
SELECT winner FROM table_name_93 WHERE tournament = "london"
Name the winner for london tournament
CREATE TABLE table_name_93 (winner VARCHAR, tournament VARCHAR)
SELECT driver FROM table_name_17 WHERE grid > 3 AND time_retired = "accident"
Who drove in grids more than 3 and exited in an accident?
CREATE TABLE table_name_17 (driver VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT T2.name, SUM(T1.show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id = T2.cinema_id GROUP BY T1.cinema_id
What is total number of show times per dat for each cinema?
CREATE TABLE schedule (show_times_per_day INTEGER, cinema_id VARCHAR); CREATE TABLE cinema (name VARCHAR, cinema_id VARCHAR)
SELECT lifespan FROM table_name_21 WHERE party = "democratic" AND state = "new york" AND representative = "terence j. quinn"
What is the lifespan of the democratic party in New York, for which Terence J. Quinn is a representative?
CREATE TABLE table_name_21 (lifespan VARCHAR, representative VARCHAR, party VARCHAR, state VARCHAR)
SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name HAVING COUNT(*) >= 2
What are characteristic names used at least twice across all products?
CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
SELECT MIN(1990) FROM table_name_54 WHERE region = "east asia (10 economies)" AND 1960 < 12.6
What is the lowest value for 1990, when the Region is East Asia (10 Economies), and when 1960 has a value less than 12.6?
CREATE TABLE table_name_54 (region VARCHAR)
SELECT 2007 FROM table_name_20 WHERE 2008 = "kiara spivey"
Who attended the school in 2007, that Kiara Spivey attended in 2008?
CREATE TABLE table_name_20 (Id VARCHAR)
SELECT COUNT(tied) FROM table_name_98 WHERE total_games < 1183 AND years = 121 AND lost > 541
How many total ties had less than 1183 total games, 121 years, and more than 541 losses?
CREATE TABLE table_name_98 (tied VARCHAR, lost VARCHAR, total_games VARCHAR, years VARCHAR)
SELECT spacewalkers FROM table_22385461_8 WHERE end__utc_ = "January 31, 2007 23:09"
If the end (UTC) is January 31, 2007 23:09, what is the name of the spacewalkers?
CREATE TABLE table_22385461_8 (spacewalkers VARCHAR, end__utc_ VARCHAR)
SELECT congress FROM table_name_97 WHERE _number_of_cosponsors = 44
What number of Congress has 44 cosponsors?
CREATE TABLE table_name_97 (congress VARCHAR, _number_of_cosponsors VARCHAR)
SELECT MAX(rounds) FROM table_name_40 WHERE truck_s_ = "chevrolet silverado" AND team = "rbr enterprises"
What is the most number of rounds that the Team from RBR Enterprises and having a Chevrolet Silverado ran?
CREATE TABLE table_name_40 (rounds INTEGER, truck_s_ VARCHAR, team VARCHAR)
SELECT season FROM table_175980_2 WHERE ranking = "#47"
What seasons had a ranking of #47?
CREATE TABLE table_175980_2 (season VARCHAR, ranking VARCHAR)
SELECT location_attendance FROM table_name_9 WHERE team = "oklahoma city"
Where was the game played when the opponent was Oklahoma City, and what was the attendance?
CREATE TABLE table_name_9 (location_attendance VARCHAR, team VARCHAR)
SELECT final_score FROM table_24123547_2 WHERE opponent = "Lions"
What was the result of the games VS the Lions?
CREATE TABLE table_24123547_2 (final_score VARCHAR, opponent VARCHAR)
SELECT winning_boat FROM table_24673710_1 WHERE year = 2012
When 2012 is the year what is the winning boat?
CREATE TABLE table_24673710_1 (winning_boat VARCHAR, year VARCHAR)
SELECT date FROM table_name_79 WHERE record = "21-26"
On what date was the record 21-26?
CREATE TABLE table_name_79 (date VARCHAR, record VARCHAR)
SELECT week FROM table_name_33 WHERE date = "december 19, 2004"
What week has December 19, 2004 as the date?
CREATE TABLE table_name_33 (week VARCHAR, date VARCHAR)
SELECT venue FROM table_name_68 WHERE club = "dixie derby girls"
Which venue hosted the Dixie Derby Girls?
CREATE TABLE table_name_68 (venue VARCHAR, club VARCHAR)
SELECT MAX(s_no) FROM table_name_8 WHERE match_date = "nov 1, 2003"
What is the highest S No, when the Match Date is Nov 1, 2003?
CREATE TABLE table_name_8 (s_no INTEGER, match_date VARCHAR)
SELECT COUNT(tries_against) FROM table_13564637_3 WHERE points_for = "325"
what is the total amount of tries where the points were 325?
CREATE TABLE table_13564637_3 (tries_against VARCHAR, points_for VARCHAR)
SELECT date FROM table_name_20 WHERE home = "ny islanders"
When was the home game for the NY Islanders?
CREATE TABLE table_name_20 (date VARCHAR, home VARCHAR)
SELECT seasons FROM table_name_45 WHERE percentage = "13.56%"
Which season has a percentage of 13.56%?
CREATE TABLE table_name_45 (seasons VARCHAR, percentage VARCHAR)
SELECT away_team AS score FROM table_name_36 WHERE home_team = "university"
Name the away team score for home team of university
CREATE TABLE table_name_36 (away_team VARCHAR, home_team VARCHAR)
SELECT position FROM table_name_71 WHERE year > 1998 AND notes = "2:31:40"
What position did he finish after 1998 and a note time of 2:31:40?
CREATE TABLE table_name_71 (position VARCHAR, year VARCHAR, notes VARCHAR)
SELECT MAX(year) FROM table_name_29 WHERE finish = 51 AND start < 64
What is the highest Year, when Finish is "51", and when Start is less than 64?
CREATE TABLE table_name_29 (year INTEGER, finish VARCHAR, start VARCHAR)
SELECT place FROM table_name_49 WHERE player = "ben hogan"
What place is Ben Hogan?
CREATE TABLE table_name_49 (place VARCHAR, player VARCHAR)
SELECT artist FROM table_name_5 WHERE percentage = "17.14%"
What Artist had a Percentage of 17.14%?
CREATE TABLE table_name_5 (artist VARCHAR, percentage VARCHAR)
SELECT nominated_work FROM table_name_68 WHERE year > 2006 AND award = "drama desk award" AND category = "outstanding featured actor in a musical"
What was the nominated work after 2006, that was awarded the Drama Desk award and the Outstanding featured actor in a musical?
CREATE TABLE table_name_68 (nominated_work VARCHAR, category VARCHAR, year VARCHAR, award VARCHAR)
SELECT score FROM table_13762472_3 WHERE date = "November 25"
What was the score on November 25?
CREATE TABLE table_13762472_3 (score VARCHAR, date VARCHAR)
SELECT time FROM table_name_22 WHERE event = "tfc 21"
Name the time for event of tfc 21
CREATE TABLE table_name_22 (time VARCHAR, event VARCHAR)
SELECT constructor FROM table_1706942_1 WHERE q1_order = 4
What is the constructor when the Q1 order is 4?
CREATE TABLE table_1706942_1 (constructor VARCHAR, q1_order VARCHAR)
SELECT MAX(first_elected) FROM table_1342270_42
What is the latest year any of the incumbents were first elected?
CREATE TABLE table_1342270_42 (first_elected INTEGER)
SELECT dominant_religion__2002_ FROM table_2562572_44 WHERE settlement = "Lokve"
What was the dominant religion in 2002 in lokve?
CREATE TABLE table_2562572_44 (dominant_religion__2002_ VARCHAR, settlement VARCHAR)
SELECT emissions_co2 FROM table_name_76 WHERE max_speed = "km/h (mph)" AND car_model = "panamera 4s"
What is the emissions CO2 with a max speed of km/h (mph) of the car model Panamera 4s?
CREATE TABLE table_name_76 (emissions_co2 VARCHAR, max_speed VARCHAR, car_model VARCHAR)
SELECT institution FROM table_name_55 WHERE location = "athens, ga, us"
What institution is located in athens, ga, us?
CREATE TABLE table_name_55 (institution VARCHAR, location VARCHAR)
SELECT countries_visited FROM table_name_26 WHERE episode_no < 7 AND writer = "ray gosling"
Which countries visited had an episode number of less than 7 when Ray Gosling was the writer?
CREATE TABLE table_name_26 (countries_visited VARCHAR, episode_no VARCHAR, writer VARCHAR)
SELECT region_1 FROM table_15823956_1 WHERE series = "4"
What is the region 1 date for series 4
CREATE TABLE table_15823956_1 (region_1 VARCHAR, series VARCHAR)
SELECT driver FROM table_name_44 WHERE time_retired = "2:45:46.2"
Which driver has a Time/Retired of 2:45:46.2?
CREATE TABLE table_name_44 (driver VARCHAR, time_retired VARCHAR)
SELECT COUNT(date_founded) FROM table_name_77 WHERE park_name = "beltzville state park"
how many parks are name beltzville state park?
CREATE TABLE table_name_77 (date_founded VARCHAR, park_name VARCHAR)
SELECT points FROM table_name_39 WHERE goal_difference < 38 AND wins = 12 AND club = "real oviedo"
In the club of Real Oviedo, what were the points of the competitor with a goal difference less than 38, and 12 wins?
CREATE TABLE table_name_39 (points VARCHAR, club VARCHAR, goal_difference VARCHAR, wins VARCHAR)
SELECT AVG(pick) FROM table_name_30 WHERE name = "lybrant robinson" AND overall < 139
What is the average Pick, when Name is "Lybrant Robinson", and when Overall is less than 139?
CREATE TABLE table_name_30 (pick INTEGER, name VARCHAR, overall VARCHAR)
SELECT loan_club FROM table_name_28 WHERE start_source = "bbc sport" AND started = "9 february"
what is the loan club with the start source is bbc sport and started on 9 february?
CREATE TABLE table_name_28 (loan_club VARCHAR, start_source VARCHAR, started VARCHAR)
SELECT headquarters FROM table_name_23 WHERE employees__world_ = 100
Which HQ is associated with a number of employees of 100?
CREATE TABLE table_name_23 (headquarters VARCHAR, employees__world_ VARCHAR)
SELECT AVG(attendance) FROM table_name_21 WHERE date = "september 11, 1988"
What was the attendance on September 11, 1988?
CREATE TABLE table_name_21 (attendance INTEGER, date VARCHAR)
SELECT to_par FROM table_name_84 WHERE finish = "t56"
What was the To par for the player who finished t56?
CREATE TABLE table_name_84 (to_par VARCHAR, finish VARCHAR)
SELECT broadcast_date FROM table_2102782_1 WHERE viewers__in_millions_ = "6.0"
Name the broadcast date for 6.0 viewers
CREATE TABLE table_2102782_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR)
SELECT alumni FROM table_26419467_1 WHERE fresh_meat_partner = "Noor Jehangir"
What alumni had noor jehangir as their fresh meat partner?
CREATE TABLE table_26419467_1 (alumni VARCHAR, fresh_meat_partner VARCHAR)
SELECT result FROM table_name_79 WHERE venue = "melbourne cricket ground"
What is the final score at Melbourne Cricket Ground?
CREATE TABLE table_name_79 (result VARCHAR, venue VARCHAR)
SELECT label FROM table_name_39 WHERE format = "digital download" AND edition_s_ = "bonus tracks version"
Tell me the label for digital download for bonus tracks version
CREATE TABLE table_name_39 (label VARCHAR, format VARCHAR, edition_s_ VARCHAR)
SELECT COUNT(language_s_) FROM table_16254861_1 WHERE year__ceremony_ = "2001 (74th)"
How many languages for the 2001 (74th) awards?
CREATE TABLE table_16254861_1 (language_s_ VARCHAR, year__ceremony_ VARCHAR)
SELECT launched FROM table_name_36 WHERE commissioned = "6 june 1935"
Which Launched has Commissioned 6 june 1935?
CREATE TABLE table_name_36 (launched VARCHAR, commissioned VARCHAR)
SELECT MIN(election) FROM table_name_69 WHERE _number_of_candidates_nominated > 7 AND _percentage_of_popular_vote = "2.75%" AND _number_of_seats_won < 0
What is the earliest election with more than 7 candidates nominated, a percentage of the popular vote of 2.75%, and 0 seats won?
CREATE TABLE table_name_69 (election INTEGER, _number_of_seats_won VARCHAR, _number_of_candidates_nominated VARCHAR, _percentage_of_popular_vote VARCHAR)
SELECT result FROM table_name_14 WHERE nominee = "jason pennycooke"
Did Jason Pennycooke win the award he was nominated for?
CREATE TABLE table_name_14 (result VARCHAR, nominee VARCHAR)
SELECT AVG(game) FROM table_name_71 WHERE score = "101–92"
What Game had a Score of 101–92?
CREATE TABLE table_name_71 (game INTEGER, score VARCHAR)
SELECT matches FROM table_name_89 WHERE rank = 1
Can you tell me the Matches that has the Rank of 1?
CREATE TABLE table_name_89 (matches VARCHAR, rank VARCHAR)