answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT method FROM table_name_97 WHERE round = 1 AND opponent = "bobby mcmaster"
what is the method for round 1 and the opponent is bobby mcmaster?
CREATE TABLE table_name_97 (method VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT date_of_appointment FROM table_name_33 WHERE team = "ac horsens"
WHAT IS THE APPOINTMENT DATE FOR AC HORSENS?
CREATE TABLE table_name_33 (date_of_appointment VARCHAR, team VARCHAR)
SELECT MAX(crowd) FROM table_name_87 WHERE venue = "arden street oval"
What is the largest crowd at arden street oval?
CREATE TABLE table_name_87 (crowd INTEGER, venue VARCHAR)
SELECT year_born FROM table_12962773_16 WHERE player = "Robert Skibniewski"
What year was Robert Skibniewski born?
CREATE TABLE table_12962773_16 (year_born VARCHAR, player VARCHAR)
SELECT home_team AS score FROM table_name_74 WHERE venue = "western oval"
What was the home teams score at Western Oval?
CREATE TABLE table_name_74 (home_team VARCHAR, venue VARCHAR)
SELECT driver FROM table_15530244_5 WHERE race_2 = "2"
Name the driver for race 2 2
CREATE TABLE table_15530244_5 (driver VARCHAR, race_2 VARCHAR)
SELECT unit FROM table_name_51 WHERE novelty = "gen et sp nov"
What unit has gen et sp nov as the novelty?
CREATE TABLE table_name_51 (unit VARCHAR, novelty VARCHAR)
SELECT SUM(swimsuit) FROM table_name_31 WHERE average > 9.23 AND country = "delaware" AND interview > 9.73
Name the sum of swimsuit for average more than 9.23 for delaware for interview more than 9.73
CREATE TABLE table_name_31 (swimsuit INTEGER, interview VARCHAR, average VARCHAR, country VARCHAR)
SELECT city___state FROM table_name_70 WHERE winner = "jim richards" AND circuit = "winton motor raceway"
When Jim Richards won at the Winton Motor Raceway circuit, what was the city and state listed?
CREATE TABLE table_name_70 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR)
SELECT AVG(T1.ROM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = "Nokia Corporation"
What is the average ROM size of phones produced by the company named "Nokia Corporation"?
CREATE TABLE phone (chip_model VARCHAR, Company_name VARCHAR); CREATE TABLE chip_model (ROM_MiB INTEGER, Model_name VARCHAR)
SELECT DISTINCT asset_model FROM Assets
What are all the distinct asset models?
CREATE TABLE Assets (asset_model VARCHAR)
SELECT MIN(first_elected) FROM table_1346118_4 WHERE incumbent = "John N. Tillman"
When was incumbent John N. Tillman first elected?
CREATE TABLE table_1346118_4 (first_elected INTEGER, incumbent VARCHAR)
SELECT time FROM table_name_74 WHERE record = "2-0"
What's the time for the match with a record of 2-0?
CREATE TABLE table_name_74 (time VARCHAR, record VARCHAR)
SELECT tournament FROM table_name_83 WHERE opponent = "patricia mayr-achleitner"
What is the Tournament, when the Opponent is Patricia Mayr-Achleitner?
CREATE TABLE table_name_83 (tournament VARCHAR, opponent VARCHAR)
SELECT drawn FROM table_12792876_3 WHERE tries_for = "46"
what was the drawn when the tries for was 46?
CREATE TABLE table_12792876_3 (drawn VARCHAR, tries_for VARCHAR)
SELECT tournament FROM table_name_70 WHERE location = "arizona"
What tournament is in Arizona?
CREATE TABLE table_name_70 (tournament VARCHAR, location VARCHAR)
SELECT team FROM table_name_88 WHERE round = "2" AND pick = "13"
Which team has Pick 13 in Round 2?
CREATE TABLE table_name_88 (team VARCHAR, round VARCHAR, pick VARCHAR)
SELECT as_of_september_1, _2012 FROM table_name_61 WHERE vs_all = "65.47%"
What occurrs as of September 1, 2012 when the value for vs. all is 65.47%?
CREATE TABLE table_name_61 (as_of_september_1 VARCHAR, _2012 VARCHAR, vs_all VARCHAR)
SELECT WINNING_SONG(English AS Title) FROM table_name_7 WHERE winner = "aris runtuwene"
Which English winning song had the winner aris runtuwene?
CREATE TABLE table_name_7 (English VARCHAR, winner VARCHAR)
SELECT western FROM table_26614365_1 WHERE latin = "latrones"
What is the western word for "latrones" in Latin?
CREATE TABLE table_26614365_1 (western VARCHAR, latin VARCHAR)
SELECT wins FROM table_name_66 WHERE top_25 = 1 AND events = 7
What is the Wins of the Top-25 of 1 and 7 Events?
CREATE TABLE table_name_66 (wins VARCHAR, top_25 VARCHAR, events VARCHAR)
SELECT title FROM table_23799417_2 WHERE original_airing = "September 30, 2007"
what is the episode title on original air date of September 30, 2007?
CREATE TABLE table_23799417_2 (title VARCHAR, original_airing VARCHAR)
SELECT AVG(gold) FROM table_name_79 WHERE rank < 3 AND bronze < 1
What is the average Gold when the rank is less than 3 and the bronze is less than 1?
CREATE TABLE table_name_79 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT COUNT(date) FROM table_1137704_2 WHERE grand_prix = "Portuguese grand_prix"
what of the total number of date where grand prix is portuguese grand prix
CREATE TABLE table_1137704_2 (date VARCHAR, grand_prix VARCHAR)
SELECT date FROM table_name_42 WHERE catalog = "32xa-112"
What was the date for the catalog 32xa-112?
CREATE TABLE table_name_42 (date VARCHAR, catalog VARCHAR)
SELECT player FROM table_197638_6 WHERE us_open = 1937
Who won the US Open in 1937?
CREATE TABLE table_197638_6 (player VARCHAR, us_open VARCHAR)
SELECT record FROM table_name_72 WHERE date = "august 16"
August 16 had what record?
CREATE TABLE table_name_72 (record VARCHAR, date VARCHAR)
SELECT christians FROM table_14598_5 WHERE composition = "Work Participation Rate"
What is the christian amount where work participation rate is the composition?
CREATE TABLE table_14598_5 (christians VARCHAR, composition VARCHAR)
SELECT innings FROM table_28846752_5 WHERE average = "19.60"
how many innings have an average of 19.60?
CREATE TABLE table_28846752_5 (innings VARCHAR, average VARCHAR)
SELECT score FROM table_name_24 WHERE country = "spain"
What was Spain's score?
CREATE TABLE table_name_24 (score VARCHAR, country VARCHAR)
SELECT oklahoma FROM table_name_41 WHERE nebraska = "bush" AND year = "2004"
What is the oklahoma has Bush from Nebraska in year 2004?
CREATE TABLE table_name_41 (oklahoma VARCHAR, nebraska VARCHAR, year VARCHAR)
SELECT to_par FROM table_name_66 WHERE country = "united states" AND score = 68 - 65 = 133
With a score of 68-65=133 and United States as the country what is the To par?
CREATE TABLE table_name_66 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT date FROM table_name_80 WHERE loss = "lilly (2–2)"
What date shows a Loss of lilly (2–2)?
CREATE TABLE table_name_80 (date VARCHAR, loss VARCHAR)
SELECT gt2_winning_team FROM table_19598014_2 WHERE lmp2_winning_team = "Butch Leitzinger Marino Franchitti Ben Devlin"
Name the gt2 winning team where lmp2 winning team and butch leitzinger marino franchitti ben devlin
CREATE TABLE table_19598014_2 (gt2_winning_team VARCHAR, lmp2_winning_team VARCHAR)
SELECT others_percentage FROM table_1733457_1 WHERE county = "Cleveland"
Name the others % for cleveland
CREATE TABLE table_1733457_1 (others_percentage VARCHAR, county VARCHAR)
SELECT MIN(year) FROM table_name_79 WHERE points = 9
What is the earliest year for 9 points?
CREATE TABLE table_name_79 (year INTEGER, points VARCHAR)
SELECT date FROM table_1140119_5 WHERE circuit = "Albi"
When was the Albi circuit race driven?
CREATE TABLE table_1140119_5 (date VARCHAR, circuit VARCHAR)
SELECT winner FROM table_name_5 WHERE city = "panama city"
What is the Winner of the Event in Panama City?
CREATE TABLE table_name_5 (winner VARCHAR, city VARCHAR)
SELECT MAX(game) FROM table_name_27 WHERE time = "2:46" AND attendance > 57 OFFSET 533
When was the last game that had a time of 2:46 and attendance of more than 57,533?
CREATE TABLE table_name_27 (game INTEGER, time VARCHAR, attendance VARCHAR)
SELECT points_against___tests__ FROM table_name_16 WHERE year_s_ = 2000 AND games_won___tests__ = "4 (1)"
What are the points against for 2000, when games won is 4 (1)?
CREATE TABLE table_name_16 (points_against___tests__ VARCHAR, year_s_ VARCHAR, games_won___tests__ VARCHAR)
SELECT home_team FROM table_name_5 WHERE crowd > 20 OFFSET 283
Who was the home team when the attendance was more than 20,283?
CREATE TABLE table_name_5 (home_team VARCHAR, crowd INTEGER)
SELECT airing_date FROM table_name_50 WHERE official_website = "official website" AND number_of_episodes = 20 AND genre = "modern action" AND english_title__chinese_title_ = "armed reaction 陀槍師姐"
What's the airing date of Armed Reaction 陀槍師姐 with 20 episodes in the Modern Action genre having an official website?
CREATE TABLE table_name_50 (airing_date VARCHAR, english_title__chinese_title_ VARCHAR, genre VARCHAR, official_website VARCHAR, number_of_episodes VARCHAR)
SELECT COUNT(district) FROM table_18425346_2 WHERE serial_no = 9
In what district is the city listed in Serial number 9?
CREATE TABLE table_18425346_2 (district VARCHAR, serial_no VARCHAR)
SELECT quotient FROM table_name_10 WHERE votes = "27,391"
Votes of 27,391 has which quotient?
CREATE TABLE table_name_10 (quotient VARCHAR, votes VARCHAR)
SELECT to_par FROM table_name_21 WHERE player = "chick harbert"
What's Chick Harbert's To par?
CREATE TABLE table_name_21 (to_par VARCHAR, player VARCHAR)
SELECT decision FROM table_name_21 WHERE home = "toronto"
Who made the decision when toronto was the home team?
CREATE TABLE table_name_21 (decision VARCHAR, home VARCHAR)
SELECT result FROM table_name_2 WHERE year > 1993 AND round = "first four"
What is the result after 1993 of the first four rounds?
CREATE TABLE table_name_2 (result VARCHAR, year VARCHAR, round VARCHAR)
SELECT date FROM table_15412381_5 WHERE wheels = 279
What is the date of the 279 wheels?
CREATE TABLE table_15412381_5 (date VARCHAR, wheels VARCHAR)
SELECT name FROM table_name_28 WHERE street_address = "100 north tampa street"
What is the Name of the Building at 100 North Tampa Street?
CREATE TABLE table_name_28 (name VARCHAR, street_address VARCHAR)
SELECT MIN(capacity) FROM table_name_76 WHERE rank < 15 AND city = "belgrade"
Which Capacity is the lowest one that has a Rank smaller than 15, and a City of belgrade?
CREATE TABLE table_name_76 (capacity INTEGER, rank VARCHAR, city VARCHAR)
SELECT career FROM table_name_80 WHERE 2007 = "3r" AND 1999 = "1r"
What is the career for 2007 3r, and 1999 1r?
CREATE TABLE table_name_80 (career VARCHAR)
SELECT COUNT(trofeo_fast_team) FROM table_12261806_2 WHERE stage = "16"
Name the total number of trofeo fast team of stage 16
CREATE TABLE table_12261806_2 (trofeo_fast_team VARCHAR, stage VARCHAR)
SELECT school FROM university WHERE founded > 1850 OR affiliation = 'Public'
Find the schools that were either founded after 1850 or public.
CREATE TABLE university (school VARCHAR, founded VARCHAR, affiliation VARCHAR)
SELECT player FROM table_name_27 WHERE nba_team = "detroit pistons"
What player was drafted for the Detroit Pistons?
CREATE TABLE table_name_27 (player VARCHAR, nba_team VARCHAR)
SELECT place FROM table_name_10 WHERE player = "steve stricker"
Where was Steve Stricker from?
CREATE TABLE table_name_10 (place VARCHAR, player VARCHAR)
SELECT years FROM table_name_43 WHERE jersey_number_s_ = "5"
What is Years, when Jersey Number(s) is 5?
CREATE TABLE table_name_43 (years VARCHAR, jersey_number_s_ VARCHAR)
SELECT martin_mcguinness FROM table_name_16 WHERE david_norris = "10.3%"
What is the Martin McGuinness with a David Norris that is 10.3%?
CREATE TABLE table_name_16 (martin_mcguinness VARCHAR, david_norris VARCHAR)
SELECT site FROM table_name_44 WHERE date = "october 7"
WHAT IS THE SITE ON OCTOBER 7?
CREATE TABLE table_name_44 (site VARCHAR, date VARCHAR)
SELECT AVG(2006) FROM table_name_26 WHERE 2010 = 417.9 AND 2011 > 426.7
What is the average 2006 value with a 2010 value of 417.9 and a 2011 value greater than 426.7?
CREATE TABLE table_name_26 (Id VARCHAR)
SELECT distance FROM table_name_73 WHERE stage = "4"
What's the distance of the course of stage 4?
CREATE TABLE table_name_73 (distance VARCHAR, stage VARCHAR)
SELECT sponsor_s_ FROM table_name_60 WHERE rounds = "all" AND driver_s_ = "josele garza"
Who sponsors Josele Garza in all rounds?
CREATE TABLE table_name_60 (sponsor_s_ VARCHAR, rounds VARCHAR, driver_s_ VARCHAR)
SELECT leading_scorer FROM table_name_96 WHERE date = "february 9"
Who was the leading scorer on February 9?
CREATE TABLE table_name_96 (leading_scorer VARCHAR, date VARCHAR)
SELECT AVG(rank) FROM table_name_5 WHERE opposition = "offaly" AND total > 9
What is the average rank of the match where offaly was the opposition and the total was greater than 9?
CREATE TABLE table_name_5 (rank INTEGER, opposition VARCHAR, total VARCHAR)
SELECT ε__m_−1_cm_−1__ FROM table_26428602_1 WHERE color = "orange"
What is the ε (m −1 cm −1 ) of the orange flourescent dye?
CREATE TABLE table_26428602_1 (ε__m_−1_cm_−1__ VARCHAR, color VARCHAR)
SELECT mens_singles FROM table_21001903_2 WHERE womens_singles = "Wang Yihan" AND tour = "French Super Series"
when womens singles is wang yihan and tour is french super series, what were the men's singles?
CREATE TABLE table_21001903_2 (mens_singles VARCHAR, womens_singles VARCHAR, tour VARCHAR)
SELECT score FROM table_name_61 WHERE opponent = "dodgers" AND date = "april 21"
Name the score when the opponent was the dodgers on april 21
CREATE TABLE table_name_61 (score VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT MIN(finish) FROM table_24004949_1 WHERE driver = "Larry Dickson"
Name the least finish for larry dickson
CREATE TABLE table_24004949_1 (finish INTEGER, driver VARCHAR)
SELECT date FROM table_name_70 WHERE format = "cd"
Which date is in CD format?
CREATE TABLE table_name_70 (date VARCHAR, format VARCHAR)
SELECT week FROM table_name_70 WHERE result = "w 28-17"
What is the week for Result of w 28-17?
CREATE TABLE table_name_70 (week VARCHAR, result VARCHAR)
SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id WHERE T2.Party_name <> "Progress Party"
Show member names that are not in the Progress Party.
CREATE TABLE party (party_id VARCHAR, Party_name VARCHAR); CREATE TABLE Member (member_name VARCHAR, party_id VARCHAR)
SELECT AVG(bikes_available) FROM status WHERE NOT station_id IN (SELECT id FROM station WHERE city = "Palo Alto")
What is the average bike availability in stations that are not located in Palo Alto?
CREATE TABLE status (bikes_available INTEGER, station_id VARCHAR, id VARCHAR, city VARCHAR); CREATE TABLE station (bikes_available INTEGER, station_id VARCHAR, id VARCHAR, city VARCHAR)
SELECT candidates FROM table_1346137_4 WHERE first_elected = "1910"
Who were the candidates when the winner was first elected in 1910?
CREATE TABLE table_1346137_4 (candidates VARCHAR, first_elected VARCHAR)
SELECT AVG(survived) FROM table_name_53 WHERE to_iran < 1 AND aircraft = "brazil tucano" AND destroyed > 1
What's the average survived with a to Iran less than 1, more than 1 destroyed, and a brazil tucano aircraft?
CREATE TABLE table_name_53 (survived INTEGER, destroyed VARCHAR, to_iran VARCHAR, aircraft VARCHAR)
SELECT film_festival FROM table_26282750_1 WHERE category = "Best Male Actor"
What film festival had the Best Male Actor?
CREATE TABLE table_26282750_1 (film_festival VARCHAR, category VARCHAR)
SELECT COUNT(silver) FROM table_name_16 WHERE rank > 4 AND bronze < 1
What is the number of silver where the rank is higher than 4 and bronze is smaller than 1?
CREATE TABLE table_name_16 (silver VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT MAX(wickets_taken) FROM table_2482547_5 WHERE name = "Bill Lockwood"
What's the maximum wickets taken by players named Bill Lockwood?
CREATE TABLE table_2482547_5 (wickets_taken INTEGER, name VARCHAR)
SELECT result FROM table_2668367_13 WHERE incumbent = "Thomas R. Gold"
What was the result in the district represented by Thomas R. Gold?
CREATE TABLE table_2668367_13 (result VARCHAR, incumbent VARCHAR)
SELECT location FROM table_name_57 WHERE home_team = "honduras"
What is the location with Honduras is Home team?
CREATE TABLE table_name_57 (location VARCHAR, home_team VARCHAR)
SELECT COUNT(result) FROM table_2668329_18 WHERE candidates = "Thomas H. Hall (DR) 53.0% William Clarke (F) 47.0%"
Name the result for thomas h. hall (dr) 53.0% william clarke (f) 47.0%
CREATE TABLE table_2668329_18 (result VARCHAR, candidates VARCHAR)
SELECT COUNT(rating) FROM table_name_7 WHERE weekly_rank = "76/88"
What is the total number of Rating(s), when Weekly Rank is 76/88?
CREATE TABLE table_name_7 (rating VARCHAR, weekly_rank VARCHAR)
SELECT player FROM table_name_37 WHERE position = "offensive tackle" AND afl_team = "new york jets"
Which player is an offensive tackle for the New York Jets?
CREATE TABLE table_name_37 (player VARCHAR, position VARCHAR, afl_team VARCHAR)
SELECT 1 AS st_leg FROM table_name_27 WHERE team_2 = "portol drac palma mallorca"
What is the 1st leg for team 2 Portol Drac Palma Mallorca?
CREATE TABLE table_name_27 (team_2 VARCHAR)
SELECT match_score FROM table_name_81 WHERE footytab_winner = "norths"
What is the Match score when the FootyTAB winner was norths?
CREATE TABLE table_name_81 (match_score VARCHAR, footytab_winner VARCHAR)
SELECT COUNT(*), T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1
How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id.
CREATE TABLE Settlements (claim_id VARCHAR); CREATE TABLE Claims (claim_id VARCHAR, Date_Claim_Settled VARCHAR)
SELECT COUNT(player) FROM table_27132791_3 WHERE nfl_team = "Washington Redskins"
How many different players does the Washington Redskins have?
CREATE TABLE table_27132791_3 (player VARCHAR, nfl_team VARCHAR)
SELECT status FROM table_name_8 WHERE name = "belletti"
Name the status for belletti
CREATE TABLE table_name_8 (status VARCHAR, name VARCHAR)
SELECT MAX(weight) FROM table_name_37 WHERE result = "–" AND distance = "7f"
What is the largest weight wth a Result of –, and a Distance of 7f?
CREATE TABLE table_name_37 (weight INTEGER, result VARCHAR, distance VARCHAR)
SELECT gold FROM table_name_48 WHERE silver = "bertil ahlin sweden"
Who won the gold when Bertil Ahlin Sweden won the silver?
CREATE TABLE table_name_48 (gold VARCHAR, silver VARCHAR)
SELECT MAX(year) FROM table_name_35 WHERE player_name = "dave adams category:articles with hcards" AND round < 23
What is the greatest Year with a Player name of dave adams category:articles with hcards, and a Round smaller than 23?
CREATE TABLE table_name_35 (year INTEGER, player_name VARCHAR, round VARCHAR)
SELECT COUNT(longitude) FROM table_name_20 WHERE ansi_code < 1036534 AND water__sqmi_ = 0 AND geo_id > 3809959540
What is the longitude for the Township that has a ANSI code less than 1036534, a water (sqmi) of 0, and a GEO ID greater than 3809959540?
CREATE TABLE table_name_20 (longitude VARCHAR, geo_id VARCHAR, ansi_code VARCHAR, water__sqmi_ VARCHAR)
SELECT position FROM table_name_21 WHERE height_in_ft = "6-10"
What is Position, when Height in Ft. is 6-10?
CREATE TABLE table_name_21 (position VARCHAR, height_in_ft VARCHAR)
SELECT rider FROM table_name_30 WHERE laps < 30 AND manufacturer = "yamaha" AND time = "accident" AND grid > 3
Who was the rider who had less than 30 laps, ended in an accident with a car manufactured by yamaha on a grid larger than 3?
CREATE TABLE table_name_30 (rider VARCHAR, grid VARCHAR, time VARCHAR, laps VARCHAR, manufacturer VARCHAR)
SELECT COUNT(position) FROM table_10160447_1 WHERE driver = "Robby Gordon"
what's the total number of position with driver  robby gordon
CREATE TABLE table_10160447_1 (position VARCHAR, driver VARCHAR)
SELECT MAX(settlement_amount), MIN(settlement_amount) FROM settlements
What are the maximum and minimum settlement amount on record?
CREATE TABLE settlements (settlement_amount INTEGER)
SELECT general_classification FROM table_name_47 WHERE points_classification = "bradley wiggins"
What is the General classification for a points classification leader of Bradley Wiggins?
CREATE TABLE table_name_47 (general_classification VARCHAR, points_classification VARCHAR)
SELECT player_name FROM table_name_5 WHERE pick = "22" AND year_[a_] > 1979
Who is the player when the pick is 22 and the year [A] is after 1979?
CREATE TABLE table_name_5 (player_name VARCHAR, pick VARCHAR, year_ VARCHAR, a_ VARCHAR)
SELECT COUNT(total) FROM table_name_17 WHERE country = "switzerland" AND gold < 7 AND silver < 3
How many times does Switzerland have under 7 golds and less than 3 silvers?
CREATE TABLE table_name_17 (total VARCHAR, silver VARCHAR, country VARCHAR, gold VARCHAR)
SELECT team_1 FROM table_name_93 WHERE team_2 = "stade de reims (d2)"
What was the name of the Team 1, where the Team 2 was Stade De Reims (d2)?
CREATE TABLE table_name_93 (team_1 VARCHAR, team_2 VARCHAR)
SELECT original_artist FROM table_28715942_6 WHERE track = "Use Somebody"
Who is the original artist of "Use Somebody"?
CREATE TABLE table_28715942_6 (original_artist VARCHAR, track VARCHAR)
SELECT ga_date FROM table_10818465_1 WHERE processor_frequency = "1.0, 1.2, 1.4GHz"
What ga date do the models with 1.0, 1.2, 1.4ghz processor frequencies have?
CREATE TABLE table_10818465_1 (ga_date VARCHAR, processor_frequency VARCHAR)