answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT name FROM table_name_57 WHERE calculated = "56"
What is the name of the element with a calculated value of 56?
CREATE TABLE table_name_57 (name VARCHAR, calculated VARCHAR)
SELECT score FROM table_name_93 WHERE date = "october 31"
What was the score on October 31?
CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR)
SELECT AVG(round) FROM table_name_72 WHERE pick = "16"
What is the average round of the number 16 pick?
CREATE TABLE table_name_72 (round INTEGER, pick VARCHAR)
SELECT long_scale FROM table_name_94 WHERE short_scale = "one quadrillion a thousand trillion"
For a short scale of one quadrillion a thousand trillion, what is the Long scale?
CREATE TABLE table_name_94 (long_scale VARCHAR, short_scale VARCHAR)
SELECT date FROM table_name_87 WHERE result = "ud 12/12" AND name = "pernell whitaker" AND opponent = "james mcgirt"
What is the date of the match with a result of ud 12/12 between Pernell Whitaker and James Mcgirt?
CREATE TABLE table_name_87 (date VARCHAR, opponent VARCHAR, result VARCHAR, name VARCHAR)
SELECT engine FROM table_name_91 WHERE notes = "srt8"
What is then engine when the notes state srt8?
CREATE TABLE table_name_91 (engine VARCHAR, notes VARCHAR)
SELECT record FROM table_27539272_4 WHERE location_attendance = "Prudential Center - 12,880"
Name the record for prudential center - 12,880
CREATE TABLE table_27539272_4 (record VARCHAR, location_attendance VARCHAR)
SELECT number_range FROM table_name_88 WHERE class = "t 3"
What is the number range for the T 3 class?
CREATE TABLE table_name_88 (number_range VARCHAR, class VARCHAR)
SELECT director FROM table_name_17 WHERE rank > 1 AND studio = "universal" AND gross = "$201,957,688"
What director ranked higher than 1 from Universal Studios and grossed $201,957,688?
CREATE TABLE table_name_17 (director VARCHAR, gross VARCHAR, rank VARCHAR, studio VARCHAR)
SELECT COUNT(incoming_manager) FROM table_28164986_4 WHERE manner_of_departure = "Resigned"
how many new managers replaced manager(s) who resigned?
CREATE TABLE table_28164986_4 (incoming_manager VARCHAR, manner_of_departure VARCHAR)
SELECT AVG(total) FROM table_name_66 WHERE to_par < 4 AND year_won > 1983
What is the Total for the Player who won after 1983 with less than 4 To par?
CREATE TABLE table_name_66 (total INTEGER, to_par VARCHAR, year_won VARCHAR)
SELECT finish FROM table_name_51 WHERE country = "united states" AND player = "tiger woods"
what is the finish when the country is united states and the player is tiger woods?
CREATE TABLE table_name_51 (finish VARCHAR, country VARCHAR, player VARCHAR)
SELECT us_viewers__in_millions_ FROM table_20704243_5 WHERE series__number = 50
Name the number of viewers for series number 50
CREATE TABLE table_20704243_5 (us_viewers__in_millions_ VARCHAR, series__number VARCHAR)
SELECT COUNT(Rank) AS (_number) FROM table_11251109_3 WHERE viewers__m_ = "5.96"
What is the number of rank with the viewership of 5.96 million?
CREATE TABLE table_11251109_3 (Rank VARCHAR, viewers__m_ VARCHAR)
SELECT SUM(game) FROM table_name_26 WHERE november = 27
what is the game when on november 27?
CREATE TABLE table_name_26 (game INTEGER, november VARCHAR)
SELECT COUNT(december) FROM table_name_11 WHERE opponent = "boston bruins"
What is the day in December of the game against the Boston Bruins?
CREATE TABLE table_name_11 (december VARCHAR, opponent VARCHAR)
SELECT nordbayern FROM table_name_92 WHERE year < 1932 AND württemberg = "union böckingen"
What's the Nordbayern with a Württemberg of Union Böckingen in the year before 1932?
CREATE TABLE table_name_92 (nordbayern VARCHAR, year VARCHAR, württemberg VARCHAR)
SELECT type FROM table_name_26 WHERE rank = 2
What is the type for rank 2?
CREATE TABLE table_name_26 (type VARCHAR, rank VARCHAR)
SELECT music FROM table_name_2 WHERE score = "25 (9, 8, 8)" AND result = "bottom 2"
What is the Music for the Dance that Scored 25 (9, 8, 8) and a Result of bottom 2?
CREATE TABLE table_name_2 (music VARCHAR, score VARCHAR, result VARCHAR)
SELECT MAX(crowd) FROM table_name_48 WHERE venue = "western oval"
What was the highest crowd size at the Western Oval?
CREATE TABLE table_name_48 (crowd INTEGER, venue VARCHAR)
SELECT MIN(season) FROM table_name_47 WHERE assists < 13 AND minutes < 91
What is the earliest year that Assists were less than 13 and minutes were under 91?
CREATE TABLE table_name_47 (season INTEGER, assists VARCHAR, minutes VARCHAR)
SELECT result FROM table_name_85 WHERE opponent_number = "at 2 usc"
What was the result when the opponent was at 2 usc?
CREATE TABLE table_name_85 (result VARCHAR, opponent_number VARCHAR)
SELECT viewers__in_millions_ FROM table_2101431_1 WHERE run_time = "23:25"
How many millions viewers watched the episode that ran 23:25?
CREATE TABLE table_2101431_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR)
SELECT MAX(rank) FROM table_name_65 WHERE player = "ben crenshaw" AND wins > 14
What is the highest rank for ben crenshaw after winning more than 14 times?
CREATE TABLE table_name_65 (rank INTEGER, player VARCHAR, wins VARCHAR)
SELECT part_number_s_ FROM table_name_85 WHERE turbo = "low power"
what is the part number that has a turbo of low power?
CREATE TABLE table_name_85 (part_number_s_ VARCHAR, turbo VARCHAR)
SELECT MIN(floor_exercise) FROM table_name_58 WHERE pommel_horse < 8.45 AND parallel_bars > 9.687
Name the least floor exercise for parallel bars more than 9.687 and pommel horse less than 8.45
CREATE TABLE table_name_58 (floor_exercise INTEGER, pommel_horse VARCHAR, parallel_bars VARCHAR)
SELECT tournament FROM table_name_98 WHERE date = "2 october 2006"
Which Tournament was on 2 October 2006?
CREATE TABLE table_name_98 (tournament VARCHAR, date VARCHAR)
SELECT AVG(position) FROM table_name_76 WHERE against < 11
What is the average position with an against value less than 11?
CREATE TABLE table_name_76 (position INTEGER, against INTEGER)
SELECT MAX(_number) FROM table_19834691_4 WHERE viewers__millions_ = "6.95"
Name the most number for viewers being 6.95
CREATE TABLE table_19834691_4 (_number INTEGER, viewers__millions_ VARCHAR)
SELECT points FROM table_14058433_3 WHERE tries_for = "83"
How many points were made when the tries for was 83?
CREATE TABLE table_14058433_3 (points VARCHAR, tries_for VARCHAR)
SELECT AVG(rank) FROM table_name_83 WHERE country = "guam"
What is the Rank of the Guam Player?
CREATE TABLE table_name_83 (rank INTEGER, country VARCHAR)
SELECT COUNT(ka_band) FROM table_186468_1 WHERE v_band = "4"
When 4 is the v-band what is the overall amount of ka-bands?
CREATE TABLE table_186468_1 (ka_band VARCHAR, v_band VARCHAR)
SELECT tournament FROM table_name_31 WHERE finalist = "gustavo kuerten (4)"
WHich Tournament has a Finalist of gustavo kuerten (4)?
CREATE TABLE table_name_31 (tournament VARCHAR, finalist VARCHAR)
SELECT name FROM people WHERE NOT people_id IN (SELECT people_id FROM candidate)
what are the names of people who did not participate in the candidate election.
CREATE TABLE candidate (name VARCHAR, people_id VARCHAR); CREATE TABLE people (name VARCHAR, people_id VARCHAR)
SELECT AVG(total) FROM table_name_88 WHERE bronze < 34 AND gold < 14 AND silver < 0
What is the average total for teams with under 34 bronzes, 0 silver, and under 14 gold?
CREATE TABLE table_name_88 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT points FROM table_28201906_1 WHERE pts_agst = 45
How many points does the club that had 45 points against it have?
CREATE TABLE table_28201906_1 (points VARCHAR, pts_agst VARCHAR)
SELECT written_by FROM table_29583441_1 WHERE production_code = 57376
Who wrote the episode with production code 57376?
CREATE TABLE table_29583441_1 (written_by VARCHAR, production_code VARCHAR)
SELECT COUNT(republican) AS :_jack_hoogendyk FROM table_16751596_6 WHERE poll_source = "Public Policy Polling"
How many times did Public Policy Polling under Republican: Jack Hoogendyk?
CREATE TABLE table_16751596_6 (republican VARCHAR, poll_source VARCHAR)
SELECT MIN(population__2011_census_) FROM table_2801442_1 WHERE code = "GP"
How many people lived in the district with a code GP in 2011?
CREATE TABLE table_2801442_1 (population__2011_census_ INTEGER, code VARCHAR)
SELECT player FROM table_name_13 WHERE school_club_team = "maryland"
Who is the player that played for the school/club team Maryland?
CREATE TABLE table_name_13 (player VARCHAR, school_club_team VARCHAR)
SELECT location_attendance FROM table_name_46 WHERE date = "february 27"
Which Location Attendance has a Date of february 27?
CREATE TABLE table_name_46 (location_attendance VARCHAR, date VARCHAR)
SELECT DISTINCT form_type_code FROM forms
List all the types of forms.
CREATE TABLE forms (form_type_code VARCHAR)
SELECT film FROM table_name_30 WHERE year = 1983
Which film was released in 1983?
CREATE TABLE table_name_30 (film VARCHAR, year VARCHAR)
SELECT MIN(average) FROM table_name_82 WHERE matches = 13 AND catches < 7
What is the smallest average for the player with 13 matches and fewer than 7 catches?
CREATE TABLE table_name_82 (average INTEGER, matches VARCHAR, catches VARCHAR)
SELECT pff_nmcc FROM table_name_50 WHERE afc_pc = "dnq"
Which PFF NMCC has a AFC PC of dnq?
CREATE TABLE table_name_50 (pff_nmcc VARCHAR, afc_pc VARCHAR)
SELECT team_classification FROM table_name_21 WHERE general_classification = "kim kirchen"
What was Kim Kirchen's team classification?
CREATE TABLE table_name_21 (team_classification VARCHAR, general_classification VARCHAR)
SELECT episode_title FROM table_name_81 WHERE original_airdate = "october 8, 1988"
Name the episode that aired october 8, 1988
CREATE TABLE table_name_81 (episode_title VARCHAR, original_airdate VARCHAR)
SELECT set_1 FROM table_name_33 WHERE date = "08 jul" AND set_2 = "25–21"
What is the Set 1 when the date is 08 jul, and a Set 2 of 25–21?
CREATE TABLE table_name_33 (set_1 VARCHAR, date VARCHAR, set_2 VARCHAR)
SELECT result FROM table_name_16 WHERE venue = "filbert street"
What is the Result with a Venue that is filbert street?
CREATE TABLE table_name_16 (result VARCHAR, venue VARCHAR)
SELECT MAX(points) FROM table_name_30 WHERE played > 5
What is the highest Points, when Played is greater than 5?
CREATE TABLE table_name_30 (points INTEGER, played INTEGER)
SELECT place FROM table_name_99 WHERE country = "australia"
What was Australia's place?
CREATE TABLE table_name_99 (place VARCHAR, country VARCHAR)
SELECT MAX(year) FROM table_name_98 WHERE nominee = "best revival of a musical"
When was the last time a nominee for Best Revival of a Musical was selected?
CREATE TABLE table_name_98 (year INTEGER, nominee VARCHAR)
SELECT AVG(l_100km_urban__cold_) FROM table_name_97 WHERE l_100km_extra_urban < 7.2 AND mpg_uk_combined < 39.8 AND l_100km_combined > 7.9 AND mpg_us_combined < 25.1
What is the average L/100km urban value having an L/100km extraurban under 7.2, mpg combined in the UK under 39.8, l/100km combined over 7.9, and mpg combined in the US under 25.1?
CREATE TABLE table_name_97 (l_100km_urban__cold_ INTEGER, mpg_us_combined VARCHAR, l_100km_combined VARCHAR, l_100km_extra_urban VARCHAR, mpg_uk_combined VARCHAR)
SELECT time FROM table_name_55 WHERE owner = "maine chance farm"
What time contains the owner of maine chance farm?
CREATE TABLE table_name_55 (time VARCHAR, owner VARCHAR)
SELECT COUNT(matches) FROM table_16570286_2 WHERE player = "Arthur Morris"
How many numbers were recorded under matches with Arthur Morris?
CREATE TABLE table_16570286_2 (matches VARCHAR, player VARCHAR)
SELECT tournament FROM table_name_43 WHERE score_in_final = "5–7, 4–6"
What Tournament had a Score in Final of 5–7, 4–6?
CREATE TABLE table_name_43 (tournament VARCHAR, score_in_final VARCHAR)
SELECT name FROM table_name_56 WHERE number_of_electorates__2009_ > 188 OFFSET 799
Which Name has a Number of electorates (2009) greater than 188,799?
CREATE TABLE table_name_56 (name VARCHAR, number_of_electorates__2009_ INTEGER)
SELECT MAX(fa_cup) FROM table_name_25 WHERE malaysia_cup = 0 AND player = "ahmad fouzee masuri" AND total > 0
Which FA Cup is the highest one that has a Malaysia Cup of 0, and a Player of ahmad fouzee masuri, and a Total larger than 0?
CREATE TABLE table_name_25 (fa_cup INTEGER, total VARCHAR, malaysia_cup VARCHAR, player VARCHAR)
SELECT driver FROM table_name_43 WHERE grid = 11
Who drove the grid 11 car?
CREATE TABLE table_name_43 (driver VARCHAR, grid VARCHAR)
SELECT frequency FROM table_name_79 WHERE sspec_number = "sl3bn(kc0)sl3e9(kc0)"
What is the frequency of the processor with an sSpec number of sl3bn(kc0)sl3e9(kc0)?
CREATE TABLE table_name_79 (frequency VARCHAR, sspec_number VARCHAR)
SELECT score FROM table_name_1 WHERE result = "4-0"
What was the final score when the result was 4-0?
CREATE TABLE table_name_1 (score VARCHAR, result VARCHAR)
SELECT club_province FROM table_name_74 WHERE caps < 2 AND player = "jonathan sexton"
What Club/province have caps less than 2 and Jonathan Sexton as player?
CREATE TABLE table_name_74 (club_province VARCHAR, caps VARCHAR, player VARCHAR)
SELECT score FROM table_name_8 WHERE away_team = "crystal palace"
What is the score when away team is Crystal Palace?
CREATE TABLE table_name_8 (score VARCHAR, away_team VARCHAR)
SELECT country FROM competition WHERE competition_type = 'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type = 'Tournament'
which countries did participated in both Friendly and Tournament type competitions.
CREATE TABLE competition (country VARCHAR, competition_type VARCHAR)
SELECT archbishop FROM table_name_42 WHERE vacated_throne = "may 17, 1907"
Which archbishop vacated the throne on May 17, 1907?
CREATE TABLE table_name_42 (archbishop VARCHAR, vacated_throne VARCHAR)
SELECT MIN(tromsø) FROM table_19439864_2 WHERE total = 740
When the total score is 740, what is tromso?
CREATE TABLE table_19439864_2 (tromsø INTEGER, total VARCHAR)
SELECT COUNT(artist) FROM table_21378339_5 WHERE panel_points = 5
Name the number of artists for panel points being 5
CREATE TABLE table_21378339_5 (artist VARCHAR, panel_points VARCHAR)
SELECT tournament FROM table_name_84 WHERE winning_score = –9(69 - 69 - 70 - 71 = 279)
what is the tournament when the winning score is –9 (69-69-70-71=279)?
CREATE TABLE table_name_84 (tournament VARCHAR, winning_score VARCHAR)
SELECT COUNT(reverse) FROM table_12284476_8 WHERE series = "III series"
how many reverse with series being iii series
CREATE TABLE table_12284476_8 (reverse VARCHAR, series VARCHAR)
SELECT 1 AS st_leg FROM table_name_52 WHERE team_1 = "makedonija"
What is 1st Leg, when Team 1 is "Makedonija"?
CREATE TABLE table_name_52 (team_1 VARCHAR)
SELECT MIN(grid) FROM table_name_81 WHERE laps > 51 AND driver = "jj lehto"
What is the lowest Grid for jj lehto with over 51 laps?
CREATE TABLE table_name_81 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT round FROM table_name_52 WHERE date = "26 august 1995"
What is the round on 26 August 1995?
CREATE TABLE table_name_52 (round VARCHAR, date VARCHAR)
SELECT description FROM table_256286_20 WHERE _percentage_yes = "41.76%"
Who had 41.76% yes votes
CREATE TABLE table_256286_20 (description VARCHAR, _percentage_yes VARCHAR)
SELECT score FROM table_name_51 WHERE player = "tom watson"
what is the score for tom watson?
CREATE TABLE table_name_51 (score VARCHAR, player VARCHAR)
SELECT party FROM table_1341395_44 WHERE incumbent = "Kevin Brady"
What party was Kevin Brady?
CREATE TABLE table_1341395_44 (party VARCHAR, incumbent VARCHAR)
SELECT written_by FROM table_16384596_4 WHERE broadcast_order = "S02 E07"
Who wrote the episode for s02 e07?
CREATE TABLE table_16384596_4 (written_by VARCHAR, broadcast_order VARCHAR)
SELECT song FROM table_name_65 WHERE draw > 4 AND place = "1st"
What song has a draw more than 4 in 1st place?
CREATE TABLE table_name_65 (song VARCHAR, draw VARCHAR, place VARCHAR)
SELECT circuit FROM table_name_69 WHERE length = "2 hours"
On what circuit is there a race that lasts 2 hours?
CREATE TABLE table_name_69 (circuit VARCHAR, length VARCHAR)
SELECT MAX(joined) FROM table_name_96 WHERE institution = "abraham baldwin agricultural college" AND enrollment < 3 OFFSET 284
Which Joined has an Institution of abraham baldwin agricultural college, and an Enrollment smaller than 3,284?
CREATE TABLE table_name_96 (joined INTEGER, institution VARCHAR, enrollment VARCHAR)
SELECT year FROM table_name_73 WHERE points < 1 AND engine = "cosworth v8" AND entrant = "jolly club switzerland"
When were there less than 1 point with a cosworth v8 engine in jolly club switzerland?
CREATE TABLE table_name_73 (year VARCHAR, entrant VARCHAR, points VARCHAR, engine VARCHAR)
SELECT researched_at FROM table_30057479_1 WHERE geometry = "D: ~100nm, L: 1 μm"
Where was d: ~100nm, l: 1 μm geometry researched?
CREATE TABLE table_30057479_1 (researched_at VARCHAR, geometry VARCHAR)
SELECT goal_difference FROM table_name_35 WHERE position = 15
What is the goal difference number with a position of 15?
CREATE TABLE table_name_35 (goal_difference VARCHAR, position VARCHAR)
SELECT competition FROM table_name_51 WHERE venue = "stade fernand fournier, arles"
Which competition took place at Stade Fernand Fournier, Arles?
CREATE TABLE table_name_51 (competition VARCHAR, venue VARCHAR)
SELECT series FROM table_23286112_12 WHERE date = "April 18"
Which series were played on April 18?
CREATE TABLE table_23286112_12 (series VARCHAR, date VARCHAR)
SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY COUNT(*) DESC LIMIT 1
Which template type code has most number of templates?
CREATE TABLE Templates (template_type_code VARCHAR)
SELECT location_attendance FROM table_17322817_6 WHERE game = 20
Name the location attendance for 20
CREATE TABLE table_17322817_6 (location_attendance VARCHAR, game VARCHAR)
SELECT SUM(population) FROM table_name_22 WHERE altitude__mslm_ > 98 AND density__inhabitants_km_2__ > 5869 AND rank = "1st"
Which Population has an Altitude (mslm) larger than 98, and a Density (inhabitants/km 2) larger than 5869, and a Rank of 1st?
CREATE TABLE table_name_22 (population INTEGER, rank VARCHAR, altitude__mslm_ VARCHAR, density__inhabitants_km_2__ VARCHAR)
SELECT time FROM table_name_47 WHERE manufacturer = "yamaha" AND grid < 8 AND laps < 23
How long did it take for the rider of a Yamaha with a grid less than 8 and laps less than 23?
CREATE TABLE table_name_47 (time VARCHAR, laps VARCHAR, manufacturer VARCHAR, grid VARCHAR)
SELECT version_number, template_type_code FROM Templates WHERE version_number > 5
What is the version number and template type code for the template with version number later than 5?
CREATE TABLE Templates (version_number INTEGER, template_type_code VARCHAR)
SELECT date FROM table_name_17 WHERE school = "ferris high school"
What is the Date of the Athlete from Ferris High School?
CREATE TABLE table_name_17 (date VARCHAR, school VARCHAR)
SELECT ihsa_cheerleading_class FROM table_27653955_1 WHERE enrollment = 2600
What is the IHSA cheerleading class for the enrollment of 2600?
CREATE TABLE table_27653955_1 (ihsa_cheerleading_class VARCHAR, enrollment VARCHAR)
SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = "Spain" AND T1.year > 2000
What are the unique names of races that held after 2000 and the circuits were in Spain?
CREATE TABLE races (name VARCHAR, circuitid VARCHAR, year VARCHAR); CREATE TABLE circuits (circuitid VARCHAR, country VARCHAR)
SELECT incumbent FROM table_name_1 WHERE results = "68% 32%"
Who is the Incumbent with Results of 68% 32%?
CREATE TABLE table_name_1 (incumbent VARCHAR, results VARCHAR)
SELECT first_elected FROM table_1805191_10 WHERE district = "Florida 19"
When is the first elected in the Florida 19 district?
CREATE TABLE table_1805191_10 (first_elected VARCHAR, district VARCHAR)
SELECT mar_3 FROM table_name_35 WHERE poll = "baseball america (top 25)"
Which March 3 has a Poll of baseball america (top 25)?
CREATE TABLE table_name_35 (mar_3 VARCHAR, poll VARCHAR)
SELECT venue FROM table_name_13 WHERE date = "12 november 2005"
What is the venue for the event on 12 November 2005?
CREATE TABLE table_name_13 (venue VARCHAR, date VARCHAR)
SELECT COUNT(points_difference) FROM table_15467476_3 WHERE tries_for = "21"
How many teams have 21 tries for?
CREATE TABLE table_15467476_3 (points_difference VARCHAR, tries_for VARCHAR)
SELECT MAX(losses) FROM table_name_80 WHERE against = 1465 AND wins > 7
What is the greatest number of losses when the against is 1465 and there are more than 7 wins?
CREATE TABLE table_name_80 (losses INTEGER, against VARCHAR, wins VARCHAR)
SELECT COUNT(*) FROM Vehicles
How many vehicle in total?
CREATE TABLE Vehicles (Id VARCHAR)
SELECT womens_singles FROM table_12266757_1 WHERE mens_doubles = "Stefan Karlsson Claes Nordin , BK Aura GBK"
Who was the womens singles winnerwhen the mens doubles were stefan karlsson claes nordin , bk aura gbk?
CREATE TABLE table_12266757_1 (womens_singles VARCHAR, mens_doubles VARCHAR)