answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(first_elected) FROM table_1341690_5 WHERE party = "Republican"
What republican candidate was first elected most recently?
CREATE TABLE table_1341690_5 (first_elected INTEGER, party VARCHAR)
SELECT MAX(stolen_ends_against) FROM table_16684420_2 WHERE country = Japan
What is the maximum number of stolen ends against for Japan?
CREATE TABLE table_16684420_2 (stolen_ends_against INTEGER, country VARCHAR, Japan VARCHAR)
SELECT election FROM table_name_26 WHERE seats > 57 AND dáil = "24th"
With a dail of 24th and more than 57 seats, what is the election?
CREATE TABLE table_name_26 (election VARCHAR, seats VARCHAR, dáil VARCHAR)
SELECT ceremony FROM table_name_80 WHERE nominee = "harnam singh rawail"
In which ceremony was Harnam Singh Rawail nominated for an award?
CREATE TABLE table_name_80 (ceremony VARCHAR, nominee VARCHAR)
SELECT SUM(points) FROM table_name_11 WHERE engine = "ilmor v10" AND year > 1992
What points did the ilmor v10 engine get after 1992?
CREATE TABLE table_name_11 (points INTEGER, engine VARCHAR, year VARCHAR)
SELECT player FROM table_name_54 WHERE country = "northern ireland"
Who is the golfer that golfs for Northern Ireland?
CREATE TABLE table_name_54 (player VARCHAR, country VARCHAR)
SELECT place FROM table_name_63 WHERE score = 69 - 72 - 72 = 213
What is the Place of the Player with a Score of 69-72-72=213?
CREATE TABLE table_name_63 (place VARCHAR, score VARCHAR)
SELECT MIN(population) FROM table_name_15 WHERE county = "green"
What was the population of Green County?
CREATE TABLE table_name_15 (population INTEGER, county VARCHAR)
SELECT andrew_and_georgies_guest FROM table_29141354_2 WHERE jamie_and_johns_guest = "Joe Calzaghe"
Who was Andrew and Georgies guest when Jamie and Johns guest was Joe Calzaghe?
CREATE TABLE table_29141354_2 (andrew_and_georgies_guest VARCHAR, jamie_and_johns_guest VARCHAR)
SELECT us_air_force_equivalent FROM table_1015521_2 WHERE commonwealth_equivalent = "Pilot Officer"
If you are a pilot officer in the commonwealth then what will you called as in the US air force?
CREATE TABLE table_1015521_2 (us_air_force_equivalent VARCHAR, commonwealth_equivalent VARCHAR)
SELECT AVG(bronze) FROM table_name_16 WHERE total > 1 AND gold < 2 AND rank = 2
How many bronze's on average for nations with over 1 total, less than 2 golds, ranked 2nd?
CREATE TABLE table_name_16 (bronze INTEGER, rank VARCHAR, total VARCHAR, gold VARCHAR)
SELECT womens_doubles FROM table_28138035_32 WHERE womens_singles = "Ding Ning"
Who was the womens double winner when the womens singles winner was Ding Ning?
CREATE TABLE table_28138035_32 (womens_doubles VARCHAR, womens_singles VARCHAR)
SELECT MAX(founded) FROM table_28211213_1 WHERE team_nickname = "Spartans"
When were the Spartans founded?
CREATE TABLE table_28211213_1 (founded INTEGER, team_nickname VARCHAR)
SELECT regionalliga_süd FROM table_name_13 WHERE season = "1995-96"
What is the Regionalliga Sud for 1995-96?
CREATE TABLE table_name_13 (regionalliga_süd VARCHAR, season VARCHAR)
SELECT high_points FROM table_27700375_10 WHERE date = "March 14"
who had high points on march 14?
CREATE TABLE table_27700375_10 (high_points VARCHAR, date VARCHAR)
SELECT place FROM table_name_50 WHERE country = "united states" AND player = "andy bean"
Which place is Andy Bean from the United States?
CREATE TABLE table_name_50 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT location_attendance FROM table_23285849_11 WHERE high_points = "Carmelo Anthony (39)"
When carmelo anthony (39) has the highest amount of points where is the location and what is the attendance?
CREATE TABLE table_23285849_11 (location_attendance VARCHAR, high_points VARCHAR)
SELECT to_par FROM table_name_99 WHERE year_s__won = "1968 , 1971"
What is To Par, when Year(s) Won is "1968 , 1971"?
CREATE TABLE table_name_99 (to_par VARCHAR, year_s__won VARCHAR)
SELECT japanese FROM table_name_99 WHERE prefecture = "iwate"
WHich Japanese has a Prefecture of iwate?
CREATE TABLE table_name_99 (japanese VARCHAR, prefecture VARCHAR)
SELECT MAX(gold) FROM table_name_93 WHERE bronze = 1 AND rank = 5
What is the highest gold when bronze is 1, and rank is 5?
CREATE TABLE table_name_93 (gold INTEGER, bronze VARCHAR, rank VARCHAR)
SELECT SUM(share) FROM table_name_42 WHERE rating > 1.2 AND rank__timeslot_ = 3 AND viewers__millions_ = 6.07
What is the sum of share with a rating larger than 1.2, a 3 rank timeslot, and 6.07 million viewers?
CREATE TABLE table_name_42 (share INTEGER, viewers__millions_ VARCHAR, rating VARCHAR, rank__timeslot_ VARCHAR)
SELECT year__ceremony_ FROM table_14975415_1 WHERE hungarian_title = "Taxidermia"
What year was taxidermia nominated?
CREATE TABLE table_14975415_1 (year__ceremony_ VARCHAR, hungarian_title VARCHAR)
SELECT august_21_22 FROM table_25286976_2 WHERE march_27_29 = "139"
When 139 is on March 27th to 29th what is August 21st to 22nd?
CREATE TABLE table_25286976_2 (august_21_22 VARCHAR, march_27_29 VARCHAR)
SELECT points_classification_klasyfikacja_punktowa FROM table_28092844_16 WHERE teams_classification = "Lampre-Farnese"
Who won the points classification when the teams classification winner was Lampre-Farnese?
CREATE TABLE table_28092844_16 (points_classification_klasyfikacja_punktowa VARCHAR, teams_classification VARCHAR)
SELECT AVG(week) FROM table_name_82 WHERE result = "w 17–13"
How many Weeks have a Result of w 17–13?
CREATE TABLE table_name_82 (week INTEGER, result VARCHAR)
SELECT chassis FROM table_name_33 WHERE year > 1965 AND team = "cooper car company" AND engine = "maserati v12"
What is the Chassis of the Cooper Car Company after 1965 when the engine was a Maserati v12?
CREATE TABLE table_name_33 (chassis VARCHAR, engine VARCHAR, year VARCHAR, team VARCHAR)
SELECT country FROM table_13282157_1 WHERE player = "Phil Mickelson"
what is the country where the player is phil mickelson?
CREATE TABLE table_13282157_1 (country VARCHAR, player VARCHAR)
SELECT MIN(Otl) FROM table_1888165_1 WHERE PCt = 0.514
If the PCT is 0.514, what was the minimum OTL?
CREATE TABLE table_1888165_1 (Otl INTEGER, PCt VARCHAR)
SELECT venue FROM table_name_69 WHERE year < 2008 AND tournament = "world race walking cup"
What Venue held the World Race Walking Cup tourney before 2008?
CREATE TABLE table_name_69 (venue VARCHAR, year VARCHAR, tournament VARCHAR)
SELECT year__ceremony_ FROM table_22102732_1 WHERE english_title = "Time Out"
What year and the corresponding ceremony was the english titled movie "time out" submitted?
CREATE TABLE table_22102732_1 (year__ceremony_ VARCHAR, english_title VARCHAR)
SELECT semi_final FROM table_23429629_4 WHERE act = "Playing on Glasses"
During the act, Playing on Glasses, what was the semi-final?
CREATE TABLE table_23429629_4 (semi_final VARCHAR, act VARCHAR)
SELECT score FROM table_name_11 WHERE losing_team = "devil rays" AND date = "june 29"
what was the score on june 29 when the devil rays los?
CREATE TABLE table_name_11 (score VARCHAR, losing_team VARCHAR, date VARCHAR)
SELECT COUNT(100) FROM table_2985664_8 WHERE average = "15.78"
How many entries for 100 occur when the average is 15.78?
CREATE TABLE table_2985664_8 (average VARCHAR)
SELECT gp_winner FROM table_name_2 WHERE race_winners = "valentin giraud / nicolas musset" AND place = "genk"
What is the GP winner for the Race winners valentin giraud / nicolas musset, and a place genk?
CREATE TABLE table_name_2 (gp_winner VARCHAR, race_winners VARCHAR, place VARCHAR)
SELECT player FROM table_1965650_2 WHERE pick__number = 30
Name the player for pick number for 30
CREATE TABLE table_1965650_2 (player VARCHAR, pick__number VARCHAR)
SELECT player FROM table_name_62 WHERE country = "ireland"
Which play is from Ireland?
CREATE TABLE table_name_62 (player VARCHAR, country VARCHAR)
SELECT MIN(year) FROM table_name_51 WHERE silver = "kim kyung-ho"
What's listed for the lowest Year that a Silver of Kim Kyung-Ho?
CREATE TABLE table_name_51 (year INTEGER, silver VARCHAR)
SELECT COUNT(episode) FROM table_23292220_3 WHERE daves_team = "David Walliams and Louis Walsh"
In how many episodes was Dave's team made up of David Walliams and Louis Walsh?
CREATE TABLE table_23292220_3 (episode VARCHAR, daves_team VARCHAR)
SELECT league_from FROM table_name_48 WHERE player = "louis domingue"
Which League from has a Player of louis domingue?
CREATE TABLE table_name_48 (league_from VARCHAR, player VARCHAR)
SELECT total FROM table_name_80 WHERE set_3 = "25–14"
What was the total when the set 3 was 25–14?
CREATE TABLE table_name_80 (total VARCHAR, set_3 VARCHAR)
SELECT attendance FROM table_name_27 WHERE opponent = "middlesbrough"
What is the attendance rate for the Middlesbrough opponent?
CREATE TABLE table_name_27 (attendance VARCHAR, opponent VARCHAR)
SELECT loss FROM table_name_81 WHERE record = "50-32"
What was the loss of the game when the record was 50-32?
CREATE TABLE table_name_81 (loss VARCHAR, record VARCHAR)
SELECT woodside FROM table_name_81 WHERE coombe_road = "16:19"
What is the Woodside for the 16:19 Coombe Road?
CREATE TABLE table_name_81 (woodside VARCHAR, coombe_road VARCHAR)
SELECT original_airdate FROM table_25691838_6 WHERE episode__number = 733
What was the original airdate of episode #733?
CREATE TABLE table_25691838_6 (original_airdate VARCHAR, episode__number VARCHAR)
SELECT AVG(rank__week_) FROM table_name_53 WHERE rating = 1.2 AND viewers__millions_ < 1.94 AND rank__night_ < 11
What is the average week rank with 1.2 ratings, less than 1.94 million viewers, and a night rank less than 11?
CREATE TABLE table_name_53 (rank__week_ INTEGER, rank__night_ VARCHAR, rating VARCHAR, viewers__millions_ VARCHAR)
SELECT friday_day_six FROM table_1277350_7 WHERE monday_day_two = "Isnin"
What is friday day six when monday day two is isnin?
CREATE TABLE table_1277350_7 (friday_day_six VARCHAR, monday_day_two VARCHAR)
SELECT COUNT(campeonato_paulista) FROM table_name_72 WHERE campeonato_brasileiro > 2 AND others > 0 AND copa_sudamericana > 5
How many Campeonato Paulistas had a campeonato brasileiro of more than 2, an others number of more than 0, and a copa sudamericana of more than 5?
CREATE TABLE table_name_72 (campeonato_paulista VARCHAR, copa_sudamericana VARCHAR, campeonato_brasileiro VARCHAR, others VARCHAR)
SELECT tournament FROM table_name_18 WHERE opponent = "susan sloane"
Which Tournament has an Opponent of susan sloane?
CREATE TABLE table_name_18 (tournament VARCHAR, opponent VARCHAR)
SELECT type FROM table_2562572_30 WHERE settlement = "Rabe"
What type of settlement is rabe?
CREATE TABLE table_2562572_30 (type VARCHAR, settlement VARCHAR)
SELECT type FROM table_name_87 WHERE location = "brazil" AND entered_service = "1976/1997"
Which type entered service in 1976/1997 and is located in Brazil?
CREATE TABLE table_name_87 (type VARCHAR, location VARCHAR, entered_service VARCHAR)
SELECT bronze FROM table_name_7 WHERE year = 2006
Who won bronze is 2006?
CREATE TABLE table_name_7 (bronze VARCHAR, year VARCHAR)
SELECT year_at_cu FROM table_name_8 WHERE experience < 1 AND position = "video services"
What year at CU is the person in video services with an experience less than 1?
CREATE TABLE table_name_8 (year_at_cu VARCHAR, experience VARCHAR, position VARCHAR)
SELECT SUM(carries) FROM table_name_98 WHERE points = 80 AND touchdowns < 16
What is the sum of carries associated with 80 points and fewer than 16 touchdowns?
CREATE TABLE table_name_98 (carries INTEGER, points VARCHAR, touchdowns VARCHAR)
SELECT MIN(pick__number) FROM table_name_78 WHERE college = "saint vincent college"
What is the lowest Pick # of Saint Vincent College?
CREATE TABLE table_name_78 (pick__number INTEGER, college VARCHAR)
SELECT opponent_in_the_final FROM table_name_20 WHERE surface = "clay" AND tournament = "lyneham"
Who is the opponent in the final with a clay surface at the Tournament of Lyneham?
CREATE TABLE table_name_20 (opponent_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT tyres FROM table_name_56 WHERE points = 8
Which tyres received 8 points?
CREATE TABLE table_name_56 (tyres VARCHAR, points VARCHAR)
SELECT date FROM table_name_56 WHERE race_title = "sandown"
what day was the sandown
CREATE TABLE table_name_56 (date VARCHAR, race_title VARCHAR)
SELECT MAX(play_offs) FROM table_name_64 WHERE club = "stevenage borough" AND total > 21
What is the highest play-offs that have stevenage borough as the club, and a total greater than 21?
CREATE TABLE table_name_64 (play_offs INTEGER, club VARCHAR, total VARCHAR)
SELECT COUNT(market_value__billion_) AS $_ FROM table_name_34 WHERE profits__billion_$_ = 20.96 AND assets__billion_$_ < 166.99
What is the total market value in billions of the company with 20.96 billion in profits and less than 166.99 billions in assets?
CREATE TABLE table_name_34 (market_value__billion_ VARCHAR, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)
SELECT runner_s__up FROM table_name_66 WHERE date = "4 oct 2009"
Who was the Runner(s)-up on the Date 4 Oct 2009?
CREATE TABLE table_name_66 (runner_s__up VARCHAR, date VARCHAR)
SELECT third FROM table_name_73 WHERE venue = "rybinsk" AND round = "6"
Who was third during round 6 in Rybinsk?
CREATE TABLE table_name_73 (third VARCHAR, venue VARCHAR, round VARCHAR)
SELECT points FROM table_name_3 WHERE engine = "ford v8" AND chassis = "tyrrell 007"
How many points did the Ford V8 with a Tyrrell 007 have?
CREATE TABLE table_name_3 (points VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT MAX(silver) FROM table_name_61 WHERE gold = 8 AND total > 31
What is the highest Silver, when Gold is "8", and when Total is greater than 31?
CREATE TABLE table_name_61 (silver INTEGER, gold VARCHAR, total VARCHAR)
SELECT record FROM table_name_42 WHERE date = "april 21"
What is the record for April 21?
CREATE TABLE table_name_42 (record VARCHAR, date VARCHAR)
SELECT COUNT(title) FROM table_2623498_5 WHERE written_by = "Charleen Easton"
What is the number of titles written by Charleen Easton?
CREATE TABLE table_2623498_5 (title VARCHAR, written_by VARCHAR)
SELECT high_rebounds FROM table_name_62 WHERE team = "denver"
Who had the high rebounds, and how many, when they played Denver?
CREATE TABLE table_name_62 (high_rebounds VARCHAR, team VARCHAR)
SELECT MAX(round) FROM table_name_72 WHERE college = "penn state"
what is the highest round when the college is penn state?
CREATE TABLE table_name_72 (round INTEGER, college VARCHAR)
SELECT MIN(gold) FROM table_name_59 WHERE total = 3 AND silver < 2
What is the fewest number of golds for teams with a total of 3 and fewer than 2 silvers?
CREATE TABLE table_name_59 (gold INTEGER, total VARCHAR, silver VARCHAR)
SELECT 1 AS st_leg FROM table_name_11 WHERE team_1 = "al fahaheel"
What is the 1st leg of the Al Fahaheel Team 1?
CREATE TABLE table_name_11 (team_1 VARCHAR)
SELECT SUM(attendance) FROM table_name_7 WHERE opponents = "kaizer chiefs"
How many people attended the game against the Kaizer Chiefs?
CREATE TABLE table_name_7 (attendance INTEGER, opponents VARCHAR)
SELECT COUNT(area) FROM table_name_31 WHERE pop_dens = 113 AND population > 184 OFFSET 531
How big is the area that has a population density of 113 and a population larger than 184,531?
CREATE TABLE table_name_31 (area VARCHAR, pop_dens VARCHAR, population VARCHAR)
SELECT area FROM table_name_33 WHERE decile = "2" AND roll = "222"
What is the area of the school with a decile of 2 and a roll number 222?
CREATE TABLE table_name_33 (area VARCHAR, decile VARCHAR, roll VARCHAR)
SELECT conductor FROM table_24521345_1 WHERE record_label = "Multisonic"
Who is the conductor on the Multisonic label?
CREATE TABLE table_24521345_1 (conductor VARCHAR, record_label VARCHAR)
SELECT COUNT(round) FROM table_name_49 WHERE pick > 9 AND school = "duke"
In what Round does Duke have a Pick larger than 9?
CREATE TABLE table_name_49 (round VARCHAR, pick VARCHAR, school VARCHAR)
SELECT COUNT(building) FROM table_13397394_1 WHERE address = "201 1st Avenue South"
what is the total number of building for address on 201 1st avenue south
CREATE TABLE table_13397394_1 (building VARCHAR, address VARCHAR)
SELECT club_province FROM table_name_49 WHERE caps = 12
What club or province is the player with 12 caps from?
CREATE TABLE table_name_49 (club_province VARCHAR, caps VARCHAR)
SELECT 2 AS nd_member FROM table_name_46 WHERE elected = "1461"
Who is the 2nd member elected in 1461?
CREATE TABLE table_name_46 (elected VARCHAR)
SELECT MAX(laps) FROM table_name_19 WHERE grid > 13 AND time_retired = "engine" AND driver = "luigi piotti"
What was the highest lap for Luigi Piotti with more than 13 grid and a time/retired engine?
CREATE TABLE table_name_19 (laps INTEGER, driver VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT SUM(attendance) FROM table_name_40 WHERE date = "november 17, 1961"
What is the sum of all attendance on November 17, 1961?
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR)
SELECT team_s_ FROM table_1708014_2 WHERE winnings = "$81,690"
what is the team where winnings is $81,690?
CREATE TABLE table_1708014_2 (team_s_ VARCHAR, winnings VARCHAR)
SELECT time_retired FROM table_name_74 WHERE constructor = "maserati" AND laps = 90
what is the time/retired when the constructor is maserati and the laps is 90?
CREATE TABLE table_name_74 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT record FROM table_name_97 WHERE game = 41
Which Record has a Game of 41?
CREATE TABLE table_name_97 (record VARCHAR, game VARCHAR)
SELECT COUNT(japanese_title) FROM table_2144389_9 WHERE vocalist = "Momoiro Clover Z"
When momoiro clover z is the vocalist how many japanese titles are there?
CREATE TABLE table_2144389_9 (japanese_title VARCHAR, vocalist VARCHAR)
SELECT first_leg FROM table_name_53 WHERE round = "semi-final"
Who has the first leg that has a round in the semi-final?
CREATE TABLE table_name_53 (first_leg VARCHAR, round VARCHAR)
SELECT city_s_ FROM table_20630462_1 WHERE also_currently_known_as = "Medibank International Sydney"
What is the city location of the tournament currently known as the Medibank International Sydney?
CREATE TABLE table_20630462_1 (city_s_ VARCHAR, also_currently_known_as VARCHAR)
SELECT status FROM table_name_23 WHERE index = "f7"
For the event with index f7, what is the status?
CREATE TABLE table_name_23 (status VARCHAR, index VARCHAR)
SELECT MIN(injured) FROM table_name_49 WHERE place = "mayurbhanj, odisha" AND killed < 1
What is the smallest number of injured in mayurbhanj, odisha and less than 1 killed?
CREATE TABLE table_name_49 (injured INTEGER, place VARCHAR, killed VARCHAR)
SELECT games FROM table_name_39 WHERE match_points = "34"
What is the number of games for a club that has 34 match points?
CREATE TABLE table_name_39 (games VARCHAR, match_points VARCHAR)
SELECT winning_score FROM table_1940012_2 WHERE tournament = "Sybase Classic"
What was the winning score in the Sybase Classic tournament?
CREATE TABLE table_1940012_2 (winning_score VARCHAR, tournament VARCHAR)
SELECT venue FROM table_name_21 WHERE result = "22-12"
Where did they play that the score was 22-12?
CREATE TABLE table_name_21 (venue VARCHAR, result VARCHAR)
SELECT years FROM table_name_62 WHERE model = "2.0 tdi (cr) dpf"
What years show Model of 2.0 tdi (cr) dpf?
CREATE TABLE table_name_62 (years VARCHAR, model VARCHAR)
SELECT date FROM table_name_97 WHERE country = "united states"
What was the Date of Country of United States?
CREATE TABLE table_name_97 (date VARCHAR, country VARCHAR)
SELECT MAX(grid) FROM table_name_86 WHERE rider = "colin edwards" AND laps < 28
Which Grid is the highest one that has a Rider of colin edwards, and Laps smaller than 28?
CREATE TABLE table_name_86 (grid INTEGER, rider VARCHAR, laps VARCHAR)
SELECT score FROM table_name_3 WHERE opponent = "holy cross" AND result = "push"
Tell me the score for opponent of holy cross and result of push
CREATE TABLE table_name_3 (score VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT champion FROM table_2527617_1 WHERE season = 1994
Who is the champion of the 1994 season?
CREATE TABLE table_2527617_1 (champion VARCHAR, season VARCHAR)
SELECT AVG(net_yds) FROM table_name_59 WHERE long = 68 AND start > 1984
What is the average net yds for the player who had a long of 68 and started after 1984?
CREATE TABLE table_name_59 (net_yds INTEGER, long VARCHAR, start VARCHAR)
SELECT venue FROM table_name_6 WHERE date = "24/11/1992"
What is the venue of 24/11/1992?
CREATE TABLE table_name_6 (venue VARCHAR, date VARCHAR)
SELECT MIN(episode__number) FROM table_2501754_4
What is the lowest episode number?
CREATE TABLE table_2501754_4 (episode__number INTEGER)
SELECT date__closing_ FROM table_name_95 WHERE opening_film = "deconstruction of korean housewife"
What is Date (Closing), when Opening Film is "Deconstruction of Korean Housewife"?
CREATE TABLE table_name_95 (date__closing_ VARCHAR, opening_film VARCHAR)
SELECT home_team FROM table_name_40 WHERE tie_no = "16"
Who was the home team for tie number 16?
CREATE TABLE table_name_40 (home_team VARCHAR, tie_no VARCHAR)