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