answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(attendance) FROM table_name_61 WHERE record = "23-23"
What is the total attendance for games when the record was 23-23?
CREATE TABLE table_name_61 (attendance VARCHAR, record VARCHAR)
SELECT MAX(shts) FROM table_name_23 WHERE club = "san jose earthquakes" AND mins > 2700
What is the largest number for SHTS for the San Jose earthquakes with MINS larger than 2700?
CREATE TABLE table_name_23 (shts INTEGER, club VARCHAR, mins VARCHAR)
SELECT scores FROM table_23292220_13 WHERE seans_team = "Louie Spence and Joe Wilkinson"
What was the score in the episode that had Louie Spence and Joe Wilkinson on Sean's team?
CREATE TABLE table_23292220_13 (scores VARCHAR, seans_team VARCHAR)
SELECT AVG(year) FROM table_name_14 WHERE nominee = "—" AND result = "nominated"
What year has a Nominee of —, and a Result of nominated?
CREATE TABLE table_name_14 (year INTEGER, nominee VARCHAR, result VARCHAR)
SELECT 2 AS nd FROM table_27298240_28 WHERE pronoun = "vi (you pl.)"
what is 2nd when the pronoun is vi (you pl.)?
CREATE TABLE table_27298240_28 (pronoun VARCHAR)
SELECT detroit__dtw_ FROM table_1637981_7 WHERE lansing__lan_ = "$433.59"
When Lansing's fare is $433.59, what is the Detroit fare?
CREATE TABLE table_1637981_7 (detroit__dtw_ VARCHAR, lansing__lan_ VARCHAR)
SELECT MAX(diff) FROM table_name_68 WHERE drawn = 6 AND played > 18
What is the highest diff with drawn of 6 and play larger than 18?
CREATE TABLE table_name_68 (diff INTEGER, drawn VARCHAR, played VARCHAR)
SELECT home_team FROM table_name_5 WHERE away_team = "lincoln city"
What is the Home team of the Lincoln City Away game?
CREATE TABLE table_name_5 (home_team VARCHAR, away_team VARCHAR)
SELECT player FROM table_name_89 WHERE team = "oakland raiders"
What is the player when the team is oakland raiders?
CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR)
SELECT imperfect_stem FROM table_name_93 WHERE future_stem = "ikusiko"
What is the imperfect stem for the word that has a future stem of ikusiko?
CREATE TABLE table_name_93 (imperfect_stem VARCHAR, future_stem VARCHAR)
SELECT record FROM table_name_77 WHERE march = 26
Which record's march was 26?
CREATE TABLE table_name_77 (record VARCHAR, march VARCHAR)
SELECT opponents FROM table_name_84 WHERE surface = "hard" AND outcome = "runner-up"
Who were the opponents in the match that was played on a hard court and had a runner-up outcome?
CREATE TABLE table_name_84 (opponents VARCHAR, surface VARCHAR, outcome VARCHAR)
SELECT MAX(episode_no) FROM table_26136228_3 WHERE us_viewers__millions_ = "1.05"
What episode number in the season had 1.05 million U.S. viewers?
CREATE TABLE table_26136228_3 (episode_no INTEGER, us_viewers__millions_ VARCHAR)
SELECT AVG(lost) FROM table_name_69 WHERE _percentage_pts > 110.25
When the points scored was over 110.25%, what's the average amount lost?
CREATE TABLE table_name_69 (lost INTEGER, _percentage_pts INTEGER)
SELECT MAX(no_in_series) FROM table_27987768_1 WHERE written_by = "Eric Gilliland"
What number in series was the episode written by Eric Gilliland?
CREATE TABLE table_27987768_1 (no_in_series INTEGER, written_by VARCHAR)
SELECT solvent FROM table_name_55 WHERE boiling_point = "100–103 °c"
What solvent has a boiling point of 100–103 °c?
CREATE TABLE table_name_55 (solvent VARCHAR, boiling_point VARCHAR)
SELECT decision FROM table_name_95 WHERE date = "april 30"
Which Decision has a Date of april 30?
CREATE TABLE table_name_95 (decision VARCHAR, date VARCHAR)
SELECT decision FROM table_name_44 WHERE date = "october 5"
What was the decision on october 5?
CREATE TABLE table_name_44 (decision VARCHAR, date VARCHAR)
SELECT AVG(points) FROM table_name_36 WHERE lost = 21 AND position = 22
What's the Points average with a Lost of 21, and Position of 22?
CREATE TABLE table_name_36 (points INTEGER, lost VARCHAR, position VARCHAR)
SELECT traditional FROM table_2135222_2 WHERE simplified = "宁陵县"
What is the traditional form for 宁陵县?
CREATE TABLE table_2135222_2 (traditional VARCHAR, simplified VARCHAR)
SELECT fate FROM table_name_97 WHERE nationality = "french" AND ship = "pierre lott"
what is the fate when the nationality is french and the ship is pierre lott?
CREATE TABLE table_name_97 (fate VARCHAR, nationality VARCHAR, ship VARCHAR)
SELECT COUNT(country) FROM table_2941963_1 WHERE remittances_2008 = "9.07"
how many countries have remittances in 2008 of 9.07?
CREATE TABLE table_2941963_1 (country VARCHAR, remittances_2008 VARCHAR)
SELECT SUM(pages) FROM table_name_75 WHERE isbn = "isbn 91-7713-035-9"
How many pages associated with isbn 91-7713-035-9?
CREATE TABLE table_name_75 (pages INTEGER, isbn VARCHAR)
SELECT party FROM table_24415627_2 WHERE senator = "Dick Clark"
Of which part does congressman dick clark belong to?
CREATE TABLE table_24415627_2 (party VARCHAR, senator VARCHAR)
SELECT MIN(area__square_km_) FROM table_1175233_1 WHERE arrondissement = "Millau"
What is the area (square km) where the arrondissement is millau?
CREATE TABLE table_1175233_1 (area__square_km_ INTEGER, arrondissement VARCHAR)
SELECT attendance FROM table_name_68 WHERE opponent = "miami dolphins"
What was the attendance for the game against miami dolphins?
CREATE TABLE table_name_68 (attendance VARCHAR, opponent VARCHAR)
SELECT MIN(roll) FROM table_name_37 WHERE name = "katikati college"
What is the lowest roll number of Katikati college?
CREATE TABLE table_name_37 (roll INTEGER, name VARCHAR)
SELECT COUNT(w_l__total_) FROM table_11233358_2 WHERE debut = 2013
During the 2013 debut, what is the w-I(total) number?
CREATE TABLE table_11233358_2 (w_l__total_ VARCHAR, debut VARCHAR)
SELECT main_campus_location FROM table_name_61 WHERE founded = 1967
What college was founded in 1967?
CREATE TABLE table_name_61 (main_campus_location VARCHAR, founded VARCHAR)
SELECT place FROM table_name_88 WHERE country = "united states" AND player = "craig wood"
Which place has United States as the country and Craig Wood as the player?
CREATE TABLE table_name_88 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT score FROM table_name_40 WHERE country = "united states" AND player = "tom watson"
Name the Score united states of tom watson in united state?
CREATE TABLE table_name_40 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT circuit FROM table_name_66 WHERE winning_driver = "michael andretti"
Which circuit did Michael Andretti win?
CREATE TABLE table_name_66 (circuit VARCHAR, winning_driver VARCHAR)
SELECT loss FROM table_name_37 WHERE opponent = "mariners" AND date = "september 12"
Who lost when the mariners played on September 12?
CREATE TABLE table_name_37 (loss VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT COUNT(conceded) FROM table_name_77 WHERE wins < 3 AND points > 11
How much Conceded has Wins smaller than 3, and Points larger than 11?
CREATE TABLE table_name_77 (conceded VARCHAR, wins VARCHAR, points VARCHAR)
SELECT MAX(year_start) FROM table_name_41 WHERE number = 28
Which Year Start has a Number of 28?
CREATE TABLE table_name_41 (year_start INTEGER, number VARCHAR)
SELECT preliminaries FROM table_12094609_1 WHERE evening_gown = "8.988"
what's the preliminaries where evening gown is 8.988
CREATE TABLE table_12094609_1 (preliminaries VARCHAR, evening_gown VARCHAR)
SELECT score FROM table_name_56 WHERE result = "7-0"
What score has 7-0 as the result?
CREATE TABLE table_name_56 (score VARCHAR, result VARCHAR)
SELECT w_l_d FROM table_14181578_1 WHERE position = 1
what's the w-l-d with position being 1
CREATE TABLE table_14181578_1 (w_l_d VARCHAR, position VARCHAR)
SELECT position FROM table_name_43 WHERE nhl_team = "vancouver canucks" AND pick__number = "101"
What position in the Vancouver Canucks has a Pick # of 101?
CREATE TABLE table_name_43 (position VARCHAR, nhl_team VARCHAR, pick__number VARCHAR)
SELECT location FROM table_name_16 WHERE score = "119-115 (ot)"
Score of 119-115 (ot) involved what location?
CREATE TABLE table_name_16 (location VARCHAR, score VARCHAR)
SELECT date FROM table_name_71 WHERE runner_s__up = "oliver wilson"
What is Date, when Runner(s)-Up is Oliver Wilson?
CREATE TABLE table_name_71 (date VARCHAR, runner_s__up VARCHAR)
SELECT country FROM table_name_65 WHERE player = "scott hoch"
Which country is Scott Hoch from?
CREATE TABLE table_name_65 (country VARCHAR, player VARCHAR)
SELECT venue FROM table_name_11 WHERE competition = "2004 afc asian cup qualification" AND date = "november 18, 2003"
Which venue hosted the 2004 AFC Asian Cup qualification on November 18, 2003?
CREATE TABLE table_name_11 (venue VARCHAR, competition VARCHAR, date VARCHAR)
SELECT to_par FROM table_name_29 WHERE year_s__won = "2001"
For the year won of 2001, what is the To Par?
CREATE TABLE table_name_29 (to_par VARCHAR, year_s__won VARCHAR)
SELECT away_team FROM table_name_91 WHERE venue = "vfl park"
Which Away team plays at the Venue vfl park?
CREATE TABLE table_name_91 (away_team VARCHAR, venue VARCHAR)
SELECT institution FROM table_1672976_2 WHERE wins = 6 AND current_streak = "Won 2"
What institution had 6 wins and a current streak of won 2?
CREATE TABLE table_1672976_2 (institution VARCHAR, wins VARCHAR, current_streak VARCHAR)
SELECT city FROM table_name_89 WHERE year_opened = "1996" AND state = "alabama"
What is the city in Alabama that opened in 1996?
CREATE TABLE table_name_89 (city VARCHAR, year_opened VARCHAR, state VARCHAR)
SELECT population__2007_ FROM table_2144436_1 WHERE barangay = "Corazon De Jesus"
What is the 2007 population for Corazon de Jesus?
CREATE TABLE table_2144436_1 (population__2007_ VARCHAR, barangay VARCHAR)
SELECT MIN(bronze) FROM table_name_71 WHERE gold = 2 AND total > 6
What is the lowest number of bronze medals for nations with over 6 total and 2 golds?
CREATE TABLE table_name_71 (bronze INTEGER, gold VARCHAR, total VARCHAR)
SELECT date FROM table_name_58 WHERE points = 13 AND location = "rbc center"
What is Date, when Points is 13, and when Location is RBC Center?
CREATE TABLE table_name_58 (date VARCHAR, points VARCHAR, location VARCHAR)
SELECT t_100 FROM table_name_51 WHERE is_3_m1945 = "150 (225)"
What's the T-100 when the IS-3 is 150 (225)?
CREATE TABLE table_name_51 (t_100 VARCHAR, is_3_m1945 VARCHAR)
SELECT 1998 FROM table_name_46 WHERE 1993 = "2r" AND 1990 = "1r"
What 1998 has 2r as a 1993, and 1r as a 1990?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT director FROM table_21655290_1 WHERE original_title = "Kon-Tiki"
Who is the director of kon-tiki original title?
CREATE TABLE table_21655290_1 (director VARCHAR, original_title VARCHAR)
SELECT date FROM table_name_88 WHERE total = "60–77"
On what date was the total 60–77?
CREATE TABLE table_name_88 (date VARCHAR, total VARCHAR)
SELECT date FROM table_20745746_1 WHERE _number = "7"
What is the date of game 7?
CREATE TABLE table_20745746_1 (date VARCHAR, _number VARCHAR)
SELECT SUM(blank_ends) FROM table_name_39 WHERE nation = "denmark" AND ends_lost < 42
What is the sum of Blank Ends for Denmark when less than 42 is the ends lost?
CREATE TABLE table_name_39 (blank_ends INTEGER, nation VARCHAR, ends_lost VARCHAR)
SELECT land_area__hectares_ FROM table_16796625_1 WHERE urban_area__locality_ = "Landsbro"
How many hectares of land area is Landsbro?
CREATE TABLE table_16796625_1 (land_area__hectares_ VARCHAR, urban_area__locality_ VARCHAR)
SELECT area__acres__ FROM table_30120761_1 WHERE poor_law_union = "Macroom" AND civil_parish = "Macroom"
What are all the acreages of the townlands in the Macroom poor law union and Macroom civil parish?
CREATE TABLE table_30120761_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, civil_parish VARCHAR)
SELECT position FROM table_name_21 WHERE school = "alabama"
What position did the school of alabama draft?
CREATE TABLE table_name_21 (position VARCHAR, school 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 result FROM table_name_95 WHERE score = "4-0"
What was the result of the competition that had a score of 4-0?
CREATE TABLE table_name_95 (result VARCHAR, score VARCHAR)
SELECT choreographer_s_ FROM table_name_29 WHERE style = "jazz"
Who was the choreographer for the dance style of Jazz?
CREATE TABLE table_name_29 (choreographer_s_ VARCHAR, style VARCHAR)
SELECT MAX(bronze) FROM table_name_73 WHERE silver < 0
What's the biggest Bronze that has less than 0 Silvers?
CREATE TABLE table_name_73 (bronze INTEGER, silver INTEGER)
SELECT MAX(round) FROM table_name_16 WHERE name = "bob randall"
What round was Bob Randall selected in?
CREATE TABLE table_name_16 (round INTEGER, name VARCHAR)
SELECT developer FROM table_name_59 WHERE platform = "xbox 360"
Which developer has xbox 360 as the platform?
CREATE TABLE table_name_59 (developer VARCHAR, platform VARCHAR)
SELECT MAX(total_goals) FROM table_10240125_2
Whatis the number of total goals maximum?
CREATE TABLE table_10240125_2 (total_goals INTEGER)
SELECT player FROM table_26996293_2 WHERE cfl_team = "Winnipeg (3) via Hamilton"
where cfl team is winnipeg (3) via hamilton what are all the player
CREATE TABLE table_26996293_2 (player VARCHAR, cfl_team VARCHAR)
SELECT school FROM table_name_35 WHERE mascot = "squires"
Which School has a Mascot of squires?
CREATE TABLE table_name_35 (school VARCHAR, mascot VARCHAR)
SELECT commenced_operations FROM table_name_10 WHERE airline = "valuair"
Which Commenced operations have an Airline of valuair?
CREATE TABLE table_name_10 (commenced_operations VARCHAR, airline VARCHAR)
SELECT venue FROM table_name_12 WHERE position = "4th"
What is the venue of the race where Lineth Chepkurui placed 4th?
CREATE TABLE table_name_12 (venue VARCHAR, position VARCHAR)
SELECT high_points FROM table_27722734_10 WHERE date = "March 27"
who had high points on march 27?
CREATE TABLE table_27722734_10 (high_points VARCHAR, date VARCHAR)
SELECT rank FROM captain WHERE CLASS = 'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS = 'Armed schooner'
Find the captain rank that has some captains in both Cutter and Armed schooner classes.
CREATE TABLE captain (rank VARCHAR, CLASS VARCHAR)
SELECT 2000 FROM table_name_85 WHERE 2006 = "10–4"
2006 of 10–4 is in which 2000?
CREATE TABLE table_name_85 (Id VARCHAR)
SELECT SUM(attendance) FROM table_name_14 WHERE venue = "h" AND opponent = "auxerre"
What is the total of attendance at Venue h when Auxerre were playing?
CREATE TABLE table_name_14 (attendance INTEGER, venue VARCHAR, opponent VARCHAR)
SELECT to_par FROM table_name_43 WHERE player = "ernie els"
What is the to par that has ernie els as the player?
CREATE TABLE table_name_43 (to_par VARCHAR, player VARCHAR)
SELECT SUM(tier) FROM table_name_45 WHERE postseason = "semifinalist"
What is the total number of tiers for the postseason of semifinalist?
CREATE TABLE table_name_45 (tier INTEGER, postseason VARCHAR)
SELECT opponent FROM table_name_79 WHERE date = "august 6"
Name the opponent for august 6
CREATE TABLE table_name_79 (opponent VARCHAR, date VARCHAR)
SELECT date FROM table_28178756_1 WHERE driver = "Tommy Ellis"
On what day did tommy ellis drive?
CREATE TABLE table_28178756_1 (date VARCHAR, driver VARCHAR)
SELECT visitor FROM table_name_52 WHERE date = "april 18"
On April 18, which team was the visitor?
CREATE TABLE table_name_52 (visitor VARCHAR, date VARCHAR)
SELECT longitude FROM table_25675509_1 WHERE date__yyyy_mm_dd_ = "2010-01-09"
What was the longitude for the shock that occured on 2010-01-09?
CREATE TABLE table_25675509_1 (longitude VARCHAR, date__yyyy_mm_dd_ VARCHAR)
SELECT height_ft___m__ FROM table_name_10 WHERE street_address = "07.0 200 east washington street"
How tall is the Street address of 07.0 200 east washington street?
CREATE TABLE table_name_10 (height_ft___m__ VARCHAR, street_address VARCHAR)
SELECT COUNT(*) FROM ADDRESSES WHERE zip_postcode = "197"
How many addresses have zip code 197?
CREATE TABLE ADDRESSES (zip_postcode VARCHAR)
SELECT 2 AS nd_leg FROM table_19130829_4 WHERE team__number2 = "Panionios"
What's the 2nd leg result in the round where Panionios is team #2?
CREATE TABLE table_19130829_4 (team__number2 VARCHAR)
SELECT losing_bonus FROM table_name_29 WHERE try_bonus = "8"
Which Losing Bonus has a Try Bonus of 8?
CREATE TABLE table_name_29 (losing_bonus VARCHAR, try_bonus VARCHAR)
SELECT DISTINCT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available = 7
Return the unique name for stations that have ever had 7 bikes available.
CREATE TABLE station (name VARCHAR, id VARCHAR); CREATE TABLE status (station_id VARCHAR, bikes_available VARCHAR)
SELECT SUM(drawn) FROM table_name_36 WHERE league_pos = "15th" AND lost > 17
What is the drawn result with a league position of 15th and a lost result that is more than 17?
CREATE TABLE table_name_36 (drawn INTEGER, league_pos VARCHAR, lost VARCHAR)
SELECT series FROM table_name_63 WHERE wins = 0 AND season = "2002"
Can you tell me the Series that has the Wins of 0, and the Season of a 2002?
CREATE TABLE table_name_63 (series VARCHAR, wins VARCHAR, season VARCHAR)
SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY COUNT(*) DESC LIMIT 1
What is the id of the order which has the most items?
CREATE TABLE orders (order_id VARCHAR); CREATE TABLE order_items (order_id VARCHAR)
SELECT venue FROM table_name_95 WHERE date = "september 11, 2004"
Where was the game on September 11, 2004?
CREATE TABLE table_name_95 (venue VARCHAR, date VARCHAR)
SELECT surface FROM table_2009095_2 WHERE championship = "Australian Open" AND outcome = "Winner"
Name the surface for australian open for winner
CREATE TABLE table_2009095_2 (surface VARCHAR, championship VARCHAR, outcome VARCHAR)
SELECT multiplier FROM table_name_98 WHERE front_side_bus = "200 mhz" AND frequency = "1200 mhz"
Which Multiplier has a Front Side Bus of 200 mhz, and a Frequency of 1200 mhz?
CREATE TABLE table_name_98 (multiplier VARCHAR, front_side_bus VARCHAR, frequency VARCHAR)
SELECT results FROM table_1341453_11 WHERE incumbent = "Robert Wexler"
How did the election end for Robert Wexler?
CREATE TABLE table_1341453_11 (results VARCHAR, incumbent VARCHAR)
SELECT 2012 FROM table_name_51 WHERE 2007 = "1r"
Which 2012 has a 2007 of 1r?
CREATE TABLE table_name_51 (Id VARCHAR)
SELECT position_in_1999 FROM table_name_70 WHERE capacity > 6 OFFSET 500
What is the position of the team that played at the venue with more than 6,500 capacity?
CREATE TABLE table_name_70 (position_in_1999 VARCHAR, capacity INTEGER)
SELECT location_attendance FROM table_name_29 WHERE date = "dec 2"
What was the Location/Attendance on Dec 2?
CREATE TABLE table_name_29 (location_attendance VARCHAR, date VARCHAR)
SELECT MIN(round) FROM table_name_51 WHERE position = "de" AND overall < 84
What is the lowest round of the position de player with an overall less than 84?
CREATE TABLE table_name_51 (round INTEGER, position VARCHAR, overall VARCHAR)
SELECT name FROM table_name_52 WHERE date_of_reclassification = "2003-04-01 (merge into shizuoka )"
Whose Name has a Date of reclassification of 2003-04-01 (merge into shizuoka )?
CREATE TABLE table_name_52 (name VARCHAR, date_of_reclassification VARCHAR)
SELECT year FROM table_name_61 WHERE qual = "totals"
The qual of totals took place during what year?
CREATE TABLE table_name_61 (year VARCHAR, qual VARCHAR)
SELECT nationality FROM table_name_69 WHERE player = "bill robinzine"
What nationality is Bill Robinzine?
CREATE TABLE table_name_69 (nationality VARCHAR, player VARCHAR)
SELECT frequency FROM table_name_65 WHERE format = "country" AND owner = "jim pattison group"
What is the frequency for the country station owned by Jim Pattison Group?
CREATE TABLE table_name_65 (frequency VARCHAR, format VARCHAR, owner VARCHAR)