answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT locomotive_type FROM table_name_93 WHERE name = "winston churchill"
CREATE TABLE table_name_93 (locomotive_type VARCHAR, name VARCHAR)
What kind of locomotive is Winston Churchill?
SELECT COUNT(drawn) FROM table_name_49 WHERE points < 23 AND lost = 6 AND against > 21
CREATE TABLE table_name_49 (drawn VARCHAR, against VARCHAR, points VARCHAR, lost VARCHAR)
How many draws were there when there were points less than 23, 6 losses, and more than 21 against?
SELECT MIN(drawn) FROM table_name_38 WHERE position < 7 AND against = 19
CREATE TABLE table_name_38 (drawn INTEGER, position VARCHAR, against VARCHAR)
What is the smallest amount of draws when the position is less than 7 and the against is 19?
SELECT MAX(played) FROM table_name_97 WHERE team = "fluminense"
CREATE TABLE table_name_97 (played INTEGER, team VARCHAR)
What is the highest amount of plays for fluminense?
SELECT MIN(points) FROM table_name_43 WHERE lost < 4 AND against < 16
CREATE TABLE table_name_43 (points INTEGER, lost VARCHAR, against VARCHAR)
What is the least amount of points when there were less than 4 losses and less than 16 against?
SELECT developer FROM table_name_97 WHERE publisher = "rockstar games"
CREATE TABLE table_name_97 (developer VARCHAR, publisher VARCHAR)
Who does Rockstar Games use as a developer?
SELECT release_date FROM table_name_18 WHERE publisher = "microsoft game studios" AND title = "amped: freestyle snowboarding"
CREATE TABLE table_name_18 (release_date VARCHAR, publisher VARCHAR, title VARCHAR)
When Did Microsoft Game Studios release Amped: Freestyle Snowboarding?
SELECT score FROM table_name_52 WHERE home = "quebec nordiques" AND visitor = "vancouver blazers" AND date = "february 28"
CREATE TABLE table_name_52 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)
Which Score has a Home of quebec nordiques, and a Visitor of vancouver blazers on february 28?
SELECT date FROM table_name_5 WHERE visitor = "new england whalers" AND record = "9–9–1"
CREATE TABLE table_name_5 (date VARCHAR, visitor VARCHAR, record VARCHAR)
When has a Visitor of new england whalers, and a Record of 9–9–1? Question 2
SELECT home FROM table_name_62 WHERE visitor = "quebec nordiques" AND score = "3–4" AND record = "8–8–1"
CREATE TABLE table_name_62 (home VARCHAR, record VARCHAR, visitor VARCHAR, score VARCHAR)
Which Home has a Visitor of quebec nordiques, and a Score of 3–4, and a Record of 8–8–1?
SELECT score FROM table_name_16 WHERE record = "31–28–3"
CREATE TABLE table_name_16 (score VARCHAR, record VARCHAR)
WHich Score has a Record of 31–28–3?
SELECT date FROM table_name_94 WHERE score = "4–5" AND record = "21–21–3"
CREATE TABLE table_name_94 (date VARCHAR, score VARCHAR, record VARCHAR)
When has Score of 4–5, and a Record of 21–21–3?
SELECT score FROM table_name_69 WHERE record = "24–23–3"
CREATE TABLE table_name_69 (score VARCHAR, record VARCHAR)
What is the Score of a Record 24–23–3?
SELECT games FROM table_name_24 WHERE event = "men's 5000 m" AND medal = "gold"
CREATE TABLE table_name_24 (games VARCHAR, event VARCHAR, medal VARCHAR)
During which games did Tunisia win gold in the men's 5000 m?
SELECT medal FROM table_name_68 WHERE event = "men's light welterweight" AND games = "1996 atlanta"
CREATE TABLE table_name_68 (medal VARCHAR, event VARCHAR, games VARCHAR)
What medal was won in the men's light welterweight event at the 1996 Atlanta games?
SELECT games FROM table_name_59 WHERE medal = "bronze" AND event = "men's 1500 m freestyle"
CREATE TABLE table_name_59 (games VARCHAR, medal VARCHAR, event VARCHAR)
At which games did Tunisia win a bronze in the men's 1500 m freestyle?
SELECT medal FROM table_name_53 WHERE event = "men's 5000 m"
CREATE TABLE table_name_53 (medal VARCHAR, event VARCHAR)
What medal was won in the men's 5000 m event?
SELECT COUNT(draw) FROM table_name_9 WHERE artist = "jan johansen" AND points < 107
CREATE TABLE table_name_9 (draw VARCHAR, artist VARCHAR, points VARCHAR)
What is the draw with less than 107 points by the artist Jan Johansen?
SELECT AVG(year) FROM table_name_81 WHERE class = "350cc" AND team = "norton" AND points < 0
CREATE TABLE table_name_81 (year INTEGER, points VARCHAR, class VARCHAR, team VARCHAR)
In what Year did the Norton Team have 0 Points and 350cc Class?
SELECT SUM(wins) FROM table_name_47 WHERE year < 1960 AND points < 2
CREATE TABLE table_name_47 (wins INTEGER, year VARCHAR, points VARCHAR)
What is the Wins before 1960 with less than 2 Points?
SELECT MIN(year) FROM table_name_86 WHERE wins > 0 AND team = "linto" AND points < 15
CREATE TABLE table_name_86 (year INTEGER, points VARCHAR, wins VARCHAR, team VARCHAR)
What was the earliest Year the Linto Team had less than 15 Points with more than 0 Wins?
SELECT points_for FROM table_name_52 WHERE points_against = "414"
CREATE TABLE table_name_52 (points_for VARCHAR, points_against VARCHAR)
What were the points for a team that 414 points against?
SELECT played FROM table_name_76 WHERE drawn = "1" AND tries_for = "20"
CREATE TABLE table_name_76 (played VARCHAR, drawn VARCHAR, tries_for VARCHAR)
Who was the player that had drawn 1 and tried for 20?
SELECT points_for FROM table_name_78 WHERE points_against = "678"
CREATE TABLE table_name_78 (points_for VARCHAR, points_against VARCHAR)
What were the points for that had a game where there was 678 against?
SELECT points_against FROM table_name_99 WHERE played = "correct as of 2009-05-16"
CREATE TABLE table_name_99 (points_against VARCHAR, played VARCHAR)
What were the points against in a game that was played correct as of 2009-05-16?
SELECT tries_against FROM table_name_35 WHERE club = "llanishen rfc"
CREATE TABLE table_name_35 (tries_against VARCHAR, club VARCHAR)
What was the tries again llanishen rfc?
SELECT drawn FROM table_name_56 WHERE club = "llanishen rfc"
CREATE TABLE table_name_56 (drawn VARCHAR, club VARCHAR)
What was drawn for llanishen rfc?
SELECT AVG(district) FROM table_name_25 WHERE republican = "dan mansell"
CREATE TABLE table_name_25 (district INTEGER, republican VARCHAR)
Which District has a Republican of dan mansell?
SELECT republican FROM table_name_26 WHERE district = 10
CREATE TABLE table_name_26 (republican VARCHAR, district VARCHAR)
Which Republican has a District of 10?
SELECT incumbent FROM table_name_73 WHERE republican = "dan mansell"
CREATE TABLE table_name_73 (incumbent VARCHAR, republican VARCHAR)
Which Incumbent has a Republican of dan mansell?
SELECT democratic FROM table_name_99 WHERE district < 7 AND republican = "dan mansell"
CREATE TABLE table_name_99 (democratic VARCHAR, district VARCHAR, republican VARCHAR)
Which Democratic has a District smaller than 7, and a Republican of dan mansell?
SELECT record FROM table_name_7 WHERE score = "135–134"
CREATE TABLE table_name_7 (record VARCHAR, score VARCHAR)
Which record has a score of 135–134?
SELECT position FROM table_name_80 WHERE date_of_birth__age_ = "2 november 1987"
CREATE TABLE table_name_80 (position VARCHAR, date_of_birth__age_ VARCHAR)
Name the position for the player born 2 november 1987
SELECT club_province FROM table_name_51 WHERE player = "steve borthwick"
CREATE TABLE table_name_51 (club_province VARCHAR, player VARCHAR)
Name the club/province for steve borthwick
SELECT MAX(ratio) FROM table_name_85 WHERE ordinary_value = "84 zolotnik"
CREATE TABLE table_name_85 (ratio INTEGER, ordinary_value VARCHAR)
What is the largest ration with an ordinary value of 84 zolotnik?
SELECT unit FROM table_name_9 WHERE avoirdupois_value = "57.602 gr."
CREATE TABLE table_name_9 (unit VARCHAR, avoirdupois_value VARCHAR)
What unit has an Avoirdupois value of 57.602 gr.?
SELECT translation FROM table_name_10 WHERE unit = "uncia"
CREATE TABLE table_name_10 (translation VARCHAR, unit VARCHAR)
Which translation had a unit of Uncia?
SELECT ordinary_value FROM table_name_56 WHERE metric_value = "29.861 g"
CREATE TABLE table_name_56 (ordinary_value VARCHAR, metric_value VARCHAR)
What ordinary value has a metric value of 29.861 g?
SELECT ordinary_value FROM table_name_64 WHERE russian = "унция"
CREATE TABLE table_name_64 (ordinary_value VARCHAR, russian VARCHAR)
Which ordinary value has a Russian value of унция?
SELECT avoirdupois_value FROM table_name_76 WHERE translation = "grain"
CREATE TABLE table_name_76 (avoirdupois_value VARCHAR, translation VARCHAR)
Which Avoirdupois value is translated to grain?
SELECT turns FROM table_name_35 WHERE city = "san antonio"
CREATE TABLE table_name_35 (turns VARCHAR, city VARCHAR)
What is the number of turns for the City of san antonio?
SELECT state FROM table_name_23 WHERE major_series = "imsa gt" AND track = "new orleans"
CREATE TABLE table_name_23 (state VARCHAR, major_series VARCHAR, track VARCHAR)
What is the State with the imsa gt as the Major Series and a track in new orleans?
SELECT track FROM table_name_34 WHERE turns = "18"
CREATE TABLE table_name_34 (track VARCHAR, turns VARCHAR)
Where is the track located with 18 turns?
SELECT state FROM table_name_38 WHERE major_series = "trans-am" AND city = "grand rapids"
CREATE TABLE table_name_38 (state VARCHAR, major_series VARCHAR, city VARCHAR)
What is the State with the trans-am Major Series in Grand Rapids?
SELECT track FROM table_name_34 WHERE opened = "1992"
CREATE TABLE table_name_34 (track VARCHAR, opened VARCHAR)
Where is the track located that opened in 1992?
SELECT opened FROM table_name_84 WHERE major_series = "nascar"
CREATE TABLE table_name_84 (opened VARCHAR, major_series VARCHAR)
What shows for opened for the Nascar Major Series?
SELECT MIN(fa_cup) FROM table_name_69 WHERE malaysia_cup < 0
CREATE TABLE table_name_69 (fa_cup INTEGER, malaysia_cup INTEGER)
What is the lowest number of FA cups associated with 0 malaysia cups?
SELECT SUM(league) FROM table_name_96 WHERE player = "m patrick maria" AND total < 0
CREATE TABLE table_name_96 (league INTEGER, player VARCHAR, total VARCHAR)
How many league cups for m patrick maria with 0 total?
SELECT MAX(malaysia_cup) FROM table_name_16 WHERE league > 0 AND fa_cup < 0
CREATE TABLE table_name_16 (malaysia_cup INTEGER, league VARCHAR, fa_cup VARCHAR)
What is the highest number of Malaysia Cups for a player with over 0 leagues and under 0 FA cups?
SELECT tournament FROM table_name_5 WHERE host = "sk brann" AND date = "july 29"
CREATE TABLE table_name_5 (tournament VARCHAR, host VARCHAR, date VARCHAR)
What is the tournament on July 29 hosted by SK Brann?
SELECT visitor FROM table_name_13 WHERE date = "july 29"
CREATE TABLE table_name_13 (visitor VARCHAR, date VARCHAR)
Who is the visitor of the match on July 29?
SELECT result FROM table_name_72 WHERE opponent = "phoenix suns"
CREATE TABLE table_name_72 (result VARCHAR, opponent VARCHAR)
What is the game that has the phoenix suns as the opponent played against?
SELECT attendance FROM table_name_4 WHERE visitor = "warriors" AND date = "2007-04-07"
CREATE TABLE table_name_4 (attendance VARCHAR, visitor VARCHAR, date VARCHAR)
What is the attendance of the game on 2007-04-07 with the Warriors as the visitor team?
SELECT date FROM table_name_14 WHERE record = "13-15"
CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR)
What day is their record 13-15?
SELECT opponent FROM table_name_83 WHERE loss = "dickey (0-1)"
CREATE TABLE table_name_83 (opponent VARCHAR, loss VARCHAR)
Who did they play when dickey (0-1) recorded the loss?
SELECT result FROM table_name_14 WHERE game_site = "heinz field" AND record = "2-5"
CREATE TABLE table_name_14 (result VARCHAR, game_site VARCHAR, record VARCHAR)
What is the result of the game of heinz field with a record of 2-5?
SELECT opponent FROM table_name_27 WHERE record = "6-9"
CREATE TABLE table_name_27 (opponent VARCHAR, record VARCHAR)
What opponent has a record of 6-9?
SELECT COUNT(week) FROM table_name_56 WHERE record = "2-1"
CREATE TABLE table_name_56 (week VARCHAR, record VARCHAR)
What is the week with a record of 2-1?
SELECT city_of_license FROM table_name_43 WHERE frequency_mhz < 95.9 AND call_sign = "w223au"
CREATE TABLE table_name_43 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
What City of license has a Frequency MHz smaller than 95.9 with w223au as the call sign?
SELECT call_sign FROM table_name_75 WHERE erp_w = 19
CREATE TABLE table_name_75 (call_sign VARCHAR, erp_w VARCHAR)
What is the Call sign for the ERP W 19?
SELECT fcc_info FROM table_name_96 WHERE erp_w = 2
CREATE TABLE table_name_96 (fcc_info VARCHAR, erp_w VARCHAR)
What FCC info is listed for the ERP W of 2?
SELECT call_sign FROM table_name_93 WHERE erp_w = 80
CREATE TABLE table_name_93 (call_sign VARCHAR, erp_w VARCHAR)
What Call sign shows an ERP W of 80?
SELECT class FROM table_name_50 WHERE erp_w > 2 AND call_sign = "w223au"
CREATE TABLE table_name_50 (class VARCHAR, erp_w VARCHAR, call_sign VARCHAR)
What is the Class for the ERP W of more than 2 and the call sign of w223au?
SELECT loss FROM table_name_23 WHERE date = "july 30"
CREATE TABLE table_name_23 (loss VARCHAR, date VARCHAR)
what team lost on july 30
SELECT sport FROM table_name_21 WHERE date = "february 25, 2011"
CREATE TABLE table_name_21 (sport VARCHAR, date VARCHAR)
What sport was played on February 25, 2011?
SELECT site FROM table_name_55 WHERE date = "september 10, 2010"
CREATE TABLE table_name_55 (site VARCHAR, date VARCHAR)
Where was the sport played on September 10, 2010?
SELECT surface FROM table_name_88 WHERE partner = "julie halard-decugis" AND date = "october 8, 2000"
CREATE TABLE table_name_88 (surface VARCHAR, partner VARCHAR, date VARCHAR)
What type of surface was played on when julie halard-decugis was the partner on October 8, 2000?
SELECT COUNT(played) FROM table_name_84 WHERE _percentage_win = "50.00%" AND losses = 1 AND wins < 1
CREATE TABLE table_name_84 (played VARCHAR, wins VARCHAR, _percentage_win VARCHAR, losses VARCHAR)
How many Played has a % Win of 50.00%, and Losses of 1, and Wins smaller than 1?
SELECT no_result FROM table_name_2 WHERE wins < 2 AND losses > 1
CREATE TABLE table_name_2 (no_result VARCHAR, wins VARCHAR, losses VARCHAR)
WHAT kind of No Result has Wins smaller than 2, and Losses larger than 1?
SELECT AVG(played) FROM table_name_61 WHERE losses = 6 AND wins > 33
CREATE TABLE table_name_61 (played INTEGER, losses VARCHAR, wins VARCHAR)
How many Played that has Losses of 6, and Wins larger than 33?
SELECT MIN(no_result) FROM table_name_50 WHERE _percentage_win = "100.00%" AND played > 4 AND year = "2012"
CREATE TABLE table_name_50 (no_result INTEGER, year VARCHAR, _percentage_win VARCHAR, played VARCHAR)
What kind of No Result has a % Win of 100.00% and a Played larger than 4 in 2012?
SELECT loss FROM table_name_20 WHERE score = "6–5"
CREATE TABLE table_name_20 (loss VARCHAR, score VARCHAR)
Which Loss has a Score of 6–5?
SELECT COUNT(game) FROM table_name_1 WHERE date = "wed. nov. 13"
CREATE TABLE table_name_1 (game VARCHAR, date VARCHAR)
Date of wed. nov. 13 had how many number of games?
SELECT score FROM table_name_16 WHERE record = "6–1"
CREATE TABLE table_name_16 (score VARCHAR, record VARCHAR)
Record of 6–1 had what score?
SELECT MIN(game) FROM table_name_64 WHERE score = "118–114" AND record = "8–1"
CREATE TABLE table_name_64 (game INTEGER, score VARCHAR, record VARCHAR)
Score of 118–114, and a Record of 8–1 is what lowest game?
SELECT circuit FROM table_name_85 WHERE feature_winner = "ireland" AND country = "great britain"
CREATE TABLE table_name_85 (circuit VARCHAR, feature_winner VARCHAR, country VARCHAR)
Which circuit was in Great Britain with Ireland as the winner?
SELECT COUNT(attendance) FROM table_name_43 WHERE league_position = "16th" AND score_f_a = "0–3"
CREATE TABLE table_name_43 (attendance VARCHAR, league_position VARCHAR, score_f_a VARCHAR)
How many were in attendance when the league position was 16th and the score was F–A of 0–3?
SELECT attendance FROM table_name_40 WHERE result = "d" AND venue = "h" AND opponents = "arsenal"
CREATE TABLE table_name_40 (attendance VARCHAR, opponents VARCHAR, result VARCHAR, venue VARCHAR)
How many were in attendance for a result of D, at H venue, and Arsenal as an opponent?
SELECT MAX(attendance) FROM table_name_40 WHERE venue = "h" AND result = "d" AND opponents = "liverpool"
CREATE TABLE table_name_40 (attendance INTEGER, opponents VARCHAR, venue VARCHAR, result VARCHAR)
What is the largest number in attendance at H venue opposing Liverpool with a result of D?
SELECT COUNT(number) FROM table_name_31 WHERE name = "justin jeffries"
CREATE TABLE table_name_31 (number VARCHAR, name VARCHAR)
What is the number of Justin Jeffries?
SELECT MIN(games) AS ↑ FROM table_name_29 WHERE number = 61
CREATE TABLE table_name_29 (games INTEGER, number VARCHAR)
How many games has number 61 played in?
SELECT name FROM table_name_83 WHERE position = "wr" AND weight = 197
CREATE TABLE table_name_83 (name VARCHAR, position VARCHAR, weight VARCHAR)
What is the name of the player who is a wr and has a weight of 197?
SELECT hometown FROM table_name_44 WHERE number = 40
CREATE TABLE table_name_44 (hometown VARCHAR, number VARCHAR)
What is the hometown of number 40?
SELECT date FROM table_name_91 WHERE visitor = "ottawa"
CREATE TABLE table_name_91 (date VARCHAR, visitor VARCHAR)
What date is the visitor Ottawa?
SELECT SUM(year) FROM table_name_99 WHERE state = "rhode island"
CREATE TABLE table_name_99 (year INTEGER, state VARCHAR)
what is the sum of the year in rhode island
SELECT senator FROM table_name_72 WHERE state = "kentucky"
CREATE TABLE table_name_72 (senator VARCHAR, state VARCHAR)
what is the senator in kentucky
SELECT destination FROM table_name_76 WHERE origin = "dhanbad"
CREATE TABLE table_name_76 (destination VARCHAR, origin VARCHAR)
What is the destination of the rail with Dhanbad as the origin?
SELECT destination FROM table_name_87 WHERE train_name = "garib nwaz exp"
CREATE TABLE table_name_87 (destination VARCHAR, train_name VARCHAR)
What is the destination of the Garib nwaz exp train?
SELECT train_name FROM table_name_44 WHERE frequency__inbound_outbound_ = "daily" AND destination = "rajgir"
CREATE TABLE table_name_44 (train_name VARCHAR, frequency__inbound_outbound_ VARCHAR, destination VARCHAR)
What is the train name of the rail with a daily frequency and a destination of Rajgir?
SELECT train_name FROM table_name_61 WHERE frequency__inbound_outbound_ = "daily" AND destination = "jammutawi"
CREATE TABLE table_name_61 (train_name VARCHAR, frequency__inbound_outbound_ VARCHAR, destination VARCHAR)
What is the train name of the rail with a daily frequency and Jammutawi as the destination?
SELECT frequency__inbound_outbound_ FROM table_name_72 WHERE origin = "ranchi"
CREATE TABLE table_name_72 (frequency__inbound_outbound_ VARCHAR, origin VARCHAR)
What is the frequency of the rail with an origin of Ranchi?
SELECT frequency__inbound_outbound_ FROM table_name_10 WHERE train_name = "garib nwaz exp"
CREATE TABLE table_name_10 (frequency__inbound_outbound_ VARCHAR, train_name VARCHAR)
What is the frequency of the train named Garib nwaz exp?
SELECT segment_c FROM table_name_63 WHERE episode < 179 AND segment_b = "s sticker"
CREATE TABLE table_name_63 (segment_c VARCHAR, episode VARCHAR, segment_b VARCHAR)
Name the segment c with episode less than 179 and segment b of s sticker
SELECT segment_c FROM table_name_78 WHERE segment_a = "ski goggles"
CREATE TABLE table_name_78 (segment_c VARCHAR, segment_a VARCHAR)
Name the segment c for ski goggles
SELECT position FROM table_name_26 WHERE first = "steve"
CREATE TABLE table_name_26 (position VARCHAR, first VARCHAR)
In which position did Steve play first?
SELECT bats FROM table_name_23 WHERE first = "mitchell"
CREATE TABLE table_name_23 (bats VARCHAR, first VARCHAR)
Which bats did mitchell play first?
SELECT dob FROM table_name_19 WHERE surname = "ryan"
CREATE TABLE table_name_19 (dob VARCHAR, surname VARCHAR)
When is mr. ryan's DOB?
SELECT throws FROM table_name_1 WHERE position = "3b/rhp"
CREATE TABLE table_name_1 (throws VARCHAR, position VARCHAR)
Which Throws have a Position of 3b/rhp?
SELECT dob FROM table_name_22 WHERE surname = "collins"
CREATE TABLE table_name_22 (dob VARCHAR, surname VARCHAR)
When is Collins' DOB?
SELECT position FROM table_name_78 WHERE dob = "3 june 1989"
CREATE TABLE table_name_78 (position VARCHAR, dob VARCHAR)
Which Position has a D.O.B. of 3 june 1989?