instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What finish has a 143.056 qual? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (finish VARCHAR, qual VARCHAR) | SELECT finish FROM table_name_69 WHERE qual = "143.056" |
Write a SQL query that answers the following question: What rank had more than 165 laps and a finish of 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (rank VARCHAR, laps VARCHAR, finish VARCHAR) | SELECT rank FROM table_name_17 WHERE laps > 165 AND finish = "5" |
Write a SQL query that answers the following question: What was the record at the game against the Blue Jays with a loss of Batista (0–3)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (record VARCHAR, opponent VARCHAR, loss VARCHAR) | SELECT record FROM table_name_22 WHERE opponent = "blue jays" AND loss = "batista (0–3)" |
Write a SQL query that answers the following question: What was the loss of the game when the record was 14–8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_90 WHERE record = "14–8" |
Write a SQL query that answers the following question: What was the score of the game when the record was 28–19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_62 WHERE record = "28–19" |
Write a SQL query that answers the following question: What was the record at the game held on May 1st with a loss of Speier (1–3)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (record VARCHAR, date VARCHAR, loss VARCHAR) | SELECT record FROM table_name_94 WHERE date = "may 1" AND loss = "speier (1–3)" |
Write a SQL query that answers the following question: How many goes played fot hteam that lost less than 12 games, drew 5, and had over 37 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (played VARCHAR, drawn VARCHAR, lost VARCHAR, points VARCHAR) | SELECT played FROM table_name_75 WHERE lost < 12 AND points > 37 AND drawn = 5 |
Write a SQL query that answers the following question: How many games lost for the team that drew 5 times and had over 41 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (lost INTEGER, drawn VARCHAR, points VARCHAR) | SELECT AVG(lost) FROM table_name_83 WHERE drawn = 5 AND points > 41 |
Write a SQL query that answers the following question: How many games played for the army team with over 51 points and under 5 games drawn? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (played VARCHAR, points VARCHAR, drawn VARCHAR, team VARCHAR) | SELECT COUNT(played) FROM table_name_81 WHERE drawn < 5 AND team = "army" AND points > 51 |
Write a SQL query that answers the following question: How many points for the navy team that lost over 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (points INTEGER, team VARCHAR, lost VARCHAR) | SELECT SUM(points) FROM table_name_4 WHERE team = "navy" AND lost > 11 |
Write a SQL query that answers the following question: What class of car had the XI Coppa Acerbo title? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (class VARCHAR, race_title VARCHAR) | SELECT class FROM table_name_31 WHERE race_title = "xi coppa acerbo" |
Write a SQL query that answers the following question: Who won the III Coppa Acerbo title? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (driver_s VARCHAR, race_title VARCHAR) | SELECT driver_s FROM table_name_67 WHERE race_title = "iii coppa acerbo" |
Write a SQL query that answers the following question: What's the name of the title for the Maserati A6GCS? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (race_title VARCHAR, vehicle VARCHAR) | SELECT race_title FROM table_name_81 WHERE vehicle = "maserati a6gcs" |
Write a SQL query that answers the following question: Who won the XXIV Gran Premio di Pescara in the sports car class? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (driver_s VARCHAR, class VARCHAR, race_title VARCHAR) | SELECT driver_s FROM table_name_81 WHERE class = "sports car" AND race_title = "xxiv gran premio di pescara" |
Write a SQL query that answers the following question: What surface was the città di caltanissetta played on? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (surface VARCHAR, tournament VARCHAR) | SELECT surface FROM table_name_22 WHERE tournament = "città di caltanissetta" |
Write a SQL query that answers the following question: What was the score in Volkswagen Challenger tournament? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (score VARCHAR, tournament VARCHAR) | SELECT score FROM table_name_1 WHERE tournament = "volkswagen challenger" |
Write a SQL query that answers the following question: what is the production in 2010 with 2011 production of 2,240,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (Id VARCHAR) | SELECT 2010 FROM table_name_23 WHERE 2011 = "2,240,000" |
Write a SQL query that answers the following question: what is the ranking for 2010 production of 2,903,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (rank VARCHAR) | SELECT rank FROM table_name_52 WHERE 2010 = "2,903,000" |
Write a SQL query that answers the following question: what is the production in 2010 with rank of 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (rank VARCHAR) | SELECT 2010 FROM table_name_39 WHERE rank = "8" |
Write a SQL query that answers the following question: What club captain is John Hutchinson in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (club VARCHAR, captain VARCHAR) | SELECT club FROM table_name_95 WHERE captain = "john hutchinson" |
Write a SQL query that answers the following question: What Australian Marquee team is Michael Beauchamp a captain of? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (australian_marquee VARCHAR, captain VARCHAR) | SELECT australian_marquee FROM table_name_13 WHERE captain = "michael beauchamp" |
Write a SQL query that answers the following question: What Junior Marquee team is Harry Kewell of? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (junior_marquee_player VARCHAR, captain VARCHAR) | SELECT junior_marquee_player FROM table_name_22 WHERE captain = "harry kewell" |
Write a SQL query that answers the following question: What is the name of call sign that uses a Frequency MHz of 91.1 fm? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (call_sign VARCHAR, frequency_mhz VARCHAR) | SELECT call_sign FROM table_name_33 WHERE frequency_mhz = "91.1 fm" |
Write a SQL query that answers the following question: How much is the total ERP W for an 107.9 fm freqeuncy MHz? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (erp_w VARCHAR, frequency_mhz VARCHAR) | SELECT COUNT(erp_w) FROM table_name_63 WHERE frequency_mhz = "107.9 fm" |
Write a SQL query that answers the following question: Can you tell me what is FCC info for harmony township, new jersey? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (fcc_info VARCHAR, city_of_license VARCHAR) | SELECT fcc_info FROM table_name_39 WHERE city_of_license = "harmony township, new jersey" |
Write a SQL query that answers the following question: What is the smallest ERP for allentown, pennsylvania? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (erp_w INTEGER, city_of_license VARCHAR) | SELECT MIN(erp_w) FROM table_name_66 WHERE city_of_license = "allentown, pennsylvania" |
Write a SQL query that answers the following question: Which grid has a time/retired of +3.9 secs in less than 96 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) | SELECT AVG(grid) FROM table_name_42 WHERE time_retired = "+3.9 secs" AND laps < 96 |
Write a SQL query that answers the following question: Which driver has 7 points for team Australia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (driver VARCHAR, points VARCHAR, team VARCHAR) | SELECT driver FROM table_name_28 WHERE points = 7 AND team = "team australia" |
Write a SQL query that answers the following question: What is the fewest number of laps for a Dale Coyne Racing team with a mechanical time/retired and fewer than 5 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (laps INTEGER, points VARCHAR, team VARCHAR, time_retired VARCHAR) | SELECT MIN(laps) FROM table_name_85 WHERE team = "dale coyne racing" AND time_retired = "mechanical" AND points < 5 |
Write a SQL query that answers the following question: What is the highest points total scored by Dan Clarke in a grid higher than 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (points INTEGER, driver VARCHAR, grid VARCHAR) | SELECT MAX(points) FROM table_name_61 WHERE driver = "dan clarke" AND grid > 10 |
Write a SQL query that answers the following question: What is the earliest episode of the series that is set in Boston, Massachusetts? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (total INTEGER, location VARCHAR) | SELECT MIN(total) FROM table_name_80 WHERE location = "boston, massachusetts" |
Write a SQL query that answers the following question: How many people were surveyed in the poll from June 30, 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (sample_size VARCHAR, date_s__administered VARCHAR) | SELECT sample_size FROM table_name_84 WHERE date_s__administered = "june 30, 2010" |
Write a SQL query that answers the following question: What percentage of the vote with a margin of error of ± 3.3% did Meg Whitman (R) get? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (meg_whitman__r_ VARCHAR, margin_of_error VARCHAR) | SELECT meg_whitman__r_ FROM table_name_35 WHERE margin_of_error = "± 3.3%" |
Write a SQL query that answers the following question: How many people participated in the Rasmussen Reports poll on October 13, 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (sample_size VARCHAR, poll_source VARCHAR, date_s__administered VARCHAR) | SELECT sample_size FROM table_name_61 WHERE poll_source = "rasmussen reports" AND date_s__administered = "october 13, 2010" |
Write a SQL query that answers the following question: What percent of the vote went to Meg Whitman in the poll taken on October 21, 2010. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (meg_whitman__r_ VARCHAR, date_s__administered VARCHAR) | SELECT meg_whitman__r_ FROM table_name_51 WHERE date_s__administered = "october 21, 2010" |
Write a SQL query that answers the following question: What is the Prize, when the Event is Ept Deauville? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (prize VARCHAR, event VARCHAR) | SELECT prize FROM table_name_10 WHERE event = "ept deauville" |
Write a SQL query that answers the following question: What is the City, when the Prize is €880,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (city VARCHAR, prize VARCHAR) | SELECT city FROM table_name_26 WHERE prize = "€880,000" |
Write a SQL query that answers the following question: What is the City, when the Winner is Ruben Visser? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (city VARCHAR, winner VARCHAR) | SELECT city FROM table_name_25 WHERE winner = "ruben visser" |
Write a SQL query that answers the following question: Who is the Winner, when the Prize is €880,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (winner VARCHAR, prize VARCHAR) | SELECT winner FROM table_name_98 WHERE prize = "€880,000" |
Write a SQL query that answers the following question: What is the City, when the Prize is $1,859,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (city VARCHAR, prize VARCHAR) | SELECT city FROM table_name_17 WHERE prize = "$1,859,000" |
Write a SQL query that answers the following question: What is the Prize, when the Event is Ept Sanremo? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (prize VARCHAR, event VARCHAR) | SELECT prize FROM table_name_11 WHERE event = "ept sanremo" |
Write a SQL query that answers the following question: On what date was the venue at Edgbaston? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_97 WHERE venue = "edgbaston" |
Write a SQL query that answers the following question: What is the lowest image with a 20w Harrison, and less than 20 for Ashmolean? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (image INTEGER, harrison VARCHAR, ashmolean VARCHAR) | SELECT MIN(image) FROM table_name_51 WHERE harrison = "20w" AND ashmolean < 20 |
Write a SQL query that answers the following question: What is the number of Ashmolean with 14s Harrison, and image less than 542? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (ashmolean VARCHAR, harrison VARCHAR, image VARCHAR) | SELECT COUNT(ashmolean) FROM table_name_40 WHERE harrison = "14s" AND image < 542 |
Write a SQL query that answers the following question: What is the cooper with an Ashmolean less than 21, and hahland smaller than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (cooper VARCHAR, ashmolean VARCHAR, hahland VARCHAR) | SELECT cooper FROM table_name_43 WHERE ashmolean < 21 AND hahland < 4 |
Write a SQL query that answers the following question: What is the smith with a 16 ashmolean? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (smith VARCHAR, ashmolean VARCHAR) | SELECT smith FROM table_name_62 WHERE ashmolean = 16 |
Write a SQL query that answers the following question: What order has the Species Authority of hydrochaeris hydrochaeris (linnaeus, 1766)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (order VARCHAR, species_authority VARCHAR) | SELECT order FROM table_name_84 WHERE species_authority = "hydrochaeris hydrochaeris (linnaeus, 1766)" |
Write a SQL query that answers the following question: What is the highest Red List for the muridae family and species Authority of microtus pinetorum (le conte, 1830)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (red_list INTEGER, family VARCHAR, species_authority VARCHAR) | SELECT MAX(red_list) FROM table_name_70 WHERE family = "muridae" AND species_authority = "microtus pinetorum (le conte, 1830)" |
Write a SQL query that answers the following question: What is the name for the species Authority of sigmodon hispidus say & ord, 1825? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (name VARCHAR, species_authority VARCHAR) | SELECT name FROM table_name_76 WHERE species_authority = "sigmodon hispidus say & ord, 1825" |
Write a SQL query that answers the following question: What is the largest total with a Silver of 1, and a Rank larger than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (total INTEGER, silver VARCHAR, rank VARCHAR) | SELECT MAX(total) FROM table_name_73 WHERE silver = 1 AND rank > 7 |
Write a SQL query that answers the following question: How many totals have a Bronze smaller than 3, a Nation of zimbabwe, and a Silver smaller than 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (total VARCHAR, silver VARCHAR, bronze VARCHAR, nation VARCHAR) | SELECT COUNT(total) FROM table_name_98 WHERE bronze < 3 AND nation = "zimbabwe" AND silver < 6 |
Write a SQL query that answers the following question: What is the smallest silver with a Bronze smaller than 6, a Total of 3, and a Rank smaller than 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (silver INTEGER, rank VARCHAR, bronze VARCHAR, total VARCHAR) | SELECT MIN(silver) FROM table_name_33 WHERE bronze < 6 AND total = 3 AND rank < 9 |
Write a SQL query that answers the following question: How many ranks have 0 golds, a Nation of namibia, and a Total smaller than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (rank VARCHAR, total VARCHAR, gold VARCHAR, nation VARCHAR) | SELECT COUNT(rank) FROM table_name_14 WHERE gold = 0 AND nation = "namibia" AND total < 1 |
Write a SQL query that answers the following question: How many totals have a Bronze of 0, and a Gold smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (total INTEGER, bronze VARCHAR, gold VARCHAR) | SELECT SUM(total) FROM table_name_22 WHERE bronze = 0 AND gold < 0 |
Write a SQL query that answers the following question: What is the total silver with a Rank larger than 9, and a Total larger than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (silver INTEGER, rank VARCHAR, total VARCHAR) | SELECT SUM(silver) FROM table_name_94 WHERE rank > 9 AND total > 1 |
Write a SQL query that answers the following question: Which language do 1% of males speak? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (percentage___percentage_ VARCHAR, males VARCHAR) | SELECT percentage___percentage_ FROM table_name_31 WHERE males = "1" |
Write a SQL query that answers the following question: Which language do 87.5% of males speak? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (males VARCHAR, percentage___percentage_ VARCHAR) | SELECT males FROM table_name_44 WHERE percentage___percentage_ = "87.5" |
Write a SQL query that answers the following question: Which language do 706 females speak? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (females VARCHAR, number VARCHAR) | SELECT females FROM table_name_10 WHERE number = "706" |
Write a SQL query that answers the following question: How many females speak Ukrainian? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (females VARCHAR, language VARCHAR) | SELECT females FROM table_name_11 WHERE language = "ukrainian" |
Write a SQL query that answers the following question: What was the position of the team that had a goal difference of less than -11 and played less than 38 games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (position INTEGER, goal_difference VARCHAR, played VARCHAR) | SELECT SUM(position) FROM table_name_98 WHERE goal_difference < -11 AND played < 38 |
Write a SQL query that answers the following question: Which position had a goal difference of less than 27, lost more than 13 games, scored less than 42 goals and drew 6 games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (played INTEGER, draws VARCHAR, goals_for VARCHAR, goal_difference VARCHAR, losses VARCHAR) | SELECT MAX(played) FROM table_name_61 WHERE goal_difference < 27 AND losses > 13 AND goals_for < 42 AND draws = 6 |
Write a SQL query that answers the following question: What was the number of wins with goals against of less than 32? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (wins VARCHAR, goals_against INTEGER) | SELECT COUNT(wins) FROM table_name_96 WHERE goals_against < 32 |
Write a SQL query that answers the following question: How many Antonov An-2 Colt aircraft are in service? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (in_service INTEGER, aircraft VARCHAR) | SELECT AVG(in_service) FROM table_name_37 WHERE aircraft = "antonov an-2 colt" |
Write a SQL query that answers the following question: for the position of rb what is the name? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (name VARCHAR, position VARCHAR) | SELECT name FROM table_name_67 WHERE position = "rb" |
Write a SQL query that answers the following question: for the name of joe surratt what is the last update? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (last_update VARCHAR, name VARCHAR) | SELECT last_update FROM table_name_75 WHERE name = "joe surratt" |
Write a SQL query that answers the following question: for the name of jamar jackson what is the last update? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (last_update VARCHAR, name VARCHAR) | SELECT last_update FROM table_name_81 WHERE name = "jamar jackson" |
Write a SQL query that answers the following question: for the name of jamar jackson what is the class? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (class VARCHAR, name VARCHAR) | SELECT class FROM table_name_87 WHERE name = "jamar jackson" |
Write a SQL query that answers the following question: for the name of jamar jackson what is the total of Number? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (number VARCHAR, name VARCHAR) | SELECT COUNT(number) FROM table_name_99 WHERE name = "jamar jackson" |
Write a SQL query that answers the following question: What term did Stewart Mcarthur from Vic serve in office? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (term_in_office VARCHAR, state VARCHAR, member VARCHAR) | SELECT term_in_office FROM table_name_68 WHERE state = "vic" AND member = "stewart mcarthur" |
Write a SQL query that answers the following question: What is Hon Paul Keating's Party? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (party VARCHAR, member VARCHAR) | SELECT party FROM table_name_70 WHERE member = "hon paul keating" |
Write a SQL query that answers the following question: What member is in the liberal party and has an electorate of bruce? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (member VARCHAR, party VARCHAR, electorate VARCHAR) | SELECT member FROM table_name_73 WHERE party = "liberal" AND electorate = "bruce" |
Write a SQL query that answers the following question: Which Electorate is from vic, a labor party, and is David Charles a member of? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (electorate VARCHAR, member VARCHAR, state VARCHAR, party VARCHAR) | SELECT electorate FROM table_name_6 WHERE state = "vic" AND party = "labor" AND member = "david charles" |
Write a SQL query that answers the following question: Name the format on july 27, 1994 for alfa records | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (format VARCHAR, label VARCHAR, date VARCHAR) | SELECT format FROM table_name_59 WHERE label = "alfa records" AND date = "july 27, 1994" |
Write a SQL query that answers the following question: Name the region for cd with catalog of alca-9203 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (region VARCHAR, format VARCHAR, catalog VARCHAR) | SELECT region FROM table_name_43 WHERE format = "cd" AND catalog = "alca-9203" |
Write a SQL query that answers the following question: Name the date for alfa records and catalog of alr-28045 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (date VARCHAR, label VARCHAR, catalog VARCHAR) | SELECT date FROM table_name_6 WHERE label = "alfa records" AND catalog = "alr-28045" |
Write a SQL query that answers the following question: Name the region for cd format on february 22, 1984 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (region VARCHAR, format VARCHAR, date VARCHAR) | SELECT region FROM table_name_30 WHERE format = "cd" AND date = "february 22, 1984" |
Write a SQL query that answers the following question: Name the region for february 14, 2002 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (region VARCHAR, date VARCHAR) | SELECT region FROM table_name_6 WHERE date = "february 14, 2002" |
Write a SQL query that answers the following question: What First game has a Lost greater than 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (first_game INTEGER, lost INTEGER) | SELECT AVG(first_game) FROM table_name_16 WHERE lost > 16 |
Write a SQL query that answers the following question: What Percentage did the First game of 1998 have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (percentage VARCHAR, first_game VARCHAR) | SELECT percentage FROM table_name_80 WHERE first_game = 1998 |
Write a SQL query that answers the following question: What bowler has a record of 4-15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (player VARCHAR, bowling VARCHAR) | SELECT player FROM table_name_97 WHERE bowling = "4-15" |
Write a SQL query that answers the following question: What ranking is james franklin? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (rank VARCHAR, player VARCHAR) | SELECT rank FROM table_name_69 WHERE player = "james franklin" |
Write a SQL query that answers the following question: what venue does tim southee bowl at? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (venue VARCHAR, player VARCHAR) | SELECT venue FROM table_name_14 WHERE player = "tim southee" |
Write a SQL query that answers the following question: What was the regular season for 2012? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (regular_season VARCHAR, year VARCHAR) | SELECT regular_season FROM table_name_38 WHERE year = "2012" |
Write a SQL query that answers the following question: What is the lowest division in the playoffs and did not qualify for the Open Cup in 2002? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (division INTEGER, year VARCHAR, playoffs VARCHAR, open_cup VARCHAR) | SELECT MIN(division) FROM table_name_91 WHERE playoffs = "did not qualify" AND open_cup = "did not qualify" AND year = "2002" |
Write a SQL query that answers the following question: What chassis has more than 0 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (chassis VARCHAR, points INTEGER) | SELECT chassis FROM table_name_40 WHERE points > 0 |
Write a SQL query that answers the following question: How many points were there before 1955? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (points VARCHAR, year INTEGER) | SELECT COUNT(points) FROM table_name_95 WHERE year < 1955 |
Write a SQL query that answers the following question: What is the lowest amount of points held by the Epperly Indy roadster in 1959? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (points INTEGER, chassis VARCHAR, year VARCHAR) | SELECT MIN(points) FROM table_name_5 WHERE chassis = "epperly indy roadster" AND year = 1959 |
Write a SQL query that answers the following question: What Chassis has more than 0 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (chassis VARCHAR, points INTEGER) | SELECT chassis FROM table_name_3 WHERE points > 0 |
Write a SQL query that answers the following question: What is the date that 4,286 attended? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_15 WHERE attendance = "4,286" |
Write a SQL query that answers the following question: Where does CF Pachuca play? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (game_site VARCHAR, opponent VARCHAR) | SELECT game_site FROM table_name_64 WHERE opponent = "cf pachuca" |
Write a SQL query that answers the following question: What was the attendance of the Cup Quarterfinals game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (attendance VARCHAR, game_site VARCHAR) | SELECT attendance FROM table_name_21 WHERE game_site = "cup quarterfinals" |
Write a SQL query that answers the following question: What shows for 2000 when 2013 shows 3rd? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (Id VARCHAR) | SELECT 2000 FROM table_name_19 WHERE 2013 = "3rd" |
Write a SQL query that answers the following question: What is the 2004 when 2013 is 3rd? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (Id VARCHAR) | SELECT 2004 FROM table_name_17 WHERE 2013 = "3rd" |
Write a SQL query that answers the following question: What is the 2009 when the 2013 is 4th? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (Id VARCHAR) | SELECT 2009 FROM table_name_39 WHERE 2013 = "4th" |
Write a SQL query that answers the following question: What shows for 209 when the 2000 is –, and a Total of 3, and a 2004 of 9th? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (total VARCHAR) | SELECT 2009 FROM table_name_4 WHERE 2000 = "–" AND total = 3 AND 2004 = "9th" |
Write a SQL query that answers the following question: What was the winning score in the PGA Championship? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (winning_score VARCHAR, championship VARCHAR) | SELECT winning_score FROM table_name_14 WHERE championship = "pga championship" |
Write a SQL query that answers the following question: How many draws with 1 loss? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (draws INTEGER, losses VARCHAR) | SELECT SUM(draws) FROM table_name_55 WHERE losses = 1 |
Write a SQL query that answers the following question: How many losses does Alex Wilkinson have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (losses VARCHAR, name VARCHAR) | SELECT COUNT(losses) FROM table_name_98 WHERE name = "alex wilkinson" |
Write a SQL query that answers the following question: Name the type for headquarters principal activites. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (type VARCHAR, principal_activities VARCHAR) | SELECT type FROM table_name_53 WHERE principal_activities = "headquarters" |
Write a SQL query that answers the following question: Name the incorporated for principal activites of travel agency | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (incorporated_in VARCHAR, principal_activities VARCHAR) | SELECT incorporated_in FROM table_name_73 WHERE principal_activities = "travel agency" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.