answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT manufacturer FROM table_name_52 WHERE laps = 23 AND time_retired = "+45.195"
Which manufacturer has 23 laps and a time of +45.195?
CREATE TABLE table_name_52 (manufacturer VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT partner FROM table_name_61 WHERE outcome = "runner-up" AND tournament = "mons, belgium"
Which partners were runner-up in the tournament in Mons, Belgium?
CREATE TABLE table_name_61 (partner VARCHAR, outcome VARCHAR, tournament VARCHAR)
SELECT championship FROM table_24901152_4 WHERE score = "6–4, 5–7, 6–2"
Which championship was the score 6–4, 5–7, 6–2?
CREATE TABLE table_24901152_4 (championship VARCHAR, score VARCHAR)
SELECT COUNT(index_weighting___percentage__at_17_january_2013) FROM table_168274_1 WHERE company = "Bouygues"
Name the total number of index weighting % at 17 january 2013 for bouygues
CREATE TABLE table_168274_1 (index_weighting___percentage__at_17_january_2013 VARCHAR, company VARCHAR)
SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" AND T2.languages = "bangla"
What is the country of origin of the artist who is female and produced a song in Bangla?
CREATE TABLE artist (country VARCHAR, artist_name VARCHAR, gender VARCHAR); CREATE TABLE song (artist_name VARCHAR, languages VARCHAR)
SELECT MAX(game) FROM table_name_81 WHERE score = "4 - 2" AND record = "25-39-9"
What is the game associated with a score of 4 - 2, and a record of 25-39-9?
CREATE TABLE table_name_81 (game INTEGER, score VARCHAR, record VARCHAR)
SELECT loan_club FROM table_name_35 WHERE name = "c. dickinson"
From which club is player C. Dickinson?
CREATE TABLE table_name_35 (loan_club VARCHAR, name VARCHAR)
SELECT attendance FROM table_name_72 WHERE opponent = "at detroit lions"
What was the attendance when they played at Detroit Lions?
CREATE TABLE table_name_72 (attendance VARCHAR, opponent VARCHAR)
SELECT years_in_orlando FROM table_name_43 WHERE nationality = "united states" AND player = "doug overton"
Which Years in Orlando has a Nationality of united states, and a Player of doug overton?
CREATE TABLE table_name_43 (years_in_orlando VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT trainer FROM table_name_97 WHERE year < 2010 AND winner = "hyroglyphic"
Which trainer won the hyroglyphic in a year that was before 2010?
CREATE TABLE table_name_97 (trainer VARCHAR, year VARCHAR, winner VARCHAR)
SELECT AVG(goals_conceded) FROM table_name_48 WHERE draw = 0 AND played > 0
Name the Goals Conceded which has a Draw of 0 and a Played larger than 0?
CREATE TABLE table_name_48 (goals_conceded INTEGER, draw VARCHAR, played VARCHAR)
SELECT COUNT(original_airdate) FROM table_26982362_2 WHERE production_code = "693-002"
The episode with production code 693-002, has how many original airdates?
CREATE TABLE table_26982362_2 (original_airdate VARCHAR, production_code VARCHAR)
SELECT film FROM table_name_2 WHERE date = "22/3/06"
What film was awarded on 22/3/06?
CREATE TABLE table_name_2 (film VARCHAR, date VARCHAR)
SELECT COUNT(date) FROM table_24126518_2 WHERE opponent = "Alouettes"
Name the number of dates for alouettes
CREATE TABLE table_24126518_2 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(tournament) FROM table_11900378_1 WHERE singles_champions = "Ludovic Walter"
How many singles tournaments did Ludovic Walter win?
CREATE TABLE table_11900378_1 (tournament VARCHAR, singles_champions VARCHAR)
SELECT stock FROM table_12834315_4 WHERE colt_model_no = "MT6601"
Name the stock for colt model mt6601
CREATE TABLE table_12834315_4 (stock VARCHAR, colt_model_no VARCHAR)
SELECT school FROM table_name_27 WHERE national_championships = 2 AND city = "orlando"
Which School has a National Championships of 2, and a City of orlando?
CREATE TABLE table_name_27 (school VARCHAR, national_championships VARCHAR, city VARCHAR)
SELECT night_rank FROM table_11354111_3 WHERE viewers__m_ = "6.63"
what's the night rank with viewers (m) of 6.63
CREATE TABLE table_11354111_3 (night_rank VARCHAR, viewers__m_ VARCHAR)
SELECT date FROM table_15346009_1 WHERE tournament = "JELD-WEN Tradition"
What day was Jeld-Wen Tradition held?
CREATE TABLE table_15346009_1 (date VARCHAR, tournament VARCHAR)
SELECT AVG(lost) FROM table_name_83 WHERE drawn = 5 AND points > 41
How many games lost for the team that drew 5 times and had over 41 points?
CREATE TABLE table_name_83 (lost INTEGER, drawn VARCHAR, points VARCHAR)
SELECT nation FROM table_name_60 WHERE athlete = "bianca knight"
what nation is bianca knight the answer for?
CREATE TABLE table_name_60 (nation VARCHAR, athlete VARCHAR)
SELECT award_winning_film FROM table_18220102_1 WHERE date__closing_ = "September 4"
Which award-winning film has a closing date of September 4?
CREATE TABLE table_18220102_1 (award_winning_film VARCHAR, date__closing_ VARCHAR)
SELECT MIN(series_episode) FROM table_23513241_5 WHERE prod_code = 406
What is the lowest series episode with a production code of 406?
CREATE TABLE table_23513241_5 (series_episode INTEGER, prod_code VARCHAR)
SELECT rank_points FROM table_name_12 WHERE total = "17" AND shooter = "lalita yauhleuskaya ( aus )"
What is Rank Points, when Total is "17", and when Shooter is "Lalita Yauhleuskaya ( AUS )"?
CREATE TABLE table_name_12 (rank_points VARCHAR, total VARCHAR, shooter VARCHAR)
SELECT COUNT(in_service_dates) FROM table_23958917_1 WHERE owner_s___2009_ = "Hoosier Energy" AND location = "Petersburg"
Name the number for service dates for hoosier energy for petersburg
CREATE TABLE table_23958917_1 (in_service_dates VARCHAR, owner_s___2009_ VARCHAR, location VARCHAR)
SELECT status FROM table_22815568_7 WHERE poverty_rate = "8.6%"
What is the status in those places where the poverty rate is 8.6%?
CREATE TABLE table_22815568_7 (status VARCHAR, poverty_rate VARCHAR)
SELECT date FROM table_name_28 WHERE score = "29-7"
What date was the score 29-7?
CREATE TABLE table_name_28 (date VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_35 WHERE save = "williams (9)"
Name the opponent for save of williams (9)
CREATE TABLE table_name_35 (opponent VARCHAR, save VARCHAR)
SELECT MIN(game) FROM table_23486853_6 WHERE opponent = "Buffalo Sabres"
What was the game number when the opposing team was the Buffalo Sabres?
CREATE TABLE table_23486853_6 (game INTEGER, opponent VARCHAR)
SELECT MAX(population_1891) FROM table_name_44 WHERE headquarters = "sleaford"
What is the Population n1891 of the County with Sleaford Headquarters?
CREATE TABLE table_name_44 (population_1891 INTEGER, headquarters VARCHAR)
SELECT COUNT(segment_c) FROM table_15187735_13 WHERE segment_a = "Pressure Cookers"
Name the total number of segment c for pressure cookers
CREATE TABLE table_15187735_13 (segment_c VARCHAR, segment_a VARCHAR)
SELECT COUNT(team_s_) FROM table_1458412_1 WHERE winnings = "$1,752,299"
What is the total amount o teams where winnings is $1,752,299?
CREATE TABLE table_1458412_1 (team_s_ VARCHAR, winnings VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_98 WHERE constellation = "mensa" AND ngc_number > 2171
Which Right ascension (J2000) has a Constellation of mensa, and an NGC number larger than 2171?
CREATE TABLE table_name_98 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR)
SELECT MIN(overall) FROM table_name_88 WHERE position = "quarterback" AND round < 7
What is the lowest overall for a quarterback with fewer than 7 rounds?
CREATE TABLE table_name_88 (overall INTEGER, position VARCHAR, round VARCHAR)
SELECT partial_thromboplastin_time FROM table_1226250_1 WHERE bleeding_time = "Unaffected" AND prothrombin_time = "Unaffected"
How long does thromboplastin last when prothrombin is unaffected?
CREATE TABLE table_1226250_1 (partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR)
SELECT norwegian_title FROM table_name_37 WHERE pages = 218 AND translated_title = "breaking dawn"
What Norwegian title has 218 pages and Translated Title of Breaking Dawn?
CREATE TABLE table_name_37 (norwegian_title VARCHAR, pages VARCHAR, translated_title VARCHAR)
SELECT population__2010_census_ FROM table_14986292_1 WHERE population_2000_census = 920599
Name the population 2010 census for population 2000 census of 920599
CREATE TABLE table_14986292_1 (population__2010_census_ VARCHAR, population_2000_census VARCHAR)
SELECT high_rebounds FROM table_name_70 WHERE game = 56
What is the High rebounds of a Game with 56?
CREATE TABLE table_name_70 (high_rebounds VARCHAR, game VARCHAR)
SELECT date FROM table_name_93 WHERE venue = "a" AND result = "3–0"
On what date was the venue A with a result of 3–0?
CREATE TABLE table_name_93 (date VARCHAR, venue VARCHAR, result VARCHAR)
SELECT COUNT(player) FROM table_11803648_22 WHERE overall = "78"
How many players had overall 78?
CREATE TABLE table_11803648_22 (player VARCHAR, overall VARCHAR)
SELECT COUNT(*), major FROM student GROUP BY major
Find the number of students in each major.
CREATE TABLE student (major VARCHAR)
SELECT home_team AS score FROM table_name_23 WHERE venue = "arden street oval"
In the game held at Arden Street Oval, what was the score of the home team?
CREATE TABLE table_name_23 (home_team VARCHAR, venue VARCHAR)
SELECT date FROM table_name_90 WHERE opponent = "inter milan"
What is the date of the game where Inter Milan was the opponent.
CREATE TABLE table_name_90 (date VARCHAR, opponent VARCHAR)
SELECT couple FROM table_28677723_16 WHERE total = 38
What is the couple that received a total score of 38?
CREATE TABLE table_28677723_16 (couple VARCHAR, total VARCHAR)
SELECT MAX(obama_number) FROM table_20688030_1 WHERE county = "Wayne"
What is the maximum Obama supporters in Wayne county?
CREATE TABLE table_20688030_1 (obama_number INTEGER, county VARCHAR)
SELECT grid FROM table_name_99 WHERE driver = "rubens barrichello"
What is the Grid for Rubens Barrichello?
CREATE TABLE table_name_99 (grid VARCHAR, driver VARCHAR)
SELECT tournament FROM table_name_71 WHERE margin_of_victory = "1 stroke" AND winning_score = –16(67 - 66 - 70 - 69 = 272)
What Tournament had a Victory of 1 Stroke with a Winning score of –16 (67-66-70-69=272)?
CREATE TABLE table_name_71 (tournament VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT COUNT(DISTINCT gtype) FROM Video_games
How many video game types exist?
CREATE TABLE Video_games (gtype VARCHAR)
SELECT results¹ FROM table_name_97 WHERE opponent = "luxembourg"
What was the result of the game against Luxembourg?
CREATE TABLE table_name_97 (results¹ VARCHAR, opponent VARCHAR)
SELECT mens_2nd_xi FROM table_21576644_2 WHERE mens_1st_xi = "6th, South Division 2"
When 6th, south division 2 is the mens 1st xi what is the mens 2nd xi?
CREATE TABLE table_21576644_2 (mens_2nd_xi VARCHAR, mens_1st_xi VARCHAR)
SELECT country FROM table_name_38 WHERE to_par > 5 AND player = "john mahaffey"
What country has a to par larger than 5 and a player John Mahaffey?
CREATE TABLE table_name_38 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1
What is the most common hometown of gymnasts?
CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR)
SELECT position FROM table_name_22 WHERE player = "karl singer"
What position does Karl Singer play?
CREATE TABLE table_name_22 (position VARCHAR, player VARCHAR)
SELECT home_team FROM table_name_19 WHERE venue = "mcg"
Who is the home team that played at MCG?
CREATE TABLE table_name_19 (home_team VARCHAR, venue VARCHAR)
SELECT Carrier FROM device ORDER BY Carrier
List the carriers of devices in ascending alphabetical order.
CREATE TABLE device (Carrier VARCHAR)
SELECT athlete FROM table_name_76 WHERE time = 13.6
Who had the time 13.6?
CREATE TABLE table_name_76 (athlete VARCHAR, time VARCHAR)
SELECT MIN(apps) FROM table_name_24 WHERE name = "smith"
what is the apps when the name is smith?
CREATE TABLE table_name_24 (apps INTEGER, name VARCHAR)
SELECT COUNT(year) FROM table_13114949_3 WHERE qualifying_score = "61.400"
how many times is the qualifying score 61.400?
CREATE TABLE table_13114949_3 (year VARCHAR, qualifying_score 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 surface FROM table_name_55 WHERE partner = "julie halard" AND score_in_the_final = "6–3, 6–2"
What was the surface for Julie Halard when the final score was 6–3, 6–2?
CREATE TABLE table_name_55 (surface VARCHAR, partner VARCHAR, score_in_the_final VARCHAR)
SELECT games FROM table_name_47 WHERE club = "colomiers"
What games have colomiers as the club?
CREATE TABLE table_name_47 (games VARCHAR, club VARCHAR)
SELECT date FROM table_name_21 WHERE circuit = "winton motor raceway"
What's the date of the circuit Winton Motor Raceway?
CREATE TABLE table_name_21 (date VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_67 WHERE away_team = "chester"
What date was Chester the away team?
CREATE TABLE table_name_67 (date VARCHAR, away_team VARCHAR)
SELECT COUNT(lane) FROM table_name_29 WHERE heat = 3 AND name = "cxhristy ekpukhon ihunaegbo"
what is the number of times that the heat is 3 and the name is cxhristy ekpukhon ihunaegbo?
CREATE TABLE table_name_29 (lane VARCHAR, heat VARCHAR, name VARCHAR)
SELECT MIN(against) FROM table_name_78 WHERE venue = "twickenham , london" AND status = "six nations" AND opposing_teams = "france"
What is the lowest Against, when Venue is "Twickenham , London", when Status is "Six Nations", and when Opposing Teams is "France"?
CREATE TABLE table_name_78 (against INTEGER, opposing_teams VARCHAR, venue VARCHAR, status VARCHAR)
SELECT COUNT(rider) FROM table_25220821_3 WHERE tues_1_june = "21' 05.27 107.351mph"
If Tuesday 1 June is 21' 05.27 107.351mph, what is the rider total number?
CREATE TABLE table_25220821_3 (rider VARCHAR, tues_1_june VARCHAR)
SELECT area___ha__ FROM table_name_31 WHERE height__m_ > 7 AND island = "linga holm"
What is the area (ha) of the group on the island of Linga Holm that has a Height (m) larger than 7?
CREATE TABLE table_name_31 (area___ha__ VARCHAR, height__m_ VARCHAR, island VARCHAR)
SELECT AVG(bronze) FROM table_name_32 WHERE total < 1
Name the average bronze for total less than 1
CREATE TABLE table_name_32 (bronze INTEGER, total INTEGER)
SELECT AirportName FROM AIRPORTS WHERE City = "Aberdeen"
What are airport names at City 'Aberdeen'?
CREATE TABLE AIRPORTS (AirportName VARCHAR, City VARCHAR)
SELECT hometown FROM table_name_17 WHERE position = "pr"
What is the hometown of the player who plays pr?
CREATE TABLE table_name_17 (hometown VARCHAR, position VARCHAR)
SELECT title FROM table_23289934_1 WHERE no_in_season = 16
Name the title for number 16
CREATE TABLE table_23289934_1 (title VARCHAR, no_in_season VARCHAR)
SELECT location FROM table_2461720_1 WHERE theatre_name = "Méga-Plex Taschereau IMAX"
Name the location for democratic méga-plex taschereau imax
CREATE TABLE table_2461720_1 (location VARCHAR, theatre_name VARCHAR)
SELECT constructor FROM table_name_59 WHERE grid > 10 AND time_retired = "+1 lap"
who is the constructor when the grid is more than 10 and the time/retired is +1 lap?
CREATE TABLE table_name_59 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT martin_mcguinness FROM table_name_3 WHERE seán_gallagher = "29.6%"
What is the Martin mcGuinness with a Sean Gallagher that is 29.6%?
CREATE TABLE table_name_3 (martin_mcguinness VARCHAR, seán_gallagher VARCHAR)
SELECT space_crusade FROM table_name_7 WHERE english = "finnish"
Name the space crusade when the english is of finnish
CREATE TABLE table_name_7 (space_crusade VARCHAR, english VARCHAR)
SELECT rounds FROM table_name_59 WHERE tyre = "y" AND drivers = "tomonobu fujii"
In what rounds was the featured driver Tomonobu Fujii with a Tyre of Y?
CREATE TABLE table_name_59 (rounds VARCHAR, tyre VARCHAR, drivers VARCHAR)
SELECT driver FROM table_name_67 WHERE laps > 39 AND grid = 15
What driver has more than 39 laps on gird 15?
CREATE TABLE table_name_67 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT COUNT(per) AS ­cent­age FROM table_177766_1 WHERE rank = 51
This constellation with a ranking of 51 has how many percentages on record?
CREATE TABLE table_177766_1 (per VARCHAR, rank VARCHAR)
SELECT title_in_english FROM table_name_49 WHERE format = "lp" AND original_title = "то ли ещё будет"
What is the english title with a lp format and an Original title of то ли ещё будет?
CREATE TABLE table_name_49 (title_in_english VARCHAR, format VARCHAR, original_title VARCHAR)
SELECT POSITION, Team FROM pilot
What are the positions and teams of pilots?
CREATE TABLE pilot (POSITION VARCHAR, Team VARCHAR)
SELECT year FROM table_name_45 WHERE opponent_in_the_final = "john higgins category:articles with hcards"
What year was the opponent in the final john higgins category:articles with hcards?
CREATE TABLE table_name_45 (year VARCHAR, opponent_in_the_final VARCHAR)
SELECT nhl_team FROM table_name_29 WHERE player = "dave murphy"
What is the NHL team of dave murphy?
CREATE TABLE table_name_29 (nhl_team VARCHAR, player VARCHAR)
SELECT incumbent FROM table_1341586_39 WHERE candidates = "Tom Ridge (R) 80.9% Joylyn Blackwell (D) 19.1%"
who is the incumbent with candidates being tom ridge (r) 80.9% joylyn blackwell (d) 19.1%
CREATE TABLE table_1341586_39 (incumbent VARCHAR, candidates VARCHAR)
SELECT callsign FROM table_2638104_1 WHERE channel = 6
What is the call sign for channel 6?
CREATE TABLE table_2638104_1 (callsign VARCHAR, channel VARCHAR)
SELECT episode FROM table_2140071_12 WHERE coach = "Travis Brown"
Name the episode for travis brown
CREATE TABLE table_2140071_12 (episode VARCHAR, coach VARCHAR)
SELECT round FROM table_name_26 WHERE winning_team = "engstler motorsport maurer motorsport"
What Round was the Winning Team Engstler Motorsport Maurer Motorsport?
CREATE TABLE table_name_26 (round VARCHAR, winning_team VARCHAR)
SELECT new_entries_this_round FROM table_name_18 WHERE round = "semi-finals"
What is the New entries this round when the round is the semi-finals?
CREATE TABLE table_name_18 (new_entries_this_round VARCHAR, round VARCHAR)
SELECT COUNT(launches_to_date) FROM table_name_8 WHERE version = "541" AND ccbs < 1
What is the total Launches to date with a Version of 541, and CCBs smaller than 1?
CREATE TABLE table_name_8 (launches_to_date VARCHAR, version VARCHAR, ccbs VARCHAR)
SELECT name FROM table_name_78 WHERE moving_from = "manchester united"
What player was moving from manchester united?
CREATE TABLE table_name_78 (name VARCHAR, moving_from VARCHAR)
SELECT type FROM table_name_39 WHERE course = "sestri levante to riomaggiore"
What's the type on Sestri Levante to Riomaggiore?
CREATE TABLE table_name_39 (type VARCHAR, course VARCHAR)
SELECT winning_team FROM table_23315271_2 WHERE winning_driver = "Max Busnelli"
Who is the winning team when max busnelli is the winning driver?
CREATE TABLE table_23315271_2 (winning_team VARCHAR, winning_driver VARCHAR)
SELECT state FROM table_name_74 WHERE circuit = "sandown"
In which state can you find the Sandown circuit?
CREATE TABLE table_name_74 (state VARCHAR, circuit VARCHAR)
SELECT season FROM table_23224961_2 WHERE oberfranken_west = "SV Neuses"
When sv neuses is the oberfranken west what is the season?
CREATE TABLE table_23224961_2 (season VARCHAR, oberfranken_west VARCHAR)
SELECT COUNT(closure_for_signature) FROM table_2001348_1 WHERE field = "Sea (revised)"
How many inputs are there in the 'closure for signature' tab under the field 'sea (revised)'?
CREATE TABLE table_2001348_1 (closure_for_signature VARCHAR, field VARCHAR)
SELECT latitude FROM table_16799784_2 WHERE name = "Laima Tessera"
Name the latitude of laima tessera
CREATE TABLE table_16799784_2 (latitude VARCHAR, name VARCHAR)
SELECT district FROM table_2668336_17 WHERE first_elected = "1807 1817"
First elected in 1807 1817 in what district?
CREATE TABLE table_2668336_17 (district VARCHAR, first_elected VARCHAR)
SELECT venue FROM table_name_65 WHERE result = "0-0"
What is Venue, when Result is "0-0"?
CREATE TABLE table_name_65 (venue VARCHAR, result VARCHAR)
SELECT position FROM table_26996293_7 WHERE cfl_team = "Saskatchewan (7)"
What is the position of cfl team saskatchewan (7)?
CREATE TABLE table_26996293_7 (position VARCHAR, cfl_team 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 AVG(events) FROM table_name_60 WHERE player = "tom kite" AND earnings___$__ < 760 OFFSET 405
Which Events have a Player of tom kite, and Earnings ($) smaller than 760,405?
CREATE TABLE table_name_60 (events INTEGER, player VARCHAR, earnings___$__ VARCHAR)