answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(final_venue) FROM table_19651669_1 WHERE season = "1997-98"
How many final venues were there in the 1997-98 season?
CREATE TABLE table_19651669_1 (final_venue VARCHAR, season VARCHAR)
SELECT date FROM table_name_66 WHERE year = "1967"
What is the Date of the Int'l Debut of 1967?
CREATE TABLE table_name_66 (date VARCHAR, year VARCHAR)
SELECT COUNT(total) FROM table_13606924_1 WHERE county = "Rooks county, Kansas"
how many total with county being rooks county, kansas
CREATE TABLE table_13606924_1 (total VARCHAR, county VARCHAR)
SELECT date FROM table_name_15 WHERE away = "central blues"
What is the Date with an Away that is central blues?
CREATE TABLE table_name_15 (date VARCHAR, away VARCHAR)
SELECT DISTINCT detention_type_code FROM Detention
Return all distinct detention type codes.
CREATE TABLE Detention (detention_type_code VARCHAR)
SELECT score FROM table_27537518_4 WHERE game = 1
What was the score for game #1?
CREATE TABLE table_27537518_4 (score VARCHAR, game VARCHAR)
SELECT AVG(attendance) FROM table_name_22 WHERE home = "chicago bears"
What was the average attendance when Chicago Bears were the home team?
CREATE TABLE table_name_22 (attendance INTEGER, home VARCHAR)
SELECT pop__km² FROM table_2252745_1 WHERE area__km²_ = 22721
when the area (km²) is 22721, what is the pop./ km²?
CREATE TABLE table_2252745_1 (pop__km² VARCHAR, area__km²_ VARCHAR)
SELECT COUNT(opponent) FROM table_18894744_6 WHERE record = "17-6"
How many opponents was a game with a record 17-6 played against?
CREATE TABLE table_18894744_6 (opponent VARCHAR, record VARCHAR)
SELECT MAX(week) FROM table_name_60 WHERE record = "1-2" AND attendance > 61 OFFSET 602
Name the most week for record of 1-2 and attendance more than 61,602
CREATE TABLE table_name_60 (week INTEGER, record VARCHAR, attendance VARCHAR)
SELECT yield__approximate_ FROM table_148578_1 WHERE explosion = "K-4"
What was the yield of the K-4 explosion?
CREATE TABLE table_148578_1 (yield__approximate_ VARCHAR, explosion VARCHAR)
SELECT name FROM table_name_21 WHERE best = "1:32.269"
Who had the best time of 1:32.269?
CREATE TABLE table_name_21 (name VARCHAR, best VARCHAR)
SELECT status FROM table_name_52 WHERE against = 35
Which status has an against of 35?
CREATE TABLE table_name_52 (status VARCHAR, against VARCHAR)
SELECT rider FROM table_name_36 WHERE grid = 37
Who has 37 grids?
CREATE TABLE table_name_36 (rider VARCHAR, grid VARCHAR)
SELECT MAX(_number) FROM table_197638_6
How many players are on this list?
CREATE TABLE table_197638_6 (_number INTEGER)
SELECT partner FROM table_name_80 WHERE date = "october 20, 2013"
Who was the partner for the game on October 20, 2013?
CREATE TABLE table_name_80 (partner VARCHAR, date VARCHAR)
SELECT country FROM table_name_9 WHERE nominating_festival = "prix uip venezia"
Name the country which has prix uip venezia
CREATE TABLE table_name_9 (country VARCHAR, nominating_festival VARCHAR)
SELECT disposition_of_ship FROM table_name_57 WHERE ship_type = "brig" AND location = "english channel"
For the ship that was a brig and located in the English Channel, what was the disposition of ship?
CREATE TABLE table_name_57 (disposition_of_ship VARCHAR, ship_type VARCHAR, location VARCHAR)
SELECT type FROM table_name_60 WHERE ends = "2009"
What's the type that ends in 2009?
CREATE TABLE table_name_60 (type VARCHAR, ends VARCHAR)
SELECT bike_id FROM trip WHERE zip_code = 94002 GROUP BY bike_id ORDER BY COUNT(*) DESC LIMIT 1
Which bike traveled the most often in zip code 94002?
CREATE TABLE trip (bike_id VARCHAR, zip_code VARCHAR)
SELECT SUM(grid) FROM table_name_82 WHERE laps > 97
Name the sum of grid with laps more than 97
CREATE TABLE table_name_82 (grid INTEGER, laps INTEGER)
SELECT venue FROM table_name_41 WHERE year < 2007 AND result = "1st"
a Year smaller than 2007, and a Result of 1st is in what venue?
CREATE TABLE table_name_41 (venue VARCHAR, year VARCHAR, result VARCHAR)
SELECT successor FROM table_2159571_2 WHERE district = "Washington 3rd"
Who is every successor for the Washington 3rd District?
CREATE TABLE table_2159571_2 (successor VARCHAR, district VARCHAR)
SELECT MAX(ngc_number) FROM table_name_5 WHERE declination___j2000__ = "°04′58″" AND apparent_magnitude > 7.3
What is the highest NGC number that has a Declination ( J2000 ) of °04′58″ and a Apparent magnitude larger than 7.3?
CREATE TABLE table_name_5 (ngc_number INTEGER, declination___j2000__ VARCHAR, apparent_magnitude 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)
SELECT score FROM table_name_89 WHERE opponent = "devil rays" AND date = "september 14"
What was the score against the devil rays on september 14?
CREATE TABLE table_name_89 (score VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT date FROM table_name_61 WHERE type_of_game = "friendly" AND opponent = "wales"
On what date was there a friendly game against Wales?
CREATE TABLE table_name_61 (date VARCHAR, type_of_game VARCHAR, opponent VARCHAR)
SELECT MAX(goals) FROM table_name_34 WHERE name = "samuel eto'o"
What is the greatest Goals with a Name of samuel eto'o?
CREATE TABLE table_name_34 (goals INTEGER, name VARCHAR)
SELECT second_place FROM table_15988037_4 WHERE winner = "Rafał Mroczek & Aneta Piotrowska"
Who got second place when the winners were rafał mroczek & aneta piotrowska?
CREATE TABLE table_15988037_4 (second_place VARCHAR, winner VARCHAR)
SELECT winner_season FROM table_name_52 WHERE year = 1998
Who won the season of 1998?
CREATE TABLE table_name_52 (winner_season VARCHAR, year VARCHAR)
SELECT MAX(grid) FROM table_name_80 WHERE driver = "piercarlo ghinzani" AND laps > 3
What is the highest numbered grid for piercarlo ghinzani with over 3 laps?
CREATE TABLE table_name_80 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT away_team FROM table_name_17 WHERE home_team = "north melbourne"
Who was the away team when North Melbourne was the home team?
CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR)
SELECT district FROM table_1342370_41 WHERE incumbent = "Cordell Hull"
In what district was the incumbent Cordell hull?
CREATE TABLE table_1342370_41 (district VARCHAR, incumbent VARCHAR)
SELECT MAX(year) FROM table_name_19 WHERE album___song = "the best worst-case scenario"
What is the most recent year with the Album/Song "the best worst-case scenario"?
CREATE TABLE table_name_19 (year INTEGER, album___song VARCHAR)
SELECT opponent FROM table_13258876_2 WHERE attendance = 61615
Who did the Seahawks play when the listed attendance was 61615?
CREATE TABLE table_13258876_2 (opponent VARCHAR, attendance VARCHAR)
SELECT student_id FROM student_course_attendance WHERE course_id = 301
What are the id of students who registered course 301?
CREATE TABLE student_course_attendance (student_id VARCHAR, course_id VARCHAR)
SELECT track FROM table_name_34 WHERE date = "09-13-2008"
Where was the race on 09-13-2008?
CREATE TABLE table_name_34 (track VARCHAR, date VARCHAR)
SELECT victim_s_ FROM table_23546266_1 WHERE executed_person = "Linroy Bottoson"
What's the name of Linroy Bottoson's victim?
CREATE TABLE table_23546266_1 (victim_s_ VARCHAR, executed_person VARCHAR)
SELECT antiparticle_symbol FROM table_name_16 WHERE rest_mass___mev___c_2__ = ".47 ± .33"
What is the antiparticle symbol with a rest mess (mev/c2) of .47 ± .33?
CREATE TABLE table_name_16 (antiparticle_symbol VARCHAR, rest_mass___mev___c_2__ VARCHAR)
SELECT london_borough FROM table_19149550_9 WHERE pakistani_population = 7797
What's the London borough with 7797 Pakistani citizens?
CREATE TABLE table_19149550_9 (london_borough VARCHAR, pakistani_population VARCHAR)
SELECT opponents FROM table_name_78 WHERE year = "1999–2000" AND team = "leeds united"
Which Opponents have a Year of 1999–2000, and a Team of leeds united?
CREATE TABLE table_name_78 (opponents VARCHAR, year VARCHAR, team VARCHAR)
SELECT COUNT(losses) FROM table_name_94 WHERE total = 17 AND wins > 10
How many losses had a total of 17 and more than 10 wins?
CREATE TABLE table_name_94 (losses VARCHAR, total VARCHAR, wins VARCHAR)
SELECT draw FROM table_name_94 WHERE team = "tramwajarz łódź"
What is the Draw for the team tramwajarz łódź?
CREATE TABLE table_name_94 (draw VARCHAR, team VARCHAR)
SELECT COUNT(country) FROM table_26166836_2 WHERE road_race = "Ottawa Marathon"
What's the whole range of united states where road race is ottawa marathon
CREATE TABLE table_26166836_2 (country VARCHAR, road_race VARCHAR)
SELECT points AS won FROM table_20855452_4 WHERE player = "Shahar Pe'er"
How many points did shahar pe'er score?
CREATE TABLE table_20855452_4 (points VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_1 WHERE player = "greg norman"
How many to par for Greg Norman?
CREATE TABLE table_name_1 (to_par VARCHAR, player VARCHAR)
SELECT score FROM table_name_42 WHERE surface = "clay" AND date = "may 5, 1999"
What is the Score of the Tournament played on Clay Surface on May 5, 1999?
CREATE TABLE table_name_42 (score VARCHAR, surface VARCHAR, date VARCHAR)
SELECT role_code FROM Project_Staff GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1
Which role is most common for the staff?
CREATE TABLE Project_Staff (role_code VARCHAR)
SELECT home_team FROM table_name_47 WHERE venue = "punt road oval"
When the Venue was Punt Road Oval, who was the Home Team?
CREATE TABLE table_name_47 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(location) FROM table_15647838_3 WHERE stadium = "Sun Life stadium"
How many locations have the Sun Life Stadium?
CREATE TABLE table_15647838_3 (location VARCHAR, stadium VARCHAR)
SELECT transfer_window FROM table_name_85 WHERE country = "esp" AND type = "promoted" AND ends > 2010
What is the transfer window in esp with promoted type and more than 2010 ends?
CREATE TABLE table_name_85 (transfer_window VARCHAR, ends VARCHAR, country VARCHAR, type VARCHAR)
SELECT diameter__km_ FROM table_16799784_13 WHERE longitude = "8.0E"
What is the diameter of the feature with longitude 8.0e?
CREATE TABLE table_16799784_13 (diameter__km_ VARCHAR, longitude VARCHAR)
SELECT date FROM table_name_36 WHERE margin_of_victory = "playoff" AND tournament = "shirley englehorn invitational"
What date was there a playoff on the margin of victory during the Shirley Englehorn Invitational?
CREATE TABLE table_name_36 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT variant__with_niqqud__ FROM table_name_53 WHERE phonemic_value = "/v/" AND without_niqqud = "as middle letter: וו"
When a variant without niqqud is as middle letter: וו with a phonemic value of /v/, what is the variant with niqqud?
CREATE TABLE table_name_53 (variant__with_niqqud__ VARCHAR, phonemic_value VARCHAR, without_niqqud VARCHAR)
SELECT decision FROM table_name_71 WHERE visitor = "chicago"
What was the decision of the Kings game when Chicago was the visiting team?
CREATE TABLE table_name_71 (decision VARCHAR, visitor VARCHAR)
SELECT title FROM table_13336122_7 WHERE directed_by = "David Duchovny"
What episode was directed by David Duchovny?
CREATE TABLE table_13336122_7 (title VARCHAR, directed_by VARCHAR)
SELECT session FROM table_name_78 WHERE discipline = "open wheel" AND event = "1977 japanese grand prix"
The 1977 Japanese Grand Prix in the open wheel discipline has what session?
CREATE TABLE table_name_78 (session VARCHAR, discipline VARCHAR, event VARCHAR)
SELECT COUNT(round) FROM table_name_25 WHERE event = "200 miles of norisring"
Which Round has an Event of 200 miles of norisring?
CREATE TABLE table_name_25 (round VARCHAR, event VARCHAR)
SELECT visiting_team FROM table_name_99 WHERE stadium = "candlestick park"
During the game at Candlestick Park, who was the visiting team?
CREATE TABLE table_name_99 (visiting_team VARCHAR, stadium VARCHAR)
SELECT score FROM table_name_19 WHERE attendance = "41,087"
What was the score for the game that had an attendance of 41,087?
CREATE TABLE table_name_19 (score VARCHAR, attendance VARCHAR)
SELECT MIN(position) FROM table_name_23 WHERE country = "germany" AND pilot = "mario kiessling"
What is the lowest position of pilot mario kiessling from Germany?
CREATE TABLE table_name_23 (position INTEGER, country VARCHAR, pilot VARCHAR)
SELECT Party_Theme FROM party ORDER BY Number_of_hosts
List the themes of parties in ascending order of number of hosts.
CREATE TABLE party (Party_Theme VARCHAR, Number_of_hosts VARCHAR)
SELECT AVG(games) FROM table_name_52 WHERE years = "1965–1981" AND ranking > 4
What is the average Games for 1965–1981, and a Ranking larger than 4?
CREATE TABLE table_name_52 (games INTEGER, years VARCHAR, ranking VARCHAR)
SELECT viewers FROM table_name_25 WHERE weekly_rank_for_living = "4"
How many viewers for the episode with the weekly rank for living of 4?
CREATE TABLE table_name_25 (viewers VARCHAR, weekly_rank_for_living VARCHAR)
SELECT result FROM table_name_30 WHERE date = "november 29, 2001"
WHAT WAS THE RESULT FOR NOVEMBER 29, 2001?
CREATE TABLE table_name_30 (result VARCHAR, date VARCHAR)
SELECT COUNT(viewers__m_) FROM table_name_12 WHERE rating = 6.4 AND share > 11
what is the total viewers (m) when the rating is 6.4 and the share is more than 11?
CREATE TABLE table_name_12 (viewers__m_ VARCHAR, rating VARCHAR, share VARCHAR)
SELECT MAX(year) FROM table_name_7 WHERE edition = 14
What was the latest year with an edition of 14?
CREATE TABLE table_name_7 (year INTEGER, edition VARCHAR)
SELECT class FROM table_name_60 WHERE frequency_mhz > 89.3 AND erp_w = 250
What class is assigned to frequencies larger than 89.3 with an ERP W of 250?
CREATE TABLE table_name_60 (class VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)
SELECT episode FROM table_2102714_1 WHERE run_time = "24:53"
What episode had a run time of 24:53?
CREATE TABLE table_2102714_1 (episode VARCHAR, run_time VARCHAR)
SELECT date FROM table_name_60 WHERE winning_constructor = "bugatti" AND winning_driver = "stanislas czaykowski"
Tell me the date for bugatti fpr stanislas czaykowski
CREATE TABLE table_name_60 (date VARCHAR, winning_constructor VARCHAR, winning_driver VARCHAR)
SELECT head_of_household FROM table_name_89 WHERE married_filing_separately = "$104,426–$186,475"
Name the head of household that has married filing separately of $104,426–$186,475
CREATE TABLE table_name_89 (head_of_household VARCHAR, married_filing_separately VARCHAR)
SELECT last_match FROM table_name_26 WHERE date_of_vacancy = "round 2" AND outgoing_manager = "ney franco"
What is the last match with a vacancy date of round 2 and Ney Franco as outgoing manager?
CREATE TABLE table_name_26 (last_match VARCHAR, date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT AVG(annual_interchanges__millions__2011_12) FROM table_name_28 WHERE rank > 26 AND location = "liverpool" AND annual_entry_exit__millions__2011_12 < 14.209 AND number_of_platforms > 10
What's the average annual interchange for a rank over 26 in liverpool with an annual entry/exit less than 14.209 and more than 10 platforms?
CREATE TABLE table_name_28 (annual_interchanges__millions__2011_12 INTEGER, number_of_platforms VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR, rank VARCHAR, location VARCHAR)
SELECT brazil_100_percentage__percent_of_the_population_ FROM table_18950570_4 WHERE age_group = "15-17"
what ae all of the brazil 100% where the age group is 15-17?
CREATE TABLE table_18950570_4 (brazil_100_percentage__percent_of_the_population_ VARCHAR, age_group VARCHAR)
SELECT manufacture FROM table_name_33 WHERE opened_in < 2001 AND type = "mini jet red baron"
Who is the manufacturer of the mini jet red baron ride that opened before 2001?
CREATE TABLE table_name_33 (manufacture VARCHAR, opened_in VARCHAR, type VARCHAR)
SELECT SUM(population) FROM table_name_68 WHERE simplified = "上杭县" AND area < 2 OFFSET 879
What's the sum of the population for the place simplified 上杭县 with an area smaller than 2,879?
CREATE TABLE table_name_68 (population INTEGER, simplified VARCHAR, area VARCHAR)
SELECT circuit FROM table_1140105_6 WHERE race_name = "II Danish Grand Prix"
What is the name of the circuit in which the race name is ii danish grand prix?
CREATE TABLE table_1140105_6 (circuit VARCHAR, race_name VARCHAR)
SELECT high_rebounds FROM table_27715173_12 WHERE game = 1
Who was the high rebounder on game 1?
CREATE TABLE table_27715173_12 (high_rebounds VARCHAR, game VARCHAR)
SELECT date FROM table_24453847_2 WHERE game_site = "AOL Arena"
What game date was the game at AOL Arena?
CREATE TABLE table_24453847_2 (date VARCHAR, game_site VARCHAR)
SELECT loss FROM table_name_67 WHERE date = "april 26"
How much did they lose by on April 26?
CREATE TABLE table_name_67 (loss VARCHAR, date VARCHAR)
SELECT MIN(crowd) FROM table_name_1 WHERE venue = "mcg"
What was the lowest crowd size at MCG?
CREATE TABLE table_name_1 (crowd INTEGER, venue VARCHAR)
SELECT MIN(cuts_made) FROM table_14853156_2 WHERE best_finish = "T4"
What is the lowest number of cuts made when her best finish is t4?
CREATE TABLE table_14853156_2 (cuts_made INTEGER, best_finish VARCHAR)
SELECT name FROM table_name_19 WHERE position = "head coach"
Who was the head coach?
CREATE TABLE table_name_19 (name VARCHAR, position VARCHAR)
SELECT COUNT(bronze) FROM table_name_97 WHERE gold < 2 AND silver > 1
What is the total number of bronze that has less than 2 gold, and more than 1 silver?
CREATE TABLE table_name_97 (bronze VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT MIN(points) FROM table_name_70 WHERE time_retired = "+30.7 secs" AND laps < 165
What is the lowest points for a time/retired of +30.7 secs, and laps smaller than 165?
CREATE TABLE table_name_70 (points INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT COUNT(general_classification) FROM table_27573848_18 WHERE stage = 5
How many different people had a General Classification on Stage 5?
CREATE TABLE table_27573848_18 (general_classification VARCHAR, stage VARCHAR)
SELECT date FROM table_name_62 WHERE attendance = "31,220"
What is the date where the attendance was 31,220?
CREATE TABLE table_name_62 (date VARCHAR, attendance VARCHAR)
SELECT city FROM table_name_23 WHERE completion = "1910-1978"
What city was completed in 1910-1978?
CREATE TABLE table_name_23 (city VARCHAR, completion VARCHAR)
SELECT league FROM table_2511876_1 WHERE year = 2003
Name the league for 2003
CREATE TABLE table_2511876_1 (league VARCHAR, year VARCHAR)
SELECT MIN(minutes_played) FROM table_name_95 WHERE rebounds = 25 AND field_goal__percentage < 0.315
What is the lowest Minutes Played, when Rebounds is 25, and when Field Goal % is less than "0.315"?
CREATE TABLE table_name_95 (minutes_played INTEGER, rebounds VARCHAR, field_goal__percentage VARCHAR)
SELECT COUNT(result) FROM table_18123274_1 WHERE film_title_used_in_nomination = "Maroa"
Name the number of result for maroa
CREATE TABLE table_18123274_1 (result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT COUNT(bus_width___bit__) FROM table_19161046_1 WHERE core___mhz__ = 650
What's the bus width (in bit) of the model whose core is 650 MHz?
CREATE TABLE table_19161046_1 (bus_width___bit__ VARCHAR, core___mhz__ VARCHAR)
SELECT affiliation FROM table_16381914_1 WHERE location = "Erie, Pennsylvania"
What affiliation is Erie, Pennsylvania?
CREATE TABLE table_16381914_1 (affiliation VARCHAR, location VARCHAR)
SELECT MIN(attendance) FROM table_name_90 WHERE record = "77-54"
What was the attendance when the record was 77-54?
CREATE TABLE table_name_90 (attendance INTEGER, record VARCHAR)
SELECT grant_id, COUNT(*) FROM Documents GROUP BY grant_id ORDER BY COUNT(*) DESC LIMIT 1
How many documents can one grant have at most? List the grant id and number.
CREATE TABLE Documents (grant_id VARCHAR)
SELECT kapampangan FROM table_name_8 WHERE malay = "aku"
What is the Kapampangan word for the Malay word aku?
CREATE TABLE table_name_8 (kapampangan VARCHAR, malay VARCHAR)
SELECT score FROM table_name_88 WHERE country = "united states" AND place = "t5"
What did the United States score in the T5?
CREATE TABLE table_name_88 (score VARCHAR, country VARCHAR, place VARCHAR)
SELECT iron_chef FROM table_29281529_2 WHERE challenger = "Herb Faust"
Who was the iron chef when herb Faust was the challenger?
CREATE TABLE table_29281529_2 (iron_chef VARCHAR, challenger VARCHAR)
SELECT nation FROM table_18666752_3 WHERE horse = "Parkmore Ed"
Which nation is where the horse parkmore ed is?
CREATE TABLE table_18666752_3 (nation VARCHAR, horse VARCHAR)
SELECT date FROM table_name_17 WHERE tournament = "palermo , italy"
When has a Tournament of palermo , italy?
CREATE TABLE table_name_17 (date VARCHAR, tournament VARCHAR)