answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT class FROM table_name_18 WHERE behind = "+44.780"
CREATE TABLE table_name_18 (class VARCHAR, behind VARCHAR)
What is the class of the team that has a behind of +44.780?
SELECT behind FROM table_name_72 WHERE day_2 = "3:42.162"
CREATE TABLE table_name_72 (behind VARCHAR, day_2 VARCHAR)
For the team with 3:42.162 on day 2, what was the behind?
SELECT tournament FROM table_name_42 WHERE 1996 = "qf"
CREATE TABLE table_name_42 (tournament VARCHAR)
Which one of the tournaments had a QF in 1996?
SELECT 1996 FROM table_name_92 WHERE tournament = "wimbledon"
CREATE TABLE table_name_92 (tournament VARCHAR)
What is the value for the Wimbledon tournament in 1996?
SELECT SUM(year) FROM table_name_26 WHERE position = "center" AND player = "ann wauters"
CREATE TABLE table_name_26 (year INTEGER, position VARCHAR, player VARCHAR)
What year is center Ann Wauters?
SELECT MIN(year) FROM table_name_54 WHERE position = "guard" AND wnba_team = "seattle storm"
CREATE TABLE table_name_54 (year INTEGER, position VARCHAR, wnba_team VARCHAR)
What is the earliest year that includes a Seattle Storm guard?
SELECT position FROM table_name_31 WHERE year < 2000 AND college_country = "usc"
CREATE TABLE table_name_31 (position VARCHAR, year VARCHAR, college_country VARCHAR)
Regarding players before 2000, what is the USC player's position?
SELECT MIN(year) FROM table_name_79 WHERE college_country = "baylor"
CREATE TABLE table_name_79 (year INTEGER, college_country VARCHAR)
What is the earliest year a Baylor player made the list?
SELECT position FROM table_name_93 WHERE player = "sue bird"
CREATE TABLE table_name_93 (position VARCHAR, player VARCHAR)
What is Sue Bird's position?
SELECT builder FROM table_name_52 WHERE class = "terrier"
CREATE TABLE table_name_52 (builder VARCHAR, class VARCHAR)
Which Builder has a Class of Terrier?
SELECT constructor FROM table_name_62 WHERE laps < 68 AND grid > 20 AND driver = "thierry boutsen"
CREATE TABLE table_name_62 (constructor VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR)
who is the constructor when the laps is less than 68, the grid is more than 20 and the driver is thierry boutsen?
SELECT laps FROM table_name_29 WHERE time_retired = "turbo" AND grid < 14
CREATE TABLE table_name_29 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)
what is the laps when the time/retired is turbo and the grid is less than 14?
SELECT time_retired FROM table_name_23 WHERE laps < 4
CREATE TABLE table_name_23 (time_retired VARCHAR, laps INTEGER)
what is the time/retired when the laps is less than 4?
SELECT MAX(goals) FROM table_name_34 WHERE club = "total" AND apps < 120
CREATE TABLE table_name_34 (goals INTEGER, club VARCHAR, apps VARCHAR)
Name the most goals for total club and apps less than 120
SELECT MAX(goals) FROM table_name_51 WHERE games = 75
CREATE TABLE table_name_51 (goals INTEGER, games VARCHAR)
How many goals are associated with 75 games?
SELECT position FROM table_name_75 WHERE years_for_rockets = "2004-05"
CREATE TABLE table_name_75 (position VARCHAR, years_for_rockets VARCHAR)
What is the position for the Rockets years of 2004-05?
SELECT AVG(no_s_) FROM table_name_14 WHERE years_for_rockets = "2004-05"
CREATE TABLE table_name_14 (no_s_ INTEGER, years_for_rockets VARCHAR)
What is the average number of years for the Houston Rockets 2004-05?
SELECT position FROM table_name_4 WHERE years_for_rockets = "1992-93"
CREATE TABLE table_name_4 (position VARCHAR, years_for_rockets VARCHAR)
For the years 1992-93, what position did he play for the Houston Rockets?
SELECT SUM(no_s_) FROM table_name_92 WHERE position = "forward" AND school_club_team_country = "oregon state"
CREATE TABLE table_name_92 (no_s_ INTEGER, position VARCHAR, school_club_team_country VARCHAR)
What is the total number of years did he play the forward position and what school/club/team/country of Oregon State did he play?
SELECT AVG(wins) FROM table_name_16 WHERE player = "bruce fleisher" AND events > 31
CREATE TABLE table_name_16 (wins INTEGER, player VARCHAR, events VARCHAR)
How many wins for bruce fleisher with over 31 events?
SELECT AVG(rank) FROM table_name_74 WHERE events < 26 AND wins < 2
CREATE TABLE table_name_74 (rank INTEGER, events VARCHAR, wins VARCHAR)
What is the average rank for players with under 26 events and less than 2 wins?
SELECT MAX(earnings___) AS $__ FROM table_name_90 WHERE events = 34 AND wins > 2
CREATE TABLE table_name_90 (earnings___ INTEGER, events VARCHAR, wins VARCHAR)
What is the high earnings for players with 34 events and over 2 wins?
SELECT tournament FROM table_name_83 WHERE 2009 = "2r" AND 2010 = "sf"
CREATE TABLE table_name_83 (tournament VARCHAR)
Which tournament had a 2R categorization in 2009 and SF in 2010?
SELECT 2009 FROM table_name_14 WHERE 2008 = "2r" AND 2011 = "2r"
CREATE TABLE table_name_14 (Id VARCHAR)
What is the categorization in 2009 when it was 2R in 2008 and 2011?
SELECT 2012 FROM table_name_13 WHERE 2008 = "a" AND 2011 = "1r"
CREATE TABLE table_name_13 (Id VARCHAR)
What is the categorization in 2012 when it was A in 2008 and 1R in 2011?
SELECT 2010 FROM table_name_10 WHERE 2008 = "a" AND 2011 = "a" AND 2012 = "qf"
CREATE TABLE table_name_10 (Id VARCHAR)
What is the categorization in 2010 when it was A in 2008 and 20011 while being QF in 2012?
SELECT away_team AS score FROM table_name_28 WHERE home_team = "richmond"
CREATE TABLE table_name_28 (away_team VARCHAR, home_team VARCHAR)
What was the score against home team, Richmond?
SELECT MIN(crowd) FROM table_name_3 WHERE home_team = "fitzroy"
CREATE TABLE table_name_3 (crowd INTEGER, home_team VARCHAR)
What is Fitzroy's smallest crowd size?
SELECT date FROM table_name_19 WHERE opponent = "naomi cavaday"
CREATE TABLE table_name_19 (date VARCHAR, opponent VARCHAR)
When was naomi cavaday the opponent?
SELECT date FROM table_name_97 WHERE opponent = "andrea gámiz"
CREATE TABLE table_name_97 (date VARCHAR, opponent VARCHAR)
When was andrea gámiz the opponent?
SELECT opponent FROM table_name_94 WHERE score = "6–4, 6–2" AND surface = "clay"
CREATE TABLE table_name_94 (opponent VARCHAR, score VARCHAR, surface VARCHAR)
Who is the opponent when the score was 6–4, 6–2 and the surface was clay?
SELECT MIN(crowd) FROM table_name_97 WHERE home_team = "essendon"
CREATE TABLE table_name_97 (crowd INTEGER, home_team VARCHAR)
What was the smallest crowd at a home game for essendon?
SELECT time_retired FROM table_name_70 WHERE driver = "riccardo patrese"
CREATE TABLE table_name_70 (time_retired VARCHAR, driver VARCHAR)
Tell me the time/retired for riccardo patrese
SELECT time_retired FROM table_name_12 WHERE grid = 24
CREATE TABLE table_name_12 (time_retired VARCHAR, grid VARCHAR)
I want the time/retired for grid of 24
SELECT driver FROM table_name_69 WHERE grid > 9 AND laps < 26 AND constructor = "ferrari"
CREATE TABLE table_name_69 (driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)
I want the driver for ferrari who made Laps less than 26 and grids more than 9
SELECT COUNT(grid) FROM table_name_60 WHERE laps = 52
CREATE TABLE table_name_60 (grid VARCHAR, laps VARCHAR)
Tell me the total number of grid for laps of 52
SELECT record FROM table_name_48 WHERE date = "january 10"
CREATE TABLE table_name_48 (record VARCHAR, date VARCHAR)
What's the record for january 10?
SELECT score FROM table_name_28 WHERE decision = "hasek" AND date = "january 5"
CREATE TABLE table_name_28 (score VARCHAR, decision VARCHAR, date VARCHAR)
What's the score on january 5 with a hasek decision?
SELECT club_team FROM table_name_97 WHERE overall > 131 AND round = 8 AND player = "kaj linna"
CREATE TABLE table_name_97 (club_team VARCHAR, player VARCHAR, overall VARCHAR, round VARCHAR)
What Club team has an average of 8, plays kaj linna, and has an overall larger than 131?
SELECT round FROM table_name_64 WHERE player = "bryan berard"
CREATE TABLE table_name_64 (round VARCHAR, player VARCHAR)
What round does Bryan Berard do?
SELECT AVG(gross_tonnage) FROM table_name_57 WHERE entered_service = "april 1919"
CREATE TABLE table_name_57 (gross_tonnage INTEGER, entered_service VARCHAR)
Tell me the average gross tonnage for april 1919 entered service
SELECT COUNT(gross_tonnage) FROM table_name_51 WHERE entered_service = "1903"
CREATE TABLE table_name_51 (gross_tonnage VARCHAR, entered_service VARCHAR)
I want the total number of gross tonnage when entered service was 1903
SELECT SUM(rank) FROM table_name_9 WHERE player = "henry shefflin" AND matches > 4
CREATE TABLE table_name_9 (rank INTEGER, player VARCHAR, matches VARCHAR)
what is the rank when the player is henry shefflin and the matches is higher than 4?
SELECT AVG(rank) FROM table_name_31 WHERE total = 39 AND county = "dublin" AND matches < 4
CREATE TABLE table_name_31 (rank INTEGER, matches VARCHAR, total VARCHAR, county VARCHAR)
what is the rank when the total is 39 in the county of dublin and the matches is less than 4?
SELECT opponent FROM table_name_19 WHERE date = "november 12, 1972"
CREATE TABLE table_name_19 (opponent VARCHAR, date VARCHAR)
Who was the opponent on November 12, 1972?
SELECT builder’s_model FROM table_name_83 WHERE total_produced > 40 AND build_date = "1966"
CREATE TABLE table_name_83 (builder’s_model VARCHAR, total_produced VARCHAR, build_date VARCHAR)
Who built the train in 1966 with over 40 produced?
SELECT prr_class FROM table_name_4 WHERE wheel_arrangement = "b-b" AND service = "freight" AND build_date = "1967"
CREATE TABLE table_name_4 (prr_class VARCHAR, build_date VARCHAR, wheel_arrangement VARCHAR, service VARCHAR)
What is the PRR class of the freight train built in 1967 with a b-b wheel arrangement?
SELECT prr_class FROM table_name_33 WHERE wheel_arrangement = "a1a-a1a"
CREATE TABLE table_name_33 (prr_class VARCHAR, wheel_arrangement VARCHAR)
What PRR class has a Wheel arrangement of a1a-a1a?
SELECT MIN(zone) FROM table_name_88 WHERE managed_by = "southern" AND platforms < 2
CREATE TABLE table_name_88 (zone INTEGER, managed_by VARCHAR, platforms VARCHAR)
Which Zone is the lowest when Managed By Southern and has Platforms under 2?
SELECT MAX(platforms) FROM table_name_15 WHERE stations = "centrale tram stop"
CREATE TABLE table_name_15 (platforms INTEGER, stations VARCHAR)
What would be the highest Platforms for the Centrale Tram Stop Stations?
SELECT SUM(grid) FROM table_name_9 WHERE laps > 61
CREATE TABLE table_name_9 (grid INTEGER, laps INTEGER)
How many grids had more than 61 laps?
SELECT MAX(pick) FROM table_name_57 WHERE player = "parnell dickinson" AND round < 7
CREATE TABLE table_name_57 (pick INTEGER, player VARCHAR, round VARCHAR)
When parnell dickinson was the player and the rounds were under 7, what's the highest pick?
SELECT SUM(round) FROM table_name_51 WHERE position = "linebacker" AND school = "utah state"
CREATE TABLE table_name_51 (round INTEGER, position VARCHAR, school VARCHAR)
When the school picking is utah state for the position of linebacker, what's the sum of those rounds?
SELECT laps FROM table_name_38 WHERE grid < 2
CREATE TABLE table_name_38 (laps VARCHAR, grid INTEGER)
what is the laps when the grid is less than 2?
SELECT constructor FROM table_name_66 WHERE grid > 23 AND driver = "piercarlo ghinzani"
CREATE TABLE table_name_66 (constructor VARCHAR, grid VARCHAR, driver VARCHAR)
who is the constructor when the grid is more than 23 and the driver is piercarlo ghinzani?
SELECT MAX(year) FROM table_name_36 WHERE venue = "gothenburg, sweden"
CREATE TABLE table_name_36 (year INTEGER, venue VARCHAR)
When is the latest year the venue is in gothenburg, sweden?
SELECT MIN(year) FROM table_name_69 WHERE venue = "gothenburg, sweden"
CREATE TABLE table_name_69 (year INTEGER, venue VARCHAR)
When is the earliest year the venue is in gothenburg, sweden?
SELECT result FROM table_name_41 WHERE tournament = "european indoor championships" AND year > 1974
CREATE TABLE table_name_41 (result VARCHAR, tournament VARCHAR, year VARCHAR)
What is the result of the european indoor championships after 1974?
SELECT away_team AS score FROM table_name_33 WHERE venue = "western oval"
CREATE TABLE table_name_33 (away_team VARCHAR, venue VARCHAR)
In Western Oval, what was the away team score?
SELECT SUM(places) FROM table_name_14 WHERE name = "adrian vasile" AND points < 127.74
CREATE TABLE table_name_14 (places INTEGER, name VARCHAR, points VARCHAR)
What is the place number for adrian vasile with less than 127.74 points?
SELECT MAX(sp) + fs FROM table_name_84 WHERE points = 131.02 AND rank > 15
CREATE TABLE table_name_84 (fs VARCHAR, sp INTEGER, points VARCHAR, rank VARCHAR)
What is the highest SP+FS that has 131.02 Points, and a Rank larger than 15?
SELECT MAX(evening_gown) FROM table_name_31 WHERE interview > 9.36 AND country = "tennessee" AND average > 9.75
CREATE TABLE table_name_31 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, country VARCHAR)
What is the highest evening gown score of the contestant from Tennessee with an interview score larger than 9.36 and an average larger than 9.75 have?
SELECT SUM(average) FROM table_name_86 WHERE swimsuit < 9.32
CREATE TABLE table_name_86 (average INTEGER, swimsuit INTEGER)
What is the average of the contestant with a swimsuit less than 9.32?
SELECT MAX(swimsuit) FROM table_name_63 WHERE interview > 9.55 AND evening_gown = 9.75 AND average > 9.67
CREATE TABLE table_name_63 (swimsuit INTEGER, average VARCHAR, interview VARCHAR, evening_gown VARCHAR)
What is the highest swimsuit score of the contestant with a higher than 9.55 interview score, and evening gown of 9.75, and an average higher than 9.67?
SELECT country FROM table_name_19 WHERE swimsuit = 9.46
CREATE TABLE table_name_19 (country VARCHAR, swimsuit VARCHAR)
What is the country of the contestant with a swimsuit of 9.46?
SELECT date FROM table_name_76 WHERE goal = 24
CREATE TABLE table_name_76 (date VARCHAR, goal VARCHAR)
On what date did Goal 24 take place?
SELECT team_2 FROM table_name_60 WHERE team_1 = "valletta"
CREATE TABLE table_name_60 (team_2 VARCHAR, team_1 VARCHAR)
What is the team 2 for team 1 of Valletta?
SELECT defensive FROM table_name_97 WHERE rookie = "craig point" AND week = 6
CREATE TABLE table_name_97 (defensive VARCHAR, rookie VARCHAR, week VARCHAR)
Who played defensive when the rookie Craig Point was playing during week 6?
SELECT MIN(week) FROM table_name_6 WHERE transition = "pat mccready"
CREATE TABLE table_name_6 (week INTEGER, transition VARCHAR)
What was the first week that had a transition with Pat Mccready?
SELECT rookie FROM table_name_6 WHERE defensive = "matt vinc" AND offensive = "pat maddalena"
CREATE TABLE table_name_6 (rookie VARCHAR, defensive VARCHAR, offensive VARCHAR)
Who was the rookie who played when Matt Vinc was defensive and Pat Maddalena was offensive?
SELECT overall FROM table_name_16 WHERE transition = "josh sims"
CREATE TABLE table_name_16 (overall VARCHAR, transition VARCHAR)
Who played as overall when Josh Sims was transition?
SELECT SUM(crowd) FROM table_name_98 WHERE venue = "glenferrie oval"
CREATE TABLE table_name_98 (crowd INTEGER, venue VARCHAR)
How large was the crowd at Glenferrie Oval?
SELECT actor FROM table_name_62 WHERE character = "ariadne oliver"
CREATE TABLE table_name_62 (actor VARCHAR, character VARCHAR)
who is the actor of the character ariadne oliver?
SELECT MAX(grid) FROM table_name_15 WHERE driver = "ralph firman" AND laps < 18
CREATE TABLE table_name_15 (grid INTEGER, driver VARCHAR, laps VARCHAR)
What is the largest grid with a Driver of ralph firman, and a Lap smaller than 18?
SELECT time_retired FROM table_name_65 WHERE grid > 3 AND driver = "kimi räikkönen"
CREATE TABLE table_name_65 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
What time/retired has a Grid larger than 3, and a Driver of kimi räikkönen?
SELECT score FROM table_name_13 WHERE date = "december 31"
CREATE TABLE table_name_13 (score VARCHAR, date VARCHAR)
What is the score on December 31?
SELECT MIN(team_1) FROM table_name_89 WHERE agg = "asolo fonte (veneto b)"
CREATE TABLE table_name_89 (team_1 INTEGER, agg VARCHAR)
What's the lowest team 1 number that had asolo fonte (veneto b) as the Agg.?
SELECT SUM(grid) FROM table_name_22 WHERE driver = "kazuyoshi hoshino" AND laps < 71
CREATE TABLE table_name_22 (grid INTEGER, driver VARCHAR, laps VARCHAR)
What is the grid total for kazuyoshi hoshino with under 71 laps?
SELECT driver FROM table_name_35 WHERE laps > 72 AND grid = 2
CREATE TABLE table_name_35 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
What driver has grid 2 and over 72 laps?
SELECT time_retired FROM table_name_88 WHERE grid = 23
CREATE TABLE table_name_88 (time_retired VARCHAR, grid VARCHAR)
What is the time/retired for grid 23?
SELECT AVG(top_25) FROM table_name_32 WHERE events < 35 AND tournament = "the open championship"
CREATE TABLE table_name_32 (top_25 INTEGER, events VARCHAR, tournament VARCHAR)
What is the average of the top-25 of those with less than 35 events in the Open Championship?
SELECT SUM(events) FROM table_name_50 WHERE tournament = "the open championship" AND cuts_made < 0
CREATE TABLE table_name_50 (events INTEGER, tournament VARCHAR, cuts_made VARCHAR)
What is the total number of events the Open Championship has with less than 0 cuts?
SELECT COUNT(events) FROM table_name_44 WHERE top_25 < 0
CREATE TABLE table_name_44 (events VARCHAR, top_25 INTEGER)
What is the total number of events with a top-25 less than 0?
SELECT COUNT(top_25) FROM table_name_92 WHERE top_10 > 2 AND cuts_made < 29
CREATE TABLE table_name_92 (top_25 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR)
What is the total number of top-25 with a top-10 bigger than 2 and less than 29 cuts?
SELECT MIN(events) FROM table_name_30 WHERE tournament = "the open championship" AND top_10 < 0
CREATE TABLE table_name_30 (events INTEGER, tournament VARCHAR, top_10 VARCHAR)
What is the lowest number of events the Open Championship has with a less than 0 top-10?
SELECT away_team AS score FROM table_name_46 WHERE home_team = "hawthorn"
CREATE TABLE table_name_46 (away_team VARCHAR, home_team VARCHAR)
What is the score for the away team when they played Hawthorn?
SELECT result FROM table_name_51 WHERE score = "30-44"
CREATE TABLE table_name_51 (result VARCHAR, score VARCHAR)
Which result has a Score of 30-44?
SELECT venue FROM table_name_35 WHERE goals = "h.paul 8/9"
CREATE TABLE table_name_35 (venue VARCHAR, goals VARCHAR)
Which venue has h.paul 8/9 goals?
SELECT score FROM table_name_74 WHERE venue = "valley parade" AND date = "10/6/01"
CREATE TABLE table_name_74 (score VARCHAR, venue VARCHAR, date VARCHAR)
What is the score at valley parade on 10/6/01?
SELECT competition FROM table_name_31 WHERE date = "16/4/01"
CREATE TABLE table_name_31 (competition VARCHAR, date VARCHAR)
Which competition has a Date of 16/4/01?
SELECT occupation FROM table_name_11 WHERE riding = "labrador"
CREATE TABLE table_name_11 (occupation VARCHAR, riding VARCHAR)
What is the occupation of the candidate that has a riding of labrador?
SELECT AVG(sinclair_coefficient) FROM table_name_61 WHERE sinclair_total = 477.2772023 AND weight_class__kg_ > 105
CREATE TABLE table_name_61 (sinclair_coefficient INTEGER, sinclair_total VARCHAR, weight_class__kg_ VARCHAR)
What is the average sinclair coefficient with a Sinclair Total of 477.2772023, and a Weight Class (kg) larger than 105?
SELECT MIN(attendance) FROM table_name_1 WHERE date = "may 6"
CREATE TABLE table_name_1 (attendance INTEGER, date VARCHAR)
Name the least attendance for may 6
SELECT owner FROM table_name_26 WHERE language = "english" AND name = "espn international sports"
CREATE TABLE table_name_26 (owner VARCHAR, language VARCHAR, name VARCHAR)
Which ESPN international sports owner speaks English?
SELECT type FROM table_name_56 WHERE group = "animated"
CREATE TABLE table_name_56 (type VARCHAR, group VARCHAR)
Which type is filed under the Group Animated?
SELECT date FROM table_name_66 WHERE opponent = "newcastle united" AND result = "2–1"
CREATE TABLE table_name_66 (date VARCHAR, opponent VARCHAR, result VARCHAR)
Which Date has an Opponent of newcastle united, and a Result of 2–1?
SELECT date FROM table_name_31 WHERE opponent = "manchester united" AND venue = "a"
CREATE TABLE table_name_31 (date VARCHAR, opponent VARCHAR, venue VARCHAR)
Which Date has an Opponent of manchester united, and a Venue A?
SELECT away_team AS score FROM table_name_18 WHERE home_team = "collingwood"
CREATE TABLE table_name_18 (away_team VARCHAR, home_team VARCHAR)
In the game where Collingwood is the home team what is the score of the away team?
SELECT home_team AS score FROM table_name_11 WHERE home_team = "richmond"
CREATE TABLE table_name_11 (home_team VARCHAR)
What is the home teamscore for Richmond?
SELECT contestant FROM table_name_10 WHERE start_bmi = 42.2
CREATE TABLE table_name_10 (contestant VARCHAR, start_bmi VARCHAR)
What contestant had a starting BMI of 42.2?