answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT AVG(finish) FROM table_name_80 WHERE team = "penske" AND start < 9
When the team is penske and they start under 9, what's the average finish time?
CREATE TABLE table_name_80 (finish INTEGER, team VARCHAR, start VARCHAR)
SELECT MAX(game) FROM table_name_11 WHERE streak = "win 1" AND date = "february 18"
What is the highest Game, when Streak is "Win 1", and when Date is "February 18"?
CREATE TABLE table_name_11 (game INTEGER, streak VARCHAR, date VARCHAR)
SELECT performer FROM table_name_22 WHERE points = 57
Who scored 57 points?
CREATE TABLE table_name_22 (performer VARCHAR, points VARCHAR)
SELECT COUNT(tot_enlisted) FROM table_23508196_2 WHERE enlisted_o_s = 801471
How many different numbers of Tot enlisted are there on the dates when the number of Enlisted o/s was 801471?
CREATE TABLE table_23508196_2 (tot_enlisted VARCHAR, enlisted_o_s VARCHAR)
SELECT league FROM table_1908049_1 WHERE year = "1998/99"
in the year 1998/99 what was the league
CREATE TABLE table_1908049_1 (league VARCHAR, year VARCHAR)
SELECT tournament FROM table_name_51 WHERE opponent = "sam querrey"
what tournament had sam querrey as the opponent?
CREATE TABLE table_name_51 (tournament VARCHAR, opponent VARCHAR)
SELECT home_team FROM table_name_29 WHERE venue = "princes park"
What Home team plays at the princes park Venue?
CREATE TABLE table_name_29 (home_team VARCHAR, venue VARCHAR)
SELECT AVG(against) FROM table_name_74 WHERE losses < 10 AND draws > 0 AND wins > 7
What is the average number of against with less than 10 losses, more than 0 draws, and more than 7 wins?
CREATE TABLE table_name_74 (against INTEGER, wins VARCHAR, losses VARCHAR, draws VARCHAR)
SELECT COUNT(place) FROM table_name_12 WHERE points = 18 AND lost < 8
Whate place has 18 points with lost less than 8?
CREATE TABLE table_name_12 (place VARCHAR, points VARCHAR, lost VARCHAR)
SELECT asia FROM table_27184837_1 WHERE programs = "Radio Stations"
How many radio stations were built in Asia?
CREATE TABLE table_27184837_1 (asia VARCHAR, programs VARCHAR)
SELECT tournament FROM table_29296103_10 WHERE champion = "Pat Cash 4–6, 6–4, 6–3"
which tournament was the champion pat cash 4–6, 6–4, 6–3?
CREATE TABLE table_29296103_10 (tournament VARCHAR, champion VARCHAR)
SELECT pole FROM table_name_95 WHERE flap < 15 AND podium > 11
When the Flap is less than 15 and the podium is larger than 11, what is the pole?
CREATE TABLE table_name_95 (pole VARCHAR, flap VARCHAR, podium VARCHAR)
SELECT away_team AS score FROM table_name_75 WHERE venue = "western oval"
What was the away team's score at Western Oval?
CREATE TABLE table_name_75 (away_team VARCHAR, venue VARCHAR)
SELECT nation FROM table_name_76 WHERE silver > 4 AND gold > 3 AND total = 18
What Nation has more than 4 silver, more than 3 gold and 18 total medals?
CREATE TABLE table_name_76 (nation VARCHAR, total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT date__from_ FROM table_name_46 WHERE name_of_system = "hsm (1883–1910) gt (1915–1922)" AND traction_type = "steam"
On what date did the event begin that had a steam traction type and used the system named HSM (1883–1910) GT (1915–1922)?
CREATE TABLE table_name_46 (date__from_ VARCHAR, name_of_system VARCHAR, traction_type VARCHAR)
SELECT first_elected FROM table_1342270_3 WHERE candidates = "Joe Starnes (D) 100.0% George Bogus ( W/I ) 0.003%"
what's the first elected with candidates being joe starnes (d) 100.0% george bogus ( w/i ) 0.003%
CREATE TABLE table_1342270_3 (first_elected VARCHAR, candidates VARCHAR)
SELECT production_code FROM table_28348757_3 WHERE _number = 8
Name the production code for number 8
CREATE TABLE table_28348757_3 (production_code VARCHAR, _number VARCHAR)
SELECT reason FROM table_28898974_3 WHERE incumbent = "James Seaton"
When james seaton is the incumbent what is the reason?
CREATE TABLE table_28898974_3 (reason VARCHAR, incumbent VARCHAR)
SELECT celebrity FROM table_14345690_2 WHERE famous_for = "Champion boxer"
Who was the champion boxer?
CREATE TABLE table_14345690_2 (celebrity VARCHAR, famous_for VARCHAR)
SELECT COUNT(horizontal) FROM table_15928363_1 WHERE framerate___hz__ = "25"
Name the number of horizontal when framerate hz is 25
CREATE TABLE table_15928363_1 (horizontal VARCHAR, framerate___hz__ VARCHAR)
SELECT MAX(points) FROM table_name_66 WHERE lost > 5 AND difference = "- 10" AND played > 12
What is the greatest number of points that has a lost bigger than 5, a difference of - 10 and a played bigger than 12?
CREATE TABLE table_name_66 (points INTEGER, played VARCHAR, lost VARCHAR, difference VARCHAR)
SELECT SUM(game) FROM table_name_35 WHERE high_points = "d. mckey (24)" AND team = "@ dallas mavericks"
What is the sum of Game, when High Points is "D. McKey (24)", and when Team is "@ Dallas Mavericks"?
CREATE TABLE table_name_35 (game INTEGER, high_points VARCHAR, team VARCHAR)
SELECT original_air_date FROM table_24648983_1 WHERE № = 4
What day did episode number 4 air originally?
CREATE TABLE table_24648983_1 (original_air_date VARCHAR, № VARCHAR)
SELECT theme FROM table_name_14 WHERE year < 2006 AND issue_price = "$25.22"
What theme is associated with a year before 2006 and Issue Price of $25.22?
CREATE TABLE table_name_14 (theme VARCHAR, year VARCHAR, issue_price VARCHAR)
SELECT published_in_russian FROM table_207795_1 WHERE type_of_work = "novel" AND published_in_english = "1977"
when type of work is novel and published in english is 1977, what was published in russian?
CREATE TABLE table_207795_1 (published_in_russian VARCHAR, type_of_work VARCHAR, published_in_english VARCHAR)
SELECT origin_of_programming FROM table_name_25 WHERE genre = "cricket" AND network = "star cricket"
Where does the network Star Cricket originate?
CREATE TABLE table_name_25 (origin_of_programming VARCHAR, genre VARCHAR, network VARCHAR)
SELECT home_stadium FROM table_name_25 WHERE conference = "american" AND city = "nashville, tennessee"
Which Home Stadium has American as its Conference as well as nashville, tennessee as the city?
CREATE TABLE table_name_25 (home_stadium VARCHAR, conference VARCHAR, city VARCHAR)
SELECT 1989 FROM table_name_22 WHERE 2002 = "4r" AND 2005 = "4r"
what 1989 has 2002 of 4r and 2005 of 4r?
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT location FROM table_name_99 WHERE round = 3 AND opponent = "james zikic"
Where's the location for the opponent James Zikic and 3 rounds?
CREATE TABLE table_name_99 (location VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT country FROM table_name_67 WHERE icao = "ypph"
What country has an ICAO of ypph?
CREATE TABLE table_name_67 (country VARCHAR, icao VARCHAR)
SELECT rnag__mhz_ FROM table_18475946_2 WHERE transmitter = "Kippure"
What is the rnag for kippure transmitter?
CREATE TABLE table_18475946_2 (rnag__mhz_ VARCHAR, transmitter VARCHAR)
SELECT AVG(pick) FROM table_name_76 WHERE player = "marc lewis (lhp)" AND round < 20
What is the mean pick when the play is Marc Lewis (lhp) and the round is less than 20?
CREATE TABLE table_name_76 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT MAX(pts_agst) FROM table_13018116_1 WHERE pts_for = 860
Name the most points against when points for is 860
CREATE TABLE table_13018116_1 (pts_agst INTEGER, pts_for VARCHAR)
SELECT win__percentage FROM table_name_3 WHERE 2010 = "qf"
What is the winning % for the 2010 QF?
CREATE TABLE table_name_3 (win__percentage VARCHAR)
SELECT MIN(gold) FROM table_name_8 WHERE rank = 1 AND silver < 1
What is the least number of gold medals won among nations ranked 1 with no silver medals?
CREATE TABLE table_name_8 (gold INTEGER, rank VARCHAR, silver VARCHAR)
SELECT AVG(total) FROM table_name_9 WHERE silver = 0 AND bronze < 0
What is the mean number of totals with no silvers and a bronze number less than 0?
CREATE TABLE table_name_9 (total INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT COUNT(f_laps) FROM table_25386974_1 WHERE position = "20th"
How many f/laps did Pedro Nunes have when he was in 20th position?
CREATE TABLE table_25386974_1 (f_laps VARCHAR, position VARCHAR)
SELECT position FROM table_name_86 WHERE round < 2
What position has round less than 2?
CREATE TABLE table_name_86 (position VARCHAR, round INTEGER)
SELECT brazil_scorers FROM table_name_35 WHERE score = "2-1"
What Brazil scorers have a 2-1 Score?
CREATE TABLE table_name_35 (brazil_scorers VARCHAR, score VARCHAR)
SELECT country FROM table_24598274_20 WHERE presenter_s_ = "Johanna Klum"
Which country did Johanna Klum presented the show?
CREATE TABLE table_24598274_20 (country VARCHAR, presenter_s_ VARCHAR)
SELECT COUNT(number_of_seasons_in_top_division) FROM table_1510519_1 WHERE position_in_2012_13 = "005 5th"
How many seasons in the top division for the team that finished 005 5th in 2012-2013
CREATE TABLE table_1510519_1 (number_of_seasons_in_top_division VARCHAR, position_in_2012_13 VARCHAR)
SELECT record FROM table_name_63 WHERE round > 1
Tell me the record for round more than 1
CREATE TABLE table_name_63 (record VARCHAR, round INTEGER)
SELECT score FROM table_name_58 WHERE record = "35–23–15"
What was the score when their record was 35–23–15?
CREATE TABLE table_name_58 (score VARCHAR, record VARCHAR)
SELECT date FROM table_name_20 WHERE score = "5-1"
Which date had a score of 5-1?
CREATE TABLE table_name_20 (date VARCHAR, score VARCHAR)
SELECT team FROM table_11207040_6 WHERE outgoing_manager = "Jim McInally"
What teams does jim mcinally manage?
CREATE TABLE table_11207040_6 (team VARCHAR, outgoing_manager VARCHAR)
SELECT AVG(population__2004_) FROM table_name_38 WHERE moroccan_population > 234506
Which Population (2004) has a Moroccan population larger than 234506?
CREATE TABLE table_name_38 (population__2004_ INTEGER, moroccan_population INTEGER)
SELECT position FROM table_name_71 WHERE player = "kevin durant category:articles with hcards"
What is Position, when Player is "Kevin Durant category:articles with hCards"?
CREATE TABLE table_name_71 (position VARCHAR, player VARCHAR)
SELECT T1.institution, COUNT(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id GROUP BY T1.institution_id
Show institution names along with the number of proteins for each institution.
CREATE TABLE institution (institution VARCHAR, institution_id VARCHAR); CREATE TABLE protein (institution_id VARCHAR)
SELECT high_points FROM table_23285849_7 WHERE score = "W 97–92 (OT)"
Who had the most points in the game where the score was w 97–92 (ot)?
CREATE TABLE table_23285849_7 (high_points VARCHAR, score VARCHAR)
SELECT sspec_number FROM table_name_98 WHERE frequency = "1 ghz"
What is sSpec Number, when Frequency is 1 GHZ?
CREATE TABLE table_name_98 (sspec_number VARCHAR, frequency VARCHAR)
SELECT 1995 FROM table_name_48 WHERE 1999 = "1r" AND 1998 = "4r"
What 1995 has 1r as the 1999, and a 1998 of 4r?
CREATE TABLE table_name_48 (Id VARCHAR)
SELECT pluperfect FROM table_27298240_26 WHERE perfect = "si bio/la; bio/la si"
What is the pluperfect for the perfect si bio/la; bio/la si?
CREATE TABLE table_27298240_26 (pluperfect VARCHAR, perfect VARCHAR)
SELECT COUNT(round) FROM table_name_20 WHERE nationality = "united states" AND player = "jeffrey foss"
What is the round number when nationality was United States, and player is Jeffrey Foss?
CREATE TABLE table_name_20 (round VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT album_s_ FROM table_23667534_1 WHERE episode_title = "Toy to the World" AND song_s__title = "Shimmy Jimmy"
What album was the song Shimmy Jimmy from the episode titled Toy to the world on?
CREATE TABLE table_23667534_1 (album_s_ VARCHAR, episode_title VARCHAR, song_s__title VARCHAR)
SELECT game FROM table_name_49 WHERE home_team = "houston" AND result = "106-104"
What was the game when Houston was the home team and the result is 106-104?
CREATE TABLE table_name_49 (game VARCHAR, home_team VARCHAR, result VARCHAR)
SELECT COUNT(points) FROM table_name_29 WHERE rank = "17th" AND wins > 0
How many Points have a Rank of 17th, and Wins larger than 0?
CREATE TABLE table_name_29 (points VARCHAR, rank VARCHAR, wins VARCHAR)
SELECT category, COUNT(*) FROM book_club GROUP BY category
Show all book categories and the number of books in each category.
CREATE TABLE book_club (category VARCHAR)
SELECT MIN(date) FROM table_name_59 WHERE result = "win" AND method = "points" AND notes = "opening round"
Tell me the lowest date for result of win and method of points with notes of opening round
CREATE TABLE table_name_59 (date INTEGER, notes VARCHAR, result VARCHAR, method VARCHAR)
SELECT exaltation FROM table_name_98 WHERE domicile = "saturn" AND fall = "jupiter"
Which exaltation has a domicile of Saturn and a fall of Jupiter?
CREATE TABLE table_name_98 (exaltation VARCHAR, domicile VARCHAR, fall VARCHAR)
SELECT MAX(total) FROM table_name_72 WHERE date = 1602 AND greater_doubles < 16
Which Total has a Date of 1602, and Greater Doubles smaller than 16?
CREATE TABLE table_name_72 (total INTEGER, date VARCHAR, greater_doubles VARCHAR)
SELECT cfl_team FROM table_name_32 WHERE player = "kelly bates"
What CFL team did Kelly Bates play for?
CREATE TABLE table_name_32 (cfl_team VARCHAR, player VARCHAR)
SELECT show FROM table_name_85 WHERE award_ceremony = "indian television academy awards" AND category = "ita milestone award"
Which show was nominated for the ITA Milestone Award at the Indian Television Academy Awards?
CREATE TABLE table_name_85 (show VARCHAR, award_ceremony VARCHAR, category VARCHAR)
SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1
What is id of the city that hosted events in the most recent year?
CREATE TABLE hosting_city (host_city VARCHAR, YEAR VARCHAR)
SELECT MAX(year) FROM table_name_22 WHERE pts > 0
What is the latesr year that has more points than 0?
CREATE TABLE table_name_22 (year INTEGER, pts INTEGER)
SELECT COUNT(no) FROM table_16494599_1 WHERE years_for_grizzlies = "2000-2002"
How may players played for the Grizzlies from 2000-2002?
CREATE TABLE table_16494599_1 (no VARCHAR, years_for_grizzlies VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_15 WHERE object_type = "spiral galaxy" AND apparent_magnitude > 12.2
What is the Right ascension of the Object type spiral galaxy that has an Apparent magnitude larger that 12.2
CREATE TABLE table_name_15 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, apparent_magnitude VARCHAR)
SELECT 2012 FROM table_name_46 WHERE 2010 = "0–0"
Which 2012 has a 2010 of 0–0?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT team FROM table_name_88 WHERE coach = "manzoor elahi" AND captain = "taufeeq umar"
Which Team has Manzoor Elahi as Coach and Taufeeq Umar as Captain?
CREATE TABLE table_name_88 (team VARCHAR, coach VARCHAR, captain VARCHAR)
SELECT championships_in_st_louis FROM table_21564794_3 WHERE sport = "Arena Football"
How many championships were won for arena football?
CREATE TABLE table_21564794_3 (championships_in_st_louis VARCHAR, sport VARCHAR)
SELECT SUM(total) FROM table_name_9 WHERE premier_league < 6 AND league_cup > 0
How many totals have a Premier League smaller than 6, and a League Cup larger than 0?
CREATE TABLE table_name_9 (total INTEGER, premier_league VARCHAR, league_cup VARCHAR)
SELECT player FROM table_name_68 WHERE finish = "74"
Who Player has a Finish of 74?
CREATE TABLE table_name_68 (player VARCHAR, finish VARCHAR)
SELECT opponent FROM table_name_66 WHERE date = "october 15, 1967"
What team was the opponent on October 15, 1967?
CREATE TABLE table_name_66 (opponent VARCHAR, date VARCHAR)
SELECT iheartradio FROM table_name_74 WHERE show = "bronson and christine"
What is the iHeartRadio of the Bronson and Christine Show?
CREATE TABLE table_name_74 (iheartradio VARCHAR, show VARCHAR)
SELECT AVG(total) FROM table_name_67 WHERE rank = "5" AND bronze < 0
Which Total has a Rank of 5, and a Bronze smaller than 0?
CREATE TABLE table_name_67 (total INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT romaji_title FROM table_18540104_1 WHERE average_ratings = "22.4%"
What is the title with an average rating of 22.4%?
CREATE TABLE table_18540104_1 (romaji_title VARCHAR, average_ratings VARCHAR)
SELECT circuit FROM table_name_29 WHERE championship = "sprint cup series"
What circuit is the Sprint Cup series championship?
CREATE TABLE table_name_29 (circuit VARCHAR, championship VARCHAR)
SELECT title FROM table_23492454_1 WHERE directed_by = "Jessica Yu"
What was the name of the episode directed by Jessica Yu?
CREATE TABLE table_23492454_1 (title VARCHAR, directed_by VARCHAR)
SELECT AVG(area__km_2__) FROM table_name_21 WHERE area__sq_mi_ > 55 AND location = "new york"
What is the average area in New York that is larger than 55 sq mi?
CREATE TABLE table_name_21 (area__km_2__ INTEGER, area__sq_mi_ VARCHAR, location VARCHAR)
SELECT segment_a FROM table_name_89 WHERE netflix = "s05e01"
Name the segment A for netflix of s05e01
CREATE TABLE table_name_89 (segment_a VARCHAR, netflix VARCHAR)
SELECT drawn FROM table_20396710_1 WHERE points_for = "39"
when points for is 39 what is the total number of drawn
CREATE TABLE table_20396710_1 (drawn VARCHAR, points_for VARCHAR)
SELECT date FROM table_name_64 WHERE score = "6-2, 6-4"
On what Date was the match with a Score of 6-2, 6-4?
CREATE TABLE table_name_64 (date VARCHAR, score VARCHAR)
SELECT slno FROM table_25383715_1 WHERE contact_person = "SDE (P), Thiruppattur"
What was the SlNo no of contact person SDE (P), Thiruppattur?
CREATE TABLE table_25383715_1 (slno VARCHAR, contact_person VARCHAR)
SELECT competition FROM table_name_76 WHERE year = 2003
What was the competition in 2003?
CREATE TABLE table_name_76 (competition VARCHAR, year VARCHAR)
SELECT date_of_appointment FROM table_27495117_3 WHERE outgoing_manager = "Luis César Sampedro"
what was the appointment date for outgoing manager luis césar sampedro
CREATE TABLE table_27495117_3 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
SELECT score FROM table_23286158_11 WHERE high_points = "Andre Miller (31)"
What is the score when high points were Andre Miller (31)?
CREATE TABLE table_23286158_11 (score VARCHAR, high_points VARCHAR)
SELECT driver FROM table_name_43 WHERE constructor = "ferrari" AND time_retired = "+1:06.683"
who is the driver for the car constructed by ferrari with a time/retired of +1:06.683?
CREATE TABLE table_name_43 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR)
SELECT COUNT(contestant) FROM table_19810459_1 WHERE background = "Internet dreamer"
For how many contestants was the background internet dreamer?
CREATE TABLE table_19810459_1 (contestant VARCHAR, background VARCHAR)
SELECT chinese_name FROM table_254234_1 WHERE capital = "Hangzhou"
What is the chinese name of the province whose capital is hangzhou?
CREATE TABLE table_254234_1 (chinese_name VARCHAR, capital VARCHAR)
SELECT rider FROM table_name_21 WHERE manufacturer = "yamaha" AND grid = "17"
Who is the rider with a yamaha manufacturer and a 17 grid?
CREATE TABLE table_name_21 (rider VARCHAR, manufacturer VARCHAR, grid VARCHAR)
SELECT report FROM table_1140099_6 WHERE winning_driver = "Mike Spence"
What is the report for the race that Mike Spence won.
CREATE TABLE table_1140099_6 (report VARCHAR, winning_driver VARCHAR)
SELECT team_1 FROM table_name_81 WHERE team_2 = "sporting cp"
Which team is Team 1 with a Team 2 being Sporting CP?
CREATE TABLE table_name_81 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team FROM table_25561038_1 WHERE points = "12"
List the team with 12 points.
CREATE TABLE table_25561038_1 (team VARCHAR, points VARCHAR)
SELECT poles FROM table_name_96 WHERE races = "4"
What is the number of poles with 4 races?
CREATE TABLE table_name_96 (poles VARCHAR, races VARCHAR)
SELECT conference FROM table_name_71 WHERE season = "1967–68"
What is the Conference for the 1967–68 season?
CREATE TABLE table_name_71 (conference VARCHAR, season VARCHAR)
SELECT opponent FROM table_name_78 WHERE week > 3 AND date = "october 6, 1991"
Which Opponent that has a Week larger than 3 on october 6, 1991?
CREATE TABLE table_name_78 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT MIN(rank) FROM table_22355_68 WHERE gold = 2
Name the most rank for 2 gold
CREATE TABLE table_22355_68 (rank INTEGER, gold VARCHAR)
SELECT outcome FROM table_name_84 WHERE score_in_final = "5–7, 6–4, [10–7]"
What was the outcome for the match that ended in a score of 5–7, 6–4, [10–7]?
CREATE TABLE table_name_84 (outcome VARCHAR, score_in_final VARCHAR)
SELECT COUNT(*) FROM products WHERE price >= 180
Compute the number of products with a price larger than or equal to $180.
CREATE TABLE products (price VARCHAR)
SELECT mens_doubles FROM table_13857700_1 WHERE mixed_doubles = "Jimm Aalto Nina Sarnesto"
who is the the mens doubles with mixed doubles being jimm aalto nina sarnesto
CREATE TABLE table_13857700_1 (mens_doubles VARCHAR, mixed_doubles VARCHAR)
SELECT nationality FROM table_name_47 WHERE school_club_team = "georgia tech"
What is the nationality of the Team Georgia Tech?
CREATE TABLE table_name_47 (nationality VARCHAR, school_club_team VARCHAR)