answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT meas_num FROM table_256286_19 WHERE _percentage_yes = "58.29%"
What numbered measure had a 58.29% yes%?
CREATE TABLE table_256286_19 (meas_num VARCHAR, _percentage_yes VARCHAR)
SELECT nickname FROM table_name_25 WHERE years_in_gfl = "1986-1988"
What is the nickname of the team who was in the GFL from 1986-1988?
CREATE TABLE table_name_25 (nickname VARCHAR, years_in_gfl VARCHAR)
SELECT visitor FROM table_name_20 WHERE game__number < 67 AND home = "buffalo"
What is listed for Vistor that has a Game # that is smaller than 67 and has a Home listed as Buffalo?
CREATE TABLE table_name_20 (visitor VARCHAR, game__number VARCHAR, home VARCHAR)
SELECT total FROM table_name_70 WHERE rank_points = "15" AND event = "wc beijing"
What is Total, when Rank Points is "15", and when Event is "WC Beijing"?
CREATE TABLE table_name_70 (total VARCHAR, rank_points VARCHAR, event VARCHAR)
SELECT COUNT(grid) FROM table_name_87 WHERE team = "italy"
What is the Grid number for the Team from Italy?
CREATE TABLE table_name_87 (grid VARCHAR, team VARCHAR)
SELECT T1.cmi_cross_ref_id, T1.source_system_code FROM CMI_Cross_References AS T1 JOIN Council_Tax AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T1.cmi_cross_ref_id HAVING COUNT(*) >= 1
What is the cmi cross reference id that is related to at least one council tax entry? List the cross reference id and source system code.
CREATE TABLE Council_Tax (cmi_cross_ref_id VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, source_system_code VARCHAR)
SELECT date__ddmmyyyy_ FROM table_name_74 WHERE soviet_unit = "73 giap" AND enemy_aircraft = "bf.109g-? w.nr.?"
What was the date of the victory when the Soviet Unit was 73 giap, and the Enemy Aircraft was bf.109g-? w.nr.?
CREATE TABLE table_name_74 (date__ddmmyyyy_ VARCHAR, soviet_unit VARCHAR, enemy_aircraft VARCHAR)
SELECT method FROM table_name_15 WHERE opponent = "randy couture"
What method has randy couture as the opponent?
CREATE TABLE table_name_15 (method VARCHAR, opponent VARCHAR)
SELECT score FROM table_2215159_2 WHERE partner = "Rafael Osuna"
What was the score when the partner is Rafael Osuna?
CREATE TABLE table_2215159_2 (score VARCHAR, partner VARCHAR)
SELECT COUNT(week) FROM table_23601267_2 WHERE date = "September 29"
What week did September 29 fall in?
CREATE TABLE table_23601267_2 (week VARCHAR, date VARCHAR)
SELECT MAX(founded) FROM table_27378582_1 WHERE nickname = "Bison"
Name the most founded for bison
CREATE TABLE table_27378582_1 (founded INTEGER, nickname VARCHAR)
SELECT SUM(place) FROM table_name_87 WHERE average < 90.06 AND downhill = 71.6
Where was the place that the downhill was 71.6 and the average was less than 90.06?
CREATE TABLE table_name_87 (place INTEGER, average VARCHAR, downhill VARCHAR)
SELECT player FROM table_name_86 WHERE position = "sg"
Who has a position of sg?
CREATE TABLE table_name_86 (player VARCHAR, position VARCHAR)
SELECT document_type_code, COUNT(*) FROM Documents GROUP BY document_type_code
List document type codes and the number of documents in each code.
CREATE TABLE Documents (document_type_code VARCHAR)
SELECT transliteration FROM table_22464685_1 WHERE period_covered = "1125-1223"
what is the transliteration during the period covered is 1125-1223?
CREATE TABLE table_22464685_1 (transliteration VARCHAR, period_covered VARCHAR)
SELECT MAX(crowd) FROM table_name_41 WHERE away_team = "essendon"
What was the size of the largest crowd that Essendon played in front of as the away team?
CREATE TABLE table_name_41 (crowd INTEGER, away_team VARCHAR)
SELECT circuit FROM table_24037660_2 WHERE rnd = 3
What circuit had rnd 3?
CREATE TABLE table_24037660_2 (circuit VARCHAR, rnd VARCHAR)
SELECT AVG(year_born) FROM table_name_97 WHERE player = "radek necas" AND height < 2.04
When was radek necas with less than 2.04 height born?
CREATE TABLE table_name_97 (year_born INTEGER, player VARCHAR, height VARCHAR)
SELECT site FROM table_name_34 WHERE result = "l7-33"
What is the site of the game with a Result of l7-33?
CREATE TABLE table_name_34 (site VARCHAR, result VARCHAR)
SELECT category FROM table_name_38 WHERE award = "people's choice awards"
what is the category that has the people's choice awards?
CREATE TABLE table_name_38 (category VARCHAR, award VARCHAR)
SELECT MIN(laps) FROM table_name_44 WHERE constructor = "minardi - motori moderni" AND grid < 18
What is the low lap total for minardi - motori moderni, and a Grid smaller than 18?
CREATE TABLE table_name_44 (laps INTEGER, constructor VARCHAR, grid VARCHAR)
SELECT production_code FROM table_2221374_3 WHERE no_in_season = 3
What is the production code for episode 3 of the season?
CREATE TABLE table_2221374_3 (production_code VARCHAR, no_in_season VARCHAR)
SELECT home_team FROM table_name_88 WHERE away_team = "manchester city"
What team was the home team when Manchester City was the away team?
CREATE TABLE table_name_88 (home_team VARCHAR, away_team VARCHAR)
SELECT total_apps FROM table_name_78 WHERE name = "paul wilson"
What is the Total Apps listing for Paul Wilson?
CREATE TABLE table_name_78 (total_apps VARCHAR, name VARCHAR)
SELECT COUNT(years_for_jazz) FROM table_11545282_7 WHERE player = "Paul Griffin"
How many years did Paul Griffin play for the Jazz?
CREATE TABLE table_11545282_7 (years_for_jazz VARCHAR, player VARCHAR)
SELECT sprint_points FROM table_name_27 WHERE total_points = "2"
How many sprint points contribute to 2 total points?
CREATE TABLE table_name_27 (sprint_points VARCHAR, total_points VARCHAR)
SELECT Phone FROM EMPLOYEE
List the phone numbers of all employees.
CREATE TABLE EMPLOYEE (Phone VARCHAR)
SELECT university_students_and_adults__18yrs + _ FROM table_name_86 WHERE specification = "minimum diameter of sakigawa" AND gender = "female"
Which University students and adults have minimum diameter of Sakigawa for female gender?
CREATE TABLE table_name_86 (university_students_and_adults__18yrs VARCHAR, _ VARCHAR, specification VARCHAR, gender VARCHAR)
SELECT tournament FROM table_name_47 WHERE runner_s__up = "gary mccord"
Which tournament has a Runner(s)-up of Gary McCord?
CREATE TABLE table_name_47 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT AVG(grid) FROM table_name_14 WHERE rider = "loic napoleone"
Which Grid has a Rider of loic napoleone?
CREATE TABLE table_name_14 (grid INTEGER, rider VARCHAR)
SELECT edition FROM table_name_45 WHERE result = "6-3, 6-0, 6-2"
What Edition had a Result of 6-3, 6-0, 6-2?
CREATE TABLE table_name_45 (edition VARCHAR, result VARCHAR)
SELECT COUNT(distance___ly__) FROM table_1820752_1 WHERE spectral_type = "G1V"
If the spectral type is g1v, what is the total distance amount?
CREATE TABLE table_1820752_1 (distance___ly__ VARCHAR, spectral_type VARCHAR)
SELECT actor_in_original_production FROM table_name_69 WHERE gameplan = "troy stephens"
Who is the actor in the original production when Troy Stephens is the GamePlan?
CREATE TABLE table_name_69 (actor_in_original_production VARCHAR, gameplan VARCHAR)
SELECT gender FROM table_2933761_1 WHERE name = "Quentin"
What gender is Quentin?
CREATE TABLE table_2933761_1 (gender VARCHAR, name VARCHAR)
SELECT release_date FROM table_name_68 WHERE title = "too hop to handle"
When was Too Hop to Handle released?
CREATE TABLE table_name_68 (release_date VARCHAR, title VARCHAR)
SELECT opponent FROM table_name_16 WHERE december < 14 AND game < 28 AND score = "6 - 6"
December smaller than 14, and a Game smaller than 28, and a Score of 6 - 6 involved what opponent?
CREATE TABLE table_name_16 (opponent VARCHAR, score VARCHAR, december VARCHAR, game VARCHAR)
SELECT COUNT(laps) FROM table_name_23 WHERE year = "1949"
What is the total number of laps that were completed in 1949?
CREATE TABLE table_name_23 (laps VARCHAR, year VARCHAR)
SELECT starring_actors FROM table_18540104_1 WHERE time_frame = "Thursdays 22:00~22:54 2005-04-xx to 2005-06-xx"
Who is the star of the program on Thursdays 22:00~22:54 2005-04-xx to 2005-06-xx?
CREATE TABLE table_18540104_1 (starring_actors VARCHAR, time_frame VARCHAR)
SELECT competition FROM table_name_17 WHERE opponents = "motherwell"
Name the competition for motherwell opponents
CREATE TABLE table_name_17 (competition VARCHAR, opponents VARCHAR)
SELECT SUM(laps) FROM table_name_86 WHERE manufacturer = "gilera" AND time = "40:19.910" AND grid > 3
What is the total laps when manufacturer of gilera has time of 40:19.910 and grid is larger than 3?
CREATE TABLE table_name_86 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time VARCHAR)
SELECT COUNT(appearances) FROM table_name_84 WHERE team = "shakhtar donetsk"
How many apperances for shakhtar donetsk?
CREATE TABLE table_name_84 (appearances VARCHAR, team VARCHAR)
SELECT location FROM table_name_85 WHERE district = "huntingdonshire" AND station_number = "c17"
What is the location of the station at Huntingdonshire with a station number of c17?
CREATE TABLE table_name_85 (location VARCHAR, district VARCHAR, station_number VARCHAR)
SELECT stadium FROM table_name_77 WHERE club = "seongnam ilhwa chunma"
Which stadium has Seongnam Ilhwa Chunma?
CREATE TABLE table_name_77 (stadium VARCHAR, club VARCHAR)
SELECT _percentage_chg_2009_10 FROM table_18047346_4 WHERE passengers = "15,505,566"
If the amount of passengers is 15,505,566, what is the %/chg. for 2009/10?
CREATE TABLE table_18047346_4 (_percentage_chg_2009_10 VARCHAR, passengers VARCHAR)
SELECT MAX(year_named) FROM table_16799784_8 WHERE latitude = "33.3S"
In what year was the feature at a 33.3S latitude named?
CREATE TABLE table_16799784_8 (year_named INTEGER, latitude VARCHAR)
SELECT MIN(first_elected) FROM table_1341718_14 WHERE party = "Republican" AND candidates = "Robert H. Michel (R) 66.1% Rosa Lee Fox (D) 33.9%"
When was the first elected when the party was republican and the candidate were robert h. michel (r) 66.1% rosa lee fox (d) 33.9%?
CREATE TABLE table_1341718_14 (first_elected INTEGER, party VARCHAR, candidates VARCHAR)
SELECT population_density__per_km_2__ FROM table_2500440_1 WHERE name = "Buffalo Lake"
What is the population density in Buffalo Lake?
CREATE TABLE table_2500440_1 (population_density__per_km_2__ VARCHAR, name VARCHAR)
SELECT AVG(year) FROM table_name_74 WHERE engine = "cosworth ca2006 2.4 v8 4 series"
What year was the cosworth ca2006 2.4 v8 4 series used?
CREATE TABLE table_name_74 (year INTEGER, engine VARCHAR)
SELECT competition FROM table_name_15 WHERE date = "september 29, 2003"
What was the Competition on September 29, 2003?
CREATE TABLE table_name_15 (competition VARCHAR, date VARCHAR)
SELECT SUM(rank) FROM table_name_24 WHERE time = "1:41.40.55"
What is the rank of the rider with time of 1:41.40.55?
CREATE TABLE table_name_24 (rank INTEGER, time VARCHAR)
SELECT truck_s_ FROM table_2187178_1 WHERE crew_chief = "Scott Neal"
Name the trucks for scott neal
CREATE TABLE table_2187178_1 (truck_s_ VARCHAR, crew_chief VARCHAR)
SELECT medal FROM table_name_14 WHERE name = "alex obeyesekera"
Which Medal has a Name of alex obeyesekera?
CREATE TABLE table_name_14 (medal VARCHAR, name VARCHAR)
SELECT MIN(score) FROM table_name_96 WHERE drop_goals > 0 AND penalties = 52 AND number > 5
drop goals larger than 0, and a Penalties of 52, and a Number larger than 5 had what lowest score?
CREATE TABLE table_name_96 (score INTEGER, number VARCHAR, drop_goals VARCHAR, penalties VARCHAR)
SELECT MAX(grid) FROM table_name_61 WHERE manufacturer = "honda" AND time = "+1:38.407"
What is Honda's highest grid with a time of +1:38.407?
CREATE TABLE table_name_61 (grid INTEGER, manufacturer VARCHAR, time VARCHAR)
SELECT series FROM table_23286158_11 WHERE game = 5
What was the series where the game was 5?
CREATE TABLE table_23286158_11 (series VARCHAR, game VARCHAR)
SELECT report FROM table_name_92 WHERE race = "mexican grand prix"
What's the report for the mexican grand prix?
CREATE TABLE table_name_92 (report VARCHAR, race VARCHAR)
SELECT played FROM table_name_77 WHERE points_for = "310"
What is the number Played that has 310 Points for?
CREATE TABLE table_name_77 (played VARCHAR, points_for VARCHAR)
SELECT MIN(hits) FROM table_name_28 WHERE year < 1920 AND player = "ed delahanty"
Name the least hits for year less than 1920 and player of ed delahanty
CREATE TABLE table_name_28 (hits INTEGER, year VARCHAR, player VARCHAR)
SELECT longitude FROM table_18600760_20 WHERE township = "Tatman"
What longitude is tatman township?
CREATE TABLE table_18600760_20 (longitude VARCHAR, township VARCHAR)
SELECT MIN(choice) FROM table_10360656_1
Who was the top picki n the draft?
CREATE TABLE table_10360656_1 (choice INTEGER)
SELECT album FROM table_name_25 WHERE certification = "3x platinum" AND peak_position = 6
What album had a peak position of 6 and a certification of 3x platinum?
CREATE TABLE table_name_25 (album VARCHAR, certification VARCHAR, peak_position VARCHAR)
SELECT played FROM table_17369472_2 WHERE tries_for = "39"
How many were played when there were 39 tries for?
CREATE TABLE table_17369472_2 (played VARCHAR, tries_for VARCHAR)
SELECT type FROM table_name_92 WHERE length_overall = "1.605 m"
What type has an overall length of 1.605 m?
CREATE TABLE table_name_92 (type VARCHAR, length_overall VARCHAR)
SELECT COUNT(type) FROM table_256286_61 WHERE _percentage_yes = "68.91%"
How many type catagories are listed when the percentage of yes is 68.91%?
CREATE TABLE table_256286_61 (type VARCHAR, _percentage_yes VARCHAR)
SELECT rank__timeslot_ FROM table_20522228_2 WHERE rating = "4.1"
What are the rank timeslots where ratings are 4.1?
CREATE TABLE table_20522228_2 (rank__timeslot_ VARCHAR, rating VARCHAR)
SELECT MAX(game) FROM table_27756314_10 WHERE score = "L 96–103 (OT)"
What is the highest game with the score l 96–103 (ot)?
CREATE TABLE table_27756314_10 (game INTEGER, score VARCHAR)
SELECT type FROM table_name_18 WHERE course = "grosseto to rieti"
What type had a course of Grosseto To Rieti?
CREATE TABLE table_name_18 (type VARCHAR, course VARCHAR)
SELECT party FROM table_1342149_3 WHERE incumbent = "Carl Elliott"
Carl Elliott is a member of which party?
CREATE TABLE table_1342149_3 (party VARCHAR, incumbent VARCHAR)
SELECT date FROM table_name_87 WHERE tournament = "alfred dunhill championship 1"
What is Date, when Tournament is Alfred Dunhill Championship 1?
CREATE TABLE table_name_87 (date VARCHAR, tournament VARCHAR)
SELECT to_par FROM table_name_3 WHERE place = "t2" AND player = "ernie els"
When Ernie Els placed t2, what was his To par?
CREATE TABLE table_name_3 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT losingteam FROM table_11236195_2 WHERE season = 1993
What was the losing team in the 1993 season?
CREATE TABLE table_11236195_2 (losingteam VARCHAR, season VARCHAR)
SELECT home_team FROM table_name_81 WHERE tie_no = "replay" AND away_team = "bolton wanderers"
Who was the home team that had a replay of Tie Number and played against the Bolton Wanderers?
CREATE TABLE table_name_81 (home_team VARCHAR, tie_no VARCHAR, away_team VARCHAR)
SELECT AVG(against) FROM table_name_49 WHERE date = "28 january 1950"
Which Against has a Date of 28 january 1950?
CREATE TABLE table_name_49 (against INTEGER, date VARCHAR)
SELECT venue FROM table_name_24 WHERE batsmen = "jamie cox & scott kremerskothen"
Where were jamie cox & scott kremerskothen paired?
CREATE TABLE table_name_24 (venue VARCHAR, batsmen VARCHAR)
SELECT AVG(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15
What is the average number of employees of the departments whose rank is between 10 and 15?
CREATE TABLE department (num_employees INTEGER, ranking INTEGER)
SELECT record FROM table_17104539_9 WHERE date = "June 7"
Name the record for june 7
CREATE TABLE table_17104539_9 (record VARCHAR, date VARCHAR)
SELECT host_city FROM table_name_85 WHERE president_in_office = "margaret thatcher" AND year = 1981
In which host city was Margaret Thatcher the President-in-Office in 1981?
CREATE TABLE table_name_85 (host_city VARCHAR, president_in_office VARCHAR, year VARCHAR)
SELECT fourth_district FROM table_name_82 WHERE third_district = "sharon yentsch"
Who's the Fourth District with a Third District of sharon yentsch?
CREATE TABLE table_name_82 (fourth_district VARCHAR, third_district VARCHAR)
SELECT AVG(points) FROM table_name_75 WHERE entrant = "hopkins" AND year < 1956
What was the average points for Hopkins before 1956?
CREATE TABLE table_name_75 (points INTEGER, entrant VARCHAR, year VARCHAR)
SELECT platelet_count FROM table_20592988_1 WHERE bleeding_time = "Prolonged" AND partial_thromboplastin_time = "Unaffected"
What is the status of platelet counts for conditions where bleeding time is prolonged and partial thromboplastin time is unaffected?
CREATE TABLE table_20592988_1 (platelet_count VARCHAR, bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR)
SELECT last_1_4 FROM table_name_22 WHERE race = "qua" AND fin_time = "2:03.1"
What is the last 1/4 for the QUA race with a finishing time of 2:03.1?
CREATE TABLE table_name_22 (last_1_4 VARCHAR, race VARCHAR, fin_time VARCHAR)
SELECT first_elected FROM table_1342370_39 WHERE incumbent = "William Francis Stevenson"
what year was william francis stevenson first elected?
CREATE TABLE table_1342370_39 (first_elected VARCHAR, incumbent VARCHAR)
SELECT d_48_√ FROM table_name_87 WHERE d_46_√ = "r 33 o"
What is the D 48 √ with a D 46 √ with r 33 o?
CREATE TABLE table_name_87 (d_48_√ VARCHAR, d_46_√ VARCHAR)
SELECT republican_ticket FROM table_name_46 WHERE socialist_ticket = "edna mitchell blue"
Who's the Republican ticket with a Socialist ticket of edna mitchell blue?
CREATE TABLE table_name_46 (republican_ticket VARCHAR, socialist_ticket VARCHAR)
SELECT points FROM table_name_7 WHERE steals = "3 tied (2)" AND assists = "2 tied (5)"
Who was the leader in Points with Assists of 2 tied (5) and Steals of 3 tied (2)?
CREATE TABLE table_name_7 (points VARCHAR, steals VARCHAR, assists VARCHAR)
SELECT manner_of_departure FROM table_27114708_2 WHERE team = "Livorno"
For livorno team mention all the manner of departure
CREATE TABLE table_27114708_2 (manner_of_departure VARCHAR, team VARCHAR)
SELECT north_american_release_date FROM table_name_25 WHERE european_release_date = "2013-03-20"
What is the North American release date of the remake with a European release date on 2013-03-20?
CREATE TABLE table_name_25 (north_american_release_date VARCHAR, european_release_date VARCHAR)
SELECT process_technology FROM table_199666_1 WHERE wireless_lan = "Intel WiFi Link 5100"
What's the process technology of the Intel WiFi Link 5100 wireless LAN?
CREATE TABLE table_199666_1 (process_technology VARCHAR, wireless_lan VARCHAR)
SELECT aid, name FROM Aircraft ORDER BY distance DESC LIMIT 1
Show the id and name of the aircraft with the maximum distance.
CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR, distance VARCHAR)
SELECT COUNT(route_number) FROM table_3005999_1 WHERE origin = "Birmingham" AND destination = "Bristol"
How many route numbers occur for the origin of Birmingham and destination of Bristol?
CREATE TABLE table_3005999_1 (route_number VARCHAR, origin VARCHAR, destination VARCHAR)
SELECT MAX(no) FROM table_21979779_1 WHERE production_code = "2T7211"
what is the biggest series episode number whose production code is 2t7211?
CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR)
SELECT MIN(crowd) FROM table_name_91 WHERE home_team = "collingwood"
What is the smallest crowd when collingwood is home team?
CREATE TABLE table_name_91 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(cf_wins) FROM table_name_1 WHERE cf_appearances > 4 AND last_cf = 2013 AND team = "chicago blackhawks" AND cup_wins > 2
What is the lowest number of cf wins of the chicago blackhawks, which has more than 4 cf appearances, a last cf in 2013, and more than 2 cup wins?
CREATE TABLE table_name_1 (cf_wins INTEGER, cup_wins VARCHAR, team VARCHAR, cf_appearances VARCHAR, last_cf VARCHAR)
SELECT new_entries_this_round FROM table_1859269_1 WHERE round = "Semi-finals"
If the round is the semi-finals, what are the new entries this round?
CREATE TABLE table_1859269_1 (new_entries_this_round VARCHAR, round VARCHAR)
SELECT play_by_play FROM table_name_63 WHERE studio_host = "gary tanguay" AND studio_analysts = "donny marshall"
WHich Play-by-play has a Studio host of gary tanguay, and a Studio analysts of donny marshall?
CREATE TABLE table_name_63 (play_by_play VARCHAR, studio_host VARCHAR, studio_analysts VARCHAR)
SELECT record FROM table_name_36 WHERE game = "17"
What is the Record for Game 17?
CREATE TABLE table_name_36 (record VARCHAR, game VARCHAR)
SELECT surface FROM table_name_35 WHERE date = "26 february 2006"
For the tournament played on 26 February 2006, what surface was used?
CREATE TABLE table_name_35 (surface VARCHAR, date VARCHAR)
SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id = T2.book_club_id WHERE T2.publisher = 'Alyson'
List all company names with a book published by Alyson.
CREATE TABLE culture_company (company_name VARCHAR, book_club_id VARCHAR); CREATE TABLE book_club (book_club_id VARCHAR, publisher VARCHAR)
SELECT time_retired FROM table_name_47 WHERE laps > 52 AND grid > 21
What is the Time/Retired for laps higher than 52 on a grid larger than 21?
CREATE TABLE table_name_47 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT length FROM table_name_54 WHERE release = 3.6
What was the length of release 3.6?
CREATE TABLE table_name_54 (length VARCHAR, release VARCHAR)