answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT transfer_fee FROM table_name_27 WHERE name = "damia"
CREATE TABLE table_name_27 (transfer_fee VARCHAR, name VARCHAR)
Name the transfer fee for damia
SELECT moving_to FROM table_name_24 WHERE transfer_fee = "free" AND status = "transfer" AND name = "rodri"
CREATE TABLE table_name_24 (moving_to VARCHAR, name VARCHAR, transfer_fee VARCHAR, status VARCHAR)
Name the moving to with a transfer fee of free with a transfer status for rodri
SELECT date FROM table_name_23 WHERE venue = "western oval"
CREATE TABLE table_name_23 (date VARCHAR, venue VARCHAR)
When was the game played at the Western Oval venue?
SELECT livery FROM table_name_33 WHERE serial_no = "83-1010"
CREATE TABLE table_name_33 (livery VARCHAR, serial_no VARCHAR)
What is the livery of the locomotive with a serial number 83-1010?
SELECT livery FROM table_name_86 WHERE serial_no = "83-1011"
CREATE TABLE table_name_86 (livery VARCHAR, serial_no VARCHAR)
What is the livery on the locomotive with a serial number 83-1011?
SELECT locomotive FROM table_name_74 WHERE gauge = "standard" AND serial_no = "83-1015"
CREATE TABLE table_name_74 (locomotive VARCHAR, gauge VARCHAR, serial_no VARCHAR)
What is the locomotive with a standard gauge and a serial number of 83-1015?
SELECT entered_service FROM table_name_76 WHERE gauge = "broad" AND serial_no = "83-1018"
CREATE TABLE table_name_76 (entered_service VARCHAR, gauge VARCHAR, serial_no VARCHAR)
What is the date of entered service for the locomotive with a broad gauge and a serial no of 83-1018?
SELECT venue FROM table_name_13 WHERE date = "october 16, 1996"
CREATE TABLE table_name_13 (venue VARCHAR, date VARCHAR)
What was the venue on October 16, 1996?
SELECT score FROM table_name_58 WHERE result = "win" AND competition = "1998 fifa world cup qualification" AND date = "october 30, 1996"
CREATE TABLE table_name_58 (score VARCHAR, date VARCHAR, result VARCHAR, competition VARCHAR)
What's the score at the October 30, 1996 1998 fifa world cup qualification with a result of win?
SELECT date FROM table_name_37 WHERE competition = "friendship cup"
CREATE TABLE table_name_37 (date VARCHAR, competition VARCHAR)
When was the friendship cup?
SELECT MIN(cars_per_set) FROM table_name_88 WHERE year_built = "1977-1979" AND number > 32
CREATE TABLE table_name_88 (cars_per_set INTEGER, year_built VARCHAR, number VARCHAR)
What is the smallest number for Cars per Set built in 1977-1979 larger than 32?
SELECT MAX(number) FROM table_name_30 WHERE cars_per_set < 9
CREATE TABLE table_name_30 (number INTEGER, cars_per_set INTEGER)
What is the largest number of cars per set that is less than 9?
SELECT year_built FROM table_name_10 WHERE class = "class 253" AND number > 18
CREATE TABLE table_name_10 (year_built VARCHAR, class VARCHAR, number VARCHAR)
What year was the class 253 larger than 18 built?
SELECT margin FROM table_name_34 WHERE championship = "masters tournament (2)"
CREATE TABLE table_name_34 (margin VARCHAR, championship VARCHAR)
What is the margin for the Masters Tournament (2) championship?
SELECT 54 AS _holes FROM table_name_33 WHERE runner_s__up = "phil mickelson"
CREATE TABLE table_name_33 (runner_s__up VARCHAR)
What is the round of 54 holes in which Phil Mickelson was the runner-up?
SELECT home FROM table_name_27 WHERE date = "april 14"
CREATE TABLE table_name_27 (home VARCHAR, date VARCHAR)
What is the home team of the April 14 game?
SELECT date FROM table_name_23 WHERE visitor = "detroit"
CREATE TABLE table_name_23 (date VARCHAR, visitor VARCHAR)
What is the date of the game with Detroit as the visitor team?
SELECT viewers__m_ FROM table_name_73 WHERE share = 1 AND rating > 0.7000000000000001 AND rank___number_ = "100/102"
CREATE TABLE table_name_73 (viewers__m_ VARCHAR, rank___number_ VARCHAR, share VARCHAR, rating VARCHAR)
How many vieweres for the episode with a share of 1, a Rating larger than 0.7000000000000001, and a Rank (#) of 100/102?
SELECT lead_tpt FROM table_name_68 WHERE bass = "kevin tomanka" AND alto_1 = "alan moffett"
CREATE TABLE table_name_68 (lead_tpt VARCHAR, bass VARCHAR, alto_1 VARCHAR)
Name the lead tpt for bass of kevin tomanka and alto 1 of alan moffett
SELECT COUNT(crowd) FROM table_name_86 WHERE venue = "moorabbin oval"
CREATE TABLE table_name_86 (crowd VARCHAR, venue VARCHAR)
What was the crowd size at the moorabbin oval venue?
SELECT home_team AS score FROM table_name_28 WHERE away_team = "collingwood"
CREATE TABLE table_name_28 (home_team VARCHAR, away_team VARCHAR)
What did the home team score against the away team collingwood?
SELECT 1 AS _letter FROM table_name_10 WHERE amino_acid = "asparagine"
CREATE TABLE table_name_10 (amino_acid VARCHAR)
what is the 1-letter for the amino acid asparagine?
SELECT away_team AS score FROM table_name_40 WHERE home_team = "north melbourne"
CREATE TABLE table_name_40 (away_team VARCHAR, home_team VARCHAR)
What was home team North Melbourne's opponents score?
SELECT home_team AS score FROM table_name_16 WHERE home_team = "melbourne"
CREATE TABLE table_name_16 (home_team VARCHAR)
What was Melbourne's score as the home team?
SELECT away_team FROM table_name_63 WHERE venue = "junction oval"
CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR)
Who was the away team at Junction Oval?
SELECT usca FROM table_name_67 WHERE total < 14 AND joint_music_award = "1" AND mrhma = "2" AND rthk = "3"
CREATE TABLE table_name_67 (usca VARCHAR, rthk VARCHAR, mrhma VARCHAR, total VARCHAR, joint_music_award VARCHAR)
What is the USCA that's Total is smaller than 14, with 1 Joint Music Award, MRHMA of 2, and RTHK of 3?
SELECT total FROM table_name_99 WHERE joint_music_award = "1" AND rthk = "4" AND usca = "4"
CREATE TABLE table_name_99 (total VARCHAR, usca VARCHAR, joint_music_award VARCHAR, rthk VARCHAR)
What is the Total with a Joint Music Award of 1, RTHK of 4, and USCA of 4?
SELECT joint_music_award FROM table_name_81 WHERE year < 2006 AND rthk = "1"
CREATE TABLE table_name_81 (joint_music_award VARCHAR, year VARCHAR, rthk VARCHAR)
How many Joint Music Awards were there with a RTHK of 1, in a Year before 2006?
SELECT joint_music_award FROM table_name_32 WHERE total > 18 AND year > 2007
CREATE TABLE table_name_32 (joint_music_award VARCHAR, total VARCHAR, year VARCHAR)
How many Joint Music Awards are there when the Total is larger than 18, in a Year after 2007?
SELECT MIN(lane) FROM table_name_47 WHERE semi = 49.19
CREATE TABLE table_name_47 (lane INTEGER, semi VARCHAR)
Which lane did the athlete swim in who had a semi-final time of 49.19?
SELECT species FROM table_name_70 WHERE gender = "male"
CREATE TABLE table_name_70 (species VARCHAR, gender VARCHAR)
Which species is male?
SELECT home_team AS score FROM table_name_71 WHERE venue = "junction oval"
CREATE TABLE table_name_71 (home_team VARCHAR, venue VARCHAR)
What was the home teams score at Junction Oval?
SELECT president FROM table_name_6 WHERE presidency > 7
CREATE TABLE table_name_6 (president VARCHAR, presidency INTEGER)
What President has a Presidency greater than 7?
SELECT MAX(presidency) FROM table_name_8 WHERE left_office = "1998" AND took_office > 1974
CREATE TABLE table_name_8 (presidency INTEGER, left_office VARCHAR, took_office VARCHAR)
What is the highest Presidency that Took Office after 1974 and Left Office in 1998?
SELECT SUM(took_office) FROM table_name_42 WHERE left_office = "incumbent"
CREATE TABLE table_name_42 (took_office INTEGER, left_office VARCHAR)
What is the Took Office Date of the Presidency that Left Office Incumbent?
SELECT MAX(took_office) FROM table_name_22 WHERE left_office = "1998"
CREATE TABLE table_name_22 (took_office INTEGER, left_office VARCHAR)
What was the greatest Took Office dates that Left Office in 1998?
SELECT AVG(laps) FROM table_name_76 WHERE driver = "andrea de cesaris"
CREATE TABLE table_name_76 (laps INTEGER, driver VARCHAR)
What is the average Laps for andrea de cesaris?
SELECT MIN(grid) FROM table_name_81 WHERE laps > 51 AND driver = "jj lehto"
CREATE TABLE table_name_81 (grid INTEGER, laps VARCHAR, driver VARCHAR)
What is the lowest Grid for jj lehto with over 51 laps?
SELECT AVG(grid) FROM table_name_83 WHERE time_retired = "+2 laps" AND laps < 51
CREATE TABLE table_name_83 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
What is the average Grid that has a Time/Retired of +2 laps, and under 51 laps?
SELECT home_team FROM table_name_48 WHERE venue = "victoria park"
CREATE TABLE table_name_48 (home_team VARCHAR, venue VARCHAR)
What's the Home teams Venue near Victoria Park?
SELECT crowd FROM table_name_33 WHERE home_team = "footscray"
CREATE TABLE table_name_33 (crowd VARCHAR, home_team VARCHAR)
What is the Home team with a crowd relevant to footscray?
SELECT record FROM table_name_91 WHERE home = "nashville"
CREATE TABLE table_name_91 (record VARCHAR, home VARCHAR)
What is the team's record when they play nashville at home?
SELECT decision FROM table_name_22 WHERE visitor = "phoenix"
CREATE TABLE table_name_22 (decision VARCHAR, visitor VARCHAR)
What is the decision when they're at phoenix?
SELECT score FROM table_name_66 WHERE tournament = "frankfurt"
CREATE TABLE table_name_66 (score VARCHAR, tournament VARCHAR)
What was the score in the Tournament of Frankfurt?
SELECT winner FROM table_name_56 WHERE tournament = "graz-seiersberg"
CREATE TABLE table_name_56 (winner VARCHAR, tournament VARCHAR)
Who was the winner in the Tournament of Graz-Seiersberg?
SELECT third_place FROM table_name_68 WHERE winner = "paul haarhuis"
CREATE TABLE table_name_68 (third_place VARCHAR, winner VARCHAR)
Who earned third place when the winner was Paul Haarhuis?
SELECT MAX(laps) FROM table_name_35 WHERE time_retired = "differential" AND grid > 2
CREATE TABLE table_name_35 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
what is the most laps with the time/retired is differential and the grid is more than 2?
SELECT MIN(laps) FROM table_name_94 WHERE grid = 5
CREATE TABLE table_name_94 (laps INTEGER, grid VARCHAR)
what is the least laps when the grid is 5?
SELECT deleted FROM table_name_8 WHERE name = "anniston army depot (se industrial area)"
CREATE TABLE table_name_8 (deleted VARCHAR, name VARCHAR)
On what date was Anniston Army Depot (SE Industrial Area) deleted?
SELECT county FROM table_name_68 WHERE listed = "09/21/1984" AND construction_completed = "07/19/2000"
CREATE TABLE table_name_68 (county VARCHAR, listed VARCHAR, construction_completed VARCHAR)
In what county is the entry that has a Construction Completed date of 07/19/2000 and a Listed date of 09/21/1984 located?
SELECT deleted FROM table_name_35 WHERE listed = "09/21/1984" AND name = "stauffer chemical company (lemoyne plant)"
CREATE TABLE table_name_35 (deleted VARCHAR, listed VARCHAR, name VARCHAR)
On what date was Stauffer Chemical Company (Lemoyne Plant), which was listed on 09/21/1984, deleted?
SELECT proposed FROM table_name_56 WHERE cerclis_id = "al0001058056"
CREATE TABLE table_name_56 (proposed VARCHAR, cerclis_id VARCHAR)
What was the Proposed date of the entry that has a CERCLIS ID of al0001058056?
SELECT first_appearance FROM table_name_60 WHERE year = 1966 AND name = "x-2-y"
CREATE TABLE table_name_60 (first_appearance VARCHAR, year VARCHAR, name VARCHAR)
What first appeared in 1966 in the comic X-2-Y?
SELECT team FROM table_name_75 WHERE sport = "baseball" AND class = "aaa"
CREATE TABLE table_name_75 (team VARCHAR, sport VARCHAR, class VARCHAR)
Which baseball team is class AAA?
SELECT venue FROM table_name_55 WHERE away_team = "collingwood"
CREATE TABLE table_name_55 (venue VARCHAR, away_team VARCHAR)
Where does Collingwood play their games?
SELECT position FROM table_name_20 WHERE player = "robert nkemdiche"
CREATE TABLE table_name_20 (position VARCHAR, player VARCHAR)
Which position does Robert Nkemdiche play?
SELECT college FROM table_name_59 WHERE player = "reuben foster"
CREATE TABLE table_name_59 (college VARCHAR, player VARCHAR)
What is Reuben Foster's college?
SELECT position FROM table_name_68 WHERE hometown = "muscle shoals, alabama"
CREATE TABLE table_name_68 (position VARCHAR, hometown VARCHAR)
Which position does the player from Muscle Shoals, Alabama play?
SELECT player FROM table_name_43 WHERE college = "virginia"
CREATE TABLE table_name_43 (player VARCHAR, college VARCHAR)
Which player is attending college at Virginia?
SELECT player FROM table_name_94 WHERE school = "hoover high school"
CREATE TABLE table_name_94 (player VARCHAR, school VARCHAR)
Which player attended Hoover High School?
SELECT record FROM table_name_58 WHERE opponent = "giants" AND date = "may 12"
CREATE TABLE table_name_58 (record VARCHAR, opponent VARCHAR, date VARCHAR)
What is the team's record on may 12 when they play the giants?
SELECT attendance FROM table_name_32 WHERE visitor = "san jose" AND date = "may 4"
CREATE TABLE table_name_32 (attendance VARCHAR, visitor VARCHAR, date VARCHAR)
What is the attendance at the game where San Jose was the visitor on May 4?
SELECT home FROM table_name_30 WHERE date = "may 2"
CREATE TABLE table_name_30 (home VARCHAR, date VARCHAR)
Who was the home team on the May 2 game?
SELECT date FROM table_name_56 WHERE crowd > 20 OFFSET 000
CREATE TABLE table_name_56 (date VARCHAR, crowd INTEGER)
What date is the crowd larger than 20,000?
SELECT record FROM table_name_85 WHERE score = "11-10"
CREATE TABLE table_name_85 (record VARCHAR, score VARCHAR)
What was the record when the score was 11-10?
SELECT record FROM table_name_9 WHERE attendance = "22,713"
CREATE TABLE table_name_9 (record VARCHAR, attendance VARCHAR)
What was the record when the attendance was 22,713?
SELECT attendance FROM table_name_14 WHERE record = "49-61"
CREATE TABLE table_name_14 (attendance VARCHAR, record VARCHAR)
What was the attendance at the game when the record was 49-61?
SELECT date FROM table_name_24 WHERE opponent = "detroit tigers" AND attendance = "38,639"
CREATE TABLE table_name_24 (date VARCHAR, opponent VARCHAR, attendance VARCHAR)
On what date was there a game in which the opponent was the Detroit Tigers, and the attendance was 38,639?
SELECT software FROM table_name_78 WHERE cost___usd__ = "free" AND latest_stable_date__version_ = "1.1"
CREATE TABLE table_name_78 (software VARCHAR, cost___usd__ VARCHAR, latest_stable_date__version_ VARCHAR)
What is the free sotware with the latest stable date version of 1.1?
SELECT software FROM table_name_87 WHERE latest_stable_date__version_ = "0.6.1"
CREATE TABLE table_name_87 (software VARCHAR, latest_stable_date__version_ VARCHAR)
Name the software with the latest stable date of 0.6.1
SELECT cost___usd__ FROM table_name_48 WHERE latest_stable_date__version_ = "online"
CREATE TABLE table_name_48 (cost___usd__ VARCHAR, latest_stable_date__version_ VARCHAR)
Name the cost for latest stable date of online
SELECT birth_place FROM table_name_83 WHERE monarchs_served = "george v" AND entered_office = "23 october 1922"
CREATE TABLE table_name_83 (birth_place VARCHAR, monarchs_served VARCHAR, entered_office VARCHAR)
What is the birth place of the prime minister who served George V and entered office on 23 October 1922?
SELECT political_party FROM table_name_5 WHERE monarchs_served = "george v" AND birth_place = "manchester"
CREATE TABLE table_name_5 (political_party VARCHAR, monarchs_served VARCHAR, birth_place VARCHAR)
To which political party did the prime minister who served under George V and was born in Manchester belong?
SELECT left_office FROM table_name_49 WHERE entered_office = "7 december 1916"
CREATE TABLE table_name_49 (left_office VARCHAR, entered_office VARCHAR)
What date did the prime minister who entered office on 7 December 1916 leave office?
SELECT monarchs_served FROM table_name_18 WHERE name = "stanley baldwin (1st ministry)"
CREATE TABLE table_name_18 (monarchs_served VARCHAR, name VARCHAR)
What monarch(s) did Stanley Baldwin (1st ministry) serve?
SELECT date FROM table_name_60 WHERE game_site = "rich stadium"
CREATE TABLE table_name_60 (date VARCHAR, game_site VARCHAR)
What is the date of the game played at rich stadium?
SELECT college FROM table_name_38 WHERE player = "chito victolero"
CREATE TABLE table_name_38 (college VARCHAR, player VARCHAR)
What college has Chito Victolero?
SELECT college FROM table_name_43 WHERE player = "jojo manalo"
CREATE TABLE table_name_43 (college VARCHAR, player VARCHAR)
What college has Jojo Manalo?
SELECT COUNT(pick) FROM table_name_52 WHERE college = "perpetual help" AND pba_team = "coca-cola tigers"
CREATE TABLE table_name_52 (pick VARCHAR, college VARCHAR, pba_team VARCHAR)
What is the pick number for the College of Perpetual help with the Coca-Cola Tigers as a PBA team?
SELECT score FROM table_name_50 WHERE date = "may 5"
CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR)
What is the score of the game on May 5?
SELECT record FROM table_name_1 WHERE attendance = "18,084"
CREATE TABLE table_name_1 (record VARCHAR, attendance VARCHAR)
What is the record of the game with 18,084 in attendance?
SELECT record FROM table_name_36 WHERE date = "may 30"
CREATE TABLE table_name_36 (record VARCHAR, date VARCHAR)
What is the record of the game on May 30?
SELECT third_place FROM table_name_34 WHERE tournament = "zurich"
CREATE TABLE table_name_34 (third_place VARCHAR, tournament VARCHAR)
Who won third place in the Zurich Tournament?
SELECT winner FROM table_name_79 WHERE score = "7–6 (7–3) , 2–6, [10–6]"
CREATE TABLE table_name_79 (winner VARCHAR, score VARCHAR)
Who was the winner with a score of 7–6 (7–3) , 2–6, [10–6]?
SELECT tournament FROM table_name_23 WHERE winner = "thomas enqvist"
CREATE TABLE table_name_23 (tournament VARCHAR, winner VARCHAR)
Which tournament did Thomas Enqvist win?
SELECT tournament FROM table_name_59 WHERE runner_up = "tim henman"
CREATE TABLE table_name_59 (tournament VARCHAR, runner_up VARCHAR)
Which tournament was Tim Henman the runner-up in?
SELECT venue FROM table_name_40 WHERE runs = "153"
CREATE TABLE table_name_40 (venue VARCHAR, runs VARCHAR)
What is the venue where 153 runs were scored?
SELECT partnerships FROM table_name_17 WHERE versus = "namibia" AND runs = "166*"
CREATE TABLE table_name_17 (partnerships VARCHAR, versus VARCHAR, runs VARCHAR)
What is the partnership in the game with 166* runs and an opponent of Namibia?
SELECT date FROM table_name_66 WHERE versus = "south africa" AND wicket = "2nd"
CREATE TABLE table_name_66 (date VARCHAR, versus VARCHAR, wicket VARCHAR)
What is the date of the game against South Africa and 2nd wickets?
SELECT away_team FROM table_name_79 WHERE date = "11 june 1966" AND home_team = "carlton"
CREATE TABLE table_name_79 (away_team VARCHAR, date VARCHAR, home_team VARCHAR)
Who was the Away team that played at Carlton on 11 June 1966?
SELECT MIN(crowd) FROM table_name_93 WHERE home_team = "carlton"
CREATE TABLE table_name_93 (crowd INTEGER, home_team VARCHAR)
What was the smallest crowd at a home game of carlton?
SELECT title FROM table_name_43 WHERE year = "n.m."
CREATE TABLE table_name_43 (title VARCHAR, year VARCHAR)
What's the title for year n.m.?
SELECT language FROM table_name_87 WHERE translator = "ritah meltser and amatsyah porat"
CREATE TABLE table_name_87 (language VARCHAR, translator VARCHAR)
What is the language for translators ritah meltser and amatsyah porat?
SELECT MIN(pages) FROM table_name_39 WHERE title = "al-jiniral fi matahatihi"
CREATE TABLE table_name_39 (pages INTEGER, title VARCHAR)
What's the fewest number of pages for the title al-jiniral fi matahatihi?
SELECT date FROM table_name_99 WHERE name = "zouave"
CREATE TABLE table_name_99 (date VARCHAR, name VARCHAR)
What is the date for Zouave?
SELECT date FROM table_name_39 WHERE name = "granville"
CREATE TABLE table_name_39 (date VARCHAR, name VARCHAR)
What is the date for the name of Granville?
SELECT name FROM table_name_84 WHERE date = "17 march 1943" AND sunk_by = "u-305"
CREATE TABLE table_name_84 (name VARCHAR, date VARCHAR, sunk_by VARCHAR)
What is the name of the ship sunk by U-305 on 17 March 1943?
SELECT date FROM table_name_4 WHERE visitor = "jazz" AND leading_scorer = "mehmet okur (22)"
CREATE TABLE table_name_4 (date VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)
Which date's visitor was jazz, when the leading scorer was Mehmet Okur (22)?
SELECT club FROM table_name_27 WHERE european_cup = "fiba european champion's cup" AND national_cup = "italian cup"
CREATE TABLE table_name_27 (club VARCHAR, european_cup VARCHAR, national_cup VARCHAR)
What Club has Fiba European Champion's Cup and an Italian Cup?
SELECT european_cup FROM table_name_24 WHERE national_league = "israeli premier league"
CREATE TABLE table_name_24 (european_cup VARCHAR, national_league VARCHAR)
What European Cup is in Israeli Premier League?