answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT lifespan FROM table_name_96 WHERE representative = "theodore f. kluttz"
What is the Lifespan when the Representative is Theodore F. Kluttz?
CREATE TABLE table_name_96 (lifespan VARCHAR, representative VARCHAR)
SELECT AVG(played__pj_) FROM table_name_18 WHERE place__posición_ = 2 AND lost__pp_ > 4
What is the average number played for place 2 and more than 4 lost?
CREATE TABLE table_name_18 (played__pj_ INTEGER, place__posición_ VARCHAR, lost__pp_ VARCHAR)
SELECT 2003 FROM table_name_67 WHERE 2012 = "1r" AND 2004 = "2r" AND tournament = "australian open"
What is the results from 2003 that has a 2012 result of 1r and a 2004 result of 2r and from the Australian Open?
CREATE TABLE table_name_67 (tournament VARCHAR)
SELECT tie_no FROM table_19294812_2 WHERE team_1 = "Borac Banja Luka"
How many tie no have team 1 as borac banja luka?
CREATE TABLE table_19294812_2 (tie_no VARCHAR, team_1 VARCHAR)
SELECT MIN(lost) FROM table_15319684_1 WHERE team = "Corinthians"
Name the most losst for corinthians
CREATE TABLE table_15319684_1 (lost INTEGER, team VARCHAR)
SELECT challenge FROM table_24798489_2 WHERE episode_number = 28
What was the challenge for episode 28?
CREATE TABLE table_24798489_2 (challenge VARCHAR, episode_number VARCHAR)
SELECT COUNT(pos) FROM table_19412902_1 WHERE member_association = "Saudi Arabia"
how many posiitions did saudi arabia land on
CREATE TABLE table_19412902_1 (pos VARCHAR, member_association VARCHAR)
SELECT date FROM table_name_81 WHERE format = "cd"
Name the date that is a cd
CREATE TABLE table_name_81 (date VARCHAR, format VARCHAR)
SELECT record FROM table_name_48 WHERE event = "uw: ultimate fight minnesota"
What is the record at the UW: Ultimate Fight Minnesota?
CREATE TABLE table_name_48 (record VARCHAR, event VARCHAR)
SELECT station_name FROM table_name_57 WHERE chinese_name = "上地 shàngdì"
The Chinese Name of 上地 shàngdì belongs to what station?
CREATE TABLE table_name_57 (station_name VARCHAR, chinese_name VARCHAR)
SELECT region_1 FROM table_name_83 WHERE no_of_episodes = 12 AND region_2 = "18 august 2008"
Which region 1 has 12 Episodes and a Region 2 of 18 August 2008?
CREATE TABLE table_name_83 (region_1 VARCHAR, no_of_episodes VARCHAR, region_2 VARCHAR)
SELECT college_junior_club_team FROM table_1473672_9 WHERE nhl_team = "California Golden Seals"
what's the college/junior/club team with nhl team being california golden seals
CREATE TABLE table_1473672_9 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT COUNT(maghreb) FROM table_22860_1 WHERE mediterranean_europe = "Siciliense"
How many values for Maghreb with Mediterranean Europe is Siciliense?
CREATE TABLE table_22860_1 (maghreb VARCHAR, mediterranean_europe VARCHAR)
SELECT athlete FROM table_name_15 WHERE time___sec__ > 11.22 AND rank < 5
Which athlete is ranked less than 5 with time over 11.22?
CREATE TABLE table_name_15 (athlete VARCHAR, time___sec__ VARCHAR, rank VARCHAR)
SELECT championship FROM table_name_53 WHERE opponent = "jeff borowiak"
During what Championship was the Opponent Jeff Borowiak?
CREATE TABLE table_name_53 (championship VARCHAR, opponent VARCHAR)
SELECT average FROM table_16390001_2 WHERE swimsuit = "8.266"
What was the average for contestants with a swimsuit score of 8.266?
CREATE TABLE table_16390001_2 (average VARCHAR, swimsuit VARCHAR)
SELECT original_airdate FROM table_25691838_11 WHERE guest = "Salvatore Giunta"
What date did the episode originally air on with salvatore giunta as a guest?
CREATE TABLE table_25691838_11 (original_airdate VARCHAR, guest VARCHAR)
SELECT no FROM table_21977704_1 WHERE entrant = "Automóvil Club Argentino" AND driver = "Juan Manuel Fangio"
Name the number for automóvil club argentino for juan manuel fangio
CREATE TABLE table_21977704_1 (no VARCHAR, entrant VARCHAR, driver VARCHAR)
SELECT date_successor_seated FROM table_2159547_3 WHERE vacator = "James P. Buchanan (D)"
On what date was James P. Buchanan (d)'s successor seated?
CREATE TABLE table_2159547_3 (date_successor_seated VARCHAR, vacator VARCHAR)
SELECT disposable_usd_growth FROM table_24486462_1 WHERE rank = 26
If the rank is 26, what is the disposable USD growth?
CREATE TABLE table_24486462_1 (disposable_usd_growth VARCHAR, rank VARCHAR)
SELECT record FROM table_name_26 WHERE attendance = "11,141"
What is the record for the game with an attendance of 11,141?
CREATE TABLE table_name_26 (record VARCHAR, attendance VARCHAR)
SELECT to_par FROM table_name_37 WHERE total < 297 AND finish = "1"
What is To par, when Total is less than 297, and when Finish is "1"?
CREATE TABLE table_name_37 (to_par VARCHAR, total VARCHAR, finish VARCHAR)
SELECT score FROM table_name_81 WHERE game = 2
When the game is listed as 2, what is the score?
CREATE TABLE table_name_81 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_7 WHERE save = "lancaster (3)"
Name the score for save of lancaster (3)
CREATE TABLE table_name_7 (score VARCHAR, save VARCHAR)
SELECT tv_time FROM table_name_23 WHERE date = "january 2, 2005"
Which TV Time has a Date of january 2, 2005?
CREATE TABLE table_name_23 (tv_time VARCHAR, date VARCHAR)
SELECT constructor FROM table_name_22 WHERE time_retired = "collision" AND grid < 18 AND driver = "nick heidfeld"
Which constructor had a Time/Retired of collision, where the grid number was less than 18 and Nick Heidfeld was the driver?
CREATE TABLE table_name_22 (constructor VARCHAR, driver VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT date FROM table_247955_2 WHERE no = 7
What was the date for no. 7?
CREATE TABLE table_247955_2 (date VARCHAR, no VARCHAR)
SELECT score FROM table_name_46 WHERE opponent = "@ houston" AND record = "2-0"
Which Score has an Opponent of @ houston, and a Record of 2-0?
CREATE TABLE table_name_46 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT COUNT(result) FROM table_name_96 WHERE location = "brussels"
What is the Result with a Location of brussels?
CREATE TABLE table_name_96 (result VARCHAR, location VARCHAR)
SELECT venue FROM table_name_70 WHERE notes = "58.48 m"
Which Venue has Notes of 58.48 m?
CREATE TABLE table_name_70 (venue VARCHAR, notes VARCHAR)
SELECT home_team FROM table_name_36 WHERE away_team = "melbourne"
What team was the home team against Melbourne?
CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR)
SELECT time_retired FROM table_name_42 WHERE laps > 9 AND grid = 6
What is the time/retired for the car with over 9 laps and a grid of 6?
CREATE TABLE table_name_42 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT AVG(total) FROM table_name_27 WHERE year_s__won = "1969"
What is the average total in 1969?
CREATE TABLE table_name_27 (total INTEGER, year_s__won VARCHAR)
SELECT transcription FROM table_180802_2 WHERE thai_name = "พฤษภาคม"
What's the transcription of the thai name of the month พฤษภาคม?
CREATE TABLE table_180802_2 (transcription VARCHAR, thai_name VARCHAR)
SELECT years_for_jazz FROM table_11545282_19 WHERE school_club_team = "Iowa State"
What years were the Iowa State school/club team have a jazz club?
CREATE TABLE table_11545282_19 (years_for_jazz VARCHAR, school_club_team VARCHAR)
SELECT MAX(december) FROM table_name_68 WHERE record = "15-12-4" AND game > 31
Record of 15-12-4, and a Game larger than 31 involves what highest December?
CREATE TABLE table_name_68 (december INTEGER, record VARCHAR, game VARCHAR)
SELECT points AS defending FROM table_24431264_17 WHERE player = "Marion Bartoli"
List the total defensive points for marion bartoli.
CREATE TABLE table_24431264_17 (points VARCHAR, player VARCHAR)
SELECT location FROM table_name_73 WHERE date = "october 8"
What is the Location of the Game on October 8?
CREATE TABLE table_name_73 (location VARCHAR, date VARCHAR)
SELECT host FROM table_name_12 WHERE city = "long beach"
Which university hosted in Long Beach?
CREATE TABLE table_name_12 (host VARCHAR, city VARCHAR)
SELECT round FROM table_name_40 WHERE opposing_team = "gillingham" AND against < 3
What is the Round against Gillingham with an Against smaller than 3?
CREATE TABLE table_name_40 (round VARCHAR, opposing_team VARCHAR, against VARCHAR)
SELECT AVG(season) FROM table_name_45 WHERE coach = "fisher" AND actual_adjusted_record = "0–11"
What is the average Season for coach Fisher, and an actual adjusted record of 0–11?
CREATE TABLE table_name_45 (season INTEGER, coach VARCHAR, actual_adjusted_record VARCHAR)
SELECT date FROM table_name_97 WHERE partner = "christophe rochus" AND score = "2–6, 7–6 (7–5) , 0–6"
What is the Date when christophe rochus was partner, and the score was 2–6, 7–6 (7–5) , 0–6?
CREATE TABLE table_name_97 (date VARCHAR, partner VARCHAR, score VARCHAR)
SELECT game FROM table_name_48 WHERE high_rebounds = "chris andersen (12)"
In which game number was Chris Andersen (12) the high rebounds scorer?
CREATE TABLE table_name_48 (game VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(rebounds) FROM table_name_10 WHERE team = "maccabi tel aviv" AND games > 6
How many Rebounds did Maccabi Tel Aviv Team get after Game 6?
CREATE TABLE table_name_10 (rebounds VARCHAR, team VARCHAR, games VARCHAR)
SELECT winning_driver FROM table_name_15 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND date = "2 june"
Who is the winning driver of the race on 2 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team?
CREATE TABLE table_name_15 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR)
SELECT year_s__won FROM table_name_53 WHERE finish = "t60" AND player = "steve jones"
What year did player steve jones, who had a t60 finish, win?
CREATE TABLE table_name_53 (year_s__won VARCHAR, finish VARCHAR, player VARCHAR)
SELECT country FROM table_name_96 WHERE player = "hale irwin"
What is Country, when Player is "Hale Irwin"?
CREATE TABLE table_name_96 (country VARCHAR, player VARCHAR)
SELECT tournament FROM table_name_64 WHERE surface = "hard" AND opponent = "ruben de kleijn"
What is the tournament with a hard surface and Ruben de Kleijn as the opponent?
CREATE TABLE table_name_64 (tournament VARCHAR, surface VARCHAR, opponent VARCHAR)
SELECT contestant FROM table_name_7 WHERE height < 1.79 AND hometown = "santo domingo este"
What contestant is from santo domingo este and has height smaller than 1.79?
CREATE TABLE table_name_7 (contestant VARCHAR, height VARCHAR, hometown VARCHAR)
SELECT song FROM table_name_25 WHERE points > 66 AND draw > 3 AND rank = "3rd"
Which song has more than 66 points, a draw greater than 3, and is ranked 3rd?
CREATE TABLE table_name_25 (song VARCHAR, rank VARCHAR, points VARCHAR, draw VARCHAR)
SELECT composition FROM table_name_33 WHERE weight = "3 g"
What is the coin that weighs 3 g made of?
CREATE TABLE table_name_33 (composition VARCHAR, weight VARCHAR)
SELECT english_title FROM table_name_56 WHERE role = "chae soo-yeon"
What is the English of chae soo-yeon?
CREATE TABLE table_name_56 (english_title VARCHAR, role VARCHAR)
SELECT circuit FROM table_name_85 WHERE feature_winner = "ireland" AND country = "great britain"
Which circuit was in Great Britain with Ireland as the winner?
CREATE TABLE table_name_85 (circuit VARCHAR, feature_winner VARCHAR, country VARCHAR)
SELECT conductor FROM table_name_22 WHERE director = "stephen barlow"
Who is the Conductor who had Stephen Barlow as Director?
CREATE TABLE table_name_22 (conductor VARCHAR, director VARCHAR)
SELECT amount FROM payment ORDER BY amount DESC LIMIT 1
What is the largest payment amount?
CREATE TABLE payment (amount VARCHAR)
SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949
Show the name of singers whose birth year is either 1948 or 1949?
CREATE TABLE singer (Name VARCHAR, Birth_Year VARCHAR)
SELECT AVG(wins) FROM table_name_91 WHERE cuts_made = 5 AND top_10 = 1
What is the average wins with 5 cuts and 1 in the top-10?
CREATE TABLE table_name_91 (wins INTEGER, cuts_made VARCHAR, top_10 VARCHAR)
SELECT color_commentator_s_ FROM table_name_16 WHERE year = 2008
Who is the color commentator in 2008?
CREATE TABLE table_name_16 (color_commentator_s_ VARCHAR, year VARCHAR)
SELECT mens_doubles FROM table_12275654_1 WHERE mens_singles = "Chou Tien-chen"
Who won the men's double when Chou Tien-Chen won the men's single?
CREATE TABLE table_12275654_1 (mens_doubles VARCHAR, mens_singles VARCHAR)
SELECT leading_scorer FROM table_11964047_9 WHERE home = "Sacramento Kings"
what's the leading scorer where home is sacramento kings
CREATE TABLE table_11964047_9 (leading_scorer VARCHAR, home VARCHAR)
SELECT country_or_territory_with_flag FROM table_14098_1 WHERE capital = "Buenos Aires"
What country's capital is buenos aires?
CREATE TABLE table_14098_1 (country_or_territory_with_flag VARCHAR, capital VARCHAR)
SELECT location_attendance FROM table_11964154_9 WHERE record = "14–39"
what's the location attendance where record is 14–39
CREATE TABLE table_11964154_9 (location_attendance VARCHAR, record VARCHAR)
SELECT time FROM table_name_52 WHERE laps = 18 AND grid = 5
What is the time for 18 laps and 5 grids?
CREATE TABLE table_name_52 (time VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT winner AS Women FROM table_1216097_7 WHERE third = "Italy" AND runner_up = "Finland"
What is the winner women and third is italy and runner-up is finland?
CREATE TABLE table_1216097_7 (winner VARCHAR, third VARCHAR, runner_up VARCHAR)
SELECT AVG(fa_cup_goals) FROM table_name_33 WHERE other_goals = 0 AND fl_cup_goals = 0 AND league_goals < 39
What is the average FA Cup Goal value for players that have 0 Other goals, 0 FL Cup goals, and fewer than 39 League goals?
CREATE TABLE table_name_33 (fa_cup_goals INTEGER, league_goals VARCHAR, other_goals VARCHAR, fl_cup_goals VARCHAR)
SELECT engine FROM table_name_38 WHERE points = 0 AND chassis = "kuzma indy roadster" AND year = 1954
Name the engine when points are 0 and chassis is kuzma indy roadster for 1954
CREATE TABLE table_name_38 (engine VARCHAR, year VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT bronze FROM table_name_25 WHERE silver = 1
Name the bronze when silver is 1
CREATE TABLE table_name_25 (bronze VARCHAR, silver VARCHAR)
SELECT points FROM table_name_24 WHERE draw > 3 AND place = 3
How many points has a draw greater than 3 and 3rd place?
CREATE TABLE table_name_24 (points VARCHAR, draw VARCHAR, place VARCHAR)
SELECT name FROM table_name_65 WHERE channel___bkk__ = "29 (uhf)"
What's the name of Channel 29 (UHF)?
CREATE TABLE table_name_65 (name VARCHAR, channel___bkk__ VARCHAR)
SELECT cause_of_destruction FROM table_19342760_1 WHERE name = "Temple of Artemis at Ephesus"
How was the Temple of Artemis at Ephesus destroyed?
CREATE TABLE table_19342760_1 (cause_of_destruction VARCHAR, name VARCHAR)
SELECT first_broadcast FROM table_29141354_2 WHERE episode = "02x02"
When was episode 02x02 first broadcast?
CREATE TABLE table_29141354_2 (first_broadcast VARCHAR, episode VARCHAR)
SELECT class FROM table_1745843_10 WHERE part_3 = "heldu"
What class is the verb wich its part 3 is heldu
CREATE TABLE table_1745843_10 (class VARCHAR, part_3 VARCHAR)
SELECT capacity__mw_ FROM table_26387382_1 WHERE turbines = "50-60"
What all capacities have turbines between 50-60?
CREATE TABLE table_26387382_1 (capacity__mw_ VARCHAR, turbines VARCHAR)
SELECT tournament FROM table_name_11 WHERE runner_s__up = "anthony wall"
For which tournament was Anthony Wall the runner-up?
CREATE TABLE table_name_11 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT september FROM table_15945862_1 WHERE november = "10.35"
What september has 10.35 in November?
CREATE TABLE table_15945862_1 (september VARCHAR, november VARCHAR)
SELECT opponent FROM table_name_34 WHERE record = "4-4"
Who was the opponent the Buffalo Bills played when their record was 4-4?
CREATE TABLE table_name_34 (opponent VARCHAR, record VARCHAR)
SELECT constructor FROM table_name_43 WHERE laps < 100 AND time_retired = "+10 laps"
Which constructor has laps less than 100 and a time/retired +10 laps?
CREATE TABLE table_name_43 (constructor VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT date FROM table_24138601_2 WHERE final_score = "L 28–15"
Name the date for l 28–15
CREATE TABLE table_24138601_2 (date VARCHAR, final_score VARCHAR)
SELECT time_retired FROM table_name_54 WHERE grid < 2
What was the time of the driver in grid 2?
CREATE TABLE table_name_54 (time_retired VARCHAR, grid INTEGER)
SELECT date FROM table_name_70 WHERE away_team = "west ham united"
On what date was the away team West Ham United?
CREATE TABLE table_name_70 (date VARCHAR, away_team VARCHAR)
SELECT time FROM table_name_81 WHERE notes = "sa/b" AND athlete = "frida svensson"
What is the time of frida svensson's race that had sa/b under the notes?
CREATE TABLE table_name_81 (time VARCHAR, notes VARCHAR, athlete VARCHAR)
SELECT MAX(rank) FROM table_name_38 WHERE notes = "qs" AND country = "china"
What is the rank for the man from China with notes of QS?
CREATE TABLE table_name_38 (rank INTEGER, notes VARCHAR, country VARCHAR)
SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID
What are the distinct template type descriptions for the templates ever used by any document?
CREATE TABLE Templates (template_type_code VARCHAR, Template_ID VARCHAR); CREATE TABLE Documents (template_ID VARCHAR); CREATE TABLE Ref_template_types (template_type_description VARCHAR, template_type_code VARCHAR)
SELECT SUM(rank) FROM table_name_4 WHERE canton = "schaffhausen"
Wich rank is given to the Canton of Schaffhausen?
CREATE TABLE table_name_4 (rank INTEGER, canton VARCHAR)
SELECT runners_up FROM table_name_17 WHERE individual = "tiger woods"
Who were the runners-up when the individual winner was Tiger Woods?
CREATE TABLE table_name_17 (runners_up VARCHAR, individual VARCHAR)
SELECT date FROM table_1139087_2 WHERE grand_prix = "French grand_prix"
What day is the french grand prix
CREATE TABLE table_1139087_2 (date VARCHAR, grand_prix VARCHAR)
SELECT nickname FROM table_name_66 WHERE founded = 1954
Which Nickname has Founded of 1954?
CREATE TABLE table_name_66 (nickname VARCHAR, founded VARCHAR)
SELECT date FROM table_name_2 WHERE type = "plain stage"
Name the date which has type of plain stage
CREATE TABLE table_name_2 (date VARCHAR, type VARCHAR)
SELECT outcome FROM table_name_55 WHERE date = "may 25, 2009"
What was the outcome on May 25, 2009?
CREATE TABLE table_name_55 (outcome VARCHAR, date VARCHAR)
SELECT MIN(three_pointers) FROM table_22824324_2 WHERE rebounds = 178
What is the lowest number of three pointers in games where the number of rebounds was 178?
CREATE TABLE table_22824324_2 (three_pointers INTEGER, rebounds VARCHAR)
SELECT championship FROM table_2201724_1 WHERE score_in_the_final = "3–6, 4–6, 2–6"
Which championship has a final score of 3–6, 4–6, 2–6?
CREATE TABLE table_2201724_1 (championship VARCHAR, score_in_the_final VARCHAR)
SELECT athlete FROM table_name_97 WHERE place = 1 AND year < 1988 AND country = "gre" AND time = "21:57:00"
Which Athlete has a Place of 1, and a Year smaller than 1988, and a Country of gre, and a Time of 21:57:00?
CREATE TABLE table_name_97 (athlete VARCHAR, time VARCHAR, country VARCHAR, place VARCHAR, year VARCHAR)
SELECT friday_day_six FROM table_1277350_7 WHERE thursday_day_five = "پچھمبے pachhambey"
What is friday day six when thursday day five is پچھمبے pachhambey?
CREATE TABLE table_1277350_7 (friday_day_six VARCHAR, thursday_day_five VARCHAR)
SELECT victim_s_ FROM table_23546266_1 WHERE executed_person = "Linroy Bottoson"
What's the name of Linroy Bottoson's victim?
CREATE TABLE table_23546266_1 (victim_s_ VARCHAR, executed_person VARCHAR)
SELECT COUNT(*), flag FROM ship GROUP BY flag
Group by ships by flag, and return number of ships that have each flag.
CREATE TABLE ship (flag VARCHAR)
SELECT name FROM circuits WHERE country = "UK" OR country = "Malaysia"
What are the names of circuits that belong to UK or Malaysia?
CREATE TABLE circuits (name VARCHAR, country VARCHAR)
SELECT tertiary__18_24_years_ FROM table_25042332_22 WHERE secondary__14_17_years_ = "71.43"
What is the enrollment ratio in tertiary in the region where the enrollment ration in secondary is 71.43?
CREATE TABLE table_25042332_22 (tertiary__18_24_years_ VARCHAR, secondary__14_17_years_ VARCHAR)
SELECT model FROM table_name_60 WHERE fleet_series = "s410-s434"
Which model with a fleet series of s410-s434?
CREATE TABLE table_name_60 (model VARCHAR, fleet_series VARCHAR)
SELECT MAX(points) FROM table_18018214_3 WHERE goals_scored = 47
HOw many points where there when the number of goals scored was 47?
CREATE TABLE table_18018214_3 (points INTEGER, goals_scored VARCHAR)
SELECT AVG(_percentage_2006) FROM table_name_70 WHERE seats_2001 > 15 AND _percentage_2001 > 100
When seats for 2001 is greater than 15 and % 2001 is greater than 100, what is the % 2006?
CREATE TABLE table_name_70 (_percentage_2006 INTEGER, seats_2001 VARCHAR, _percentage_2001 VARCHAR)