answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT years_for_jazz FROM table_11545282_10 WHERE no = "35"
During which years did player number 35 play for Jazz?
CREATE TABLE table_11545282_10 (years_for_jazz VARCHAR, no VARCHAR)
SELECT T1.electoral_register_id FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id WHERE T2.source_system_code = 'Electoral' OR T2.source_system_code = 'Tax'
What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?
CREATE TABLE Electoral_Register (electoral_register_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, source_system_code VARCHAR)
SELECT COUNT(jerseys) FROM table_name_78 WHERE young_rider > 0 AND country = "france" AND points < 1
how many times is young rider more than 0, country is france and points less than 1?
CREATE TABLE table_name_78 (jerseys VARCHAR, points VARCHAR, young_rider VARCHAR, country VARCHAR)
SELECT winning_team FROM table_name_50 WHERE losing_team = "south sydney rabbitohs"
What is the Winning Team, when Losing Team is South Sydney Rabbitohs?
CREATE TABLE table_name_50 (winning_team VARCHAR, losing_team VARCHAR)
SELECT COUNT(episodes) FROM table_name_39 WHERE tv_station = "nhk" AND average_ratings = "9.2%"
What is the episode on NHK with average ratings of 9.2%?
CREATE TABLE table_name_39 (episodes VARCHAR, tv_station VARCHAR, average_ratings VARCHAR)
SELECT status FROM table_20855452_4 WHERE new_points = 1705
What happened when the new points was 1705?
CREATE TABLE table_20855452_4 (status VARCHAR, new_points VARCHAR)
SELECT date FROM table_name_14 WHERE record = "13-15"
What day is their record 13-15?
CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR)
SELECT notes FROM table_name_2 WHERE position = "10th"
What were the notes when his position was 10th?
CREATE TABLE table_name_2 (notes VARCHAR, position VARCHAR)
SELECT club FROM table_13564702_4 WHERE points_against = "239"
What club got 239 points against?
CREATE TABLE table_13564702_4 (club VARCHAR, points_against VARCHAR)
SELECT winner FROM table_name_60 WHERE result = "24-21"
Who was the winner with the 24-21 result?
CREATE TABLE table_name_60 (winner VARCHAR, result VARCHAR)
SELECT no FROM table_24625467_1 WHERE production_code = "2J5352"
What episode number has 2j5352 as a production code?
CREATE TABLE table_24625467_1 (no VARCHAR, production_code VARCHAR)
SELECT goberman FROM table_name_63 WHERE date = "april 28–april 30, 2008"
Which Goberman has a Date of april 28–april 30, 2008?
CREATE TABLE table_name_63 (goberman VARCHAR, date VARCHAR)
SELECT COUNT(runners_up) FROM table_12303563_2 WHERE nation = "India"
how many runners-up with nation being india
CREATE TABLE table_12303563_2 (runners_up VARCHAR, nation VARCHAR)
SELECT complement FROM table_2596811_12 WHERE killed = "3 off 37 men"
What was the complement for the unit that had 3 off 37 men killed?
CREATE TABLE table_2596811_12 (complement VARCHAR, killed VARCHAR)
SELECT fastest_lap FROM table_16670746_2 WHERE winning_team = "TOM'S Racing"
Who had the fastest lap when the winning team was Tom's Racing?
CREATE TABLE table_16670746_2 (fastest_lap VARCHAR, winning_team VARCHAR)
SELECT event FROM table_name_72 WHERE winner = "will fry"
What event did Will Fry win?
CREATE TABLE table_name_72 (event VARCHAR, winner VARCHAR)
SELECT COUNT(semifinals) FROM table_27294107_11 WHERE athlete = "Ferhat Pehlivan"
How many semifinals did ferhat pehlivan attend?
CREATE TABLE table_27294107_11 (semifinals VARCHAR, athlete VARCHAR)
SELECT 2000 FROM table_name_30 WHERE 1996 = "a" AND 1997 = "a" AND 2007 = "a"
What is 2000, when 1996 is "A", when 1997 is "A", and when 2007 is "A"?
CREATE TABLE table_name_30 (Id VARCHAR)
SELECT MAX(loses) FROM table_18018214_3 WHERE club = "Ekranas-2 Panevėžys"
How many losses occurred when the club team was ekranas-2 panevėžys
CREATE TABLE table_18018214_3 (loses INTEGER, club VARCHAR)
SELECT year FROM table_name_75 WHERE laps = 134
What year had 134 laps?
CREATE TABLE table_name_75 (year VARCHAR, laps VARCHAR)
SELECT place FROM table_name_28 WHERE player = "tony jacklin"
What Place has a Player of tony jacklin?
CREATE TABLE table_name_28 (place VARCHAR, player VARCHAR)
SELECT recopa_sudamericana_1992 FROM table_15013825_8 WHERE copa_libertadores_1992 = "Did not qualify" AND copa_conmebol_1992 = "Round of 16" AND team = "Bragantino"
Name the recopa sudamericana 1992 for did not qualify for libertadores 1992 and round of 16 for bragantino
CREATE TABLE table_15013825_8 (recopa_sudamericana_1992 VARCHAR, team VARCHAR, copa_libertadores_1992 VARCHAR, copa_conmebol_1992 VARCHAR)
SELECT SUM(1980) FROM table_name_6 WHERE 1996[2] > 68 AND 1990 < 352 AND 1970 > 105 AND 1950 = 119
1996[2] larger than 68, and a 1990 smaller than 352, and a 1970 larger than 105, and a 1950 of 119 is the sum of what 1980?
CREATE TABLE table_name_6 (Id VARCHAR)
SELECT year FROM table_name_23 WHERE pick = "15"
What year was the player pick number 15 picked?
CREATE TABLE table_name_23 (year VARCHAR, pick VARCHAR)
SELECT to_par FROM table_name_42 WHERE score = 67 - 68 - 76 = 211
what is the to par when the score is 67-68-76=211?
CREATE TABLE table_name_42 (to_par VARCHAR, score VARCHAR)
SELECT COUNT(location_attendance) FROM table_23248967_5 WHERE game = 3
How many locations was game 3 played at?
CREATE TABLE table_23248967_5 (location_attendance VARCHAR, game VARCHAR)
SELECT week_8_oct_26 FROM table_name_1 WHERE week_12_nov_23 = "georgia tech (8-2)"
What is the week 8 Oct 26 standing with georgia tech (8-2) on week 12 Nov 23?
CREATE TABLE table_name_1 (week_8_oct_26 VARCHAR, week_12_nov_23 VARCHAR)
SELECT peak FROM table_name_10 WHERE prom__m_ < 147 AND height__m_ < 619
I want to know the peak which is prom less than 147 and height less than 619
CREATE TABLE table_name_10 (peak VARCHAR, prom__m_ VARCHAR, height__m_ VARCHAR)
SELECT result FROM table_name_82 WHERE opponent = "st. louis cardinals"
What was the score of the game against the St. Louis Cardinals?
CREATE TABLE table_name_82 (result VARCHAR, opponent VARCHAR)
SELECT Name FROM WINE WHERE score > 90
List the names of all distinct wines that have scores higher than 90.
CREATE TABLE WINE (Name VARCHAR, score INTEGER)
SELECT confederation FROM table_23995075_2 WHERE remaining_places_in_finals = "4"
What is the confederation when there are 4 places remaining in the finals?
CREATE TABLE table_23995075_2 (confederation VARCHAR, remaining_places_in_finals VARCHAR)
SELECT COUNT(province) FROM table_1888051_1 WHERE area__km²_ = "1605.35"
when area (km²) is 1605.35, how many provinces are there?
CREATE TABLE table_1888051_1 (province VARCHAR, area__km²_ VARCHAR)
SELECT format FROM table_27303975_2 WHERE title = "Super Callanetics"
Name the format for super callanetics
CREATE TABLE table_27303975_2 (format VARCHAR, title VARCHAR)
SELECT date FROM table_name_50 WHERE city = "dublin"
When was the event in Dublin?
CREATE TABLE table_name_50 (date VARCHAR, city VARCHAR)
SELECT format FROM table_name_58 WHERE year < 1992
What is the format of the album with a year less than 1992?
CREATE TABLE table_name_58 (format VARCHAR, year INTEGER)
SELECT MIN(silver) FROM table_name_73 WHERE bronze > 10
How many Silver medals did the Nation with 10 or more Bronze receive?
CREATE TABLE table_name_73 (silver INTEGER, bronze INTEGER)
SELECT club FROM table_name_60 WHERE losses = 15 AND wins = 14
Which club has 15 losses and 14 wins?
CREATE TABLE table_name_60 (club VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT COUNT(zodiac_sign) FROM table_180802_2 WHERE thai_name = "กันยายน"
How many zodiac signs does the month by the Thai name of กันยายน belong to?
CREATE TABLE table_180802_2 (zodiac_sign VARCHAR, thai_name VARCHAR)
SELECT elected FROM table_name_44 WHERE assembled = "23 january 1559"
What Elected has Assembled of 23 january 1559?
CREATE TABLE table_name_44 (elected VARCHAR, assembled VARCHAR)
SELECT time_retired FROM table_name_7 WHERE driver = "darren manning"
What was the time/retired of Darren Manning?
CREATE TABLE table_name_7 (time_retired VARCHAR, driver VARCHAR)
SELECT constructor FROM table_1140105_6 WHERE date = "26 March"
What is te name of the constructors dated 26 march?
CREATE TABLE table_1140105_6 (constructor VARCHAR, date VARCHAR)
SELECT COUNT(mens_singles) FROM table_28138035_20 WHERE mens_doubles = "Chen Qi Ma Lin"
How many players are there for mens singles when chen qi ma lin played mens doubles?
CREATE TABLE table_28138035_20 (mens_singles VARCHAR, mens_doubles VARCHAR)
SELECT socialist_labor_ticket FROM table_name_65 WHERE liberal_ticket = "w. averell harriman"
Who was on the Socialist Labor ticket in the race against W. Averell Harriman?
CREATE TABLE table_name_65 (socialist_labor_ticket VARCHAR, liberal_ticket VARCHAR)
SELECT singapore_gross FROM table_name_74 WHERE title = "2000"
What is the Singapore Gross with a Title that is 2000?
CREATE TABLE table_name_74 (singapore_gross VARCHAR, title VARCHAR)
SELECT MIN(rank) FROM table_name_7 WHERE nation = "spain"
What is the lowest rank that spain got?
CREATE TABLE table_name_7 (rank INTEGER, nation VARCHAR)
SELECT year FROM table_19643196_1 WHERE transmission = "Allison B400R" AND model = "BRT"
What year had an Allison B400R transmission and a model of BRT?
CREATE TABLE table_19643196_1 (year VARCHAR, transmission VARCHAR, model VARCHAR)
SELECT game_site FROM table_name_2 WHERE time___et__ = "7:00 pm"
Where will the game at (ET) of 7:00 pm be at?
CREATE TABLE table_name_2 (game_site VARCHAR, time___et__ VARCHAR)
SELECT country FROM table_name_46 WHERE player = "lee janzen"
What country is Lee Janzen from?
CREATE TABLE table_name_46 (country VARCHAR, player VARCHAR)
SELECT day_3 FROM table_name_45 WHERE day_4 = "fr."
What is the day 3 when day 4 is fr.?
CREATE TABLE table_name_45 (day_3 VARCHAR, day_4 VARCHAR)
SELECT week__number FROM table_26250253_1 WHERE original_artist = "The Temptations"
The original artist The Temptations has what week #?
CREATE TABLE table_26250253_1 (week__number VARCHAR, original_artist VARCHAR)
SELECT distance FROM table_name_16 WHERE weight = 9.2
What is the distance when the weight is 9.2?
CREATE TABLE table_name_16 (distance VARCHAR, weight VARCHAR)
SELECT opponent FROM table_name_58 WHERE date = "april 9"
what team played on april 9
CREATE TABLE table_name_58 (opponent VARCHAR, date VARCHAR)
SELECT venue FROM table_name_20 WHERE result = "draw"
In what venue was the result a draw?
CREATE TABLE table_name_20 (venue VARCHAR, result VARCHAR)
SELECT MIN(draw) FROM table_name_55 WHERE artist = "beathoven" AND place < 16
What was the lowest draw for Beathoven when the place was smaller than 16?
CREATE TABLE table_name_55 (draw INTEGER, artist VARCHAR, place VARCHAR)
SELECT gold FROM table_name_13 WHERE bronze = "jules van dyk belgium"
Who won the gold when Jules van Dyk Belgium won bronze?
CREATE TABLE table_name_13 (gold VARCHAR, bronze VARCHAR)
SELECT arrangement FROM table_28005100_1 WHERE title = "Bets3ab 3alia Nafsy"
What is the arrangement for bets3ab 3alia nafsy?
CREATE TABLE table_28005100_1 (arrangement VARCHAR, title VARCHAR)
SELECT constructor FROM table_name_57 WHERE grid > 4 AND driver = "heinz-harald frentzen"
Tell me the constructor for Grid more than 4 and drivers being heinz-harald frentzen
CREATE TABLE table_name_57 (constructor VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT buddhism FROM table_name_6 WHERE christianity = "52.32%"
What is the percentage of Buddhists associated with a Christianity percentage of 52.32%?
CREATE TABLE table_name_6 (buddhism VARCHAR, christianity VARCHAR)
SELECT season FROM table_name_64 WHERE runner_up = "tournament in progress"
During which Season was the tournament in progress?
CREATE TABLE table_name_64 (season VARCHAR, runner_up VARCHAR)
SELECT proto_malayo_polynesian FROM table_name_71 WHERE proto_oceanic = "*saqit, *turi"
What is the Proto-Malayo-Polynesian word for the Proto-Oceanic word of *saqit, *turi?
CREATE TABLE table_name_71 (proto_malayo_polynesian VARCHAR, proto_oceanic VARCHAR)
SELECT total_poll___percentage_ FROM table_1289762_1 WHERE for___percentage_ = "59,532 (54)"
List all total poll percentages when the for percentage is 59,532 (54).
CREATE TABLE table_1289762_1 (total_poll___percentage_ VARCHAR, for___percentage_ VARCHAR)
SELECT score FROM table_name_29 WHERE opponent = "san diego padres" AND record = "11-23"
What is the score of the game with the San Diego Padres as the opponent and a record of 11-23?
CREATE TABLE table_name_29 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT COUNT(jury) FROM table_name_66 WHERE artist = "chalice & maagiline kuues" AND draw < 5
How much Jury has an Artist of chalice & maagiline kuues, and a Draw smaller than 5?
CREATE TABLE table_name_66 (jury VARCHAR, artist VARCHAR, draw VARCHAR)
SELECT no_in_series FROM table_11562149_1 WHERE featured_character_s_ = "Jack & Locke"
What are the episode numbers where the episode features Jack & Locke?
CREATE TABLE table_11562149_1 (no_in_series VARCHAR, featured_character_s_ VARCHAR)
SELECT MIN(division) FROM table_1990460_1 WHERE regular_season = "6th, Great Lakes"
What's the lowest division number of the 6th, Great Lakes season?
CREATE TABLE table_1990460_1 (division INTEGER, regular_season VARCHAR)
SELECT year_s__won FROM table_name_76 WHERE to_par = "+5"
What are the years won when the to par is +5?
CREATE TABLE table_name_76 (year_s__won VARCHAR, to_par VARCHAR)
SELECT mult FROM table_name_35 WHERE release_price___usd__ = "n/a" AND sspec_number = "slgpr(c0)"
What was the multiplier of the processor with sSpec number of SLGPR(C0) and a release price of N/A?
CREATE TABLE table_name_35 (mult VARCHAR, release_price___usd__ VARCHAR, sspec_number VARCHAR)
SELECT operation_start FROM table_name_51 WHERE construction_start = "phase ii"
Construction start of phase ii has what operation start?
CREATE TABLE table_name_51 (operation_start VARCHAR, construction_start VARCHAR)
SELECT AVG(frequency_mhz) FROM table_name_37 WHERE city_of_license = "lamar, colorado"
What is the frequency for the city of Lamar, Colorado?
CREATE TABLE table_name_37 (frequency_mhz INTEGER, city_of_license VARCHAR)
SELECT game FROM table_name_88 WHERE result = "126-95"
Which game had a result of 126-95?
CREATE TABLE table_name_88 (game VARCHAR, result VARCHAR)
SELECT MIN(ep) FROM table_20967430_2 WHERE original_air_date = "November 29, 1985"
Name the least episode for november 29, 1985
CREATE TABLE table_20967430_2 (ep INTEGER, original_air_date VARCHAR)
SELECT SUM(interview) FROM table_name_57 WHERE average = 8.363 AND evening_gown > 8.37
Tell me the sum of interview for evening gown more than 8.37 and average of 8.363
CREATE TABLE table_name_57 (interview INTEGER, average VARCHAR, evening_gown VARCHAR)
SELECT played FROM table_12807904_3 WHERE points_for = "438"
HOW MANY PLAYERS PLAYED IN THE GAME THAT WON WITH 438 POINTS
CREATE TABLE table_12807904_3 (played VARCHAR, points_for VARCHAR)
SELECT MIN(year) FROM table_name_46 WHERE entrant = "ligier gitanes"
What was the earliest year for the Ligier Gitanes?
CREATE TABLE table_name_46 (year INTEGER, entrant VARCHAR)
SELECT home_team AS score FROM table_name_65 WHERE venue = "glenferrie oval"
What is the home team score at glenferrie oval?
CREATE TABLE table_name_65 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(viewers__m_) FROM table_13110459_2 WHERE overall = "91/101"
how many viewers (m) with overall being 91/101
CREATE TABLE table_13110459_2 (viewers__m_ VARCHAR, overall VARCHAR)
SELECT country FROM table_name_72 WHERE to_par = "–4"
What is the Country of the Player with a To par of –4?
CREATE TABLE table_name_72 (country VARCHAR, to_par VARCHAR)
SELECT owned_since FROM table_1847523_2 WHERE station = "WFTS-TV"
How many stations have been owned since wfts-tv?
CREATE TABLE table_1847523_2 (owned_since VARCHAR, station VARCHAR)
SELECT grand_finaldate FROM table_name_40 WHERE season = 1988
I want the Grand Final Date for season 1988
CREATE TABLE table_name_40 (grand_finaldate VARCHAR, season VARCHAR)
SELECT partner FROM table_name_35 WHERE date = "22 april 2002"
Which Partner is on 22 april 2002?
CREATE TABLE table_name_35 (partner VARCHAR, date VARCHAR)
SELECT opposing_team FROM table_name_48 WHERE against < 42 AND status = "tour match" AND venue = "rugby park, gisborne"
Which opposing team had an Against score less than 42 and a Tour Match status in Rugby Park, Gisborne?
CREATE TABLE table_name_48 (opposing_team VARCHAR, venue VARCHAR, against VARCHAR, status VARCHAR)
SELECT venue FROM table_name_88 WHERE competition = "friendly"
What venue is listed as having a competition titled Friendly?
CREATE TABLE table_name_88 (venue VARCHAR, competition VARCHAR)
SELECT AVG(gold) FROM table_name_45 WHERE total > 12
What is the average amount of gold medals for a country with more than 12 total medals?
CREATE TABLE table_name_45 (gold INTEGER, total INTEGER)
SELECT label FROM table_name_53 WHERE country = "canada" AND format = "cd/digital download"
Which Label has a Country of canada, and a Format of cd/digital download?
CREATE TABLE table_name_53 (label VARCHAR, country VARCHAR, format VARCHAR)
SELECT COUNT(DISTINCT template_id) FROM Documents
How many different templates do all document use?
CREATE TABLE Documents (template_id VARCHAR)
SELECT years_in_orlando FROM table_name_96 WHERE school_club_team = "kentucky"
Which Years in Orlando has a School/Club Team of kentucky?
CREATE TABLE table_name_96 (years_in_orlando VARCHAR, school_club_team VARCHAR)
SELECT record FROM table_name_15 WHERE date = "may 8"
What was the Record on the Date May 8?
CREATE TABLE table_name_15 (record VARCHAR, date VARCHAR)
SELECT round FROM table_name_26 WHERE opponent = "joe stevenson"
What was the round when he fought Joe Stevenson?
CREATE TABLE table_name_26 (round VARCHAR, opponent VARCHAR)
SELECT ground FROM table_16388047_1 WHERE home_team = "Essendon"
Name the ground for essendon
CREATE TABLE table_16388047_1 (ground VARCHAR, home_team VARCHAR)
SELECT high_rebounds FROM table_27704187_7 WHERE team = "Boston"
Who did the high rebounds in the game against Boston?
CREATE TABLE table_27704187_7 (high_rebounds VARCHAR, team VARCHAR)
SELECT date FROM table_23308178_6 WHERE opponent = "Toronto Maple Leafs"
What date did the capitols play the toronto maple leafs?
CREATE TABLE table_23308178_6 (date VARCHAR, opponent VARCHAR)
SELECT stadium FROM table_name_21 WHERE score = "1 - 1 dodd 38'"
What stadium had the score 1 - 1 dodd 38'?
CREATE TABLE table_name_21 (stadium VARCHAR, score VARCHAR)
SELECT date FROM table_name_21 WHERE race = "contac 12 hours of sebring"
On what date did Contac 12 Hours of Sebring take place?
CREATE TABLE table_name_21 (date VARCHAR, race VARCHAR)
SELECT away_team AS score FROM table_name_12 WHERE venue = "lake oval"
What is the away side that playes at lake oval?
CREATE TABLE table_name_12 (away_team VARCHAR, venue VARCHAR)
SELECT AVG(agricultural_panel) FROM table_name_53 WHERE labour_panel < 1 AND total < 21 AND national_university_of_ireland > 0
What is the average agricultural panel value with a Labour panel less than 1, a total value less than 21, and a National University of Ireland value greater than 0?
CREATE TABLE table_name_53 (agricultural_panel INTEGER, national_university_of_ireland VARCHAR, labour_panel VARCHAR, total VARCHAR)
SELECT obama_percentage FROM table_20799587_1 WHERE county = "Tippah"
What percentage of the votes in Tippah did Obama get?
CREATE TABLE table_20799587_1 (obama_percentage VARCHAR, county VARCHAR)
SELECT Official_Name FROM city ORDER BY Population DESC
List official names of cities in descending order of population.
CREATE TABLE city (Official_Name VARCHAR, Population VARCHAR)
SELECT us_viewers__millions_ FROM table_26808178_1 WHERE series__number = 3
How many million viewers watched episode 3 in the series?
CREATE TABLE table_26808178_1 (us_viewers__millions_ VARCHAR, series__number VARCHAR)
SELECT ↓_function___genus_→ FROM table_10321124_1 WHERE shigella = "Spa32"
what's the ↓ function / genus → with shigella being spa32
CREATE TABLE table_10321124_1 (↓_function___genus_→ VARCHAR, shigella VARCHAR)
SELECT COUNT(first_elected) FROM table_1342218_24 WHERE incumbent = "W. Arthur Winstead"
How many times was w. arthur winstead first elected?
CREATE TABLE table_1342218_24 (first_elected VARCHAR, incumbent VARCHAR)