answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT outcome FROM table_name_16 WHERE year = "1985" AND venue = "india open" | CREATE TABLE table_name_16 (outcome VARCHAR, year VARCHAR, venue VARCHAR) | What was the Outcome at the 1985 India Open? |
SELECT outcome FROM table_name_88 WHERE partner = "kang haeng-suk" AND year = "1982" | CREATE TABLE table_name_88 (outcome VARCHAR, partner VARCHAR, year VARCHAR) | What was the outcome in 1982 with Kang Haeng-Suk as partner? |
SELECT party FROM table_name_4 WHERE first_elected < 1878 AND district = "south carolina 3" | CREATE TABLE table_name_4 (party VARCHAR, first_elected VARCHAR, district VARCHAR) | Which Party has a First elected smaller than 1878, and a District of south carolina 3? |
SELECT result FROM table_name_6 WHERE first_elected = 1876 AND district = "south carolina 3" | CREATE TABLE table_name_6 (result VARCHAR, first_elected VARCHAR, district VARCHAR) | Which Result has a First elected of 1876, and a District of south carolina 3? |
SELECT result FROM table_name_98 WHERE first_elected > 1876 AND incumbent = "john s. richardson" | CREATE TABLE table_name_98 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR) | Which Result has a First elected larger than 1876, and an Incumbent of john s. richardson? |
SELECT incumbent FROM table_name_73 WHERE party = "republican" AND first_elected < 1864 | CREATE TABLE table_name_73 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR) | Who is the incumbent that is a republican and first elected before 1864? |
SELECT district FROM table_name_69 WHERE party = "democratic" AND incumbent = "francis c. le blond" | CREATE TABLE table_name_69 (district VARCHAR, party VARCHAR, incumbent VARCHAR) | What district is the democratic Francis C. Le Blond from? |
SELECT SUM(first_elected) FROM table_name_66 WHERE result = "re-elected" AND district = "ohio 4" | CREATE TABLE table_name_66 (first_elected INTEGER, result VARCHAR, district VARCHAR) | In the Ohio 4 district, that is the first elected date that has a result of re-elected? |
SELECT party FROM table_name_68 WHERE district = "ohio 6" | CREATE TABLE table_name_68 (party VARCHAR, district VARCHAR) | What is the party in Ohio 6 District? |
SELECT to_par FROM table_name_24 WHERE year = 1994 | CREATE TABLE table_name_24 (to_par VARCHAR, year VARCHAR) | Which To par has a Year of 1994? |
SELECT country FROM table_name_91 WHERE margin_of_victory = "2 strokes" | CREATE TABLE table_name_91 (country VARCHAR, margin_of_victory VARCHAR) | Which Country has a Margin of victory of 2 strokes? |
SELECT MIN(year) FROM table_name_93 WHERE to_par = "–1" | CREATE TABLE table_name_93 (year INTEGER, to_par VARCHAR) | Which Year is the lowest one that has a To par of –1? |
SELECT margin_of_victory FROM table_name_25 WHERE year > 1994 AND to_par = "–14" AND score = 69 - 67 - 69 - 69 = 274 | CREATE TABLE table_name_25 (margin_of_victory VARCHAR, year VARCHAR, to_par VARCHAR, score VARCHAR) | Which Margin of victory has a Year larger than 1994, and a To par of –14, and a Score of 69-67-69-69=274? |
SELECT record FROM table_name_37 WHERE location = "astrodome" | CREATE TABLE table_name_37 (record VARCHAR, location VARCHAR) | What was the record after the game at the Astrodome? |
SELECT record FROM table_name_98 WHERE opponent = "houston oilers" | CREATE TABLE table_name_98 (record VARCHAR, opponent VARCHAR) | What was the record after the game against the Houston Oilers? |
SELECT AVG(total) FROM table_name_71 WHERE nation = "belarus" AND e_score < 8.2 | CREATE TABLE table_name_71 (total INTEGER, nation VARCHAR, e_score VARCHAR) | What is the average total score of Belarus, which had an E score less than 8.2? |
SELECT SUM(total) FROM table_name_57 WHERE t_score > 8 AND e_score < 8.4 | CREATE TABLE table_name_57 (total INTEGER, t_score VARCHAR, e_score VARCHAR) | What is the total of the team with a T score greater than 8 and an E score less than 8.4? |
SELECT t_score FROM table_name_52 WHERE e_score = 6.625 | CREATE TABLE table_name_52 (t_score VARCHAR, e_score VARCHAR) | What is the T score of the team with an E score of 6.625? |
SELECT COUNT(total) FROM table_name_97 WHERE nation = "poland" AND e_score > 7.725 | CREATE TABLE table_name_97 (total VARCHAR, nation VARCHAR, e_score VARCHAR) | What is the total of Poland, which has an E score greater than 7.725? |
SELECT SUM(total) FROM table_name_88 WHERE t_score < 6.8 | CREATE TABLE table_name_88 (total INTEGER, t_score INTEGER) | What is the total of the team with a T score less than 6.8? |
SELECT date FROM table_name_56 WHERE competition = "2012 afc challenge cup" AND venue = "dasarath rangasala stadium, kathmandu" | CREATE TABLE table_name_56 (date VARCHAR, competition VARCHAR, venue VARCHAR) | What date has a competition of 2012 afc challenge cup, and dasarath rangasala stadium, kathmandu as the venue? |
SELECT opposition FROM table_name_70 WHERE social_democrats__a_ = "31.1%" | CREATE TABLE table_name_70 (opposition VARCHAR, social_democrats__a_ VARCHAR) | What opposition do 31.1% of Social Democrats have? |
SELECT position FROM table_name_22 WHERE round > 14 AND school_club_team = "north texas" | CREATE TABLE table_name_22 (position VARCHAR, round VARCHAR, school_club_team VARCHAR) | Which Position has a Round larger than 14, and a School/Club Team of north texas? |
SELECT round FROM table_name_72 WHERE player = "anthony christnovich" | CREATE TABLE table_name_72 (round VARCHAR, player VARCHAR) | Which Round has a Player of anthony christnovich? |
SELECT MIN(round) FROM table_name_20 WHERE school_club_team = "virginia" | CREATE TABLE table_name_20 (round INTEGER, school_club_team VARCHAR) | Which Round is the lowest one that has a School/Club Team of virginia? |
SELECT leading_scorer FROM table_name_5 WHERE date = "2006-11-22" | CREATE TABLE table_name_5 (leading_scorer VARCHAR, date VARCHAR) | What is the name of the leading scorer on 2006-11-22? |
SELECT leading_scorer FROM table_name_18 WHERE record = "9–6" | CREATE TABLE table_name_18 (leading_scorer VARCHAR, record VARCHAR) | What is the name of the leading scorer when the record was 9–6? |
SELECT attendance FROM table_name_40 WHERE visitor = "warriors" AND date = "2006-11-04" | CREATE TABLE table_name_40 (attendance VARCHAR, visitor VARCHAR, date VARCHAR) | What is the number of people in Attendance when Visitor was the warriors on 2006-11-04? |
SELECT visitor FROM table_name_46 WHERE date = "2006-11-04" | CREATE TABLE table_name_46 (visitor VARCHAR, date VARCHAR) | What is the name of the visitor on 2006-11-04? |
SELECT leading_scorer FROM table_name_59 WHERE score = "89–102" | CREATE TABLE table_name_59 (leading_scorer VARCHAR, score VARCHAR) | What is the name of the Leading scorer when the Score was 89–102? |
SELECT SUM(population) FROM table_name_1 WHERE town = "norton" | CREATE TABLE table_name_1 (population INTEGER, town VARCHAR) | How many people live in Norton? |
SELECT year FROM table_name_59 WHERE borough = "harrogate" AND rank < 6 AND definition = "civil parish" | CREATE TABLE table_name_59 (year VARCHAR, definition VARCHAR, borough VARCHAR, rank VARCHAR) | Which Year has a Borough of harrogate, and a Rank smaller than 6, and a Definition of civil parish? |
SELECT definition FROM table_name_63 WHERE rank < 12 AND town = "tadcaster" | CREATE TABLE table_name_63 (definition VARCHAR, rank VARCHAR, town VARCHAR) | Which Definition has a Rank smaller than 12, and a Town of tadcaster? |
SELECT MIN(rank) FROM table_name_16 WHERE borough = "richmondshire" AND population > 8 OFFSET 178 | CREATE TABLE table_name_16 (rank INTEGER, borough VARCHAR, population VARCHAR) | Which Rank is the lowest one that has a Borough of richmondshire, and a Population larger than 8,178? |
SELECT bronze FROM table_name_1 WHERE nation = "bulgaria" | CREATE TABLE table_name_1 (bronze VARCHAR, nation VARCHAR) | How many bronze medals did Bulgaria receive? |
SELECT to_par FROM table_name_28 WHERE player = "phil mickelson" | CREATE TABLE table_name_28 (to_par VARCHAR, player VARCHAR) | What was Phil Mickelson's score to par? |
SELECT name FROM table_name_98 WHERE overall < 268 AND round = 1 | CREATE TABLE table_name_98 (name VARCHAR, overall VARCHAR, round VARCHAR) | What name has an overall less than 268, and 1 as the round? |
SELECT COUNT(pick__number) FROM table_name_91 WHERE name = "james britt" AND round > 2 | CREATE TABLE table_name_91 (pick__number VARCHAR, name VARCHAR, round VARCHAR) | How many pick #'s have james britt as the name, with a round greater than 2? |
SELECT score FROM table_name_66 WHERE date = "november 15" | CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR) | what is the score on november 15 |
SELECT MAX(wins) FROM table_name_66 WHERE country = "united states" AND player = "andy bean" AND rank < 4 | CREATE TABLE table_name_66 (wins INTEGER, rank VARCHAR, country VARCHAR, player VARCHAR) | Which Wins is the highest one that has a Country of united states, and a Player of andy bean, and a Rank smaller than 4? |
SELECT country FROM table_name_23 WHERE rank = 5 | CREATE TABLE table_name_23 (country VARCHAR, rank VARCHAR) | Which Country has a Rank of 5? |
SELECT MIN(earnings___) AS $__ FROM table_name_12 WHERE rank < 1 | CREATE TABLE table_name_12 (earnings___ INTEGER, rank INTEGER) | Which Earnings ($) is the lowest one that has a Rank smaller than 1? |
SELECT score FROM table_name_49 WHERE opponent = "expos" AND date = "september 13" | CREATE TABLE table_name_49 (score VARCHAR, opponent VARCHAR, date VARCHAR) | What is the score of the game on September 13 when the Expos were the opponent? |
SELECT opponent FROM table_name_38 WHERE date = "september 3" | CREATE TABLE table_name_38 (opponent VARCHAR, date VARCHAR) | Who was the opponent on the September 3 game? |
SELECT save FROM table_name_92 WHERE date = "september 15" | CREATE TABLE table_name_92 (save VARCHAR, date VARCHAR) | What is the save of the game on September 15? |
SELECT game_site FROM table_name_44 WHERE week > 14 | CREATE TABLE table_name_44 (game_site VARCHAR, week INTEGER) | Which Game site has a Week larger than 14? |
SELECT date FROM table_name_27 WHERE game_site = "jeppesen stadium" | CREATE TABLE table_name_27 (date VARCHAR, game_site VARCHAR) | Which Date has a Game site of jeppesen stadium? |
SELECT game_site FROM table_name_99 WHERE attendance = "27,189" | CREATE TABLE table_name_99 (game_site VARCHAR, attendance VARCHAR) | Which Game site has 27,189 Attendances ? |
SELECT date FROM table_name_35 WHERE attendance = "15,557" | CREATE TABLE table_name_35 (date VARCHAR, attendance VARCHAR) | When is it has 15,557 Attendances? |
SELECT MIN(round) FROM table_name_36 WHERE name = "lance moon" AND overall < 171 | CREATE TABLE table_name_36 (round INTEGER, name VARCHAR, overall VARCHAR) | With an Overall less than 171, what is the Round pick of Lance Moon? |
SELECT name FROM table_name_19 WHERE pick__number = 10 | CREATE TABLE table_name_19 (name VARCHAR, pick__number VARCHAR) | What is the Name of draft Pick #10? |
SELECT COUNT(round) FROM table_name_16 WHERE position = "defensive end" | CREATE TABLE table_name_16 (round VARCHAR, position VARCHAR) | How many Rounds have a Defensive End Pick? |
SELECT time FROM table_name_57 WHERE opponent = "shinya aoki" | CREATE TABLE table_name_57 (time VARCHAR, opponent VARCHAR) | What was the time when Shinya Aoki was the opponent? |
SELECT method FROM table_name_89 WHERE round = 1 AND record = "1-0" | CREATE TABLE table_name_89 (method VARCHAR, round VARCHAR, record VARCHAR) | Which method was used in round 1 with a record of 1-0? |
SELECT rank FROM table_name_96 WHERE team = "suzuki" AND points < 16 | CREATE TABLE table_name_96 (rank VARCHAR, team VARCHAR, points VARCHAR) | Which rank has a team of Suzuki with under 16 points? |
SELECT class FROM table_name_79 WHERE rank = "5th" | CREATE TABLE table_name_79 (class VARCHAR, rank VARCHAR) | Which class has a rank of 5th? |
SELECT team FROM table_name_88 WHERE class = "500cc" AND rank = "16th" | CREATE TABLE table_name_88 (team VARCHAR, class VARCHAR, rank VARCHAR) | Which team has a class of 500cc and rank of 16th? |
SELECT team FROM table_name_90 WHERE points = 16 AND rank = "14th" | CREATE TABLE table_name_90 (team VARCHAR, points VARCHAR, rank VARCHAR) | Which team has 16 points and ranks 14th? |
SELECT dance FROM table_name_68 WHERE worst_dancer_s_ = "priscilla presley" AND worst_score = "21" | CREATE TABLE table_name_68 (dance VARCHAR, worst_dancer_s_ VARCHAR, worst_score VARCHAR) | What is the dance that has priscilla presley is the worst dancer(s), and the worst score of 21? |
SELECT best_score FROM table_name_30 WHERE dance = "freestyle" | CREATE TABLE table_name_30 (best_score VARCHAR, dance VARCHAR) | What is the best score of the dance freestyle? |
SELECT dance FROM table_name_52 WHERE worst_dancer_s_ = "marissa jaret winokur" | CREATE TABLE table_name_52 (dance VARCHAR, worst_dancer_s_ VARCHAR) | Which dance has the worst dancer(s) as marissa jaret winokur? |
SELECT AVG(points) FROM table_name_91 WHERE opponent = "vancouver canucks" | CREATE TABLE table_name_91 (points INTEGER, opponent VARCHAR) | Which Points have an Opponent of vancouver canucks? |
SELECT COUNT(points) FROM table_name_80 WHERE score = "3–0" | CREATE TABLE table_name_80 (points VARCHAR, score VARCHAR) | How many Points have a Score of 3–0? |
SELECT SUM(game) FROM table_name_5 WHERE points < 10 AND october > 12 AND opponent = "@ washington capitals" | CREATE TABLE table_name_5 (game INTEGER, opponent VARCHAR, points VARCHAR, october VARCHAR) | Which Game has Points smaller than 10, and an October larger than 12, and an Opponent of @ washington capitals? |
SELECT record FROM table_name_96 WHERE points > 0 AND score = "7–3" | CREATE TABLE table_name_96 (record VARCHAR, points VARCHAR, score VARCHAR) | Which Record has Points larger than 0, and a Score of 7–3? |
SELECT date FROM table_name_23 WHERE game > 5 | CREATE TABLE table_name_23 (date VARCHAR, game INTEGER) | On what date was the game more than 5? |
SELECT series FROM table_name_4 WHERE date = "may 16" | CREATE TABLE table_name_4 (series VARCHAR, date VARCHAR) | Which series was on May 16? |
SELECT date FROM table_name_92 WHERE jurisdiction = "oregon" | CREATE TABLE table_name_92 (date VARCHAR, jurisdiction VARCHAR) | Name the date for oregon jurisdiction |
SELECT john_b_anderson FROM table_name_21 WHERE phil_crane = "0%" AND ronald_reagan = "43%" | CREATE TABLE table_name_21 (john_b_anderson VARCHAR, phil_crane VARCHAR, ronald_reagan VARCHAR) | Name the john b. anderson for ronald reagan of 43% and phil crane of 0% |
SELECT howard_baker FROM table_name_64 WHERE george_h_w_bush = "66%" | CREATE TABLE table_name_64 (howard_baker VARCHAR, george_h_w_bush VARCHAR) | Name the howard bake when bush had 66% |
SELECT george_h_w_bush FROM table_name_59 WHERE ronald_reagan = "43%" | CREATE TABLE table_name_59 (george_h_w_bush VARCHAR, ronald_reagan VARCHAR) | Name the george bush for ronald reagan of 43% |
SELECT howard_baker FROM table_name_46 WHERE ronald_reagan = "72%" | CREATE TABLE table_name_46 (howard_baker VARCHAR, ronald_reagan VARCHAR) | Name the howard baker for ronald reagan of 72% |
SELECT SUM(goals) FROM table_name_48 WHERE season = "2004/05" | CREATE TABLE table_name_48 (goals INTEGER, season VARCHAR) | What is the sum of goals for the 2004/05 Season? |
SELECT MIN(caps) FROM table_name_86 WHERE club = "sbv excelsior" | CREATE TABLE table_name_86 (caps INTEGER, club VARCHAR) | What is the lowest caps for the Club of SBV Excelsior? |
SELECT season FROM table_name_35 WHERE caps < 36 AND club = "nac breda" | CREATE TABLE table_name_35 (season VARCHAR, caps VARCHAR, club VARCHAR) | Which season has Caps lower than 36 for the Club of NAC Breda? |
SELECT opponents_in_the_final FROM table_name_91 WHERE partner = "daniella dominikovic" | CREATE TABLE table_name_91 (opponents_in_the_final VARCHAR, partner VARCHAR) | Which Opponents in the final have a Partner of daniella dominikovic? |
SELECT date FROM table_name_33 WHERE partner = "daniella dominikovic" | CREATE TABLE table_name_33 (date VARCHAR, partner VARCHAR) | Which Date has a Partner of daniella dominikovic? |
SELECT surface FROM table_name_89 WHERE partner = "pemra özgen" | CREATE TABLE table_name_89 (surface VARCHAR, partner VARCHAR) | Which Surface has a Partner of pemra özgen? |
SELECT date FROM table_name_59 WHERE opponents_in_the_final = "valeria casillo lilly raffa" | CREATE TABLE table_name_59 (date VARCHAR, opponents_in_the_final VARCHAR) | Which Date has Opponents in the final of valeria casillo lilly raffa? |
SELECT date FROM table_name_66 WHERE partner = "daniella dominikovic" | CREATE TABLE table_name_66 (date VARCHAR, partner VARCHAR) | Which Date has a Partner of daniella dominikovic? |
SELECT MIN(drawn) FROM table_name_5 WHERE nationality = "england" AND matches < 510 AND lost = 4 AND win__percentage < 28.6 | CREATE TABLE table_name_5 (drawn INTEGER, win__percentage VARCHAR, lost VARCHAR, nationality VARCHAR, matches VARCHAR) | Nationality of england, and a Matches smaller than 510, and a Lost of 4, and a Win % smaller than 28.6 had what lowest drawn? |
SELECT MIN(lost) FROM table_name_47 WHERE win__percentage > 47.1 AND matches < 145 | CREATE TABLE table_name_47 (lost INTEGER, win__percentage VARCHAR, matches VARCHAR) | Win % larger than 47.1, and a Matches smaller than 145 had what lowest lost? |
SELECT MAX(lost) FROM table_name_83 WHERE matches = 15 AND win__percentage < 20 | CREATE TABLE table_name_83 (lost INTEGER, matches VARCHAR, win__percentage VARCHAR) | Matches of 15, and a Win % smaller than 20 had what highest lost? |
SELECT SUM(matches) FROM table_name_1 WHERE nationality = "england" AND lost > 39 AND win__percentage = 28.7 AND drawn < 37 | CREATE TABLE table_name_1 (matches INTEGER, drawn VARCHAR, win__percentage VARCHAR, nationality VARCHAR, lost VARCHAR) | Nationality of england, and a Lost larger than 39, and a Win % of 28.7, and a Drawn smaller than 37 had what sum of matches? |
SELECT COUNT(matches) FROM table_name_5 WHERE drawn < 24 AND lost < 17 AND win__percentage < 31.25 | CREATE TABLE table_name_5 (matches VARCHAR, win__percentage VARCHAR, drawn VARCHAR, lost VARCHAR) | Drawn smaller than 24, and a Lost smaller than 17, and a Win % smaller than 31.25 had how many total number of matches? |
SELECT SUM(win__percentage) FROM table_name_52 WHERE lost = 18 | CREATE TABLE table_name_52 (win__percentage INTEGER, lost VARCHAR) | Lost of 18 had what sum of win %? |
SELECT date FROM table_name_20 WHERE record = "5-31" | CREATE TABLE table_name_20 (date VARCHAR, record VARCHAR) | When was the score 5-31? |
SELECT 2 AS nd_leg FROM table_name_49 WHERE team__number1 = "kk bosna" | CREATE TABLE table_name_49 (team__number1 VARCHAR) | What is the second leg that has kk bosna? |
SELECT 1 AS st_leg FROM table_name_75 WHERE team__number1 = "hapoel jerusalem" | CREATE TABLE table_name_75 (team__number1 VARCHAR) | What is the 1st leg that has hapoel jerusalem? |
SELECT 1 AS st_leg FROM table_name_12 WHERE team__number1 = "hemofarm" | CREATE TABLE table_name_12 (team__number1 VARCHAR) | Which 1st leg that has hemofarm? |
SELECT name FROM table_name_6 WHERE avg_g = 201.3 | CREATE TABLE table_name_6 (name VARCHAR, avg_g VARCHAR) | Who averaged 201.3 yards passing per game? |
SELECT COUNT(avg_g) FROM table_name_88 WHERE att_cmp_int = "143–269–16" AND effic < 116.9 | CREATE TABLE table_name_88 (avg_g VARCHAR, att_cmp_int VARCHAR, effic VARCHAR) | How many players had an Att-Cmp-Int of 143–269–16, and an efficiency of less than 116.9? |
SELECT att_cmp_int FROM table_name_72 WHERE effic = 117.4 | CREATE TABLE table_name_72 (att_cmp_int VARCHAR, effic VARCHAR) | What is the Att-Cmp-Int for the player with a efficiency of 117.4? |
SELECT COUNT(legs_lost) FROM table_name_1 WHERE high_checkout < 76 AND played < 3 | CREATE TABLE table_name_1 (legs_lost VARCHAR, high_checkout VARCHAR, played VARCHAR) | What is the total number of legs lost of the player with a high checkout less than 76 and less than 3 played? |
SELECT ch_1 FROM table_name_73 WHERE region_served = "central tablelands" | CREATE TABLE table_name_73 (ch_1 VARCHAR, region_served VARCHAR) | What is the Ch1 in the region served by Central Tablelands? |
SELECT transmitter_location FROM table_name_62 WHERE digital_power = "570kw" | CREATE TABLE table_name_62 (transmitter_location VARCHAR, digital_power VARCHAR) | What transmitter location has digital power of 570kw? |
SELECT COUNT(year) FROM table_name_96 WHERE team = "yamaha" AND wins = 0 AND rank = "8th" AND points > 22 | CREATE TABLE table_name_96 (year VARCHAR, points VARCHAR, rank VARCHAR, team VARCHAR, wins VARCHAR) | What year did team Yamaha have 0 wins, a rank of 8th, and more than 22 points? |
SELECT COUNT(round) FROM table_name_6 WHERE opponent = "gina carano" | CREATE TABLE table_name_6 (round VARCHAR, opponent VARCHAR) | Name the total number of rounds for gina carano |
SELECT points_difference FROM table_name_51 WHERE lost = 2 AND points < 10 | CREATE TABLE table_name_51 (points_difference VARCHAR, lost VARCHAR, points VARCHAR) | What is the difference related to 2 losses and fewer than 10 points? |
SELECT site FROM table_name_94 WHERE opponent = "iowa" | CREATE TABLE table_name_94 (site VARCHAR, opponent VARCHAR) | Where did the game(s) against Iowa take place? |
Subsets and Splits