answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT reserved_for___sc___st__none_ FROM table_name_40 WHERE name = "uklana"
What is the reserved for (ST/ST/None) when it was Uklana?
CREATE TABLE table_name_40 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
SELECT gswr_class FROM table_name_80 WHERE year = "1893"
Which GSWR Class is from 1893?
CREATE TABLE table_name_80 (gswr_class VARCHAR, year VARCHAR)
SELECT result_f_a FROM table_name_37 WHERE date = "24 september 2002"
Date of 24 september 2002 had what F-A result?
CREATE TABLE table_name_37 (result_f_a VARCHAR, date VARCHAR)
SELECT AVG(drawn) FROM table_name_76 WHERE position < 9 AND points < 22 AND lost < 9 AND against > 29
Which Drawn is the average one that has a Position smaller than 9, and Points smaller than 22, and a Lost smaller than 9, and an Against larger than 29?
CREATE TABLE table_name_76 (drawn INTEGER, against VARCHAR, lost VARCHAR, position VARCHAR, points VARCHAR)
SELECT to_par FROM table_name_69 WHERE country = "south korea"
What is South Korea's to par value?
CREATE TABLE table_name_69 (to_par VARCHAR, country VARCHAR)
SELECT competition FROM table_13328239_4 WHERE score = "38-14"
What competition ended with a score of 38-14?
CREATE TABLE table_13328239_4 (competition VARCHAR, score VARCHAR)
SELECT COUNT(candidates) FROM table_1342198_38 WHERE district = "Pennsylvania 3"
What is the number of candidates for pennsylvania 3
CREATE TABLE table_1342198_38 (candidates VARCHAR, district VARCHAR)
SELECT tournament FROM table_name_36 WHERE runner_up = "pat cash"
Which Tournament has Pat Cash as a runner-up?
CREATE TABLE table_name_36 (tournament VARCHAR, runner_up VARCHAR)
SELECT runner_s__up FROM table_name_75 WHERE winning_score = 67 - 66 - 65 - 69 = 267
Who was the Runner(s)-up in the race with a winning score of 67-66-65-69=267?
CREATE TABLE table_name_75 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT MIN(round) FROM table_name_65 WHERE overall > 186 AND position = "defensive end"
During which round was the first defensive end with an overall rank larger than 186 drafted?
CREATE TABLE table_name_65 (round INTEGER, overall VARCHAR, position VARCHAR)
SELECT original_air_date FROM table_22570439_1 WHERE written_by = "Tracy Poust & Jon Kinnally"
What is the original air date where tracy poust & jon kinnally was written by?
CREATE TABLE table_22570439_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT MAX(attendance) FROM table_name_63 WHERE record = "1-1-0"
What is the largest number in attendance when the record is 1-1-0?
CREATE TABLE table_name_63 (attendance INTEGER, record VARCHAR)
SELECT source FROM table_name_28 WHERE date = "june 2008"
Which source has a date of June 2008?
CREATE TABLE table_name_28 (source VARCHAR, date VARCHAR)
SELECT career FROM table_name_61 WHERE super_g = "5" AND combined = "6"
What Career has a Super G of 5, and a Combined of 6?
CREATE TABLE table_name_61 (career VARCHAR, super_g VARCHAR, combined VARCHAR)
SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = "2.05"
If the amount of U.S. viewers is 2.05 milliom, who was the episode directed by?
CREATE TABLE table_23399481_2 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT name FROM table_16799784_4 WHERE longitude = "202.9E"
Where is longitude 202.9e?
CREATE TABLE table_16799784_4 (name VARCHAR, longitude VARCHAR)
SELECT chromosomal_location FROM table_29871617_1 WHERE name = "IL-1β"
What is the chromosomal location of il-1β?
CREATE TABLE table_29871617_1 (chromosomal_location VARCHAR, name VARCHAR)
SELECT rank, COUNT(*) FROM Faculty GROUP BY rank
For each faculty rank, show the number of faculty members who have it.
CREATE TABLE Faculty (rank VARCHAR)
SELECT english_title FROM table_name_96 WHERE romanization = "lee jae-su-eui nan"
What English title for the Romanization of lee jae-su-eui nan?
CREATE TABLE table_name_96 (english_title VARCHAR, romanization VARCHAR)
SELECT COUNT(stanier), _3_cylinder FROM table_20142629_2 WHERE fowler = 16
When the Fowler is 16, what is the number of cylinders?
CREATE TABLE table_20142629_2 (_3_cylinder VARCHAR, stanier VARCHAR, fowler VARCHAR)
SELECT completion_schedule FROM table_name_96 WHERE state = "himachal pradesh" AND total_capacity__mw_ = 800
What is the completion schedule for himachal pradesh state with a total capacity (MW) of 800?
CREATE TABLE table_name_96 (completion_schedule VARCHAR, state VARCHAR, total_capacity__mw_ VARCHAR)
SELECT product_type_code FROM products GROUP BY product_type_code HAVING AVG(product_price) > (SELECT AVG(product_price) FROM products)
Find the product type whose average price is higher than the average price of all products.
CREATE TABLE products (product_type_code VARCHAR, product_price INTEGER)
SELECT release_date FROM table_name_60 WHERE production_number = 1327
What is the release date of production number 1327?
CREATE TABLE table_name_60 (release_date VARCHAR, production_number VARCHAR)
SELECT SUM(rank) FROM table_name_89 WHERE name = "omni nashville hotel"
What is the rank for Omni nashville hotel?
CREATE TABLE table_name_89 (rank INTEGER, name VARCHAR)
SELECT letter FROM table_name_40 WHERE british = "aɪ"
Which letter has the British aɪ?
CREATE TABLE table_name_40 (letter VARCHAR, british VARCHAR)
SELECT high_points FROM table_name_95 WHERE team = "boston"
What is the High points with a Team with boston?
CREATE TABLE table_name_95 (high_points VARCHAR, team VARCHAR)
SELECT team__number1 FROM table_name_85 WHERE position = "11th place"
What is the team #1 with an 11th place position?
CREATE TABLE table_name_85 (team__number1 VARCHAR, position VARCHAR)
SELECT score FROM table_name_10 WHERE date = "march 17"
What is the score on March 17?
CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR)
SELECT SUM(total) FROM table_name_77 WHERE to_par > 7 AND player = "corey pavin"
If the player is Corey Pavin when he had a To par of over 7, what was the sum of his totals?
CREATE TABLE table_name_77 (total INTEGER, to_par VARCHAR, player VARCHAR)
SELECT MAX(track) FROM table_name_87 WHERE song_title = "rip it up"
What is the highest track for the song Rip it Up?
CREATE TABLE table_name_87 (track INTEGER, song_title VARCHAR)
SELECT COUNT(date_of_commissioning) FROM table_28672269_1 WHERE unit_number = 2
What are Unit 2's dates of commissioning?
CREATE TABLE table_28672269_1 (date_of_commissioning VARCHAR, unit_number VARCHAR)
SELECT player FROM table_name_21 WHERE pick__number > 38 AND cfl_team = "saskatchewan"
Which player was chosen by Saskatchewan in a pick larger than 38?
CREATE TABLE table_name_21 (player VARCHAR, pick__number VARCHAR, cfl_team VARCHAR)
SELECT score FROM table_name_31 WHERE year > 1974 AND champion = "hawthorn"
What score has a year later than 1974, with hawthorn as the champion?
CREATE TABLE table_name_31 (score VARCHAR, year VARCHAR, champion VARCHAR)
SELECT MIN(total_attempts) FROM table_name_47 WHERE percentage > 0.34900000000000003 AND service_aces < 13
When there is less than 13 services aces with a percentage greater than 0.34900000000000003, what is the smallest total attempts?
CREATE TABLE table_name_47 (total_attempts INTEGER, percentage VARCHAR, service_aces VARCHAR)
SELECT MAX(gold) FROM table_name_93 WHERE nation = "uzbekistan (uzb)"
How much gold received by nation of uzbekistan (uzb)?
CREATE TABLE table_name_93 (gold INTEGER, nation VARCHAR)
SELECT greek_national_account FROM table_27146868_1 WHERE 1997 = "6.1"
What is the greek national account when 1997 is 6.1?
CREATE TABLE table_27146868_1 (greek_national_account VARCHAR)
SELECT player FROM table_name_48 WHERE position = "infielder" AND hometown = "atlanta, ga"
Which player has a Position of infielder, and a Hometown of atlanta, ga?
CREATE TABLE table_name_48 (player VARCHAR, position VARCHAR, hometown VARCHAR)
SELECT position FROM table_name_31 WHERE school_club_team = "florida international"
What position did the player from Florida International play?
CREATE TABLE table_name_31 (position VARCHAR, school_club_team VARCHAR)
SELECT division___section FROM table_1816947_2 WHERE season = 2012
In which division did they compete in 2012?
CREATE TABLE table_1816947_2 (division___section VARCHAR, season VARCHAR)
SELECT fastest_lap FROM table_11056278_3 WHERE race_name = "Tenneco Automotive Grand Prix of Detroit"
Who drove the fastest lap at the Tenneco Automotive Grand Prix of Detroit?
CREATE TABLE table_11056278_3 (fastest_lap VARCHAR, race_name VARCHAR)
SELECT SUM(decile) FROM table_name_99 WHERE authority = "state" AND roll = 120
What is the Decile with a State Authority and a roll of 120?
CREATE TABLE table_name_99 (decile INTEGER, authority VARCHAR, roll VARCHAR)
SELECT opponents FROM table_name_51 WHERE year > 2012 AND outcome = "runner-up"
Who was the opponent of the runner-up after 2012?
CREATE TABLE table_name_51 (opponents VARCHAR, year VARCHAR, outcome VARCHAR)
SELECT name FROM table_name_37 WHERE games = "2008 beijing" AND medal = "gold"
Which Name had a Games of 2008 beijing, and a Medal of gold?
CREATE TABLE table_name_37 (name VARCHAR, games VARCHAR, medal VARCHAR)
SELECT AVG(enrollment) FROM table_name_55 WHERE team_nickname = "wolverines" AND founded > 1817
what is the average enrollment when the team nickname is wolverines and founded is after 1817?
CREATE TABLE table_name_55 (enrollment INTEGER, team_nickname VARCHAR, founded VARCHAR)
SELECT rank FROM table_name_28 WHERE speed = "120.979 mph" AND rider = "gary johnson"
What is the rank of rider gary johnson, who had a speed of 120.979 mph?
CREATE TABLE table_name_28 (rank VARCHAR, speed VARCHAR, rider VARCHAR)
SELECT date FROM table_name_35 WHERE label = "parlophone" AND catalog = "582 2912"
What date is the release when the label was Parlophone and the catalog was 582 2912?
CREATE TABLE table_name_35 (date VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT laid_down FROM table_name_90 WHERE commissioned = "11 november 1989"
What is Laid Down, when Commissioned is "11 November 1989"?
CREATE TABLE table_name_90 (laid_down VARCHAR, commissioned VARCHAR)
SELECT prothrombin_time FROM table_1226250_1 WHERE bleeding_time = "Prolonged" AND partial_thromboplastin_time = "Prolonged"
Is prothrombin time long when thromboplastin is prolonged?
CREATE TABLE table_1226250_1 (prothrombin_time VARCHAR, bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR)
SELECT player FROM table_22824199_1 WHERE rebounds = 156
Who are all the players with 156 rebounds?
CREATE TABLE table_22824199_1 (player VARCHAR, rebounds VARCHAR)
SELECT tackles FROM table_name_75 WHERE solo > 67 AND sacks < 2 AND int_yds > 1
What is the value for Tackles, when the value for Solo is greater than 67, when the value for Sacks is less than 2, and when the value for INT YDS is greater than 1?
CREATE TABLE table_name_75 (tackles VARCHAR, int_yds VARCHAR, solo VARCHAR, sacks VARCHAR)
SELECT price_in_usd FROM table_name_79 WHERE company = "tealeaf"
What is the USD price for Tealeaf?
CREATE TABLE table_name_79 (price_in_usd VARCHAR, company VARCHAR)
SELECT school_club_team FROM table_name_16 WHERE round > 4 AND position = "wide receiver"
Which school(s) had a wide receiver drafted in round 4?
CREATE TABLE table_name_16 (school_club_team VARCHAR, round VARCHAR, position VARCHAR)
SELECT iata FROM table_name_23 WHERE city = "amsterdam"
What is the IATA for the city of Amsterdam?
CREATE TABLE table_name_23 (iata VARCHAR, city VARCHAR)
SELECT SUM(tonnage_grt) FROM table_name_23 WHERE type = "cargo ship" AND nationality = "norway"
What is the total Tonnage GRT with a Type of cargo ship, and a Nationality of norway?
CREATE TABLE table_name_23 (tonnage_grt INTEGER, type VARCHAR, nationality VARCHAR)
SELECT COUNT(points) FROM table_name_28 WHERE games < 5
What is the total points with less than 5 games?
CREATE TABLE table_name_28 (points VARCHAR, games INTEGER)
SELECT date_of_inauguration FROM table_name_10 WHERE age_at_inauguration = "73years, 262days"
What is the Date of inauguration of the President with an Age at inauguration of 73years, 262days?
CREATE TABLE table_name_10 (date_of_inauguration VARCHAR, age_at_inauguration VARCHAR)
SELECT MIN(poles) FROM table_10705060_1
what is the least number of poles?
CREATE TABLE table_10705060_1 (poles INTEGER)
SELECT sat_29_aug FROM table_23465864_3 WHERE rider = "Roy Richardson 476cc Aermacchi"
When roy richardson 476cc aermacchi is the rider what is the time for saturday august 9th?
CREATE TABLE table_23465864_3 (sat_29_aug VARCHAR, rider VARCHAR)
SELECT gold_coast FROM table_name_58 WHERE auckland = "cancelled" AND adelaide = "yes"
What Gold Coast has Auckland cancelled, and Adelaide yes?
CREATE TABLE table_name_58 (gold_coast VARCHAR, auckland VARCHAR, adelaide VARCHAR)
SELECT years FROM table_name_44 WHERE player = "alvin mitchell"
What years did Alvin Mitchell play?
CREATE TABLE table_name_44 (years VARCHAR, player VARCHAR)
SELECT MIN(subscribers__2005___thousands_) FROM table_29395291_2 WHERE provider = "Vodafone"
What is the fewest number of 2005 subscribers for Vodafone?
CREATE TABLE table_29395291_2 (subscribers__2005___thousands_ INTEGER, provider VARCHAR)
SELECT MAX(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year
What are the maximum fastest lap speed in races held after 2004 grouped by race name and ordered by year?
CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (name VARCHAR, year INTEGER, raceid VARCHAR)
SELECT SUM(win__percentage) FROM table_name_52 WHERE lost = 18
Lost of 18 had what sum of win %?
CREATE TABLE table_name_52 (win__percentage INTEGER, lost VARCHAR)
SELECT COUNT(gt1_winning_team) FROM table_12146068_2 WHERE rnd = 5
What is the number of gt1 winning team for rnd 5?
CREATE TABLE table_12146068_2 (gt1_winning_team VARCHAR, rnd VARCHAR)
SELECT result FROM table_name_49 WHERE game_site = "tampa stadium" AND opponent = "detroit lions"
When they were playing the detroit lions at tampa stadium, what was the score?
CREATE TABLE table_name_49 (result VARCHAR, game_site VARCHAR, opponent VARCHAR)
SELECT city FROM table_name_7 WHERE host = "northeast louisiana university"
What city is the Northeast Louisiana University located in?
CREATE TABLE table_name_7 (city VARCHAR, host VARCHAR)
SELECT 1993 FROM table_name_59 WHERE 1994 = "atp masters series"
What is the 1993 value of the 1994 atp masters series?
CREATE TABLE table_name_59 (Id VARCHAR)
SELECT main_cast_seasons FROM table_name_13 WHERE portrayed_by = "joe jonas"
Which main cast seasons were portrayed by Joe Jonas?
CREATE TABLE table_name_13 (main_cast_seasons VARCHAR, portrayed_by VARCHAR)
SELECT rally_base FROM table_23385853_1 WHERE round = 5
Name the rally base for 5 round
CREATE TABLE table_23385853_1 (rally_base VARCHAR, round VARCHAR)
SELECT home_team AS score FROM table_name_82 WHERE away_team = "fitzroy"
What home score has an Away team of fitzroy?
CREATE TABLE table_name_82 (home_team VARCHAR, away_team VARCHAR)
SELECT cabinet FROM table_name_79 WHERE year < 2001 AND lijsttrekker = "no elections" AND fractievoorzitter = "hans van mierlo" AND chair = "s. van der loo"
What is Cabinet, when Year is before 2001, when Lijsttrekker is "No Elections", when Fractievoorzitter is "Hans Van Mierlo", and when Chair is "S. Van Der Loo"?
CREATE TABLE table_name_79 (cabinet VARCHAR, chair VARCHAR, fractievoorzitter VARCHAR, year VARCHAR, lijsttrekker VARCHAR)
SELECT quantity_made FROM table_name_36 WHERE quantity_preserved = "0" AND class = "e-22"
What is the quantity made of the e-22 class, which has a quantity preserved of 0?
CREATE TABLE table_name_36 (quantity_made VARCHAR, quantity_preserved VARCHAR, class VARCHAR)
SELECT scoreboard FROM table_21234111_6 WHERE total = "23.5"
Name the scoreboard for total being 23.5
CREATE TABLE table_21234111_6 (scoreboard VARCHAR, total VARCHAR)
SELECT rank FROM table_name_42 WHERE wins = 0 AND class = "350cc"
What is the rank associated with 0 wins and a 350cc class?
CREATE TABLE table_name_42 (rank VARCHAR, wins VARCHAR, class VARCHAR)
SELECT 2011 FROM table_name_9 WHERE 2002 = "1r" AND 2009 = "a"
Name the 2011 with 2002 of 1r and 2009 of a
CREATE TABLE table_name_9 (Id VARCHAR)
SELECT MAX(game) FROM table_name_75 WHERE opponent = "hartford whalers"
Name the most game with opponent of hartford whalers
CREATE TABLE table_name_75 (game INTEGER, opponent VARCHAR)
SELECT opposing_team FROM table_name_97 WHERE against = 3 AND date = "11 february 1950"
Which Opposing Team has an Against of 3, and a Date of 11 february 1950?
CREATE TABLE table_name_97 (opposing_team VARCHAR, against VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_20 WHERE record = "35-46"
What was the attendance at the game when the record was 35-46?
CREATE TABLE table_name_20 (attendance VARCHAR, record VARCHAR)
SELECT first_aired FROM table_name_15 WHERE entrepreneur_s_ = "richard ernest"
What episode featured entrepreneur Richard Ernest?
CREATE TABLE table_name_15 (first_aired VARCHAR, entrepreneur_s_ VARCHAR)
SELECT no FROM table_15621965_17 WHERE school_club_team = "Arizona"
Which number belonged to the school team from Arizona?
CREATE TABLE table_15621965_17 (no VARCHAR, school_club_team VARCHAR)
SELECT COUNT(south_asians_2001) FROM table_1717824_1 WHERE _percentage_2011 = "4.4%"
How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011?
CREATE TABLE table_1717824_1 (south_asians_2001 VARCHAR, _percentage_2011 VARCHAR)
SELECT SUM(round) FROM table_name_4 WHERE pick > 1
Which Round has a Pick larger than 1?
CREATE TABLE table_name_4 (round INTEGER, pick INTEGER)
SELECT MIN(weeks_at__number1) FROM table_27441210_5 WHERE year = 1988
Name the least weeks at number 1 for 1988
CREATE TABLE table_27441210_5 (weeks_at__number1 INTEGER, year VARCHAR)
SELECT player FROM table_name_36 WHERE to_par = "+21"
What player has +21 as the to par?
CREATE TABLE table_name_36 (player VARCHAR, to_par VARCHAR)
SELECT venue FROM table_name_67 WHERE time = "14:30" AND away_team = "sun source"
What is the venue of the match with a 14:30 time and sun source as the away team?
CREATE TABLE table_name_67 (venue VARCHAR, time VARCHAR, away_team VARCHAR)
SELECT italian FROM table_name_83 WHERE english = "we had heard"
What's the Italian Pluperfect when the English is We Had Heard?
CREATE TABLE table_name_83 (italian VARCHAR, english VARCHAR)
SELECT COUNT(DISTINCT name) FROM PersonFriend WHERE NOT friend IN (SELECT name FROM person WHERE city = 'Austin')
What is the total number of people who has no friend living in the city of Austin.
CREATE TABLE person (name VARCHAR, friend VARCHAR, city VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, city VARCHAR)
SELECT result FROM table_16028499_2 WHERE week = 2
What was the result of week 2?
CREATE TABLE table_16028499_2 (result VARCHAR, week VARCHAR)
SELECT skip FROM table_17012578_6 WHERE shot_pct = 88 AND province = "Alberta"
Who was Alberta's skip when the shot pct was 88?
CREATE TABLE table_17012578_6 (skip VARCHAR, shot_pct VARCHAR, province VARCHAR)
SELECT stage__winner_ FROM table_21804557_18 WHERE metas_volantes_classification = "Michael Albasini"
WHO WAS THE STAGE WINNER IN THE STAGE WHERE MICHAEL ALBASINI WON THE METAS VOLANTES CLASSIFICATION?
CREATE TABLE table_21804557_18 (stage__winner_ VARCHAR, metas_volantes_classification VARCHAR)
SELECT score FROM table_name_84 WHERE home_team = "goole town"
What was the score when the home team was goole town?
CREATE TABLE table_name_84 (score VARCHAR, home_team VARCHAR)
SELECT opponents FROM table_2259502_2 WHERE championship = "Tokyo"
Who were the opponents in the Tokyo championships?
CREATE TABLE table_2259502_2 (opponents VARCHAR, championship VARCHAR)
SELECT MIN(game) FROM table_name_22 WHERE opponent = "@ houston rockets"
Which Game has an Opponent of @ houston rockets?
CREATE TABLE table_name_22 (game INTEGER, opponent VARCHAR)
SELECT result FROM table_name_43 WHERE date = "september 26"
What was the result on september 26?
CREATE TABLE table_name_43 (result VARCHAR, date VARCHAR)
SELECT to_par FROM table_name_47 WHERE player = "jesper parnevik"
What is To par, when Player is "Jesper Parnevik"?
CREATE TABLE table_name_47 (to_par VARCHAR, player VARCHAR)
SELECT opponent FROM table_12944805_15 WHERE game_site = "Veterans Stadium"
What is the opponent of the veterans stadium
CREATE TABLE table_12944805_15 (opponent VARCHAR, game_site VARCHAR)
SELECT player FROM table_2679061_9 WHERE nhl_team = "Hartford Whalers"
Who was the player who played for Hartford Whalers NHL Team?
CREATE TABLE table_2679061_9 (player VARCHAR, nhl_team VARCHAR)
SELECT title FROM table_11630008_5 WHERE production_code = 311
What was the title of the episode with the production code 311?
CREATE TABLE table_11630008_5 (title VARCHAR, production_code VARCHAR)
SELECT date_successor_seated FROM table_225199_4 WHERE district = "Virginia 11th"
What is every date successor seated for the Virginia 11th District?
CREATE TABLE table_225199_4 (date_successor_seated VARCHAR, district VARCHAR)
SELECT result FROM table_1341973_6 WHERE incumbent = "Clyde Doyle"
What was the result of the election of the incumbent clyde doyle?
CREATE TABLE table_1341973_6 (result VARCHAR, incumbent VARCHAR)