prompt
stringlengths
81
567
completion
stringlengths
18
557
Question: What was the date of the game that had a loss of Gott (2-7)? Context: CREATE TABLE table_name_98 (date VARCHAR, loss VARCHAR) Answer:
SELECT date FROM table_name_98 WHERE loss = "gott (2-7)"
Question: Who was the opponent at the game when the record was 54-58? Context: CREATE TABLE table_name_13 (opponent VARCHAR, record VARCHAR) Answer:
SELECT opponent FROM table_name_13 WHERE record = "54-58"
Question: What was the score of the game when the record was 59-65? Context: CREATE TABLE table_name_77 (score VARCHAR, record VARCHAR) Answer:
SELECT score FROM table_name_77 WHERE record = "59-65"
Question: Who was the opponent at the game that had a loss of Caldwell (10-11)? Context: CREATE TABLE table_name_35 (opponent VARCHAR, loss VARCHAR) Answer:
SELECT opponent FROM table_name_35 WHERE loss = "caldwell (10-11)"
Question: Which opponent had a time of 1:26? Context: CREATE TABLE table_name_1 (opponent VARCHAR, time VARCHAR) Answer:
SELECT opponent FROM table_name_1 WHERE time = "1:26"
Question: What was the date of the game with the Kansas City Royals when the Blue Jays record was 18-12? Context: CREATE TABLE table_name_77 (date VARCHAR, opponent VARCHAR, record VARCHAR) Answer:
SELECT date FROM table_name_77 WHERE opponent = "royals" AND record = "18-12"
Question: Which catalogue is from the UK region, and is on vinyl, and was dated in 1986? Context: CREATE TABLE table_name_33 (catalogue VARCHAR, date VARCHAR, region VARCHAR, format VARCHAR) Answer:
SELECT catalogue FROM table_name_33 WHERE region = "uk" AND format = "vinyl" AND date = "1986"
Question: What region has a bronze label and a catalogue of 202 876-270? Context: CREATE TABLE table_name_82 (region VARCHAR, label VARCHAR, catalogue VARCHAR) Answer:
SELECT region FROM table_name_82 WHERE label = "bronze" AND catalogue = "202 876-270"
Question: Which label is from the Germany region? Context: CREATE TABLE table_name_52 (label VARCHAR, region VARCHAR) Answer:
SELECT label FROM table_name_52 WHERE region = "germany"
Question: What label has brol 34531 as it's catalogue? Context: CREATE TABLE table_name_31 (label VARCHAR, catalogue VARCHAR) Answer:
SELECT label FROM table_name_31 WHERE catalogue = "brol 34531"
Question: Which label has UK for its region, is on a CD, and is dated from 1986? Context: CREATE TABLE table_name_61 (label VARCHAR, format VARCHAR, region VARCHAR, date VARCHAR) Answer:
SELECT label FROM table_name_61 WHERE region = "uk" AND date = "1986" AND format = "cd"
Question: Which catalogue has essential, castle music as it's label? Context: CREATE TABLE table_name_46 (catalogue VARCHAR, label VARCHAR) Answer:
SELECT catalogue FROM table_name_46 WHERE label = "essential, castle music"
Question: What's the period of a rock album released in 1973? Context: CREATE TABLE table_name_83 (period_active VARCHAR, release_year_of_first_charted_record VARCHAR, genre VARCHAR) Answer:
SELECT period_active FROM table_name_83 WHERE release_year_of_first_charted_record = 1973 AND genre = "rock"
Question: Name the pick number for bill atessis Context: CREATE TABLE table_name_15 (pick__number VARCHAR, name VARCHAR) Answer:
SELECT pick__number FROM table_name_15 WHERE name = "bill atessis"
Question: Name the total number of overall for defensive tackle Context: CREATE TABLE table_name_6 (overall VARCHAR, position VARCHAR) Answer:
SELECT COUNT(overall) FROM table_name_6 WHERE position = "defensive tackle"
Question: Which engine has daimler benz ag as an entrant? Context: CREATE TABLE table_name_7 (engine VARCHAR, entrant VARCHAR) Answer:
SELECT engine FROM table_name_7 WHERE entrant = "daimler benz ag"
Question: In which years was the to par +6? Context: CREATE TABLE table_name_86 (year_s__won VARCHAR, to_par VARCHAR) Answer:
SELECT year_s__won FROM table_name_86 WHERE to_par = "+6"
Question: In 1991, what was the lowest total? Context: CREATE TABLE table_name_31 (total INTEGER, year_s__won VARCHAR) Answer:
SELECT MIN(total) FROM table_name_31 WHERE year_s__won = "1991"
Question: What are the total lanes that have a rank larger than 22? Context: CREATE TABLE table_name_11 (lane INTEGER, rank INTEGER) Answer:
SELECT SUM(lane) FROM table_name_11 WHERE rank > 22
Question: Which one has a rank bigger than 2, lane of 1, and is from Hong Kong? Context: CREATE TABLE table_name_55 (name VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR) Answer:
SELECT name FROM table_name_55 WHERE rank > 2 AND lane = 1 AND nationality = "hong kong"
Question: What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3? Context: CREATE TABLE table_name_52 (rank INTEGER, heat VARCHAR, nationality VARCHAR, lane VARCHAR) Answer:
SELECT SUM(rank) FROM table_name_52 WHERE nationality = "japan" AND lane < 7 AND heat < 3
Question: What was Jim Hoff's sum of losses and a wins smaller than 12? Context: CREATE TABLE table_name_9 (losses INTEGER, manager VARCHAR, wins VARCHAR) Answer:
SELECT SUM(losses) FROM table_name_9 WHERE manager = "jim hoff" AND wins < 12
Question: What was the average of games that were one in 1978 that were smaller than 141? Context: CREATE TABLE table_name_42 (wins INTEGER, years VARCHAR, games VARCHAR) Answer:
SELECT AVG(wins) FROM table_name_42 WHERE years = "1978" AND games < 141
Question: What was the sum of Richie Hebner winning games that were smaller 34? Context: CREATE TABLE table_name_80 (games INTEGER, manager VARCHAR, wins VARCHAR) Answer:
SELECT SUM(games) FROM table_name_80 WHERE manager = "richie hebner" AND wins < 34
Question: What was the average of wins with manager George Scherger smaller than 3 and losses smaller than 1? Context: CREATE TABLE table_name_91 (wins INTEGER, losses VARCHAR, games VARCHAR, manager VARCHAR) Answer:
SELECT AVG(wins) FROM table_name_91 WHERE games < 3 AND manager = "george scherger" AND losses < 1
Question: When was the golden slipper race? Context: CREATE TABLE table_name_53 (date VARCHAR, race VARCHAR) Answer:
SELECT date FROM table_name_53 WHERE race = "golden slipper"
Question: In which races did the jockey weigh less than 55.5 kg? Context: CREATE TABLE table_name_78 (race VARCHAR, weight__kg_ INTEGER) Answer:
SELECT race FROM table_name_78 WHERE weight__kg_ < 55.5
Question: What was the result of the Todman stakes race at rosehill? Context: CREATE TABLE table_name_28 (result VARCHAR, venue VARCHAR, race VARCHAR) Answer:
SELECT result FROM table_name_28 WHERE venue = "rosehill" AND race = "todman stakes"
Question: What Country has Player Ky Laffoon? Context: CREATE TABLE table_name_80 (country VARCHAR, player VARCHAR) Answer:
SELECT country FROM table_name_80 WHERE player = "ky laffoon"
Question: What Player is from the Country United States and Money ($) of 356? Context: CREATE TABLE table_name_24 (player VARCHAR, country VARCHAR, money___$__ VARCHAR) Answer:
SELECT player FROM table_name_24 WHERE country = "united states" AND money___$__ = 356
Question: What Player has a To par of +1 and the Score 75-70-71-73=289? Context: CREATE TABLE table_name_10 (player VARCHAR, to_par VARCHAR, score VARCHAR) Answer:
SELECT player FROM table_name_10 WHERE to_par = "+1" AND score = 75 - 70 - 71 - 73 = 289
Question: What was the outcome for the Rome 2, Italy tournament? Context: CREATE TABLE table_name_73 (outcome VARCHAR, tournament VARCHAR) Answer:
SELECT outcome FROM table_name_73 WHERE tournament = "rome 2, italy"
Question: What was the outcome of the match opponents in the final of Marius Călugăru Ciprian Petre Porumb? Context: CREATE TABLE table_name_38 (outcome VARCHAR, opponents_in_the_final VARCHAR) Answer:
SELECT outcome FROM table_name_38 WHERE opponents_in_the_final = "marius călugăru ciprian petre porumb"
Question: How many golds have a Total of 11, and a Bronze smaller than 3? Context: CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, bronze VARCHAR) Answer:
SELECT SUM(gold) FROM table_name_81 WHERE total = 11 AND bronze < 3
Question: How many golds have a Bronze of 0, a Total larger than 1, a Nation of chad, and a Silver larger than 0? Context: CREATE TABLE table_name_34 (gold INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR) Answer:
SELECT SUM(gold) FROM table_name_34 WHERE bronze = 0 AND total > 1 AND nation = "chad" AND silver > 0
Question: What is the smallest silver with a Gold of 1, and a Nation of lithuania? Context: CREATE TABLE table_name_7 (silver INTEGER, gold VARCHAR, nation VARCHAR) Answer:
SELECT MIN(silver) FROM table_name_7 WHERE gold = 1 AND nation = "lithuania"
Question: What is the total bronze with a Gold larger than 1, a Rank of 2, and a Silver smaller than 12? Context: CREATE TABLE table_name_62 (bronze VARCHAR, silver VARCHAR, gold VARCHAR, rank VARCHAR) Answer:
SELECT COUNT(bronze) FROM table_name_62 WHERE gold > 1 AND rank = 2 AND silver < 12
Question: Which Visiting Team is on december 23? Context: CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR) Answer:
SELECT visiting_team FROM table_name_59 WHERE date = "december 23"
Question: Which Host Team has Final Score of 42-23? Context: CREATE TABLE table_name_86 (host_team VARCHAR, final_score VARCHAR) Answer:
SELECT host_team FROM table_name_86 WHERE final_score = "42-23"
Question: When did Final Score of 31-7 happen? Context: CREATE TABLE table_name_64 (date VARCHAR, final_score VARCHAR) Answer:
SELECT date FROM table_name_64 WHERE final_score = "31-7"
Question: Which Tournament in 2010 also has Grand Slam tournaments in 2011 Context: CREATE TABLE table_name_74 (Id VARCHAR) Answer:
SELECT 2010 FROM table_name_74 WHERE 2011 = "grand slam tournaments"
Question: What was the average attendance when the New York Mets were opponents with a record of 51-33? Context: CREATE TABLE table_name_81 (attendance INTEGER, opponent VARCHAR, record VARCHAR) Answer:
SELECT AVG(attendance) FROM table_name_81 WHERE opponent = "new york mets" AND record = "51-33"
Question: What visiting team played on October 18? Context: CREATE TABLE table_name_36 (visiting_team VARCHAR, date VARCHAR) Answer:
SELECT visiting_team FROM table_name_36 WHERE date = "october 18"
Question: What visiting team played at 3com park on October 7? Context: CREATE TABLE table_name_49 (visiting_team VARCHAR, stadium VARCHAR, date VARCHAR) Answer:
SELECT visiting_team FROM table_name_49 WHERE stadium = "3com park" AND date = "october 7"
Question: Which host team won on a final scoreline of 13-10? Context: CREATE TABLE table_name_55 (host_team VARCHAR, final_score VARCHAR) Answer:
SELECT host_team FROM table_name_55 WHERE final_score = "13-10"
Question: In what stadium did a game result in a final scoreline reading 27-34? Context: CREATE TABLE table_name_30 (stadium VARCHAR, final_score VARCHAR) Answer:
SELECT stadium FROM table_name_30 WHERE final_score = "27-34"
Question: In the game in which the Jacksonville Jaguars were hosts, what was the name of the visiting team? Context: CREATE TABLE table_name_92 (visiting_team VARCHAR, host_team VARCHAR) Answer:
SELECT visiting_team FROM table_name_92 WHERE host_team = "jacksonville jaguars"
Question: Which visiting team wound up with a final score of 18-40? Context: CREATE TABLE table_name_77 (visiting_team VARCHAR, final_score VARCHAR) Answer:
SELECT visiting_team FROM table_name_77 WHERE final_score = "18-40"
Question: Name the sum of attendacne for 16 weeks Context: CREATE TABLE table_name_30 (attendance INTEGER, week VARCHAR) Answer:
SELECT SUM(attendance) FROM table_name_30 WHERE week = 16
Question: Name the result for week less than 7 and game sites of los angeles memorial coliseum Context: CREATE TABLE table_name_25 (result VARCHAR, week VARCHAR, game_site VARCHAR) Answer:
SELECT result FROM table_name_25 WHERE week < 7 AND game_site = "los angeles memorial coliseum"
Question: Name the result for week 7 Context: CREATE TABLE table_name_14 (result VARCHAR, week VARCHAR) Answer:
SELECT result FROM table_name_14 WHERE week = 7
Question: How many yards lost by the player with more gained than 51 and average/g of 3.6? Context: CREATE TABLE table_name_97 (loss VARCHAR, avg_g VARCHAR, gain VARCHAR) Answer:
SELECT COUNT(loss) FROM table_name_97 WHERE avg_g = "3.6" AND gain > 51
Question: What are the gains for the player with average of 26.8 and lost yard fewer than 13? Context: CREATE TABLE table_name_43 (gain INTEGER, avg_g VARCHAR, loss VARCHAR) Answer:
SELECT SUM(gain) FROM table_name_43 WHERE avg_g = "26.8" AND loss < 13
Question: When did Mathieu play against Flavio Cipolla? Context: CREATE TABLE table_name_60 (date VARCHAR, opponent_in_the_final VARCHAR) Answer:
SELECT date FROM table_name_60 WHERE opponent_in_the_final = "flavio cipolla"
Question: Which tournament had a final score of 6–3, 6–2? Context: CREATE TABLE table_name_65 (tournament VARCHAR, score_in_the_final VARCHAR) Answer:
SELECT tournament FROM table_name_65 WHERE score_in_the_final = "6–3, 6–2"
Question: On which surface did Mathieu play against Antonio Veić? Context: CREATE TABLE table_name_84 (surface VARCHAR, opponent_in_the_final VARCHAR) Answer:
SELECT surface FROM table_name_84 WHERE opponent_in_the_final = "antonio veić"
Question: When did Mathieu play against Antonio Veić? Context: CREATE TABLE table_name_60 (date VARCHAR, opponent_in_the_final VARCHAR) Answer:
SELECT date FROM table_name_60 WHERE opponent_in_the_final = "antonio veić"
Question: When did Mathieu play against Andrey Golubev? Context: CREATE TABLE table_name_7 (date VARCHAR, opponent_in_the_final VARCHAR) Answer:
SELECT date FROM table_name_7 WHERE opponent_in_the_final = "andrey golubev"
Question: What park opened in 1999? Context: CREATE TABLE table_name_48 (park VARCHAR, opened VARCHAR) Answer:
SELECT park FROM table_name_48 WHERE opened = "1999"
Question: Name the record for detroit and decision of denis Context: CREATE TABLE table_name_39 (record VARCHAR, home VARCHAR, decision VARCHAR) Answer:
SELECT record FROM table_name_39 WHERE home = "detroit" AND decision = "denis"
Question: Name the average attendance with dallas visitor Context: CREATE TABLE table_name_78 (attendance INTEGER, visitor VARCHAR) Answer:
SELECT AVG(attendance) FROM table_name_78 WHERE visitor = "dallas"
Question: How close to par was Tom Kite when he played? Context: CREATE TABLE table_name_29 (to_par VARCHAR, player VARCHAR) Answer:
SELECT to_par FROM table_name_29 WHERE player = "tom kite"
Question: Which of the countries showed a score of 71-72=143? Context: CREATE TABLE table_name_8 (country VARCHAR, score VARCHAR) Answer:
SELECT country FROM table_name_8 WHERE score = 71 - 72 = 143
Question: Which country watch Tom Watson at t9 score 72-72=144? Context: CREATE TABLE table_name_44 (country VARCHAR, player VARCHAR, place VARCHAR, score VARCHAR) Answer:
SELECT country FROM table_name_44 WHERE place = "t9" AND score = 72 - 72 = 144 AND player = "tom watson"
Question: What was the final score when the player was an e to par? Context: CREATE TABLE table_name_97 (score VARCHAR, to_par VARCHAR) Answer:
SELECT score FROM table_name_97 WHERE to_par = "e"
Question: What is the name of the team that has 307 attempts? Context: CREATE TABLE table_name_7 (team VARCHAR, attempts VARCHAR) Answer:
SELECT team FROM table_name_7 WHERE attempts = "307"
Question: What is the name of the team that has 1,317 attempts? Context: CREATE TABLE table_name_8 (team VARCHAR, attempts VARCHAR) Answer:
SELECT team FROM table_name_8 WHERE attempts = "1,317"
Question: What year was 2,242 yards achieved? Context: CREATE TABLE table_name_68 (year VARCHAR, yards VARCHAR) Answer:
SELECT year FROM table_name_68 WHERE yards = "2,242"
Question: Which team has a 59.8% completion rate? Context: CREATE TABLE table_name_16 (team VARCHAR, completion__percentage VARCHAR) Answer:
SELECT team FROM table_name_16 WHERE completion__percentage = "59.8%"
Question: Which year has has a Engine of maserati straight-6? Context: CREATE TABLE table_name_31 (year VARCHAR, engine VARCHAR) Answer:
SELECT COUNT(year) FROM table_name_31 WHERE engine = "maserati straight-6"
Question: What is the Point of Chassis of Lancia d50 in 1954 Context: CREATE TABLE table_name_91 (points VARCHAR, chassis VARCHAR, year VARCHAR) Answer:
SELECT points FROM table_name_91 WHERE chassis = "lancia d50" AND year = 1954
Question: What is the match total for a score over 299 and under 412 innings? Context: CREATE TABLE table_name_26 (matches INTEGER, high_score VARCHAR, innings VARCHAR) Answer:
SELECT SUM(matches) FROM table_name_26 WHERE high_score = "299" AND innings < 412
Question: What is the high run total associated with a high score of 385 and under 407 innings? Context: CREATE TABLE table_name_96 (runs INTEGER, high_score VARCHAR, innings VARCHAR) Answer:
SELECT MAX(runs) FROM table_name_96 WHERE high_score = "385" AND innings < 407
Question: What Team 1 has union douala as Team 2? Context: CREATE TABLE table_name_46 (team_1 VARCHAR, team_2 VARCHAR) Answer:
SELECT team_1 FROM table_name_46 WHERE team_2 = "union douala"
Question: What was the score of the game that had a loss of Cerutti (0-1)? Context: CREATE TABLE table_name_91 (score VARCHAR, loss VARCHAR) Answer:
SELECT score FROM table_name_91 WHERE loss = "cerutti (0-1)"
Question: Who was the opponent at the game that had a record of 93-54? Context: CREATE TABLE table_name_73 (opponent VARCHAR, record VARCHAR) Answer:
SELECT opponent FROM table_name_73 WHERE record = "93-54"
Question: What was the score to par for 156 strokes? Context: CREATE TABLE table_name_37 (to_par VARCHAR, total INTEGER) Answer:
SELECT COUNT(to_par) FROM table_name_37 WHERE total > 156
Question: How many strokes for arnold palmer with a to par of greater than 9? Context: CREATE TABLE table_name_69 (total INTEGER, to_par VARCHAR, player VARCHAR) Answer:
SELECT AVG(total) FROM table_name_69 WHERE to_par > 9 AND player = "arnold palmer"
Question: What was the score to par in 1960? Context: CREATE TABLE table_name_74 (to_par VARCHAR, year_s__won VARCHAR) Answer:
SELECT to_par FROM table_name_74 WHERE year_s__won = "1960"
Question: What is the earliest first game for a rugby team that has 7 lost games and 0 draws? Context: CREATE TABLE table_name_78 (first_game INTEGER, lost VARCHAR, drawn VARCHAR) Answer:
SELECT MIN(first_game) FROM table_name_78 WHERE lost = 7 AND drawn < 0
Question: How many games were played by a team that won 0.00% of their games and 0 draws? Context: CREATE TABLE table_name_55 (played INTEGER, percentage VARCHAR, drawn VARCHAR) Answer:
SELECT SUM(played) FROM table_name_55 WHERE percentage = "0.00%" AND drawn < 0
Question: Name the 1st match for brisbane bears Context: CREATE TABLE table_name_61 (team VARCHAR) Answer:
SELECT 1 AS st_match FROM table_name_61 WHERE team = "brisbane bears"
Question: Name the lost for matches of 1 928 Context: CREATE TABLE table_name_66 (lost VARCHAR, matches VARCHAR) Answer:
SELECT lost FROM table_name_66 WHERE matches = "1 928"
Question: Name the lost for % won of 55.37 Context: CREATE TABLE table_name_64 (lost VARCHAR, _percentage_won VARCHAR) Answer:
SELECT lost FROM table_name_64 WHERE _percentage_won = "55.37"
Question: Name the matches for gold coast Context: CREATE TABLE table_name_11 (matches VARCHAR, team VARCHAR) Answer:
SELECT matches FROM table_name_11 WHERE team = "gold coast"
Question: Name the lost for % won of 55.37 Context: CREATE TABLE table_name_46 (lost VARCHAR, _percentage_won VARCHAR) Answer:
SELECT lost FROM table_name_46 WHERE _percentage_won = "55.37"
Question: What is the year when cable was 4.6%? Context: CREATE TABLE table_name_99 (year VARCHAR, cable VARCHAR) Answer:
SELECT year FROM table_name_99 WHERE cable = "4.6%"
Question: What is the other for 2012? Context: CREATE TABLE table_name_54 (other VARCHAR, year VARCHAR) Answer:
SELECT other FROM table_name_54 WHERE year = "2012"
Question: What is the xDSL for the other of 0.6% and FTTx of 35.4%? Context: CREATE TABLE table_name_1 (xdsl VARCHAR, other VARCHAR, fttx VARCHAR) Answer:
SELECT xdsl FROM table_name_1 WHERE other = "0.6%" AND fttx = "35.4%"
Question: What is the other for a 78.2% xDSL? Context: CREATE TABLE table_name_15 (other VARCHAR, xdsl VARCHAR) Answer:
SELECT other FROM table_name_15 WHERE xdsl = "78.2%"
Question: What is the xDSL in 2010 when the other was 0.6%? Context: CREATE TABLE table_name_55 (xdsl VARCHAR, other VARCHAR, year VARCHAR) Answer:
SELECT xdsl FROM table_name_55 WHERE other = "0.6%" AND year = "2010"
Question: Which date has a Result of won, and a Score of 1-0? Context: CREATE TABLE table_name_23 (date VARCHAR, result VARCHAR, score VARCHAR) Answer:
SELECT date FROM table_name_23 WHERE result = "won" AND score = "1-0"
Question: Which result has a Date of november 2, 2007? Context: CREATE TABLE table_name_86 (result VARCHAR, date VARCHAR) Answer:
SELECT result FROM table_name_86 WHERE date = "november 2, 2007"
Question: Which Competition has a Score of 2-0? Context: CREATE TABLE table_name_7 (competition VARCHAR, score VARCHAR) Answer:
SELECT competition FROM table_name_7 WHERE score = "2-0"
Question: Which Venue has a Date of january 9, 2011? Context: CREATE TABLE table_name_51 (venue VARCHAR, date VARCHAR) Answer:
SELECT venue FROM table_name_51 WHERE date = "january 9, 2011"
Question: What is the termination of mission date of the representative with a presentation of credentials date on July 4, 1898? Context: CREATE TABLE table_name_58 (termination_of_mission VARCHAR, presentation_of_credentials VARCHAR) Answer:
SELECT termination_of_mission FROM table_name_58 WHERE presentation_of_credentials = "july 4, 1898"
Question: What is the presentation of credentials date of raúl h. castro, who has a title of ambassador extraordinary and plenipotentiary? Context: CREATE TABLE table_name_7 (presentation_of_credentials VARCHAR, title VARCHAR, representative VARCHAR) Answer:
SELECT presentation_of_credentials FROM table_name_7 WHERE title = "ambassador extraordinary and plenipotentiary" AND representative = "raúl h. castro"
Question: Who is the representative with a presentation of credentials date on February 23, 1854? Context: CREATE TABLE table_name_32 (representative VARCHAR, presentation_of_credentials VARCHAR) Answer:
SELECT representative FROM table_name_32 WHERE presentation_of_credentials = "february 23, 1854"
Question: What is the title of the representative appointed by James K. Polk? Context: CREATE TABLE table_name_52 (title VARCHAR, appointed_by VARCHAR) Answer:
SELECT title FROM table_name_52 WHERE appointed_by = "james k. polk"
Question: What is the termination of mission date of the representative appointed by Franklin Pierce with a title of chargé d'affaires? Context: CREATE TABLE table_name_37 (termination_of_mission VARCHAR, appointed_by VARCHAR, title VARCHAR) Answer:
SELECT termination_of_mission FROM table_name_37 WHERE appointed_by = "franklin pierce" AND title = "chargé d'affaires"