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