answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT period FROM table_24565004_15 WHERE position = "Attaquant"
List the number of active years for attaquant.
CREATE TABLE table_24565004_15 (period VARCHAR, position VARCHAR)
SELECT winning_score FROM table_name_51 WHERE year = 1980
What was the winning score in 1980?
CREATE TABLE table_name_51 (winning_score VARCHAR, year VARCHAR)
SELECT service_name FROM services ORDER BY service_name
List all the services in the alphabetical order.
CREATE TABLE services (service_name VARCHAR)
SELECT launch_site FROM table_11869952_3 WHERE mission = "Test mission: war heads and Missile payload" AND results = "Partial Failure"
Where did Test Mission: War Heads and Missile Payload launch when there was a partial failure?
CREATE TABLE table_11869952_3 (launch_site VARCHAR, mission VARCHAR, results VARCHAR)
SELECT club FROM table_name_2 WHERE tries_for = "40"
Which club has 40 tries for?
CREATE TABLE table_name_2 (club VARCHAR, tries_for VARCHAR)
SELECT engine FROM table_name_86 WHERE team = "korten motorsport"
Which engine did Korten Motorsport use?
CREATE TABLE table_name_86 (engine VARCHAR, team VARCHAR)
SELECT silver FROM table_name_76 WHERE bronze = "1" AND total = "4" AND nation = "slovakia"
Which silver has a Bronze of 1, a Total of 4, and a Nation of slovakia?
CREATE TABLE table_name_76 (silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT home_team AS score FROM table_name_25 WHERE home_team = "fitzroy"
What was Fitzroy score at their home stadium?
CREATE TABLE table_name_25 (home_team VARCHAR)
SELECT barangay FROM table_name_66 WHERE exit = "sisiman toll barrier"
Which Barangay has an exit of Sisiman toll barrier?
CREATE TABLE table_name_66 (barangay VARCHAR, exit VARCHAR)
SELECT COUNT(vehicle_theft) FROM table_26060884_2 WHERE forcible_rape = 1232
How many vehicle thefts data were recorded if forcible rape is 1232?
CREATE TABLE table_26060884_2 (vehicle_theft VARCHAR, forcible_rape VARCHAR)
SELECT MIN(total) FROM table_name_17 WHERE to_par > 12
Which Total has a To par larger than 12?
CREATE TABLE table_name_17 (total INTEGER, to_par INTEGER)
SELECT club_team FROM table_name_98 WHERE nationality = "united states" AND overall < 142
What club team is the United States player with an overall pick smaller than 142 from?
CREATE TABLE table_name_98 (club_team VARCHAR, nationality VARCHAR, overall VARCHAR)
SELECT MIN(against) FROM table_name_75 WHERE ballarat_fl = "bacchus marsh" AND wins < 1
What is the lowest against that has bacchus marsh as a ballarat fl, with wins less than 1?
CREATE TABLE table_name_75 (against INTEGER, ballarat_fl VARCHAR, wins VARCHAR)
SELECT bötzow FROM table_11680175_1 WHERE vehlefanz = "1.800"
What was the number for Bötzow where Vehlefanz is 1.800?
CREATE TABLE table_11680175_1 (bötzow VARCHAR, vehlefanz VARCHAR)
SELECT title FROM table_228973_9 WHERE original_air_date = "February 4, 2003"
If the original air date is February 4, 2003, what is the episode title?
CREATE TABLE table_228973_9 (title VARCHAR, original_air_date VARCHAR)
SELECT pct_route_available FROM table_2279413_1 WHERE type_of_protection = "small patent"
For small patent type of protections, what type of PCT route is available?
CREATE TABLE table_2279413_1 (pct_route_available VARCHAR, type_of_protection VARCHAR)
SELECT name FROM table_name_68 WHERE status = "final cast" AND first_performance = "12 november 2011"
what's the name with final cast status and first performance on 12 november 2011?
CREATE TABLE table_name_68 (name VARCHAR, status VARCHAR, first_performance VARCHAR)
SELECT sideline_reporters FROM table_name_84 WHERE color_commentator = "john harkes" AND pregame_analysts = "alexi lalas and steve mcmanaman"
When John Harkes was the color commentator, and Alexi Lalas and Steve McManaman were the pregame analysts, who were the sideline reporters?
CREATE TABLE table_name_84 (sideline_reporters VARCHAR, color_commentator VARCHAR, pregame_analysts VARCHAR)
SELECT pregame_analysts FROM table_name_74 WHERE color_commentator = "taylor twellman" AND network = "tsn2"
Who does pregame analysts for TSN2 network when Taylor Twellman is the color commentator?
CREATE TABLE table_name_74 (pregame_analysts VARCHAR, color_commentator VARCHAR, network VARCHAR)
SELECT MIN(pre_season) FROM table_name_4 WHERE a_league = "0 1" AND finals > 0
Which Pre-Season has a A-League of 0 1, and a Finals larger than 0?
CREATE TABLE table_name_4 (pre_season INTEGER, a_league VARCHAR, finals VARCHAR)
SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T1.city = "Taizhou ( Zhejiang )"
What is the host year of city "Taizhou ( Zhejiang )"?
CREATE TABLE city (city_id VARCHAR, city VARCHAR); CREATE TABLE hosting_city (year VARCHAR, host_city VARCHAR)
SELECT COUNT(points) FROM table_name_97 WHERE engine = "ferrari v6" AND year = 1962
In 1962, what was the total number of points, when the Engine was Ferrari v6?
CREATE TABLE table_name_97 (points VARCHAR, engine VARCHAR, year VARCHAR)
SELECT opponents_in_the_final FROM table_name_18 WHERE partnering = "tomás carbonell" AND date = "march 28, 1995"
Which Opponents in the final has a Partnering of tomás carbonell on march 28, 1995?
CREATE TABLE table_name_18 (opponents_in_the_final VARCHAR, partnering VARCHAR, date VARCHAR)
SELECT date FROM table_name_87 WHERE home_team = "st kilda"
What day is st kilda the home side?
CREATE TABLE table_name_87 (date VARCHAR, home_team VARCHAR)
SELECT COUNT(original_air_date) FROM table_21550897_1 WHERE _number = 6
How many times did episode 6 originally air?
CREATE TABLE table_21550897_1 (original_air_date VARCHAR, _number VARCHAR)
SELECT SUM(long) FROM table_name_11 WHERE gain < 379 AND avg_g = 0.8
How many longs have a gain less than 379, and 0.8 as an avg/g?
CREATE TABLE table_name_11 (long INTEGER, gain VARCHAR, avg_g VARCHAR)
SELECT event FROM table_22644589_4 WHERE compulsory_dance__cd_ = "28.12"
In what event was the compulsory dance score 28.12?
CREATE TABLE table_22644589_4 (event VARCHAR, compulsory_dance__cd_ VARCHAR)
SELECT entrant FROM table_name_2 WHERE year > 1989 AND chassis = "eurobrun er189b"
Who used Eurobrun er189b after 1989?
CREATE TABLE table_name_2 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT MAX(time) FROM table_name_39 WHERE heat < 1
What is a highest time for the heat smaller than 1?
CREATE TABLE table_name_39 (time INTEGER, heat INTEGER)
SELECT label FROM table_name_51 WHERE date = "29 july 1997"
What's listed for the Label with a Date of 29 July 1997?
CREATE TABLE table_name_51 (label VARCHAR, date VARCHAR)
SELECT country FROM table_name_43 WHERE score = 70 - 68 - 70 - 68 = 276
Which Country has a Score of 70-68-70-68=276?
CREATE TABLE table_name_43 (country VARCHAR, score VARCHAR)
SELECT MAX(wins) FROM table_name_9 WHERE team = "kawasaki" AND points = 95 AND year < 1981
Which highest wins number had Kawasaki as a team, 95 points, and a year prior to 1981?
CREATE TABLE table_name_9 (wins INTEGER, year VARCHAR, team VARCHAR, points VARCHAR)
SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY COUNT(*) DESC LIMIT 1
What is the name of party with most number of members?
CREATE TABLE party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE Member (party_id VARCHAR)
SELECT 1981 FROM table_name_54 WHERE number_1971 > 192 AND 1991 = 1748
What is the 1981 value of the Macedonian population with a 1971 number greater than 192 and a 1991 of 1748?
CREATE TABLE table_name_54 (number_1971 VARCHAR)
SELECT COUNT(date) FROM table_27734769_8 WHERE high_rebounds = "Marcus Camby (18)"
How many times was the high rebounds by marcus camby (18)?
CREATE TABLE table_27734769_8 (date VARCHAR, high_rebounds VARCHAR)
SELECT tournament FROM table_name_35 WHERE 2012 = "grand slam tournaments"
What is Tournament, when 2012 is "Grand Slam Tournaments"?
CREATE TABLE table_name_35 (tournament VARCHAR)
SELECT 2 AS nd_leg FROM table_19130829_4 WHERE team__number1 = "Iraklis"
What's the 2nd leg result in the round where team #1 is Iraklis?
CREATE TABLE table_19130829_4 (team__number1 VARCHAR)
SELECT hot_digital_songs_reaction FROM table_name_81 WHERE hot_100_reaction = "4 (+4)"
What digital reaction has a hot 100 reaction of 4 (+4)?
CREATE TABLE table_name_81 (hot_digital_songs_reaction VARCHAR, hot_100_reaction VARCHAR)
SELECT show FROM table_name_81 WHERE date = "19 april"
Which show aired on 19 april?
CREATE TABLE table_name_81 (show VARCHAR, date VARCHAR)
SELECT MAX(total) FROM table_20325360_2 WHERE country_territory = "Brazil"
How many competitors in total, for the Mr. International competition, does Brazil have?
CREATE TABLE table_20325360_2 (total INTEGER, country_territory VARCHAR)
SELECT director_s_ FROM table_name_98 WHERE date = "14/6/6"
What directors won an award on 14/6/6?
CREATE TABLE table_name_98 (director_s_ VARCHAR, date VARCHAR)
SELECT date FROM table_name_48 WHERE label = "cbs"
What is the date for CBS label?
CREATE TABLE table_name_48 (date VARCHAR, label VARCHAR)
SELECT color_commentator_s_ FROM table_name_42 WHERE sideline_reporter_s_ = "eric dickerson and melissa stark" AND year = 2001
Who was the color commentator for Eric Dickerson and Melissa Stark in 2001?
CREATE TABLE table_name_42 (color_commentator_s_ VARCHAR, sideline_reporter_s_ VARCHAR, year VARCHAR)
SELECT time_retired FROM table_name_45 WHERE grid < 11 AND driver = "jo siffert"
What is the time/retired for jo siffert with a grid under 11?
CREATE TABLE table_name_45 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT COUNT(weight) FROM table_name_63 WHERE shirt_no = 18 AND height > 195
Shirt number of 18, and a Height larger than 195 has how much weight?
CREATE TABLE table_name_63 (weight VARCHAR, shirt_no VARCHAR, height VARCHAR)
SELECT SUM(all_time) FROM table_name_39 WHERE amateur_era < 0
What is the sum of All-Time, when Amateur Era is less than 0?
CREATE TABLE table_name_39 (all_time INTEGER, amateur_era INTEGER)
SELECT COUNT(result) FROM table_22815259_1 WHERE cowboys_points = 23
Name the result for cowboys points being 23
CREATE TABLE table_22815259_1 (result VARCHAR, cowboys_points VARCHAR)
SELECT round FROM table_name_4 WHERE pick < 189 AND nfl_club = "arizona cardinals"
What round has a pick less than 189, with arizona cardinals as the NFL club?
CREATE TABLE table_name_4 (round VARCHAR, pick VARCHAR, nfl_club VARCHAR)
SELECT COUNT(position) FROM table_name_62 WHERE goals_for < 40 AND played > 38
How many positions have goals of fewer than 40 and more than 38 played?
CREATE TABLE table_name_62 (position VARCHAR, goals_for VARCHAR, played VARCHAR)
SELECT lost FROM table_name_58 WHERE drawn = "2" AND points_against = "572"
What is the lost number for the team with 2 drawn games, and 572 points against?
CREATE TABLE table_name_58 (lost VARCHAR, drawn VARCHAR, points_against VARCHAR)
SELECT winner FROM table_name_37 WHERE country = "scotland"
What is Scotland's winner?
CREATE TABLE table_name_37 (winner VARCHAR, country VARCHAR)
SELECT declination___j2000__ FROM table_name_12 WHERE apparent_magnitude > 10.4 AND ngc_number = 5112
Tell me the declination with apparent magnitude more than 10.4 and NGC number of 5112
CREATE TABLE table_name_12 (declination___j2000__ VARCHAR, apparent_magnitude VARCHAR, ngc_number VARCHAR)
SELECT completion__percentage FROM table_name_57 WHERE yards = "2,175"
which Completion % has a Yards of 2,175?
CREATE TABLE table_name_57 (completion__percentage VARCHAR, yards VARCHAR)
SELECT mascot FROM table_name_8 WHERE school = "south bend clay"
What is the mascot for South Bend Clay?
CREATE TABLE table_name_8 (mascot VARCHAR, school VARCHAR)
SELECT clubs_remaining FROM table_28039032_1 WHERE round = "Preliminary round"
How many clubs were remaining in the preliminary round?
CREATE TABLE table_28039032_1 (clubs_remaining VARCHAR, round VARCHAR)
SELECT try_bonus FROM table_name_61 WHERE points_against = "488"
What Try bonus has a Points against of 488?
CREATE TABLE table_name_61 (try_bonus VARCHAR, points_against VARCHAR)
SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology'
Find the title of course that is provided by Statistics but not Psychology departments.
CREATE TABLE course (title VARCHAR, dept_name VARCHAR)
SELECT to_par FROM table_1121352_2 WHERE date = "May 4, 2003"
What is the to par dated may 4, 2003?
CREATE TABLE table_1121352_2 (to_par VARCHAR, date VARCHAR)
SELECT years FROM table_name_56 WHERE player = "alton lister category:articles with hcards"
Alton Lister Category:Articles with hCards has what as the listed years?
CREATE TABLE table_name_56 (years VARCHAR, player VARCHAR)
SELECT hometown FROM table_11677691_11 WHERE school = "American Heritage school"
What is the hometown of the player who attended American Heritage School?
CREATE TABLE table_11677691_11 (hometown VARCHAR, school VARCHAR)
SELECT MAX(area_2006_km²) FROM table_name_22 WHERE city = "sopot" AND area_1996_km² < 17.31
Which area 2006 km² has a city of sopot, and an area 1996 km² smaller than 17.31?
CREATE TABLE table_name_22 (area_2006_km² INTEGER, city VARCHAR, area_1996_km² VARCHAR)
SELECT COUNT(*) FROM park WHERE city = 'Atlanta'
How many parks are there in Atlanta city?
CREATE TABLE park (city VARCHAR)
SELECT voice_actor__japanese_ FROM table_1410384_1 WHERE character_name = "Goku"
who is the the voice actor (japanese) with character name being goku
CREATE TABLE table_1410384_1 (voice_actor__japanese_ VARCHAR, character_name VARCHAR)
SELECT MIN(round) FROM table_10361230_1 WHERE position = "Defensive Back"
Where does the defensive back position appear first?
CREATE TABLE table_10361230_1 (round INTEGER, position VARCHAR)
SELECT COUNT(vacator) FROM table_224794_3 WHERE district = "Pennsylvania 33rd"
How many vacators were in the Pennsylvania 33rd district?
CREATE TABLE table_224794_3 (vacator VARCHAR, district VARCHAR)
SELECT series FROM table_name_67 WHERE season = 2009
What was the Series in 2009?
CREATE TABLE table_name_67 (series VARCHAR, season VARCHAR)
SELECT name, distance FROM Aircraft
Show name and distance for all aircrafts.
CREATE TABLE Aircraft (name VARCHAR, distance VARCHAR)
SELECT COUNT(time) FROM table_name_8 WHERE rank > 29 AND athlete = "barbara pierre" AND heat < 5
how many times is the rank more than 29, the athlete is barbara pierre and the heat less than 5?
CREATE TABLE table_name_8 (time VARCHAR, heat VARCHAR, rank VARCHAR, athlete VARCHAR)
SELECT team FROM table_name_90 WHERE make = "chevrolet" AND pos < 7 AND car__number = 88
Who is the team of the Chevrolet, and has a position less than 7, for car # 88?
CREATE TABLE table_name_90 (team VARCHAR, car__number VARCHAR, make VARCHAR, pos VARCHAR)
SELECT MAX(oricon) FROM table_name_17 WHERE romaji_title = "nakitakunalu"
Which Oricon has a Romaji title of nakitakunalu?
CREATE TABLE table_name_17 (oricon INTEGER, romaji_title VARCHAR)
SELECT per_capita_income FROM table_1840495_2 WHERE place = "Pigeon Creek"
For Pigeon Creek what is the per capita income?
CREATE TABLE table_1840495_2 (per_capita_income VARCHAR, place VARCHAR)
SELECT MIN(clubs) FROM table_name_88 WHERE place > 5 AND all_around > 9.7
What are the lowest clubs that have a place greater than 5, with an all around greater than 9.7?
CREATE TABLE table_name_88 (clubs INTEGER, place VARCHAR, all_around VARCHAR)
SELECT cb_cw FROM table_name_73 WHERE bb_pop = "11"
What is the CB CW of the song which has a BB Pop of 11?
CREATE TABLE table_name_73 (cb_cw VARCHAR, bb_pop VARCHAR)
SELECT AVG(plaxo) FROM table_name_63 WHERE myspace > 64 AND bebo > 3 AND friendster = 4
What is the average plaxo that has a myspace greater than 64, a bebo greater than 3, with 4 as the friendster?
CREATE TABLE table_name_63 (plaxo INTEGER, friendster VARCHAR, myspace VARCHAR, bebo VARCHAR)
SELECT record FROM table_name_51 WHERE opponent = "katsuomi inagaki"
Which record has Katsuomi Inagaki as an opponent?
CREATE TABLE table_name_51 (record VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_31 WHERE sport = "wrestling" AND games = "2008 beijing"
Which wrestling event was at the 2008 Beijing games?
CREATE TABLE table_name_31 (event VARCHAR, sport VARCHAR, games VARCHAR)
SELECT Name FROM city ORDER BY White DESC LIMIT 5
List the names of the city with the top 5 white percentages.
CREATE TABLE city (Name VARCHAR, White VARCHAR)
SELECT date_of_issue FROM table_name_46 WHERE design = "katalin kovats"
What's the Date of Issue for Design of Katalin Kovats?
CREATE TABLE table_name_46 (date_of_issue VARCHAR, design VARCHAR)
SELECT name FROM table_name_39 WHERE transfer_window = "summer" AND country = "sen"
WHAT IS THE NAME WITH A SUMMER TRANSFER WINDOW, AND COUNTRY SEN?
CREATE TABLE table_name_39 (name VARCHAR, transfer_window VARCHAR, country VARCHAR)
SELECT surface FROM table_name_45 WHERE partner = "jim thomas" AND date = 2007
Which Surface has a Partner of jim thomas, and a Date of 2007?
CREATE TABLE table_name_45 (surface VARCHAR, partner VARCHAR, date VARCHAR)
SELECT team FROM table_27722408_6 WHERE game = 11
What was the other team in game 11?
CREATE TABLE table_27722408_6 (team VARCHAR, game VARCHAR)
SELECT MAX(grid) FROM table_name_11 WHERE time_retired = "+0.3"
Which grid is the highest and has a time/retired of +0.3?
CREATE TABLE table_name_11 (grid INTEGER, time_retired VARCHAR)
SELECT AVG(laps) FROM table_name_27 WHERE time_retired = "+28.108" AND grid > 11
What was the average amount of laps for competitors with a grid that was more than 11 and a Time/Retired of +28.108?
CREATE TABLE table_name_27 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT MIN(starts) FROM table_1012730_1 WHERE team_s_ = "Hendrick Motorsports"
How many starts did Hendrick motorsports have?
CREATE TABLE table_1012730_1 (starts INTEGER, team_s_ VARCHAR)
SELECT date FROM table_name_55 WHERE competition = "uefa euro 2008 qualification"
What date has uefa euro 2008 qualification as the competition?
CREATE TABLE table_name_55 (date VARCHAR, competition VARCHAR)
SELECT year FROM table_20193855_2 WHERE book_title = "The Ordinary"
Which year is the book title the ordinary?
CREATE TABLE table_20193855_2 (year VARCHAR, book_title VARCHAR)
SELECT AVG(field_goals) FROM table_name_79 WHERE touchdowns < 15 AND points < 45
How many field goals were there, where the points where less than 45 and there were less than 15 touchdowns?
CREATE TABLE table_name_79 (field_goals INTEGER, touchdowns VARCHAR, points VARCHAR)
SELECT ground FROM table_name_25 WHERE date = "18 january 1998"
Name The Ground on 18 january 1998?
CREATE TABLE table_name_25 (ground VARCHAR, date VARCHAR)
SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) LIMIT 1
Find the country of origin for the artist who made the least number of songs?
CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (country VARCHAR, artist_name VARCHAR)
SELECT weapon FROM table_100518_1 WHERE consort = "Śacī"
What weapon is used by the guardian whose consort is śacī?
CREATE TABLE table_100518_1 (weapon VARCHAR, consort VARCHAR)
SELECT nationality FROM table_name_92 WHERE years_for_jazz = "1984-85"
Which nationality has Years for Jazz of 1984-85?
CREATE TABLE table_name_92 (nationality VARCHAR, years_for_jazz VARCHAR)
SELECT MAX(erp_w) FROM table_name_22 WHERE call_sign = "w262ac"
What is listed as the highest ERP W with a Call sign of W262AC?
CREATE TABLE table_name_22 (erp_w INTEGER, call_sign VARCHAR)
SELECT actor_in_london, _2002 FROM table_name_78 WHERE shipwreck = "leonty ibayev"
Who was the actor in London in 2002 with the shipwreck of Leonty Ibayev?
CREATE TABLE table_name_78 (actor_in_london VARCHAR, _2002 VARCHAR, shipwreck VARCHAR)
SELECT name FROM table_name_87 WHERE floors = 52
What is the name of a building that has 52 floors?
CREATE TABLE table_name_87 (name VARCHAR, floors VARCHAR)
SELECT COUNT(player) FROM table_23619005_3 WHERE cfl_team = "Ottawa Renegades"
How many different players got drafted for the Ottawa Renegades?
CREATE TABLE table_23619005_3 (player VARCHAR, cfl_team VARCHAR)
SELECT league_goals FROM table_name_61 WHERE club = "wolverhampton wanderers"
what was the total for the Wolverhampton Wanderers?
CREATE TABLE table_name_61 (league_goals VARCHAR, club VARCHAR)
SELECT AVG(laps) FROM table_name_74 WHERE grid > 12 AND bike = "ducati 999rs" AND rider = "dean ellison"
Tell me the average Laps for grid larger than 12 and bikes of ducati 999rs for dean ellison
CREATE TABLE table_name_74 (laps INTEGER, rider VARCHAR, grid VARCHAR, bike VARCHAR)
SELECT tv_network_s_ FROM table_name_21 WHERE alternate_title_translation = "aistrų žemė"
What TV network is the series aistrų žemė aired on?
CREATE TABLE table_name_21 (tv_network_s_ VARCHAR, alternate_title_translation VARCHAR)
SELECT length FROM table_name_3 WHERE year = 2003
What is the length of the version from 2003?
CREATE TABLE table_name_3 (length VARCHAR, year VARCHAR)
SELECT launched FROM table_12592074_1 WHERE ship = "Tecumseh"
When was the ship tecumseh launched?
CREATE TABLE table_12592074_1 (launched VARCHAR, ship VARCHAR)