answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT recent_bmi FROM table_name_49 WHERE start_bmi < 46.3 AND season = "season 8"
CREATE TABLE table_name_49 (recent_bmi VARCHAR, start_bmi VARCHAR, season VARCHAR)
What is the recent BMI on season 8 for the person who's BMI started under 46.3?
SELECT college FROM table_name_11 WHERE pick < 6 AND pba_team = "shell turbo chargers"
CREATE TABLE table_name_11 (college VARCHAR, pick VARCHAR, pba_team VARCHAR)
Which college has a pick below 6 for the PBA team the Shell Turbo Chargers?
SELECT SUM(crowd) FROM table_name_5 WHERE home_team = "richmond"
CREATE TABLE table_name_5 (crowd INTEGER, home_team VARCHAR)
What's the crowd population of the home team located in Richmond?
SELECT away_team FROM table_name_24 WHERE home_team = "footscray"
CREATE TABLE table_name_24 (away_team VARCHAR, home_team VARCHAR)
What is the visiting team that has a home team related to footscray?
SELECT home_team FROM table_name_62 WHERE away_team = "fitzroy"
CREATE TABLE table_name_62 (home_team VARCHAR, away_team VARCHAR)
Which Home team has an Away team of fitzroy?
SELECT home_team AS score FROM table_name_31 WHERE away_team = "south melbourne"
CREATE TABLE table_name_31 (home_team VARCHAR, away_team VARCHAR)
What did the home team score when the away team was South Melbourne?
SELECT venue FROM table_name_46 WHERE home_team = "richmond"
CREATE TABLE table_name_46 (venue VARCHAR, home_team VARCHAR)
What venue is the home field of Richmond?
SELECT away_team AS score FROM table_name_59 WHERE venue = "princes park"
CREATE TABLE table_name_59 (away_team VARCHAR, venue VARCHAR)
What was the score of the away team in the match at Princes Park?
SELECT home_team AS score FROM table_name_3 WHERE venue = "western oval"
CREATE TABLE table_name_3 (home_team VARCHAR, venue VARCHAR)
What was the score of the home team in the match at Western Oval?
SELECT party FROM table_name_55 WHERE ifop_5_30_09 = "2.5%"
CREATE TABLE table_name_55 (party VARCHAR, ifop_5_30_09 VARCHAR)
Who had an Iflop of 2.5%?
SELECT ipsos_5_30_09 FROM table_name_16 WHERE bva_6_1_09 = "3%"
CREATE TABLE table_name_16 (ipsos_5_30_09 VARCHAR, bva_6_1_09 VARCHAR)
When BVA was 3%, what was the Ipsos?
SELECT party FROM table_name_69 WHERE ipsos_6_3_09 = "27%"
CREATE TABLE table_name_69 (party VARCHAR, ipsos_6_3_09 VARCHAR)
Who had an Ipsos of 27%?
SELECT tns_sofres_6_2_09 FROM table_name_2 WHERE ifop_5_30_09 = "5%"
CREATE TABLE table_name_2 (tns_sofres_6_2_09 VARCHAR, ifop_5_30_09 VARCHAR)
What was the TNS-Sofres when the Iflop was 5%?
SELECT party FROM table_name_71 WHERE results_2004 = "0.00%"
CREATE TABLE table_name_71 (party VARCHAR, results_2004 VARCHAR)
Who had 0.00% in 2004?
SELECT tns_sofres_6_2_09 FROM table_name_51 WHERE ipsos_6_3_09 = "27%"
CREATE TABLE table_name_51 (tns_sofres_6_2_09 VARCHAR, ipsos_6_3_09 VARCHAR)
What's the TNS-Sofres when Ipsos was 27%?
SELECT venue FROM table_name_47 WHERE away_team = "fitzroy"
CREATE TABLE table_name_47 (venue VARCHAR, away_team VARCHAR)
In the match where fitzroy was the away team, where was the venue?
SELECT stage__winner_ FROM table_name_17 WHERE general_classification = "vladimir karpets" AND team_classification = "relax-gam" AND points_classification = "denis menchov"
CREATE TABLE table_name_17 (stage__winner_ VARCHAR, points_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR)
Which Stage (Winner) has a Vladimir Karpets General classification and a Team classification of relax-gam, and a Points classification of Denis Menchov?
SELECT team_classification FROM table_name_88 WHERE general_classification = "vladimir karpets" AND mountains_classification = "no award"
CREATE TABLE table_name_88 (team_classification VARCHAR, general_classification VARCHAR, mountains_classification VARCHAR)
Which Team classification has a General classification of Vladimir Karpets and a Mountains classification of No Award?
SELECT sprints_classification FROM table_name_18 WHERE points_classification = "mark cavendish" AND team_classification = "caisse d'epargne"
CREATE TABLE table_name_18 (sprints_classification VARCHAR, points_classification VARCHAR, team_classification VARCHAR)
What Sprints classification has the Points classification, Mark Cavendish and Team classification, Caisse D'epargne?
SELECT SUM(until) FROM table_name_80 WHERE titles = "5"
CREATE TABLE table_name_80 (until INTEGER, titles VARCHAR)
What is the total Until when the Titles was 5?
SELECT 1 AS st_leg FROM table_name_53 WHERE team_1 = "aalborg bk"
CREATE TABLE table_name_53 (team_1 VARCHAR)
When Team 1 is Aalborg BK, what is the 1st Leg?
SELECT agg FROM table_name_47 WHERE team_2 = "partizan"
CREATE TABLE table_name_47 (agg VARCHAR, team_2 VARCHAR)
When Partizan is Team 2, what is the Agg?
SELECT 1 AS st_leg FROM table_name_32 WHERE team_1 = "aalborg bk"
CREATE TABLE table_name_32 (team_1 VARCHAR)
When Aalborg BK is Team 1, what is the 1st leg?
SELECT story_timeline FROM table_name_67 WHERE published < 1984 AND in_order_of_publication = "first"
CREATE TABLE table_name_67 (story_timeline VARCHAR, published VARCHAR, in_order_of_publication VARCHAR)
What is the story timeline that was published first prior to 1984?
SELECT COUNT(published) FROM table_name_86 WHERE in_order_of_publication = "first"
CREATE TABLE table_name_86 (published VARCHAR, in_order_of_publication VARCHAR)
How many total publications were the first of the series?
SELECT play_by_play FROM table_name_56 WHERE year < 1998 AND network = "fox"
CREATE TABLE table_name_56 (play_by_play VARCHAR, year VARCHAR, network VARCHAR)
Who did the play-by-play before 1998 on Fox network?
SELECT play_by_play FROM table_name_15 WHERE year < 1992 AND ice_level_reporters = "mike emrick"
CREATE TABLE table_name_15 (play_by_play VARCHAR, year VARCHAR, ice_level_reporters VARCHAR)
Who did the play-by-play before 1992 with the Ice level reporter Mike Emrick?
SELECT ice_level_reporters FROM table_name_58 WHERE color_commentator_s_ = "john davidson" AND play_by_play = "marv albert" AND year > 1992
CREATE TABLE table_name_58 (ice_level_reporters VARCHAR, year VARCHAR, color_commentator_s_ VARCHAR, play_by_play VARCHAR)
Who is the Ice level reporter after 1992 with the color commentator John Davidson and the play-by-play Marv Albert?
SELECT network FROM table_name_66 WHERE play_by_play = "marv albert" AND year < 1994
CREATE TABLE table_name_66 (network VARCHAR, play_by_play VARCHAR, year VARCHAR)
What is the network with the play-by-play Marv Albert before 1994?
SELECT COUNT(crowd) FROM table_name_45 WHERE home_team = "carlton"
CREATE TABLE table_name_45 (crowd VARCHAR, home_team VARCHAR)
What was the total crowd of the Carlton game?
SELECT MAX(long) FROM table_name_83 WHERE player = "charles pauley" AND yards < 60
CREATE TABLE table_name_83 (long INTEGER, player VARCHAR, yards VARCHAR)
What was the highest long of Charles Pauley with fewer than 60 yards?
SELECT score FROM table_name_14 WHERE date = "may 26"
CREATE TABLE table_name_14 (score VARCHAR, date VARCHAR)
What is the score of the game on May 26?
SELECT location_attendance FROM table_name_13 WHERE date = "may 22"
CREATE TABLE table_name_13 (location_attendance VARCHAR, date VARCHAR)
What was the location and attendance on the May 22 game?
SELECT final_placing FROM table_name_12 WHERE poles = 0 AND races > 16 AND podiums = 16
CREATE TABLE table_name_12 (final_placing VARCHAR, podiums VARCHAR, poles VARCHAR, races VARCHAR)
What is the final placing of the team with 0 ples, more than 16 races, and 16 podiums?
SELECT SUM(podiums) FROM table_name_92 WHERE final_placing = "14th" AND season > 2008 AND races < 1
CREATE TABLE table_name_92 (podiums INTEGER, races VARCHAR, final_placing VARCHAR, season VARCHAR)
What is the sum of podiums of the teams with a final placing of 14th, seasons after 2008, and less than 1 races?
SELECT COUNT(season) FROM table_name_30 WHERE wins > 0 AND final_placing = "1st"
CREATE TABLE table_name_30 (season VARCHAR, wins VARCHAR, final_placing VARCHAR)
What is the total number of seasons with more than 0 wins and a 1st final placing?
SELECT AVG(wins) FROM table_name_12 WHERE poles > 0 AND podiums < 3
CREATE TABLE table_name_12 (wins INTEGER, poles VARCHAR, podiums VARCHAR)
What is the average wins of a team with more than 0 ples and less than 3 podiums?
SELECT ends FROM table_name_53 WHERE transfer_fee = "free" AND goals = 0 AND name = "roy carroll"
CREATE TABLE table_name_53 (ends VARCHAR, name VARCHAR, transfer_fee VARCHAR, goals VARCHAR)
I want the ends for transfer fee of free and goals being 0 for roy carroll
SELECT COUNT(ends) FROM table_name_67 WHERE name = "filip šebo" AND goals > 2
CREATE TABLE table_name_67 (ends VARCHAR, name VARCHAR, goals VARCHAR)
I want the total number of ends for filip šebo and Goals more than 2
SELECT crowd FROM table_name_34 WHERE away_team = "richmond"
CREATE TABLE table_name_34 (crowd VARCHAR, away_team VARCHAR)
How big was the crowd of away team Richmond?
SELECT away_team AS score FROM table_name_53 WHERE away_team = "geelong"
CREATE TABLE table_name_53 (away_team VARCHAR)
How much did the away team Geelong score?
SELECT AVG(year) FROM table_name_28 WHERE day_in_release = "friday" AND day_of_week > 2
CREATE TABLE table_name_28 (year INTEGER, day_in_release VARCHAR, day_of_week VARCHAR)
What is the average year for releases on Friday and weeks larger than 2 days?
SELECT COUNT(win_percentage) FROM table_name_89 WHERE postseason = "did not qualify" AND rank > 8
CREATE TABLE table_name_89 (win_percentage VARCHAR, postseason VARCHAR, rank VARCHAR)
What number of win% has a postseason of did not qualify and rank larger than 8?
SELECT year FROM table_name_18 WHERE rank > 5
CREATE TABLE table_name_18 (year VARCHAR, rank INTEGER)
What year ranked larger than 5?
SELECT postseason FROM table_name_54 WHERE win_percentage > 0.40700000000000003 AND games < 108 AND rank = 1
CREATE TABLE table_name_54 (postseason VARCHAR, rank VARCHAR, win_percentage VARCHAR, games VARCHAR)
What postseason has a win% between 0.40700000000000003 and 108 with a rank of 1?
SELECT COUNT(laps) FROM table_name_7 WHERE driver = "eddie irvine"
CREATE TABLE table_name_7 (laps VARCHAR, driver VARCHAR)
How many laps in total does the driver named Eddie Irvine have?
SELECT AVG(crowd) FROM table_name_91 WHERE venue = "western oval"
CREATE TABLE table_name_91 (crowd INTEGER, venue VARCHAR)
What's the average crowd size when the venue is western oval?
SELECT team FROM table_name_64 WHERE average < 1.12 AND goalkeeper = "carlos sánchez"
CREATE TABLE table_name_64 (team VARCHAR, average VARCHAR, goalkeeper VARCHAR)
What team has Carlos Sánchez as a goalkeeper and an average below 1.12?
SELECT AVG(average) FROM table_name_14 WHERE goalkeeper = "jacobo" AND matches > 32
CREATE TABLE table_name_14 (average INTEGER, goalkeeper VARCHAR, matches VARCHAR)
What is the average of the team who has Jacobo as a goalkeeper and has played more than 32 matches?
SELECT home_team FROM table_name_57 WHERE away_team = "fitzroy"
CREATE TABLE table_name_57 (home_team VARCHAR, away_team VARCHAR)
What home team played Fitzroy?
SELECT network FROM table_name_36 WHERE play_by_play = "john wells"
CREATE TABLE table_name_36 (network VARCHAR, play_by_play VARCHAR)
Which network has a play-by-play announcer of John Wells?
SELECT colour_commentator_s_ FROM table_name_24 WHERE network = "cbc" AND year = 1987
CREATE TABLE table_name_24 (colour_commentator_s_ VARCHAR, network VARCHAR, year VARCHAR)
On CBC, who was the colour commentator in 1987?
SELECT colour_commentator_s_ FROM table_name_58 WHERE play_by_play = "bob cole"
CREATE TABLE table_name_58 (colour_commentator_s_ VARCHAR, play_by_play VARCHAR)
Who was the colour commentator when the play-by-play announcer was Bob Cole?
SELECT studio_host FROM table_name_38 WHERE play_by_play = "bob cole" AND colour_commentator_s_ = "harry neale"
CREATE TABLE table_name_38 (studio_host VARCHAR, play_by_play VARCHAR, colour_commentator_s_ VARCHAR)
Who is the studio host that has a play-by-play announcer of Bob Cole and a colour commentator of Harry Neale?
SELECT colour_commentator_s_ FROM table_name_17 WHERE studio_host = "dave hodge" AND year = 1981
CREATE TABLE table_name_17 (colour_commentator_s_ VARCHAR, studio_host VARCHAR, year VARCHAR)
In 1981, with a studio host of Dave Hodge, who was the colour commentator?
SELECT song FROM table_name_19 WHERE artist = "mor ve ötesi"
CREATE TABLE table_name_19 (song VARCHAR, artist VARCHAR)
What Song is by the Artist 'mor ve ötesi'?
SELECT date FROM table_name_34 WHERE home_team = "richmond"
CREATE TABLE table_name_34 (date VARCHAR, home_team VARCHAR)
What date did the home team Richmond play?
SELECT MAX(crowd) FROM table_name_95 WHERE home_team = "hawthorn"
CREATE TABLE table_name_95 (crowd INTEGER, home_team VARCHAR)
What size was the biggest crowd that watched the home team Hawthorn play?
SELECT MAX(caps) FROM table_name_55 WHERE position = "lock" AND club_province = "vicenza rangers"
CREATE TABLE table_name_55 (caps INTEGER, position VARCHAR, club_province VARCHAR)
What is the high cap total for a lock with the vicenza rangers?
SELECT date_of_birth__age_ FROM table_name_19 WHERE player = "nese malifa"
CREATE TABLE table_name_19 (date_of_birth__age_ VARCHAR, player VARCHAR)
When was nese malifa born?
SELECT position FROM table_name_3 WHERE player = "jj gagiano"
CREATE TABLE table_name_3 (position VARCHAR, player VARCHAR)
What position for jj gagiano?
SELECT club_province FROM table_name_66 WHERE caps = 41
CREATE TABLE table_name_66 (club_province VARCHAR, caps VARCHAR)
What club/province has 41 caps?
SELECT date FROM table_name_12 WHERE grand_prix = "australian grand prix"
CREATE TABLE table_name_12 (date VARCHAR, grand_prix VARCHAR)
Name the date for the australian grand prix.
SELECT fastest_lap FROM table_name_33 WHERE pole_position = "damon hill" AND location = "magny-cours"
CREATE TABLE table_name_33 (fastest_lap VARCHAR, pole_position VARCHAR, location VARCHAR)
Who did the fastest lap when pole position was damon hill and the location was magny-cours?
SELECT date FROM table_name_65 WHERE grand_prix = "canadian grand prix"
CREATE TABLE table_name_65 (date VARCHAR, grand_prix VARCHAR)
What was the date for the canadian grand prix?
SELECT SUM(foundation) FROM table_name_79 WHERE japanese_orthography = "国立看護大学校"
CREATE TABLE table_name_79 (foundation INTEGER, japanese_orthography VARCHAR)
What is the number of the Foundation with Japanese orthography of 国立看護大学校?
SELECT MIN(yards) FROM table_name_30 WHERE avg = 7 AND long < 7
CREATE TABLE table_name_30 (yards INTEGER, avg VARCHAR, long VARCHAR)
what is the least yards when the average is 7 and the long is less than 7?
SELECT AVG(laps) FROM table_name_32 WHERE driver = "ralph firman" AND grid > 19
CREATE TABLE table_name_32 (laps INTEGER, driver VARCHAR, grid VARCHAR)
What is the average laps for ralph firman with a grid of over 19?
SELECT grid FROM table_name_53 WHERE laps = 6
CREATE TABLE table_name_53 (grid VARCHAR, laps VARCHAR)
What grid features 6 laps?
SELECT SUM(asts) FROM table_name_35 WHERE school_country = "boston college" AND rebs > 63
CREATE TABLE table_name_35 (asts INTEGER, school_country VARCHAR, rebs VARCHAR)
What's the sum of asts for boston college with a rebs over 63?
SELECT pos FROM table_name_52 WHERE asts < 117
CREATE TABLE table_name_52 (pos VARCHAR, asts INTEGER)
What's the pos for an asts less than 117?
SELECT COUNT(release_date) FROM table_name_7 WHERE country = "canada"
CREATE TABLE table_name_7 (release_date VARCHAR, country VARCHAR)
How many release dates has Canada had?
SELECT constructor FROM table_name_67 WHERE time_retired = "engine" AND grid = 1
CREATE TABLE table_name_67 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR)
What constructor is grid 1 with a time/retired of engine?
SELECT constructor FROM table_name_34 WHERE grid = 14
CREATE TABLE table_name_34 (constructor VARCHAR, grid VARCHAR)
Who constructed grid 14?
SELECT 2001 FROM table_name_53 WHERE 2004 = "a" AND 2003 = "a" AND 2012 = "3r"
CREATE TABLE table_name_53 (Id VARCHAR)
I want to know the 2001 that has a 2004 of a and 2003 of a with 2012 of 3r
SELECT 2008 FROM table_name_87 WHERE 2001 = "wta premier 5 tournaments"
CREATE TABLE table_name_87 (Id VARCHAR)
Tell me the 2008 for when 2001 of wta premier 5 tournaments
SELECT 2013 FROM table_name_87 WHERE 2001 = "wta premier 5 tournaments"
CREATE TABLE table_name_87 (Id VARCHAR)
I want to know the 2013 when 2001 was wta premier 5 tournaments
SELECT 2007 FROM table_name_14 WHERE 2010 = "olympic games"
CREATE TABLE table_name_14 (Id VARCHAR)
Tell me the 2007 for 2010 olympic games
SELECT 2004 FROM table_name_61 WHERE 2012 = "21"
CREATE TABLE table_name_61 (Id VARCHAR)
Tell me the 2004 for 2012 of 21
SELECT away_team FROM table_name_97 WHERE home_team = "richmond"
CREATE TABLE table_name_97 (away_team VARCHAR, home_team VARCHAR)
When Richmond was the Home team, who was the away team?
SELECT home_team FROM table_name_29 WHERE venue = "corio oval"
CREATE TABLE table_name_29 (home_team VARCHAR, venue VARCHAR)
Which home team plays in the Corio Oval venue?
SELECT away_team FROM table_name_60 WHERE venue = "emcg"
CREATE TABLE table_name_60 (away_team VARCHAR, venue VARCHAR)
When the game was played at the EMCG venue, who was the away team?
SELECT constructor FROM table_name_55 WHERE driver = "jenson button"
CREATE TABLE table_name_55 (constructor VARCHAR, driver VARCHAR)
who is the constructor when the driver is jenson button?
SELECT grid FROM table_name_79 WHERE time_retired = "+27.112"
CREATE TABLE table_name_79 (grid VARCHAR, time_retired VARCHAR)
what is the grid when the time/retired is +27.112?
SELECT MIN(laps) FROM table_name_88 WHERE driver = "huub rothengatter" AND grid < 24
CREATE TABLE table_name_88 (laps INTEGER, driver VARCHAR, grid VARCHAR)
I want the fewest Laps for Huub Rothengatter and grid less than 24
SELECT time_retired FROM table_name_47 WHERE laps = 47 AND driver = "rené arnoux"
CREATE TABLE table_name_47 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)
Tell me the time/retired with Laps of 47 and driver of rené arnoux
SELECT MAX(oricon) FROM table_name_17 WHERE romaji_title = "nakitakunalu"
CREATE TABLE table_name_17 (oricon INTEGER, romaji_title VARCHAR)
Which Oricon has a Romaji title of nakitakunalu?
SELECT reference FROM table_name_92 WHERE release_date = "1996/10/10"
CREATE TABLE table_name_92 (reference VARCHAR, release_date VARCHAR)
Which Reference has a Release date of 1996/10/10?
SELECT occupation FROM table_name_38 WHERE residence = "windsor junction"
CREATE TABLE table_name_38 (occupation VARCHAR, residence VARCHAR)
What is the occupation of the candidate that resides in Windsor Junction?
SELECT COUNT(votes) FROM table_name_48 WHERE rank = "3rd" AND candidate = "mary louise lorefice"
CREATE TABLE table_name_48 (votes VARCHAR, rank VARCHAR, candidate VARCHAR)
How many votes did 3rd ranking candidate Mary Louise Lorefice receive?
SELECT occupation FROM table_name_35 WHERE candidate = "mary louise lorefice"
CREATE TABLE table_name_35 (occupation VARCHAR, candidate VARCHAR)
What occupation does Mary Louise Lorefice have?
SELECT date FROM table_name_83 WHERE away_team = "essendon"
CREATE TABLE table_name_83 (date VARCHAR, away_team VARCHAR)
When was the game at Essendon?
SELECT constructor FROM table_name_25 WHERE grid = 8
CREATE TABLE table_name_25 (constructor VARCHAR, grid VARCHAR)
Who is the constructor with the grid of 8?
SELECT time_retired FROM table_name_95 WHERE grid < 3 AND laps = 45
CREATE TABLE table_name_95 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
what is the time/retired when the grid is less than 3 and 45 laps?
SELECT MAX(laps) FROM table_name_43 WHERE driver = "jackie stewart"
CREATE TABLE table_name_43 (laps INTEGER, driver VARCHAR)
what is the most laps for driver jackie stewart?
SELECT time_retired FROM table_name_56 WHERE driver = "richard attwood"
CREATE TABLE table_name_56 (time_retired VARCHAR, driver VARCHAR)
what is the time/retired for driver richard attwood?
SELECT d_41 FROM table_name_33 WHERE r_51 = "r 11"
CREATE TABLE table_name_33 (d_41 VARCHAR, r_51 VARCHAR)
Tell me the D 41 and R 51 of r 11
SELECT d_46 FROM table_name_35 WHERE d_44 = "r 17"
CREATE TABLE table_name_35 (d_46 VARCHAR, d_44 VARCHAR)
I want the D 46 which has a D 44 of r 17
SELECT d_41 FROM table_name_63 WHERE d_43 = "d 18"
CREATE TABLE table_name_63 (d_41 VARCHAR, d_43 VARCHAR)
Tell me the D 41 for D 43 of d 18
SELECT d_47 FROM table_name_44 WHERE d_46 = "r 35"
CREATE TABLE table_name_44 (d_47 VARCHAR, d_46 VARCHAR)
Tell me the D 47 for D 46 of r 35