instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: Name the lfop for 5/11/09 with lfop 1/9/09 of 5% | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (ifop_5_11_09 VARCHAR, ifop_1_9_09 VARCHAR) | SELECT ifop_5_11_09 FROM table_name_18 WHERE ifop_1_9_09 = "5%" |
Write a SQL query that answers the following question: Name the csa 4/16/09 for opinionway being 4/17/09 of 12% | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (csa_4_16_09 VARCHAR, opinionway_4_17_09 VARCHAR) | SELECT csa_4_16_09 FROM table_name_17 WHERE opinionway_4_17_09 = "12%" |
Write a SQL query that answers the following question: Name the lpsos 3/14/09 for opinionway of 4/17/09 of 5% and lfof 11/12/08 of 7% | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (ipsos_3_14_09 VARCHAR, ifop_11_12_08 VARCHAR, opinionway_4_17_09 VARCHAR) | SELECT ipsos_3_14_09 FROM table_name_33 WHERE ifop_11_12_08 = "7%" AND opinionway_4_17_09 = "5%" |
Write a SQL query that answers the following question: Name the 2004 results for npa | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (results_2004 VARCHAR, party VARCHAR) | SELECT results_2004 FROM table_name_18 WHERE party = "npa" |
Write a SQL query that answers the following question: What was the decision when Tampa Bay was the visitor? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (decision VARCHAR, visitor VARCHAR) | SELECT decision FROM table_name_14 WHERE visitor = "tampa bay" |
Write a SQL query that answers the following question: Which visitor visited on February 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_14 WHERE date = "february 21" |
Write a SQL query that answers the following question: What date is the Victoria Park venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_3 WHERE venue = "victoria park" |
Write a SQL query that answers the following question: What Away team is from Fitzroy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_16 WHERE home_team = "fitzroy" |
Write a SQL query that answers the following question: Who was the home team that played the Lakers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (home VARCHAR, visitor VARCHAR) | SELECT home FROM table_name_85 WHERE visitor = "lakers" |
Write a SQL query that answers the following question: Which tournament had a 2008 result of 1R? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (tournament VARCHAR) | SELECT tournament FROM table_name_85 WHERE 2006 = "a" AND 2008 = "1r" |
Write a SQL query that answers the following question: Which tournament in 2012 had a 2007 and 2011 finishes of "A"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (Id VARCHAR) | SELECT 2012 FROM table_name_91 WHERE 2007 = "a" AND 2011 = "a" |
Write a SQL query that answers the following question: Which tournament in 2013 had a 2010 finish of 1R? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (Id VARCHAR) | SELECT 2013 FROM table_name_44 WHERE 2006 = "a" AND 2010 = "1r" |
Write a SQL query that answers the following question: Which home team score has an Away team of melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_71 WHERE away_team = "melbourne" |
Write a SQL query that answers the following question: What is the highest crowd for Home team of geelong? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (crowd INTEGER, home_team VARCHAR) | SELECT MAX(crowd) FROM table_name_47 WHERE home_team = "geelong" |
Write a SQL query that answers the following question: What is the year when the performance is 60.73m and the age (years) is more than 45? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (year VARCHAR, performance VARCHAR, age__years_ VARCHAR) | SELECT COUNT(year) FROM table_name_85 WHERE performance = "60.73m" AND age__years_ > 45 |
Write a SQL query that answers the following question: What is the highest age (years) that the 1st place had a performance of 62.20m? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (age__years_ INTEGER, place VARCHAR, performance VARCHAR) | SELECT MAX(age__years_) FROM table_name_45 WHERE place = "1st" AND performance = "62.20m" |
Write a SQL query that answers the following question: What is the place when the performance is 60.73m? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (place VARCHAR, performance VARCHAR) | SELECT place FROM table_name_65 WHERE performance = "60.73m" |
Write a SQL query that answers the following question: Name the kaz hayashi with block A of Shuji Kondo | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (kaz_hayashi VARCHAR, block_a VARCHAR) | SELECT kaz_hayashi FROM table_name_47 WHERE block_a = "shuji kondo" |
Write a SQL query that answers the following question: Name the block A for shuji kondo | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (block_a VARCHAR, toshizo VARCHAR) | SELECT block_a FROM table_name_93 WHERE toshizo = "shuji kondo" |
Write a SQL query that answers the following question: Name the NOSAWA Rongai for petey williams | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (nosawa_rongai VARCHAR, block_a VARCHAR) | SELECT nosawa_rongai FROM table_name_97 WHERE block_a = "petey williams" |
Write a SQL query that answers the following question: What was the score when Nannette Hill was the champion? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (score VARCHAR, champion VARCHAR) | SELECT score FROM table_name_61 WHERE champion = "nannette hill" |
Write a SQL query that answers the following question: What score did the opposing home team have against Melbourne | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_74 WHERE away_team = "melbourne" |
Write a SQL query that answers the following question: Name the venue where St Kilda was the opposing away team | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_76 WHERE away_team = "st kilda" |
Write a SQL query that answers the following question: Which Date has a Venue of lake oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_36 WHERE venue = "lake oval" |
Write a SQL query that answers the following question: Which Crowd has an Away team of collingwood? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (crowd INTEGER, away_team VARCHAR) | SELECT SUM(crowd) FROM table_name_79 WHERE away_team = "collingwood" |
Write a SQL query that answers the following question: When Steve Hazlett is the Player, and the PI GP is under 0, what is the average Rd #? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (rd__number INTEGER, player VARCHAR, pl_gp VARCHAR) | SELECT AVG(rd__number) FROM table_name_82 WHERE player = "steve hazlett" AND pl_gp < 0 |
Write a SQL query that answers the following question: Which Player has a PI GP over 0 and a Rd # of 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (player VARCHAR, pl_gp VARCHAR, rd__number VARCHAR) | SELECT player FROM table_name_71 WHERE pl_gp > 0 AND rd__number = 1 |
Write a SQL query that answers the following question: Which Pick # is the highest and has the Rd # is under 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (pick__number INTEGER, rd__number INTEGER) | SELECT MAX(pick__number) FROM table_name_9 WHERE rd__number < 1 |
Write a SQL query that answers the following question: What is the lowest PI GP when the Reg GP is 1, Murray Bannerman is the Player, and the Pick # is under 58? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR, player VARCHAR) | SELECT MIN(pl_gp) FROM table_name_53 WHERE reg_gp = 1 AND player = "murray bannerman" AND pick__number < 58 |
Write a SQL query that answers the following question: Tell me the average top 25 with events of 5 and cuts madde less than 3 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (top_25 INTEGER, events VARCHAR, cuts_made VARCHAR) | SELECT AVG(top_25) FROM table_name_33 WHERE events = 5 AND cuts_made < 3 |
Write a SQL query that answers the following question: Tell me the highest cuts made with wins more than 1 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (cuts_made INTEGER, wins INTEGER) | SELECT MAX(cuts_made) FROM table_name_5 WHERE wins > 1 |
Write a SQL query that answers the following question: I want to know the highest wins for cuts made more than 5 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (wins INTEGER, cuts_made INTEGER) | SELECT MAX(wins) FROM table_name_71 WHERE cuts_made > 5 |
Write a SQL query that answers the following question: Tell me the sum of top 5 with events less than 12 and top 25 less than 0 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (top_5 INTEGER, events VARCHAR, top_25 VARCHAR) | SELECT SUM(top_5) FROM table_name_98 WHERE events < 12 AND top_25 < 0 |
Write a SQL query that answers the following question: What was the biggest crowd when South Melbourne was an away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (crowd INTEGER, away_team VARCHAR) | SELECT MAX(crowd) FROM table_name_94 WHERE away_team = "south melbourne" |
Write a SQL query that answers the following question: How many people attended the game on 8 March 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (attendance INTEGER, date VARCHAR) | SELECT SUM(attendance) FROM table_name_9 WHERE date = "8 march 2008" |
Write a SQL query that answers the following question: What is the Away team score when they played Geelong as the Home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_15 WHERE home_team = "geelong" |
Write a SQL query that answers the following question: What did Carlton score when they were the Home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_73 WHERE home_team = "carlton" |
Write a SQL query that answers the following question: What is the name of the Home team that played Fitzroy as the Away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_53 WHERE away_team = "fitzroy" |
Write a SQL query that answers the following question: What is the total number of points when the grade was A? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (points INTEGER, grade VARCHAR) | SELECT SUM(points) FROM table_name_31 WHERE grade = "a" |
Write a SQL query that answers the following question: Which standing broad jump (cm) had the b grade? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (standing_broad_jump__cm_ VARCHAR, grade VARCHAR) | SELECT standing_broad_jump__cm_ FROM table_name_67 WHERE grade = "b" |
Write a SQL query that answers the following question: Which grade did the chin-up (reps) 9-10 receive? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (grade VARCHAR, chin_up__reps_ VARCHAR) | SELECT grade FROM table_name_54 WHERE chin_up__reps_ = "9-10" |
Write a SQL query that answers the following question: What year was the comp 33? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (year VARCHAR, comp VARCHAR) | SELECT year FROM table_name_99 WHERE comp = "33" |
Write a SQL query that answers the following question: In 1984, what was the RAvg? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (ravg VARCHAR, year VARCHAR) | SELECT ravg FROM table_name_51 WHERE year = "1984" |
Write a SQL query that answers the following question: In 1983, what was the RAtt? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (ratt VARCHAR, year VARCHAR) | SELECT ratt FROM table_name_85 WHERE year = "1983" |
Write a SQL query that answers the following question: What team has a 94.1 rating? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (team VARCHAR, rate VARCHAR) | SELECT team FROM table_name_67 WHERE rate = "94.1" |
Write a SQL query that answers the following question: What year has a RAtt of 1 and a comp of 49? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (year VARCHAR, ratt VARCHAR, comp VARCHAR) | SELECT year FROM table_name_60 WHERE ratt = "1" AND comp = "49" |
Write a SQL query that answers the following question: Who recorded the loss on august 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_98 WHERE date = "august 7" |
Write a SQL query that answers the following question: When the away team was st kilda, what did the home team score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_7 WHERE away_team = "st kilda" |
Write a SQL query that answers the following question: When the home team was geelong, what did the away team score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_98 WHERE home_team = "geelong" |
Write a SQL query that answers the following question: Which Artist has an Issue Price of $8,159.95? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (artist VARCHAR, issue_price VARCHAR) | SELECT artist FROM table_name_11 WHERE issue_price = "$8,159.95" |
Write a SQL query that answers the following question: What is the lowest Mintage for the Artist Royal Canadian Mint Engravers, in the Year 2009, with an Issue Price of $10,199.95? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (mintage INTEGER, year VARCHAR, artist VARCHAR, issue_price VARCHAR) | SELECT MIN(mintage) FROM table_name_9 WHERE artist = "royal canadian mint engravers" AND issue_price = "$10,199.95" AND year > 2009 |
Write a SQL query that answers the following question: What is the sum of Artist Steve Hepburn's Mintage? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (mintage INTEGER, artist VARCHAR) | SELECT SUM(mintage) FROM table_name_75 WHERE artist = "steve hepburn" |
Write a SQL query that answers the following question: What is the average Year for the Royal Canadian Mint Engravers Artist when the Mintage is under 200? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (year INTEGER, artist VARCHAR, mintage VARCHAR) | SELECT AVG(year) FROM table_name_35 WHERE artist = "royal canadian mint engravers" AND mintage < 200 |
Write a SQL query that answers the following question: When the Year is over 2008, what is the highest Mintage for the Royal Canadian Mint Engravers Artist? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (mintage INTEGER, artist VARCHAR, year VARCHAR) | SELECT MAX(mintage) FROM table_name_46 WHERE artist = "royal canadian mint engravers" AND year > 2008 |
Write a SQL query that answers the following question: When did José Luis Sánchez Solá end his term of coaching? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (until VARCHAR, name VARCHAR) | SELECT until FROM table_name_76 WHERE name = "josé luis sánchez solá" |
Write a SQL query that answers the following question: What is the class of the locomotive with an Eastleigh Works manufacturer, made in 1914, and withdrawn in 1959? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (class VARCHAR, year_s__withdrawn VARCHAR, manufacturer VARCHAR, year_made VARCHAR) | SELECT class FROM table_name_72 WHERE manufacturer = "eastleigh works" AND year_made = "1914" AND year_s__withdrawn = "1959" |
Write a SQL query that answers the following question: What is the class of the locomotive with a wheel arrangement of 4-6-0 and a quantity made of 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (class VARCHAR, wheel_arrangement VARCHAR, quantity_made VARCHAR) | SELECT class FROM table_name_47 WHERE wheel_arrangement = "4-6-0" AND quantity_made = "14" |
Write a SQL query that answers the following question: What is the fleet number of the locomotive with 1 quantity made? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (fleet_number_s_ VARCHAR, quantity_made VARCHAR) | SELECT fleet_number_s_ FROM table_name_59 WHERE quantity_made = "1" |
Write a SQL query that answers the following question: In games where st kilda was the away team, what was the smallest crowd? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (crowd INTEGER, away_team VARCHAR) | SELECT MIN(crowd) FROM table_name_68 WHERE away_team = "st kilda" |
Write a SQL query that answers the following question: In fitzroy's match where they were the home team, how much did they score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_7 WHERE home_team = "fitzroy" |
Write a SQL query that answers the following question: What was the score for the home team who plays their matches at the mcg venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_4 WHERE venue = "mcg" |
Write a SQL query that answers the following question: Which player has the lowest earnings and has at least 4 wins and is ranked higher than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (earnings__ INTEGER, wins VARCHAR, rank VARCHAR) | SELECT MIN(earnings__) AS $__ FROM table_name_50 WHERE wins = 4 AND rank > 4 |
Write a SQL query that answers the following question: How many wins do the players that earned more than 720,134 have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (wins INTEGER, earnings__$__ INTEGER) | SELECT SUM(wins) FROM table_name_8 WHERE earnings__$__ > 720 OFFSET 134 |
Write a SQL query that answers the following question: Who is the highest ranked player that has earnings below 395,386? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (rank INTEGER, earnings__$__ INTEGER) | SELECT MAX(rank) FROM table_name_70 WHERE earnings__$__ < 395 OFFSET 386 |
Write a SQL query that answers the following question: In what Game did Rams Points equal 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (game VARCHAR, rams_points VARCHAR) | SELECT game FROM table_name_82 WHERE rams_points = 0 |
Write a SQL query that answers the following question: What Opponent has a 6-0 Record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_54 WHERE record = "6-0" |
Write a SQL query that answers the following question: What is the sum of the interview scores from North Dakota that have averages less than 8.697, evening gown scores less than 8.73, and swimsuit scores greater than 8.41? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (interview INTEGER, swimsuit VARCHAR, state VARCHAR, average VARCHAR, evening_gown VARCHAR) | SELECT SUM(interview) FROM table_name_4 WHERE average < 8.697 AND evening_gown < 8.73 AND state = "north dakota" AND swimsuit > 8.41 |
Write a SQL query that answers the following question: What is the sum of the swimsuit scores from Missouri that have evening gown scores less than 8.77 and average scores less than 8.823? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (swimsuit INTEGER, average VARCHAR, evening_gown VARCHAR, state VARCHAR) | SELECT SUM(swimsuit) FROM table_name_77 WHERE evening_gown < 8.77 AND state = "missouri" AND average < 8.823 |
Write a SQL query that answers the following question: What is the total number of swimsuit scores that have average scores less than 8.823, evening gown scores less than 8.69, and interview scores equal to 8.27? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (swimsuit VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR) | SELECT COUNT(swimsuit) FROM table_name_19 WHERE average < 8.823 AND evening_gown < 8.69 AND interview = 8.27 |
Write a SQL query that answers the following question: What is the lowest swimsuit score where the contestant scored less than 8.56 in the interview and greater than 8.54 in the evening gown? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (swimsuit INTEGER, interview VARCHAR, evening_gown VARCHAR) | SELECT MIN(swimsuit) FROM table_name_85 WHERE interview < 8.56 AND evening_gown > 8.54 |
Write a SQL query that answers the following question: What is the sum of the evening gown scores where the interview score is less than 8.77, the swimsuit score is equal to 7.8, and the average score is less than 8.2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, swimsuit VARCHAR) | SELECT SUM(evening_gown) FROM table_name_4 WHERE interview < 8.77 AND swimsuit = 7.8 AND average < 8.2 |
Write a SQL query that answers the following question: What was the attendance for the game that has a tie number of 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (attendance INTEGER, tie_no VARCHAR) | SELECT SUM(attendance) FROM table_name_96 WHERE tie_no = "13" |
Write a SQL query that answers the following question: What is the average attendance when the Forest Green Rovers is the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (attendance INTEGER, away_team VARCHAR) | SELECT AVG(attendance) FROM table_name_82 WHERE away_team = "forest green rovers" |
Write a SQL query that answers the following question: What is the grid number for troy corser with under 22 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (grid INTEGER, rider VARCHAR, laps VARCHAR) | SELECT SUM(grid) FROM table_name_48 WHERE rider = "troy corser" AND laps < 22 |
Write a SQL query that answers the following question: What rider went under 22 laps with grid number 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (rider VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT rider FROM table_name_11 WHERE laps < 22 AND grid = 2 |
Write a SQL query that answers the following question: What country speaks Vietnamese? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (country_region VARCHAR, languages VARCHAR) | SELECT country_region FROM table_name_76 WHERE languages = "vietnamese" |
Write a SQL query that answers the following question: What ranking did Team 250cc Honda end up in when it finished a race with a time of 1:27.57.28? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (rank VARCHAR, team VARCHAR, time VARCHAR) | SELECT COUNT(rank) FROM table_name_44 WHERE team = "250cc honda" AND time = "1:27.57.28" |
Write a SQL query that answers the following question: Tell me the constructor for grid of 8 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (constructor VARCHAR, grid VARCHAR) | SELECT constructor FROM table_name_57 WHERE grid = 8 |
Write a SQL query that answers the following question: I want the total number of Grids for heinz-harald frentzen | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (grid VARCHAR, driver VARCHAR) | SELECT COUNT(grid) FROM table_name_10 WHERE driver = "heinz-harald frentzen" |
Write a SQL query that answers the following question: What is the average crowd for the home team of North Melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (crowd INTEGER, home_team VARCHAR) | SELECT AVG(crowd) FROM table_name_97 WHERE home_team = "north melbourne" |
Write a SQL query that answers the following question: Who was the visiting team on 12 March 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_77 WHERE date = "12 march 2008" |
Write a SQL query that answers the following question: Who was the home team where Trail Blazers were the visitor? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (home VARCHAR, visitor VARCHAR) | SELECT home FROM table_name_70 WHERE visitor = "trail blazers" |
Write a SQL query that answers the following question: In the game on 11 March 2008 with a visiting team of Bucks, who was the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (home VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT home FROM table_name_7 WHERE visitor = "bucks" AND date = "11 march 2008" |
Write a SQL query that answers the following question: How many laps for robin montgomerie-charrington, and a Grid smaller than 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (laps VARCHAR, driver VARCHAR, grid VARCHAR) | SELECT COUNT(laps) FROM table_name_18 WHERE driver = "robin montgomerie-charrington" AND grid < 15 |
Write a SQL query that answers the following question: What is the mean number of totals with no silvers and a bronze number less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (total INTEGER, silver VARCHAR, bronze VARCHAR) | SELECT AVG(total) FROM table_name_9 WHERE silver = 0 AND bronze < 0 |
Write a SQL query that answers the following question: What is the least number of Silvers with a ranking of less than 4 where the bronze number was larger than 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (silver INTEGER, rank VARCHAR, bronze VARCHAR) | SELECT MIN(silver) FROM table_name_76 WHERE rank < 4 AND bronze > 9 |
Write a SQL query that answers the following question: Which mean rank had a silver number smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (rank INTEGER, silver INTEGER) | SELECT AVG(rank) FROM table_name_60 WHERE silver < 0 |
Write a SQL query that answers the following question: What is the least total number with a rank of 4 and a total silver number bigger than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (total INTEGER, rank VARCHAR, silver VARCHAR) | SELECT MIN(total) FROM table_name_99 WHERE rank = 4 AND silver > 3 |
Write a SQL query that answers the following question: Name the category for 2nd melon music awards | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (category VARCHAR, award VARCHAR) | SELECT category FROM table_name_7 WHERE award = "2nd melon music awards" |
Write a SQL query that answers the following question: Name the award won in the hall of fame | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (award VARCHAR, result VARCHAR, category VARCHAR) | SELECT award FROM table_name_30 WHERE result = "won" AND category = "hall of fame" |
Write a SQL query that answers the following question: Name the nomination in 2011 that won | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (nomination VARCHAR, year VARCHAR, result VARCHAR) | SELECT nomination FROM table_name_59 WHERE year = 2011 AND result = "won" |
Write a SQL query that answers the following question: Name the result in 2010 for bgm cyworld | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (result VARCHAR, year VARCHAR, award VARCHAR) | SELECT result FROM table_name_98 WHERE year = 2010 AND award = "bgm cyworld" |
Write a SQL query that answers the following question: What is the car # of the Chevrolet that complete 363 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (car__number VARCHAR, make VARCHAR, laps VARCHAR) | SELECT COUNT(car__number) FROM table_name_68 WHERE make = "chevrolet" AND laps = 363 |
Write a SQL query that answers the following question: How many points did the driver who won $127,541 driving car #31 get? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (points INTEGER, winnings VARCHAR, car__number VARCHAR) | SELECT MAX(points) FROM table_name_88 WHERE winnings = "$127,541" AND car__number > 31 |
Write a SQL query that answers the following question: What is the english title of the film before 1999 with a role of kim da-rim? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (english_title VARCHAR, year VARCHAR, role VARCHAR) | SELECT english_title FROM table_name_80 WHERE year < 1999 AND role = "kim da-rim" |
Write a SQL query that answers the following question: What English title for the Romanization of lee jae-su-eui nan? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (english_title VARCHAR, romanization VARCHAR) | SELECT english_title FROM table_name_96 WHERE romanization = "lee jae-su-eui nan" |
Write a SQL query that answers the following question: What is the Romanization for my old sweetheart? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (romanization VARCHAR, english_title VARCHAR) | SELECT romanization FROM table_name_81 WHERE english_title = "my old sweetheart" |
Write a SQL query that answers the following question: What is the English of chae soo-yeon? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (english_title VARCHAR, role VARCHAR) | SELECT english_title FROM table_name_56 WHERE role = "chae soo-yeon" |
Write a SQL query that answers the following question: What is the lowest high position for 10 years of hits, and over 870,000 sales? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (Highest INTEGER, album_title VARCHAR, sales VARCHAR) | SELECT MIN(Highest) AS position FROM table_name_22 WHERE album_title = "10 years of hits" AND sales > 870 OFFSET 000 |
Write a SQL query that answers the following question: What is the average high position for the album unwritten? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (Highest INTEGER, album_title VARCHAR) | SELECT AVG(Highest) AS position FROM table_name_69 WHERE album_title = "unwritten" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.