answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(series_ep) FROM table_15187735_8 WHERE segment_a = "s Piston"
Name the number of series episode for s piston
CREATE TABLE table_15187735_8 (series_ep VARCHAR, segment_a VARCHAR)
SELECT MAX(average_attendance) FROM table_name_94 WHERE season = "2009"
What was the highest average attendance in the 2009 season?
CREATE TABLE table_name_94 (average_attendance INTEGER, season VARCHAR)
SELECT MAX(total) FROM table_24781886_3 WHERE _number = 3
When 3 is the number what is the highest total?
CREATE TABLE table_24781886_3 (total INTEGER, _number VARCHAR)
SELECT MIN(round) FROM table_name_7 WHERE player = "ryan thang"
What round was Ryan Thang drafted in?
CREATE TABLE table_name_7 (round INTEGER, player VARCHAR)
SELECT outcome FROM table_2259502_2 WHERE score = "7-5, 2-6, [6-10]"
What was the outcome in games where the score was 7-5, 2-6, [6-10]?
CREATE TABLE table_2259502_2 (outcome VARCHAR, score VARCHAR)
SELECT DISTINCT classroom, grade FROM list
For each classroom report the grade that is taught in it. Report just the classroom number and the grade number.
CREATE TABLE list (classroom VARCHAR, grade VARCHAR)
SELECT COUNT(attendance) FROM table_name_25 WHERE visitor = "detroit" AND record = "36–13–5"
What was the total attendance at games when Detroit was the visiting team and the record was 36–13–5?
CREATE TABLE table_name_25 (attendance VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT artist FROM table_name_7 WHERE draw > 4 AND points < 5
Which artist has a draw higher than 4 and fewer than 5 points?
CREATE TABLE table_name_7 (artist VARCHAR, draw VARCHAR, points VARCHAR)
SELECT MAX(winners) FROM table_12303563_1 WHERE nation = "BEC Tero Sasana"
How many times did bec tero sasana win?
CREATE TABLE table_12303563_1 (winners INTEGER, nation VARCHAR)
SELECT connection FROM table_name_62 WHERE web_client_accelerator = "proxyconn web accelerator"
What is the connection for the proxyconn web accelerator web client accelerator?
CREATE TABLE table_name_62 (connection VARCHAR, web_client_accelerator VARCHAR)
SELECT nationality FROM table_2679061_7 WHERE nhl_team = "Winnipeg Jets"
What country do the Winnipeg Jets come from?
CREATE TABLE table_2679061_7 (nationality VARCHAR, nhl_team VARCHAR)
SELECT MAX(elevation__m_) FROM table_18946749_2 WHERE peak = "Mount Wilhelm"
What is the elevation (m) of the Mount Wilhelm peak?
CREATE TABLE table_18946749_2 (elevation__m_ INTEGER, peak VARCHAR)
SELECT marcus_guest FROM table_19930660_2 WHERE rufus_guest = "Rory McGrath"
Who was Marcus's guest in the episode when Rufus's guest was Rory McGrath?
CREATE TABLE table_19930660_2 (marcus_guest VARCHAR, rufus_guest VARCHAR)
SELECT validation FROM table_15905399_1 WHERE iin_ranges = "5610, 560221-560225"
What is the validation for iin ranges 5610, 560221-560225?
CREATE TABLE table_15905399_1 (validation VARCHAR, iin_ranges VARCHAR)
SELECT episode FROM table_23292220_7 WHERE seans_team = "Vic Reeves and Claudia Winkleman"
Name the episode for vic reeves and claudia winkleman
CREATE TABLE table_23292220_7 (episode VARCHAR, seans_team VARCHAR)
SELECT domestic_freight FROM table_141541_5 WHERE change = "+8.0%"
what's the domestic freight with change being +8.0%
CREATE TABLE table_141541_5 (domestic_freight VARCHAR, change VARCHAR)
SELECT msdn_integration FROM table_name_16 WHERE load_testing = "no" AND test_impact_analysis = "no"
which MSDN integration has a Load testing of no, and a Test impact analysis of no?
CREATE TABLE table_name_16 (msdn_integration VARCHAR, load_testing VARCHAR, test_impact_analysis VARCHAR)
SELECT remittances_2010 FROM table_2941963_1 WHERE country = "Nigeria"
how many remittances in 2010 for nigeria?
CREATE TABLE table_2941963_1 (remittances_2010 VARCHAR, country VARCHAR)
SELECT year FROM table_name_32 WHERE record = "4-21"
What year had a record of 4-21?
CREATE TABLE table_name_32 (year VARCHAR, record VARCHAR)
SELECT free_or_pay FROM table_name_26 WHERE years = "2006–" AND provider = "bt tv (formerly bt vision)"
What kind of Free or pay has Years of 2006– and a Provider of bt tv (formerly bt vision)?
CREATE TABLE table_name_26 (free_or_pay VARCHAR, years VARCHAR, provider VARCHAR)
SELECT goal_difference FROM table_name_29 WHERE goals_against < 54 AND goals_for > 51 AND points_1 = "63"
What is the goal difference where the goals against is less than 54, goals for is greater than 51 and points 1 is 63?
CREATE TABLE table_name_29 (goal_difference VARCHAR, points_1 VARCHAR, goals_against VARCHAR, goals_for VARCHAR)
SELECT l2_cache FROM table_name_31 WHERE model_number = "turion x2 ultra zm-85"
WHat kind of L2 cache has a Model number of turion x2 ultra zm-85?
CREATE TABLE table_name_31 (l2_cache VARCHAR, model_number 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 written_by FROM table_27823359_1 WHERE season__number = "23"
Who wrote episode 23 in the season?
CREATE TABLE table_27823359_1 (written_by VARCHAR, season__number VARCHAR)
SELECT game_site FROM table_name_44 WHERE week > 14
Which Game site has a Week larger than 14?
CREATE TABLE table_name_44 (game_site VARCHAR, week INTEGER)
SELECT location___state FROM table_name_57 WHERE winner = "craig lowndes"
The winner, Craig Lowndes, was in what location/state?
CREATE TABLE table_name_57 (location___state VARCHAR, winner VARCHAR)
SELECT college FROM table_name_55 WHERE pick__number < 11 AND name = "von hutchins"
Pick # smaller than 11, and a Name of von hutchins belongs to what college?
CREATE TABLE table_name_55 (college VARCHAR, pick__number VARCHAR, name VARCHAR)
SELECT network FROM table_name_57 WHERE studio_host = "john wells"
Which network had the host of john wells?
CREATE TABLE table_name_57 (network VARCHAR, studio_host VARCHAR)
SELECT 2003 FROM table_name_24 WHERE 2012 = "1–4"
Which 2003 has a 2012 of 1–4?
CREATE TABLE table_name_24 (Id VARCHAR)
SELECT launch_site FROM table_name_71 WHERE cospar_id_satcat_№ = "2003-041a"
What is the launch site of the satellite with a 2003-041a COSPAR ID?
CREATE TABLE table_name_71 (launch_site VARCHAR, cospar_id_satcat_№ VARCHAR)
SELECT draw FROM table_name_37 WHERE points = "10"
What is the draw for a match that had 10 points?
CREATE TABLE table_name_37 (draw VARCHAR, points VARCHAR)
SELECT title FROM table_23117208_5 WHERE written_by = "Michael Rauch"
What is the name of the episode that was written by Michael Rauch?
CREATE TABLE table_23117208_5 (title VARCHAR, written_by VARCHAR)
SELECT COUNT(*) FROM perpetrator
How many perpetrators are there?
CREATE TABLE perpetrator (Id VARCHAR)
SELECT COUNT(laps) FROM table_name_69 WHERE start = "12"
How many laps were there when the start was 12?
CREATE TABLE table_name_69 (laps VARCHAR, start VARCHAR)
SELECT defensive FROM table_23265433_2 WHERE week = 9
Name the defensive for week 9
CREATE TABLE table_23265433_2 (defensive VARCHAR, week VARCHAR)
SELECT genre FROM table_name_90 WHERE year > 1999 AND game = "tony hawk's pro skater 2"
Which Genre has a Year larger than 1999, and a Game of tony hawk's pro skater 2?
CREATE TABLE table_name_90 (genre VARCHAR, year VARCHAR, game VARCHAR)
SELECT MAX(region) FROM table_name_10 WHERE population = 499
What is the highest region number with a 499 population?
CREATE TABLE table_name_10 (region INTEGER, population VARCHAR)
SELECT drew FROM table_name_56 WHERE goals_against = "did not qualify for uefa competitions"
How many draws were there with goals against that did not qualify for UEFA competitions?
CREATE TABLE table_name_56 (drew VARCHAR, goals_against VARCHAR)
SELECT score FROM table_name_7 WHERE tie_no = "7"
What is the game score when the tie no is 7?
CREATE TABLE table_name_7 (score VARCHAR, tie_no VARCHAR)
SELECT rank__number FROM table_name_48 WHERE result = "w13-3"
WHAT RANK HAD A RESULT OF W13-3?
CREATE TABLE table_name_48 (rank__number VARCHAR, result VARCHAR)
SELECT type FROM table_2562572_50 WHERE settlement = "Krušedol Selo"
What type of settlemen is Krušedol Selo?
CREATE TABLE table_2562572_50 (type VARCHAR, settlement VARCHAR)
SELECT jeremys_guest FROM table_17413485_1 WHERE episode = "1x01"
what is the name of the jeremy guest for the episode 1x01
CREATE TABLE table_17413485_1 (jeremys_guest VARCHAR, episode VARCHAR)
SELECT COUNT(grid) FROM table_name_57 WHERE driver = "karl wendlinger"
What is Karl Wendlinger's total grid #?
CREATE TABLE table_name_57 (grid VARCHAR, driver VARCHAR)
SELECT MIN(cap_number) FROM table_name_96 WHERE date = "8 february 2009" AND shirt_number > 19
Can you tell me the lowest Cap Number that has the Date of 8 february 2009, and the Shirt Number larger than 19?
CREATE TABLE table_name_96 (cap_number INTEGER, date VARCHAR, shirt_number VARCHAR)
SELECT AVG(points) FROM table_name_42 WHERE attendance = 3 OFFSET 806
Can you tell me the average Points that has the Attendance of 3,806?
CREATE TABLE table_name_42 (points INTEGER, attendance VARCHAR)
SELECT COUNT(*) FROM Aircraft
How many aircrafts do we have?
CREATE TABLE Aircraft (Id VARCHAR)
SELECT name FROM table_name_24 WHERE status = "valid" AND authors = "maisch" AND location = "tanzania" AND novelty = "gen et sp nov"
What is Name, when Status is Valid, when Authors is Maisch, when Location is Tanzania, and when Novelty is Gen Et Sp Nov?
CREATE TABLE table_name_24 (name VARCHAR, novelty VARCHAR, location VARCHAR, status VARCHAR, authors VARCHAR)
SELECT club FROM table_name_66 WHERE league_goals = "21"
Which Club has a League goals of 21?
CREATE TABLE table_name_66 (club VARCHAR, league_goals VARCHAR)
SELECT event FROM table_name_20 WHERE location = "manly beach"
Which event was held at Manly Beach?
CREATE TABLE table_name_20 (event VARCHAR, location VARCHAR)
SELECT away_team FROM table_name_68 WHERE tie_no = "4"
Who was the away team with a tie number of 4?
CREATE TABLE table_name_68 (away_team VARCHAR, tie_no VARCHAR)
SELECT control FROM table_2076463_2 WHERE school = "Missouri Western State University"
What type of school would you see when visiting Missouri Western State University?
CREATE TABLE table_2076463_2 (control VARCHAR, school VARCHAR)
SELECT current_conference FROM table_10577579_3 WHERE location = "Jackson, Mississippi"
Which conference is in Jackson, Mississippi?
CREATE TABLE table_10577579_3 (current_conference VARCHAR, location VARCHAR)
SELECT COUNT(lost) FROM table_name_19 WHERE pens < 51 AND tries = 3 AND start = 45
What is the total losses for the player with fewer than 51 pens, 3 tries and 45 starts?
CREATE TABLE table_name_19 (lost VARCHAR, start VARCHAR, pens VARCHAR, tries VARCHAR)
SELECT percentage___percentage_ FROM table_name_17 WHERE females = "2"
Name the percentage which has females of 2
CREATE TABLE table_name_17 (percentage___percentage_ VARCHAR, females VARCHAR)
SELECT record FROM table_name_86 WHERE high_rebounds = "marcus camby (15)" AND high_assists = "baron davis (7)"
What is Record, when High Rebounds is "Marcus Camby (15)", and when High Assists is "Baron Davis (7)"?
CREATE TABLE table_name_86 (record VARCHAR, high_rebounds VARCHAR, high_assists VARCHAR)
SELECT MAX(itv1_weekly_ranking) FROM table_25664518_3
What is the maximum ITV1 weekly ranking?
CREATE TABLE table_25664518_3 (itv1_weekly_ranking INTEGER)
SELECT lyrics__l____music__m_ FROM table_name_46 WHERE artist = "cube"
Who provided lyrics or music to the artist Cube?
CREATE TABLE table_name_46 (lyrics__l____music__m_ VARCHAR, artist VARCHAR)
SELECT cowboys_points FROM table_21197135_1 WHERE record = "7-0"
How many points did the Cowboys have when they had a 7-0 record?
CREATE TABLE table_21197135_1 (cowboys_points VARCHAR, record VARCHAR)
SELECT SUM(built) FROM table_name_54 WHERE class = "dnv" AND type = "panamax" AND vessel_name = "deva"
Which year was the vessel Deva built as a Panamax DNV class ship?
CREATE TABLE table_name_54 (built INTEGER, vessel_name VARCHAR, class VARCHAR, type VARCHAR)
SELECT SUM(joined) FROM table_name_61 WHERE nickname = "knights" AND enrollment > 2 OFFSET 960
Which Joined has a Nickname of knights, and an Enrollment larger than 2,960?
CREATE TABLE table_name_61 (joined INTEGER, nickname VARCHAR, enrollment VARCHAR)
SELECT artist FROM table_name_87 WHERE mintage = "40,000" AND issue_price = "45.95"
Who was the artist with a mintage of 40,000 and an issue price of $45.95?
CREATE TABLE table_name_87 (artist VARCHAR, mintage VARCHAR, issue_price VARCHAR)
SELECT pos FROM table_23018775_3 WHERE lap_two = "22.7290"
Which positions have a lap two time of 22.7290?
CREATE TABLE table_23018775_3 (pos VARCHAR, lap_two VARCHAR)
SELECT aggregate FROM table_name_56 WHERE opponents = "bayer leverkusen"
What is the Aggregate of Bayer Leverkusen opponents?
CREATE TABLE table_name_56 (aggregate VARCHAR, opponents VARCHAR)
SELECT viewers__in_millions_ FROM table_2102898_1 WHERE broadcast_date = "28March1970"
On broadcast date is 28march1970, how many people tuned in?
CREATE TABLE table_2102898_1 (viewers__in_millions_ VARCHAR, broadcast_date VARCHAR)
SELECT MAX(founded) FROM table_10581768_2 WHERE type = "Private" AND location = "Wilmore, Kentucky"
How many institutions are located in wilmore, kentucky and private
CREATE TABLE table_10581768_2 (founded INTEGER, type VARCHAR, location VARCHAR)
SELECT played FROM table_name_13 WHERE tries_against = "84" AND drawn = "2"
What is the played number when tries against is 84, and drawn is 2?
CREATE TABLE table_name_13 (played VARCHAR, tries_against VARCHAR, drawn VARCHAR)
SELECT goal FROM table_name_65 WHERE competition = "international friendly" AND result = "2–1"
What was Goal that where Competition of international friendly, and a Result of 2–1?
CREATE TABLE table_name_65 (goal VARCHAR, competition VARCHAR, result VARCHAR)
SELECT round FROM table_name_66 WHERE position = "sf/sg" AND year > 1965 AND player = "sly williams"
What round is sf/sg player sly williams from a year after 1965 from?
CREATE TABLE table_name_66 (round VARCHAR, player VARCHAR, position VARCHAR, year VARCHAR)
SELECT main_span_metres FROM table_name_23 WHERE year_to_open = 2013 AND country = "china" AND main_span_feet = "2,585"
What is the Main span of the bridge from China with a Year to open of 2013 and Main span feet of 2,585?
CREATE TABLE table_name_23 (main_span_metres VARCHAR, main_span_feet VARCHAR, year_to_open VARCHAR, country VARCHAR)
SELECT league FROM table_name_63 WHERE playoffs = "league champs" AND record = "77-63"
Playoffs of league champs, and a Record of 77-63 is in what league?
CREATE TABLE table_name_63 (league VARCHAR, playoffs VARCHAR, record VARCHAR)
SELECT nationality FROM table_name_12 WHERE name = "erin donohue"
What nationality is Erin Donohue?
CREATE TABLE table_name_12 (nationality VARCHAR, name VARCHAR)
SELECT AVG(rank) FROM table_name_31 WHERE headquarters = "usa" AND market_value__billion_$_ > 407.2
What is the average rank for USA when the market value is 407.2 billion?
CREATE TABLE table_name_31 (rank INTEGER, headquarters VARCHAR, market_value__billion_$_ VARCHAR)
SELECT title FROM table_2182654_3 WHERE directed_by = "Miguel Arteta"
What is the name of the episode directed by Miguel Arteta?
CREATE TABLE table_2182654_3 (title VARCHAR, directed_by VARCHAR)
SELECT MIN(bronze) FROM table_name_45 WHERE total > 2 AND silver < 1 AND rank > 10 AND gold < 0
What is the smallest bronze value for countries with totals over 2, golds of 0, silvers under 1, and ranks over 10?
CREATE TABLE table_name_45 (bronze INTEGER, gold VARCHAR, rank VARCHAR, total VARCHAR, silver VARCHAR)
SELECT directed_by FROM table_22269839_1 WHERE written_by = "Patrick Meighan"
Who directed the episode written by patrick meighan?
CREATE TABLE table_22269839_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT actors_name FROM table_10236830_1 WHERE film_name = "Fuchzhou" AND nomination = "Best Non-Professional Actor"
What was the actors name for fuchzhou and nomination was best non-professional actor?
CREATE TABLE table_10236830_1 (actors_name VARCHAR, film_name VARCHAR, nomination VARCHAR)
SELECT name FROM table_name_69 WHERE games > 299 AND period = "1995–07"
What is the name of the person with more than 299 games during the 1995–07 period?
CREATE TABLE table_name_69 (name VARCHAR, games VARCHAR, period VARCHAR)
SELECT to_par FROM table_name_10 WHERE score = 70
Which To par is scored at 70?
CREATE TABLE table_name_10 (to_par VARCHAR, score VARCHAR)
SELECT MIN(launch) FROM table_name_58 WHERE origin = "beijing"
What is the earliest launch that was from Beijing?
CREATE TABLE table_name_58 (launch INTEGER, origin VARCHAR)
SELECT away_team AS score FROM table_name_26 WHERE home_team = "south melbourne"
What did the away team score when they visited south melbourne?
CREATE TABLE table_name_26 (away_team VARCHAR, home_team VARCHAR)
SELECT title FROM table_name_1 WHERE production_code = "ad1a22"
what is the title of the episode with the production code of ad1a22?
CREATE TABLE table_name_1 (title VARCHAR, production_code VARCHAR)
SELECT record FROM table_name_4 WHERE location_attendance = "izod center 16,911"
What is Record, when Location Attendance is "Izod Center 16,911"?
CREATE TABLE table_name_4 (record VARCHAR, location_attendance VARCHAR)
SELECT state FROM table_name_13 WHERE first_elected = "1966" AND member = "alan jarman"
What is the State, when the year First elected is 1966, and when the Member is Alan Jarman?
CREATE TABLE table_name_13 (state VARCHAR, first_elected VARCHAR, member VARCHAR)
SELECT date FROM table_name_73 WHERE flag = "norway"
What is the date for the flag of Norway?
CREATE TABLE table_name_73 (date VARCHAR, flag VARCHAR)
SELECT country FROM table_13150274_1 WHERE area_of_operation = "El Hamada"
In what country is the El Hamada area of operation?
CREATE TABLE table_13150274_1 (country VARCHAR, area_of_operation VARCHAR)
SELECT year_completed FROM table_name_20 WHERE line = "gardermobanen"
What year was the Line of Gardermobanen completed?
CREATE TABLE table_name_20 (year_completed VARCHAR, line VARCHAR)
SELECT athlete FROM table_17085947_32 WHERE bike__40km_ = "58:52"
Who was the athlete that covered biking within 58:52?
CREATE TABLE table_17085947_32 (athlete VARCHAR, bike__40km_ VARCHAR)
SELECT result FROM table_name_50 WHERE week = 8
What was the Result on Week 8?
CREATE TABLE table_name_50 (result VARCHAR, week VARCHAR)
SELECT credentials_presented FROM table_name_59 WHERE state = "new jersey" AND status = "foreign service officer"
When were the credentials presented for new jersey with a status of foreign service officer?
CREATE TABLE table_name_59 (credentials_presented VARCHAR, state VARCHAR, status VARCHAR)
SELECT transcription FROM table_name_98 WHERE english_name = "march"
What is the transcription for the English March?
CREATE TABLE table_name_98 (transcription VARCHAR, english_name VARCHAR)
SELECT eliminated FROM table_name_28 WHERE entered < 4 AND wrestler = "shawn michaels"
What is the Eliminated when there are less than 4 entered and the wrestler was shawn michaels?
CREATE TABLE table_name_28 (eliminated VARCHAR, entered VARCHAR, wrestler VARCHAR)
SELECT T3.service_id, T4.Service_Type_Code FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID JOIN EVENTS AS T3 ON T2.Event_ID = T3.Event_ID JOIN services AS T4 ON T3.service_id = T4.service_id GROUP BY T3.service_id ORDER BY COUNT(*) LIMIT 1
Which service id and type has the least number of participants?
CREATE TABLE Participants_in_Events (Participant_ID VARCHAR, Event_ID VARCHAR); CREATE TABLE services (Service_Type_Code VARCHAR, service_id VARCHAR); CREATE TABLE EVENTS (service_id VARCHAR, Event_ID VARCHAR); CREATE TABLE participants (Participant_ID VARCHAR)
SELECT game_site FROM table_25380472_2 WHERE team_record = "1–6"
What game sites are where the team record is 1–6?
CREATE TABLE table_25380472_2 (game_site VARCHAR, team_record VARCHAR)
SELECT away_team AS score FROM table_16388478_3 WHERE home_team = "Port Adelaide"
What score did the away team receive against home team Port Adelaide?
CREATE TABLE table_16388478_3 (away_team VARCHAR, home_team VARCHAR)
SELECT surface FROM table_name_26 WHERE tournament = "napoli"
What is the Surface of the Court in Napoli?
CREATE TABLE table_name_26 (surface VARCHAR, tournament VARCHAR)
SELECT catalog FROM table_name_16 WHERE region = "uk" AND label = "razor records"
What is Catalog, when the Region is UK, and when Label is Razor Records?
CREATE TABLE table_name_16 (catalog VARCHAR, region VARCHAR, label VARCHAR)
SELECT position FROM table_name_62 WHERE season > 2004
What is the position in the 2004 season?
CREATE TABLE table_name_62 (position VARCHAR, season INTEGER)
SELECT icao FROM table_name_22 WHERE iata = "zyl"
Name the ICAO for when IATA is zyl
CREATE TABLE table_name_22 (icao VARCHAR, iata VARCHAR)
SELECT lyricist FROM table_2528382_5 WHERE co_stars = "Jeevankala"
Who wrote the lyrics when Jeevankala co-starred?
CREATE TABLE table_2528382_5 (lyricist VARCHAR, co_stars VARCHAR)
SELECT attendance FROM table_name_64 WHERE record = "4-4"
When the record was 4-4, how many people attended?
CREATE TABLE table_name_64 (attendance VARCHAR, record VARCHAR)