answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT term_start FROM table_name_53 WHERE born_died = "prime ministers 1939 - 1943" | CREATE TABLE table_name_53 (term_start VARCHAR, born_died VARCHAR) | What is Term Start, when Born-Died is Prime Ministers 1939 - 1943? |
SELECT born_died FROM table_name_60 WHERE term_end = "19 january 1943" | CREATE TABLE table_name_60 (born_died VARCHAR, term_end VARCHAR) | What is Born-Died, when Term End is 19 January 1943? |
SELECT score FROM table_name_2 WHERE record = "5–4–3" | CREATE TABLE table_name_2 (score VARCHAR, record VARCHAR) | What is the Score of the game with a Record of 5–4–3? |
SELECT score FROM table_name_8 WHERE date = "january 23" | CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR) | What is the Score on January 23? |
SELECT visitor FROM table_name_78 WHERE home = "montreal canadiens" AND record = "6–4–4" | CREATE TABLE table_name_78 (visitor VARCHAR, home VARCHAR, record VARCHAR) | What is the Visitor of the Montreal Canadiens Home game with a Record of 6–4–4? |
SELECT date FROM table_name_20 WHERE record = "12–7–6" | CREATE TABLE table_name_20 (date VARCHAR, record VARCHAR) | What is the Date of the game with a Record of 12–7–6? |
SELECT record FROM table_name_38 WHERE home = "montreal canadiens" AND date = "march 23" | CREATE TABLE table_name_38 (record VARCHAR, home VARCHAR, date VARCHAR) | What is the Record of the Montreal Canadiens Home game on March 23? |
SELECT tournament_location FROM table_name_81 WHERE margin_of_victory = "1 stroke" AND purse___$__ = "1,200,000" | CREATE TABLE table_name_81 (tournament_location VARCHAR, margin_of_victory VARCHAR, purse___$__ VARCHAR) | What tournament location has 1 stroke as the margin of victory, with 1,200,000 as the purse ($)? |
SELECT tournament_location FROM table_name_43 WHERE country = "south korea" | CREATE TABLE table_name_43 (tournament_location VARCHAR, country VARCHAR) | What tournament location has south korea as the country? |
SELECT AVG(land_area__km²_) FROM table_name_98 WHERE country = "switzerland" AND population_density__pop_per_km²_ < 188 | CREATE TABLE table_name_98 (land_area__km²_ INTEGER, country VARCHAR, population_density__pop_per_km²_ VARCHAR) | What is the land area of Switzerland with a population density fewer than 188 km²? |
SELECT lost FROM table_name_67 WHERE points = "86" | CREATE TABLE table_name_67 (lost VARCHAR, points VARCHAR) | What lost has 86 points? |
SELECT try_bonus FROM table_name_82 WHERE tries_against = "37" | CREATE TABLE table_name_82 (try_bonus VARCHAR, tries_against VARCHAR) | With 37 tries against, what is the try bonus? |
SELECT points_against FROM table_name_59 WHERE tries_for = "41" | CREATE TABLE table_name_59 (points_against VARCHAR, tries_for VARCHAR) | How many points against when 41 is the tries for? |
SELECT losing_bonus FROM table_name_52 WHERE "lost" = "lost" | CREATE TABLE table_name_52 (losing_bonus VARCHAR) | With a lost of lost what was the losing bonus? |
SELECT points FROM table_name_25 WHERE points_for = "points for" | CREATE TABLE table_name_25 (points VARCHAR, points_for VARCHAR) | What points has points for as points for? |
SELECT points FROM table_name_27 WHERE try_bonus = "5" AND club = "barry rfc" | CREATE TABLE table_name_27 (points VARCHAR, try_bonus VARCHAR, club VARCHAR) | What is the points when the club is Barry RFC with a 5 as the try bonus? |
SELECT SUM(gold) FROM table_name_57 WHERE silver > 6 AND rank = "1" AND bronze < 61 | CREATE TABLE table_name_57 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR) | What is the sum of Gold, when Silver is greater than 6, when Rank is 1, and when Bronze is less than 61? |
SELECT MIN(silver) FROM table_name_23 WHERE bronze = 1 AND total < 3 | CREATE TABLE table_name_23 (silver INTEGER, bronze VARCHAR, total VARCHAR) | What is the lowest Silver, when Bronze is 1, and when Total is less than 3? |
SELECT AVG(gold) FROM table_name_95 WHERE silver < 107 AND bronze > 42 AND rank = "3" | CREATE TABLE table_name_95 (gold INTEGER, rank VARCHAR, silver VARCHAR, bronze VARCHAR) | What is the average Gold, when Silver is less than 107, when Bronze is greater than 42, and when Rank is 3? |
SELECT manufacturer FROM table_name_53 WHERE laps < 28 AND grid < 9 AND rider = "jeremy mcwilliams" | CREATE TABLE table_name_53 (manufacturer VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR) | Which manufacturer has more than 28 laps and less than 9 grids with jeremy mcwilliams? |
SELECT AVG(grid) FROM table_name_52 WHERE time_retired = "+1 lap" AND laps > 27 | CREATE TABLE table_name_52 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) | What is the grid average with a +1 lap time and more than 27 laps? |
SELECT laps FROM table_name_77 WHERE grid > 17 AND rider = "tetsuya harada" | CREATE TABLE table_name_77 (laps VARCHAR, grid VARCHAR, rider VARCHAR) | Which lap has more than 17 grids with tetsuya harada? |
SELECT danish_title FROM table_name_16 WHERE year < 1978 AND director = "bent christensen" | CREATE TABLE table_name_16 (danish_title VARCHAR, year VARCHAR, director VARCHAR) | Prior to 1978, what is the Danish of the Film directed by Bent Christensen? |
SELECT director FROM table_name_11 WHERE english_title = "the olsen gang sees red" | CREATE TABLE table_name_11 (director VARCHAR, english_title VARCHAR) | Who is the Director of the Olsen Gang Sees Red? |
SELECT SUM(year) FROM table_name_40 WHERE director = "erik clausen" AND english_title = "the dark side of the moon" | CREATE TABLE table_name_40 (year INTEGER, director VARCHAR, english_title VARCHAR) | What is the submission Year of the Film The Dark Side of the Moon directed by Erik Clausen? |
SELECT MIN(year) FROM table_name_70 WHERE english_title = "the art of crying" | CREATE TABLE table_name_70 (year INTEGER, english_title VARCHAR) | What is the Year of submission of the Film The Art of Crying? |
SELECT home_town FROM table_name_67 WHERE weight = 201 | CREATE TABLE table_name_67 (home_town VARCHAR, weight VARCHAR) | Which Home Town had the weight of 201? |
SELECT position FROM table_name_48 WHERE year = "sophomore" AND name = "darnell jackson" | CREATE TABLE table_name_48 (position VARCHAR, year VARCHAR, name VARCHAR) | What Position did the sophomore Darnell Jackson play? |
SELECT 2007 FROM table_name_16 WHERE 1999 = "—" AND model = "seat mii" | CREATE TABLE table_name_16 (model VARCHAR) | what kind of 2007 has a 1999 of —, and a Model of seat mii? |
SELECT 2005 FROM table_name_39 WHERE 2006 = "126,511" | CREATE TABLE table_name_39 (Id VARCHAR) | Which 2005 has a 2006 of 126,511? |
SELECT 2004 FROM table_name_19 WHERE 2003 = "36,026" | CREATE TABLE table_name_19 (Id VARCHAR) | Name the 2004 which has a 2003 of 36,026? |
SELECT 2007 FROM table_name_14 WHERE 2011 = "191,183" | CREATE TABLE table_name_14 (Id VARCHAR) | Name the 2007 which has a 2011 of 191,183? Question 4 |
SELECT 2011 FROM table_name_93 WHERE 2002 = "—" AND model = "seat marbella" | CREATE TABLE table_name_93 (model VARCHAR) | Name the 2011 which has a 2002 of —, and a Model of seat marbella? |
SELECT 2003 FROM table_name_33 WHERE 2000 = "—" AND 2007 = "—" AND 2010 = "—" | CREATE TABLE table_name_33 (Id VARCHAR) | Name the 2003 which has a 2000 of —, and a 2007 of —, and a 2010 of —? |
SELECT affiliation FROM table_name_63 WHERE nickname = "dukes" | CREATE TABLE table_name_63 (affiliation VARCHAR, nickname VARCHAR) | Who is affiliated with the Dukes? |
SELECT school FROM table_name_74 WHERE location = "radford, va" | CREATE TABLE table_name_74 (school VARCHAR, location VARCHAR) | What school is in Radford, Va? |
SELECT nickname FROM table_name_38 WHERE affiliation = "public" AND founded > 1838 AND location = "harrisonburg, va" | CREATE TABLE table_name_38 (nickname VARCHAR, location VARCHAR, affiliation VARCHAR, founded VARCHAR) | What school has a public nickname, founded after 1838 in Harrisonburg, Va? |
SELECT MIN(pick) FROM table_name_21 WHERE name = "mike flater" | CREATE TABLE table_name_21 (pick INTEGER, name VARCHAR) | Lowest pick for mike flater? |
SELECT home FROM table_name_57 WHERE points = 23 AND date = "january 2" | CREATE TABLE table_name_57 (home VARCHAR, points VARCHAR, date VARCHAR) | Who was the home team on January 2 with 23 points? |
SELECT record FROM table_name_56 WHERE visitor = "st. louis" | CREATE TABLE table_name_56 (record VARCHAR, visitor VARCHAR) | What is the record when St. Louis is the visitor? |
SELECT score FROM table_name_25 WHERE date = "november 1" | CREATE TABLE table_name_25 (score VARCHAR, date VARCHAR) | What was the score for the game on November 1? |
SELECT location_attendance FROM table_name_33 WHERE team = "new jersey" | CREATE TABLE table_name_33 (location_attendance VARCHAR, team VARCHAR) | What were the location and attendance for the game against New Jersey? |
SELECT 2011 FROM table_name_86 WHERE 2009 = "grand slam tournaments" | CREATE TABLE table_name_86 (Id VARCHAR) | Where were the 2009 and 2011 Grand Slam Tournaments? |
SELECT second_vice_president FROM table_name_74 WHERE third_vice_president = "gen. juan alonso" AND inaugurated = "15 march 1940" | CREATE TABLE table_name_74 (second_vice_president VARCHAR, third_vice_president VARCHAR, inaugurated VARCHAR) | What is Second Vice President, when Third Vice President is "Gen. Juan Alonso", and when Inaugurated is "15 March 1940"? |
SELECT left_office FROM table_name_1 WHERE inaugurated = "15 march 1930" | CREATE TABLE table_name_1 (left_office VARCHAR, inaugurated VARCHAR) | What is Left Office, when Inaugurate is "15 March 1930"? |
SELECT second_vice_president FROM table_name_85 WHERE inaugurated = "26 march 1928" | CREATE TABLE table_name_85 (second_vice_president VARCHAR, inaugurated VARCHAR) | What is Second Vice President, when Inaugurated is "26 March 1928"? |
SELECT second_vice_president FROM table_name_49 WHERE inaugurated = "15 march 1935" | CREATE TABLE table_name_49 (second_vice_president VARCHAR, inaugurated VARCHAR) | What is Second Vice President, when Inaugurated is "15 March 1935"? |
SELECT third_vice_president FROM table_name_38 WHERE inaugurated = "15 march 1934" | CREATE TABLE table_name_38 (third_vice_president VARCHAR, inaugurated VARCHAR) | What is Third Vice President, when Inaugurated is "15 March 1934"? |
SELECT third_vice_president FROM table_name_16 WHERE second_vice_president = "baudelio palma" | CREATE TABLE table_name_16 (third_vice_president VARCHAR, second_vice_president VARCHAR) | What is Third Vice President, when Second Vice President is "Baudelio Palma"? |
SELECT score FROM table_name_30 WHERE date = "july 18" | CREATE TABLE table_name_30 (score VARCHAR, date VARCHAR) | What was the score of the game from July 18? |
SELECT MAX(attendance) FROM table_name_25 WHERE week = 9 | CREATE TABLE table_name_25 (attendance INTEGER, week VARCHAR) | What was the Attendance on Week 9? |
SELECT opponent FROM table_name_49 WHERE result = "w 13–0" | CREATE TABLE table_name_49 (opponent VARCHAR, result VARCHAR) | What is the Opponent of the game with a Result of w 13–0? |
SELECT score FROM table_name_92 WHERE january < 4 | CREATE TABLE table_name_92 (score VARCHAR, january INTEGER) | What was the score in January that was less than 4? |
SELECT date FROM table_name_55 WHERE margin_of_victory = "playoff" AND runner_s__up = "yueh-chyn huang" | CREATE TABLE table_name_55 (date VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR) | Which date was the event that Yani won in a playoff over Yueh-Chyn Huang? |
SELECT latitude FROM table_name_7 WHERE longitude = "147.1w" | CREATE TABLE table_name_7 (latitude VARCHAR, longitude VARCHAR) | What is the latitude of the point with a longitude of 147.1w? |
SELECT isbn_uk FROM table_name_38 WHERE author = "dave martin" AND isbn_us = "n/a" | CREATE TABLE table_name_38 (isbn_uk VARCHAR, author VARCHAR, isbn_us VARCHAR) | What is ISBN UK, when Author is "Dave Martin", and when ISBN US is "N/A"? |
SELECT isbn_us FROM table_name_72 WHERE title = "crisis in space" | CREATE TABLE table_name_72 (isbn_us VARCHAR, title VARCHAR) | What is ISBN US, when Title is "Crisis In Space"? |
SELECT author FROM table_name_1 WHERE tv_companions_featured = "peri brown" AND title = "race against time" | CREATE TABLE table_name_1 (author VARCHAR, tv_companions_featured VARCHAR, title VARCHAR) | What is Author, when TV Companions Featured is "Peri Brown", and when Title is "Race Against Time"? |
SELECT title FROM table_name_35 WHERE tv_companions_featured = "k-9" | CREATE TABLE table_name_35 (title VARCHAR, tv_companions_featured VARCHAR) | What is Title, when TV Companions Featured is "K-9"? |
SELECT isbn_us FROM table_name_55 WHERE title = "mission to venus" | CREATE TABLE table_name_55 (isbn_us VARCHAR, title VARCHAR) | What is ISBN US, when Title is "Mission To Venus"? |
SELECT tv_companions_featured FROM table_name_95 WHERE author = "william emms" | CREATE TABLE table_name_95 (tv_companions_featured VARCHAR, author VARCHAR) | What is TV Companions Featured, when Author is "William Emms"? |
SELECT date FROM table_name_3 WHERE result = "2–2" AND venue = "h" | CREATE TABLE table_name_3 (date VARCHAR, result VARCHAR, venue VARCHAR) | Which Date has a Result of 2–2, and a Venue of H? |
SELECT player FROM table_name_5 WHERE to_par > 7 AND total = 298 | CREATE TABLE table_name_5 (player VARCHAR, to_par VARCHAR, total VARCHAR) | Which player had a to par score larger than 7 and a total score of 298? |
SELECT location FROM table_name_57 WHERE res = "win" AND event = "superbrawl 16" | CREATE TABLE table_name_57 (location VARCHAR, res VARCHAR, event VARCHAR) | In which location did he win the Superbrawl 16 event? |
SELECT record FROM table_name_57 WHERE method = "technical submission (forearm choke)" | CREATE TABLE table_name_57 (record VARCHAR, method VARCHAR) | What was his record when the method was technical submission (forearm choke)? |
SELECT opponent FROM table_name_1 WHERE round = "2" AND event = "ufc 49" | CREATE TABLE table_name_1 (opponent VARCHAR, round VARCHAR, event VARCHAR) | Who was the opponent in round 2 of the UFC 49 event? |
SELECT round FROM table_name_26 WHERE opponent = "joe stevenson" | CREATE TABLE table_name_26 (round VARCHAR, opponent VARCHAR) | What was the round when he fought Joe Stevenson? |
SELECT date FROM table_name_70 WHERE score = "94-74 w" | CREATE TABLE table_name_70 (date VARCHAR, score VARCHAR) | On which date was the score 94-74 w? |
SELECT location_attendance FROM table_name_47 WHERE opponent = "at chicago bulls" | CREATE TABLE table_name_47 (location_attendance VARCHAR, opponent VARCHAR) | When they played at Chicago Bulls, what was the Location/Attendance? |
SELECT opponent FROM table_name_98 WHERE game = "44" | CREATE TABLE table_name_98 (opponent VARCHAR, game VARCHAR) | Who was the opponent in Game 44? |
SELECT opponent FROM table_name_7 WHERE location_attendance = "delta center" AND record = "27-13" | CREATE TABLE table_name_7 (opponent VARCHAR, location_attendance VARCHAR, record VARCHAR) | Who was the opponent when they played at Delta Center with a record of 27-13? |
SELECT date FROM table_name_33 WHERE game = "41" | CREATE TABLE table_name_33 (date VARCHAR, game VARCHAR) | What was the date for Game 41? |
SELECT opposing_team FROM table_name_97 WHERE against = 3 AND date = "11 february 1950" | CREATE TABLE table_name_97 (opposing_team VARCHAR, against VARCHAR, date VARCHAR) | Which Opposing Team has an Against of 3, and a Date of 11 february 1950? |
SELECT venue FROM table_name_79 WHERE opposing_team = "manchester united" AND round = "5th round replay" | CREATE TABLE table_name_79 (venue VARCHAR, opposing_team VARCHAR, round VARCHAR) | Which Venue has an Opposing Team of manchester united, and a Round of 5th round replay? |
SELECT AVG(against) FROM table_name_49 WHERE date = "28 january 1950" | CREATE TABLE table_name_49 (against INTEGER, date VARCHAR) | Which Against has a Date of 28 january 1950? |
SELECT COUNT(year) FROM table_name_28 WHERE result = "3rd" AND venue = "edinburgh, scotland" | CREATE TABLE table_name_28 (year VARCHAR, result VARCHAR, venue VARCHAR) | What is the total number of years wehre anna thompson had a 3rd place result at edinburgh, scotland? |
SELECT year FROM table_name_85 WHERE result = "7th" | CREATE TABLE table_name_85 (year VARCHAR, result VARCHAR) | What year did anna thompson have a 7th place result? |
SELECT AVG(year) FROM table_name_22 WHERE tournament = "world cross country championships" AND venue = "st etienne, france" AND extra = "team competition" AND result = "8th" | CREATE TABLE table_name_22 (year INTEGER, result VARCHAR, extra VARCHAR, tournament VARCHAR, venue VARCHAR) | What is the average year that anna thompson had an 8th place result in team competition at the world cross country championships in st etienne, france with |
SELECT MAX(total_matches) FROM table_name_4 WHERE points_won > 1.5 AND year = "2002" AND points__percentage < 50 | CREATE TABLE table_name_4 (total_matches INTEGER, points__percentage VARCHAR, points_won VARCHAR, year VARCHAR) | What is the total matches in 2002 where points won is larger than 1.5 and the points % is smaller than 50? |
SELECT SUM(loss) FROM table_name_18 WHERE avg_g = 89.9 | CREATE TABLE table_name_18 (loss INTEGER, avg_g VARCHAR) | WHAT IS THE LOSS WITH AN AVERAGE OF 89.9? |
SELECT COUNT(loss) FROM table_name_15 WHERE long < 24 AND gain > 116 | CREATE TABLE table_name_15 (loss VARCHAR, long VARCHAR, gain VARCHAR) | WHAT IS THE NUMBER OF LOSSES WITH A LONG SMALLER THAN 24, AND GAIN BIGGER THAN 116? |
SELECT COUNT(round) FROM table_name_72 WHERE opponent = "kevin asplund" | CREATE TABLE table_name_72 (round VARCHAR, opponent VARCHAR) | How many rounds did Brett go against Kevin Asplund? |
SELECT round FROM table_name_84 WHERE event = "strikeforce: shamrock vs. diaz" | CREATE TABLE table_name_84 (round VARCHAR, event VARCHAR) | How many rounds did Brett go for the Strikeforce: Shamrock vs. Diaz match? |
SELECT opponent FROM table_name_36 WHERE record = "22-10" | CREATE TABLE table_name_36 (opponent VARCHAR, record VARCHAR) | Which Opponent has a Record of 22-10? |
SELECT score FROM table_name_71 WHERE opponent = "@ seattle" | CREATE TABLE table_name_71 (score VARCHAR, opponent VARCHAR) | Which Score has an Opponent of @ seattle? |
SELECT record FROM table_name_53 WHERE result = "loss" AND opponent = "@ la clippers" | CREATE TABLE table_name_53 (record VARCHAR, result VARCHAR, opponent VARCHAR) | Which Record has a Result of loss, and an Opponent of @ la clippers? |
SELECT score FROM table_name_84 WHERE opponent = "@ la lakers" AND record = "8-6" | CREATE TABLE table_name_84 (score VARCHAR, opponent VARCHAR, record VARCHAR) | Which Score has an Opponent of @ la lakers, and a Record of 8-6? |
SELECT opponent FROM table_name_45 WHERE result = "win" AND date = "march 17" | CREATE TABLE table_name_45 (opponent VARCHAR, result VARCHAR, date VARCHAR) | Which Opponent has a Result of win, and a Date of march 17? |
SELECT score FROM table_name_60 WHERE date = "may 4" | CREATE TABLE table_name_60 (score VARCHAR, date VARCHAR) | Which Score has a Date of may 4? |
SELECT MIN(pd_per_game) FROM table_name_49 WHERE rank < 4 AND winning__percentage = "78.6%" AND streak = "w1" AND pa_per_game < 81.5 | CREATE TABLE table_name_49 (pd_per_game INTEGER, pa_per_game VARCHAR, streak VARCHAR, rank VARCHAR, winning__percentage VARCHAR) | Which PD per game has a Rank smaller than 4, a Winning % of 78.6%, a Streak of w1, and a PA per game smaller than 81.5? |
SELECT AVG(loss) FROM table_name_80 WHERE last_5 = "4-1" AND streak = "w2" AND pa_per_game < 88.43 | CREATE TABLE table_name_80 (loss INTEGER, pa_per_game VARCHAR, last_5 VARCHAR, streak VARCHAR) | Which Loss has a Last 5 of 4-1, a Streak of w2, and a PA per game smaller than 88.43? |
SELECT last_5 FROM table_name_31 WHERE rank = 7 | CREATE TABLE table_name_31 (last_5 VARCHAR, rank VARCHAR) | Which Last 5 has a Rank of 7? |
SELECT MIN(played) FROM table_name_97 WHERE pd_per_game > 6.28 AND loss < 4 | CREATE TABLE table_name_97 (played INTEGER, pd_per_game VARCHAR, loss VARCHAR) | Which Played has a PD per game larger than 6.28, and a Loss smaller than 4? |
SELECT MIN(pf_per_game) FROM table_name_22 WHERE rank = 5 | CREATE TABLE table_name_22 (pf_per_game INTEGER, rank VARCHAR) | Which PF per game has a Rank of 5? |
SELECT record FROM table_name_32 WHERE round = "3" | CREATE TABLE table_name_32 (record VARCHAR, round VARCHAR) | What was the score in Round 3? |
SELECT record FROM table_name_36 WHERE opponent = "matt serra" | CREATE TABLE table_name_36 (record VARCHAR, opponent VARCHAR) | What was the record for opponent Matt Serra? |
SELECT event FROM table_name_9 WHERE round = "1" AND opponent = "lance wipf" | CREATE TABLE table_name_9 (event VARCHAR, round VARCHAR, opponent VARCHAR) | What was the event for round 1 against Lance Wipf? |
SELECT COUNT(area__km²_) FROM table_name_13 WHERE population__2007_ = 6 OFFSET 176 | CREATE TABLE table_name_13 (area__km²_ VARCHAR, population__2007_ VARCHAR) | What is the total number of Area (km²), when Population (2007) is 6,176? |
SELECT laps FROM table_name_17 WHERE car_no = "23" | CREATE TABLE table_name_17 (laps VARCHAR, car_no VARCHAR) | How many laps did car 23 do? |
SELECT laps FROM table_name_79 WHERE fin_pos = "17" | CREATE TABLE table_name_79 (laps VARCHAR, fin_pos VARCHAR) | How many laps did the car do that had a final position of 17? |
Subsets and Splits