answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT district FROM table_1341472_51 WHERE incumbent = "Jerry Kleczka"
What district was incumbent Jerry Kleczka in?
CREATE TABLE table_1341472_51 (district VARCHAR, incumbent VARCHAR)
SELECT original_name FROM table_name_97 WHERE film_title_used_in_nomination = "last days of the victim"
Name the original name for last days of the victim
CREATE TABLE table_name_97 (original_name VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT result FROM table_name_27 WHERE attendance = "42,308"
Which team won on the day when attendance was 42,308?
CREATE TABLE table_name_27 (result VARCHAR, attendance VARCHAR)
SELECT finalist FROM table_name_91 WHERE week = "march 12"
What is the finalist in the week of March 12?
CREATE TABLE table_name_91 (finalist VARCHAR, week VARCHAR)
SELECT top_5 FROM table_1671401_3 WHERE winnings = "$52,595"
name the top 5 where the winnings is $52,595
CREATE TABLE table_1671401_3 (top_5 VARCHAR, winnings VARCHAR)
SELECT SUM(1872) FROM table_name_29 WHERE 1866 > 856 AND 1861 > 1906 AND 1876 > 1990
What is the sum of 1872(s), when 1866 is greater than 856, when 1861 is greater than 1906, and when 1876 is greater than 1990?
CREATE TABLE table_name_29 (Id VARCHAR)
SELECT party FROM table_name_31 WHERE member = "peter white"
What the name of Peter White's party?
CREATE TABLE table_name_31 (party VARCHAR, member VARCHAR)
SELECT end_date FROM table_name_8 WHERE governor = "richard j. oglesby" AND term = "1885–1889"
What is the end date of the term for Governor of richard j. oglesby, and a Term of 1885–1889?
CREATE TABLE table_name_8 (end_date VARCHAR, governor VARCHAR, term VARCHAR)
SELECT COUNT(result) FROM table_name_96 WHERE location = "brussels"
What is the Result with a Location of brussels?
CREATE TABLE table_name_96 (result VARCHAR, location VARCHAR)
SELECT points FROM table_name_97 WHERE placings > 100 AND rank = 17
How many Points for the couple ranking 17 with Placings larger than 100?
CREATE TABLE table_name_97 (points VARCHAR, placings VARCHAR, rank VARCHAR)
SELECT SUM(draw__pe_) FROM table_name_28 WHERE team__equipo_ = "plaza amador" AND won__pg_ < 6
What is the sum of the pe draw of team plaza amador, who has less than 6 pg won?
CREATE TABLE table_name_28 (draw__pe_ INTEGER, team__equipo_ VARCHAR, won__pg_ VARCHAR)
SELECT area__acres__ FROM table_30120633_1 WHERE poor_law_union = "Bandon" AND townland = "Lissagroom"
How many acres does the area of Lissagroom with Bandon as its poor law union cover?
CREATE TABLE table_30120633_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, townland VARCHAR)
SELECT COUNT(october) FROM table_27537870_3 WHERE score = "6-1"
On how many days in October was the score 6-1?
CREATE TABLE table_27537870_3 (october VARCHAR, score VARCHAR)
SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = "APG"
How many flights depart from 'APG'?
CREATE TABLE FLIGHTS (SourceAirport VARCHAR)
SELECT school_club_team FROM table_15463188_7 WHERE season = "2008"
Namethe school team for season 2008
CREATE TABLE table_15463188_7 (school_club_team VARCHAR, season VARCHAR)
SELECT date FROM table_name_75 WHERE loss = "leneveu (1–0–1)"
What is the Date of the game with a Loss of Leneveu (1–0–1)?
CREATE TABLE table_name_75 (date VARCHAR, loss VARCHAR)
SELECT SUM(pick) FROM table_name_72 WHERE player_name = "mario williams" AND year < 2006
What pick was mario williams before 2006?
CREATE TABLE table_name_72 (pick INTEGER, player_name VARCHAR, year VARCHAR)
SELECT COUNT(vacator) FROM table_225093_4 WHERE date_successor_seated = "October 22, 1808"
How many vacators have October 22, 1808 as date successor seated?
CREATE TABLE table_225093_4 (vacator VARCHAR, date_successor_seated VARCHAR)
SELECT gto_winning_team FROM table_13643320_2 WHERE gtu_winning_team = "Chris Cord"
Who was the GTO winner of the round that ended with Chris Cord becoming the GTU winner?
CREATE TABLE table_13643320_2 (gto_winning_team VARCHAR, gtu_winning_team VARCHAR)
SELECT player FROM table_name_43 WHERE college = "virginia"
Which player is attending college at Virginia?
CREATE TABLE table_name_43 (player VARCHAR, college VARCHAR)
SELECT score FROM table_name_21 WHERE to_par = "+4" AND player = "andy bean"
With a To par of +4, what is Andy Bean's Score?
CREATE TABLE table_name_21 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT SUM(freq) FROM table_name_55 WHERE owner = "wpw" AND day_power___w__ > 250
What is the WPW freq with a day power of 250?
CREATE TABLE table_name_55 (freq INTEGER, owner VARCHAR, day_power___w__ VARCHAR)
SELECT partner FROM table_name_92 WHERE score_in_final = "5–7, 4–6"
What is the Partner of the match with a Score in Final of 5–7, 4–6?
CREATE TABLE table_name_92 (partner VARCHAR, score_in_final VARCHAR)
SELECT record FROM table_name_76 WHERE score = "12–6"
What was the record of the game with a score of 12–6?
CREATE TABLE table_name_76 (record VARCHAR, score VARCHAR)
SELECT MAX(yes_votes) FROM table_256286_19 WHERE no_votes = 61307
What is the largest number of yest votes for the measure with 61307 no votes?
CREATE TABLE table_256286_19 (yes_votes INTEGER, no_votes VARCHAR)
SELECT team FROM table_name_27 WHERE kit_manufacturer = "pony" AND captain = "julian dicks"
What is the team with a Pony kit manufacturer and Julian Dicks as the captain?
CREATE TABLE table_name_27 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR)
SELECT name FROM table_name_50 WHERE block < 342 AND weight < 87 AND height > 187
What is the Name of the player with less than 342 Block, less than 87 Weight and Height more than 187?
CREATE TABLE table_name_50 (name VARCHAR, height VARCHAR, block VARCHAR, weight VARCHAR)
SELECT date FROM table_name_95 WHERE away_team = "rochdale"
When was the game played that had Rochdale as the away team?
CREATE TABLE table_name_95 (date VARCHAR, away_team VARCHAR)
SELECT maac FROM table_21756039_1 WHERE overall = "26-8"
What is the maac when the overall is 26-8?
CREATE TABLE table_21756039_1 (maac VARCHAR, overall VARCHAR)
SELECT MIN(crowd) FROM table_name_83 WHERE away_team = "essendon"
What is the least amount of people that attended a game when Essendon was the away team?
CREATE TABLE table_name_83 (crowd INTEGER, away_team VARCHAR)
SELECT class FROM table_name_33 WHERE part_2 = "bond"
what is the class when part 2 is bond?
CREATE TABLE table_name_33 (class VARCHAR, part_2 VARCHAR)
SELECT champion FROM table_name_90 WHERE runner_up = "jimmy connors" AND year < 1978
Who was the champion earlier than 1978 when the runner-up was Jimmy Connors?
CREATE TABLE table_name_90 (champion VARCHAR, runner_up VARCHAR, year VARCHAR)
SELECT COUNT(losses) FROM table_name_35 WHERE draws = 0 AND wins > 11
What's the number of losses when the wins were more than 11 and had 0 draws?
CREATE TABLE table_name_35 (losses VARCHAR, draws VARCHAR, wins VARCHAR)
SELECT date FROM table_name_87 WHERE format = "cd" AND catalog = "alca-9206"
What is the release date of a CD with the catalog number ALCA-9206?
CREATE TABLE table_name_87 (date VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT MAX(silver) FROM table_name_35 WHERE total < 4 AND rank = "12"
What is the most silver medals when the total is less than 4 and the rank is 12?
CREATE TABLE table_name_35 (silver INTEGER, total VARCHAR, rank VARCHAR)
SELECT home_team FROM table_name_26 WHERE tie_no = "6"
Which Home has a Tie no of 6?
CREATE TABLE table_name_26 (home_team VARCHAR, tie_no VARCHAR)
SELECT COUNT(theme) FROM table_15796100_1 WHERE original_artist = "Judy Garland"
How many themes have the original artist of Judy Garland?
CREATE TABLE table_15796100_1 (theme VARCHAR, original_artist VARCHAR)
SELECT MIN(round) FROM table_name_81 WHERE opponent = "aleksandr pitchkounov"
Which Round has an Opponent of aleksandr pitchkounov?
CREATE TABLE table_name_81 (round INTEGER, opponent VARCHAR)
SELECT MAX(league_cup_goals) FROM table_name_6 WHERE club = "hartlepool"
What is the highest number of League Cup goals that were scored by Hartlepool?
CREATE TABLE table_name_6 (league_cup_goals INTEGER, club VARCHAR)
SELECT COUNT(location) FROM table_17360840_9 WHERE opponent = "Columbus Blue Jackets"
How many locations were recorded when the opponent Columbus Blue Jackets?
CREATE TABLE table_17360840_9 (location VARCHAR, opponent VARCHAR)
SELECT office FROM table_name_97 WHERE greenback_ticket = "richard m. griffin"
Which office was Richard M. Griffin vying for on the Greenback ticket?
CREATE TABLE table_name_97 (office VARCHAR, greenback_ticket VARCHAR)
SELECT opponent_in_the_final FROM table_name_63 WHERE championship = "johannesburg, south africa"
Who was the opponent in the championship in Johannesburg, South Africa?
CREATE TABLE table_name_63 (opponent_in_the_final VARCHAR, championship VARCHAR)
SELECT week FROM table_14656147_2 WHERE record = "0-1"
List the record of 0-1 from the table?
CREATE TABLE table_14656147_2 (week VARCHAR, record VARCHAR)
SELECT venue FROM table_name_9 WHERE opponent = "wightlink raiders"
What is the venue of the match with the wightlink raiders as the opponent?
CREATE TABLE table_name_9 (venue VARCHAR, opponent VARCHAR)
SELECT home FROM table_name_81 WHERE visitor = "kings"
Name the home with visitor of kings
CREATE TABLE table_name_81 (home VARCHAR, visitor VARCHAR)
SELECT school_club_team FROM table_name_20 WHERE player = "roy de walt"
Which team was Roy de Walt a player on?
CREATE TABLE table_name_20 (school_club_team VARCHAR, player VARCHAR)
SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE "2%"
Find the names of all the products whose stock number starts with "2".
CREATE TABLE catalog_contents (catalog_entry_name VARCHAR, product_stock_number VARCHAR)
SELECT status FROM table_name_9 WHERE opposing_teams = "south africa"
What was the status for the opposing team South Africa?
CREATE TABLE table_name_9 (status VARCHAR, opposing_teams VARCHAR)
SELECT nickname FROM table_1973816_1 WHERE founded = 1933
What's the nickname of the students of the school founded in 1933?
CREATE TABLE table_1973816_1 (nickname VARCHAR, founded VARCHAR)
SELECT result FROM table_name_41 WHERE attendance = "82,113"
What are the results for the game with 82,113 attending?
CREATE TABLE table_name_41 (result VARCHAR, attendance VARCHAR)
SELECT player FROM table_name_6 WHERE pick > 145 AND college = "wake forest"
Which player went to Wake Forest and was selected with a pick after 145?
CREATE TABLE table_name_6 (player VARCHAR, pick VARCHAR, college VARCHAR)
SELECT MIN(division) FROM table_name_11 WHERE reg_season = "7th"
Who was the lowest division in the 7th season?
CREATE TABLE table_name_11 (division INTEGER, reg_season VARCHAR)
SELECT electricity_grid FROM table_name_17 WHERE commercial_operation = "24.03.1973"
Which Electricity Grid started its Commercial Operation of 24.03.1973?
CREATE TABLE table_name_17 (electricity_grid VARCHAR, commercial_operation VARCHAR)
SELECT film_title_used_in_nomination FROM table_18987377_1 WHERE director = "André Téchiné Category:Articles with hCards"
Name the film title for andré téchiné category:articles with hcards
CREATE TABLE table_18987377_1 (film_title_used_in_nomination VARCHAR, director VARCHAR)
SELECT winning_driver FROM table_1140088_6 WHERE circuit = "Brands Hatch"
Who won the Brands Hatch circuit?
CREATE TABLE table_1140088_6 (winning_driver VARCHAR, circuit VARCHAR)
SELECT COUNT(*) FROM classroom WHERE building = 'Lamberton' AND capacity < 50
How many rooms whose capacity is less than 50 does the Lamberton building have?
CREATE TABLE classroom (building VARCHAR, capacity VARCHAR)
SELECT original_airdate FROM table_2501754_2 WHERE prod_code = "IPEA345A"
What are the original air date(s) for episodes with production code ipea345a?
CREATE TABLE table_2501754_2 (original_airdate VARCHAR, prod_code VARCHAR)
SELECT 1993 FROM table_name_18 WHERE 1994 = "2r" AND 1995 = "1r"
What 1993 has 2r as a 1994, and 1r as a 1995?
CREATE TABLE table_name_18 (Id VARCHAR)
SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly'
Find the countries that have never participated in any competition with Friendly type.
CREATE TABLE competition (country VARCHAR, competition_type VARCHAR)
SELECT date FROM table_name_99 WHERE game_site = "bye" AND week > 1
Name the date for week more than 1 and game site of bye
CREATE TABLE table_name_99 (date VARCHAR, game_site VARCHAR, week VARCHAR)
SELECT record FROM table_name_66 WHERE date = "march 16"
What is the record on March 16?
CREATE TABLE table_name_66 (record VARCHAR, date VARCHAR)
SELECT COUNT(college_junior_club_team) FROM table_2850912_7 WHERE nhl_team = "Edmonton Oilers"
How many college/junior/club teams are ther when nhl team is edmonton oilers?
CREATE TABLE table_2850912_7 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT MIN(first_elected) FROM table_1341663_14 WHERE incumbent = "Frank Annunzio"
What year was Frank Annunzio elected
CREATE TABLE table_1341663_14 (first_elected INTEGER, incumbent VARCHAR)
SELECT 1994 FROM table_name_22 WHERE 1998 = "2r"
What is the 1994 finish in the event that had a 1998 finish of 2R?
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT score FROM table_name_13 WHERE venue = "mcg" AND opponent = "footscray"
Name the score at mcg venue and footscray opponent
CREATE TABLE table_name_13 (score VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT december FROM table_name_72 WHERE november = "marlene janssen"
Who is the December playmate with a November playmate Marlene Janssen?
CREATE TABLE table_name_72 (december VARCHAR, november VARCHAR)
SELECT pole_position FROM table_22765887_1 WHERE date = "August 15, 1981"
Who had the pole position in the August 15, 1981 race?
CREATE TABLE table_22765887_1 (pole_position VARCHAR, date VARCHAR)
SELECT incumbent FROM table_1342013_34 WHERE candidates = "John M. Vorys (R) 61.5% Jacob F. Myers (D) 38.5%"
who is the the incumbent with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5%
CREATE TABLE table_1342013_34 (incumbent VARCHAR, candidates VARCHAR)
SELECT MIN(draws) FROM table_name_18 WHERE losses < 2 AND position < 4 AND wins > 4
What is the fewest draws for teams having under 2 losses, more than 4 wins, and a position under 4?
CREATE TABLE table_name_18 (draws INTEGER, wins VARCHAR, losses VARCHAR, position VARCHAR)
SELECT team_e FROM table_name_94 WHERE team_d = "aaron solloway"
Who is team e when Aaron Solloway is team D?
CREATE TABLE table_name_94 (team_e VARCHAR, team_d VARCHAR)
SELECT qual_1 FROM table_name_25 WHERE name = "alex tagliani"
what is the qual 1 for alex tagliani?
CREATE TABLE table_name_25 (qual_1 VARCHAR, name VARCHAR)
SELECT born FROM table_name_3 WHERE ordained_bishop = "november 30, 1925"
When was the archbishop that was ordained as a bishop on November 30, 1925 born?
CREATE TABLE table_name_3 (born VARCHAR, ordained_bishop VARCHAR)
SELECT partially_deleted FROM table_name_78 WHERE cerclis_id = "fld980494959"
Which Superfund site has the CERCLIS ID fld980494959?
CREATE TABLE table_name_78 (partially_deleted VARCHAR, cerclis_id VARCHAR)
SELECT airport FROM table_name_51 WHERE iata = "trz"
What is the Airport with an IATA of TRZ?
CREATE TABLE table_name_51 (airport VARCHAR, iata VARCHAR)
SELECT COUNT(wins) FROM table_name_43 WHERE team = "benelli" AND year < 1962
How many wins does Benelli have before 1962?
CREATE TABLE table_name_43 (wins VARCHAR, team VARCHAR, year VARCHAR)
SELECT report FROM table_name_33 WHERE pole_position = "bobby unser" AND winning_driver = "rick mears"
Which report includes Bobby Unser as the Pole Position and Rick Mears as the Winning driver?
CREATE TABLE table_name_33 (report VARCHAR, pole_position VARCHAR, winning_driver VARCHAR)
SELECT COUNT(points) FROM table_name_96 WHERE losses < 5 AND draws = 0
How many points have a loss less than 5, and 0 for draws?
CREATE TABLE table_name_96 (points VARCHAR, losses VARCHAR, draws VARCHAR)
SELECT nhl_team_s_ FROM table_1205598_1 WHERE media_market_ranking = 7
What is the NHL team in the media market ranking number 7?
CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, media_market_ranking VARCHAR)
SELECT pole_position FROM table_27913160_3 WHERE race = "Milwaukee"
Who had the pole position in Milwaukee?
CREATE TABLE table_27913160_3 (pole_position VARCHAR, race VARCHAR)
SELECT MIN(grid) FROM table_name_91 WHERE laps = 25 AND manufacturer = "honda" AND time_retired = "+54.103"
What is the lowest Grid with 25 laps manufactured by Honda with a time of +54.103?
CREATE TABLE table_name_91 (grid INTEGER, time_retired VARCHAR, laps VARCHAR, manufacturer VARCHAR)
SELECT round_of_32 FROM table_name_10 WHERE finals = "did not advance" AND semifinals = "did not advance" AND quarterfinals = "did not advance" AND event = "56kg"
What's the round of 32 during the 56kg when the quarterfinals, semifinals, and finals did not advance?
CREATE TABLE table_name_10 (round_of_32 VARCHAR, event VARCHAR, quarterfinals VARCHAR, finals VARCHAR, semifinals VARCHAR)
SELECT COUNT(rank) FROM table_name_9 WHERE athlete = "lassi karonen"
What rank was Lassi Karonen?
CREATE TABLE table_name_9 (rank VARCHAR, athlete VARCHAR)
SELECT date FROM table_name_56 WHERE opponents = "astley bridge 'a'"
When was the game played against Astley Bridge 'a'?
CREATE TABLE table_name_56 (date VARCHAR, opponents VARCHAR)
SELECT decision FROM table_name_95 WHERE date = "april 30"
Which Decision has a Date of april 30?
CREATE TABLE table_name_95 (decision VARCHAR, date VARCHAR)
SELECT MIN(swimsuit) FROM table_name_43 WHERE state = "utah" AND interview > 8.53
What's utah's lowest swimsuit with an interview over 8.53?
CREATE TABLE table_name_43 (swimsuit INTEGER, state VARCHAR, interview VARCHAR)
SELECT vehicle_flight_number, date, pilot FROM flight ORDER BY altitude
List the vehicle flight number, date and pilot of all the flights, ordered by altitude.
CREATE TABLE flight (vehicle_flight_number VARCHAR, date VARCHAR, pilot VARCHAR, altitude VARCHAR)
SELECT home_team FROM table_name_59 WHERE date = "18 february 1956" AND away_team = "blackburn rovers"
What is Home Team, when Date is 18 February 1956, and when Away Team is Blackburn Rovers?
CREATE TABLE table_name_59 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT rating FROM table_name_62 WHERE player = "patrice bergeron"
What is Patrice Bergeron's rating?
CREATE TABLE table_name_62 (rating VARCHAR, player VARCHAR)
SELECT SUM(overall) FROM table_name_13 WHERE pick__number < 20 AND round < 6
How much Overall has a Pick # smaller than 20, and a Round smaller than 6?
CREATE TABLE table_name_13 (overall INTEGER, pick__number VARCHAR, round VARCHAR)
SELECT 3 AS rd_throw FROM table_17265535_6 WHERE equation = "all equal"
If the equation is all equal, what is the 3rd throw?
CREATE TABLE table_17265535_6 (equation VARCHAR)
SELECT city FROM table_name_4 WHERE arena = "kara ali acar sport hall"
What city is Kara Ali Acar Sport Hall located in?
CREATE TABLE table_name_4 (city VARCHAR, arena VARCHAR)
SELECT COUNT(total) FROM table_name_41 WHERE bronze > 11
What is the total number of medals won by teams that won more than 11 bronze medals?
CREATE TABLE table_name_41 (total VARCHAR, bronze INTEGER)
SELECT COUNT(segment_c) FROM table_15187735_9 WHERE segment_d = "Pedal Steel Guitars"
How many times was leather introduced before pedal steel guitars in episode 111?
CREATE TABLE table_15187735_9 (segment_c VARCHAR, segment_d VARCHAR)
SELECT round_of_32 FROM table_27294107_11 WHERE athlete = "Yakup Şener"
When yakup şener is the athlete what is the round of 32?
CREATE TABLE table_27294107_11 (round_of_32 VARCHAR, athlete VARCHAR)
SELECT ravg FROM table_name_51 WHERE year = "1984"
In 1984, what was the RAvg?
CREATE TABLE table_name_51 (ravg VARCHAR, year VARCHAR)
SELECT director FROM table_26385848_1 WHERE film_title = "Eldra"
Who is the director for the film title Eldra?
CREATE TABLE table_26385848_1 (director VARCHAR, film_title VARCHAR)
SELECT reg_season FROM table_name_89 WHERE avg_attendance_† = "1,242"
What regular season had an average attendance of 1,242?
CREATE TABLE table_name_89 (reg_season VARCHAR, avg_attendance_† VARCHAR)
SELECT verb_meaning FROM table_name_89 WHERE part_3 = "gaben"
What is the verb meaning for Gaben in part 3?
CREATE TABLE table_name_89 (verb_meaning VARCHAR, part_3 VARCHAR)
SELECT away_team FROM table_name_96 WHERE home_team = "fitzroy"
What was the away team that played Fitzroy?
CREATE TABLE table_name_96 (away_team VARCHAR, home_team VARCHAR)
SELECT time FROM table_name_35 WHERE away = "high park demons"
What time was the away game played against the High Park Demons?
CREATE TABLE table_name_35 (time VARCHAR, away VARCHAR)