instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the fame number when the Montreal Canadiens were the opponent? | SELECT COUNT Game FROM table WHERE Opponent = montreal canadiens |
Translate the following into a SQL query | What is the Score of game 35? | SELECT Score FROM table WHERE Game = 35 |
Translate the following into a SQL query | What is the average oveall pick for players from the college of Miami (FL)? | SELECT AVG Overall FROM table WHERE College = miami (fl) |
Translate the following into a SQL query | Which player was drafted overall from the college of Nebraska in a round under 6, pick of 15, and overall under 224? | SELECT Name FROM table WHERE Overall < 224 AND Round < 6 AND Pick = 15 AND College = nebraska |
Translate the following into a SQL query | What is the lowest overall draft pick number for terry daniels who was picked in round 10? | SELECT MIN Overall FROM table WHERE Round = 10 AND Name = terry daniels |
Translate the following into a SQL query | What is the sum of the rounds where the draft pick came from the college of tennessee and had an overall pick number bigger than 153 and a pick less than 14? | SELECT SUM Round FROM table WHERE College = tennessee AND Overall > 153 AND Pick < 14 |
Translate the following into a SQL query | What position did the draft pick number play that was overall pick number 133? | SELECT Position FROM table WHERE Overall = 133 |
Translate the following into a SQL query | What is the overall pick number for the player who was picked on round 8? | SELECT MIN Overall FROM table WHERE Round = 8 |
Translate the following into a SQL query | What college did the player who had the position of OT come from who was pick number less than 12 and a overall pick number bigger than 226? | SELECT College FROM table WHERE Overall > 226 AND Pick < 12 AND Position = ot |
Translate the following into a SQL query | WHAT IS THE APPOINTMENT DATE WITH A PRE-SEASON POSITION, AND REPLACED BY THOMAS THOMASBERG? | SELECT Date of appointment FROM table WHERE Position in table = pre-season AND Replaced by = thomas thomasberg |
Translate the following into a SQL query | WHAT IS THE APPOINTMENT DATE FOR AC HORSENS? | SELECT Date of appointment FROM table WHERE Team = ac horsens |
Translate the following into a SQL query | WHAT TEAM HAS 12TH TABLE POSITION AND REPLACED BY OVE PEDERSEN? | SELECT Team FROM table WHERE Position in table = 12th AND Replaced by = ove pedersen |
Translate the following into a SQL query | What was the score when Calgary was visiting team and Niittymaki had the decision? | SELECT Score FROM table WHERE Decision = niittymaki AND Visitor = calgary |
Translate the following into a SQL query | What is the score when Biron got the decision and Philadelphia was the visitor on March 1? | SELECT Score FROM table WHERE Decision = biron AND Visitor = philadelphia AND Date = march 1 |
Translate the following into a SQL query | What is the attendance when Pittsburgh is the home team? | SELECT AVG Attendance FROM table WHERE Home = pittsburgh |
Translate the following into a SQL query | What was the Attendance after Week 4 on October 10, 1971? | SELECT AVG Attendance FROM table WHERE Date = october 10, 1971 AND Week > 4 |
Translate the following into a SQL query | What was the Attendance in the game against the New Orleans Saints? | SELECT COUNT Attendance FROM table WHERE Opponent = new orleans saints |
Translate the following into a SQL query | What is the Date in Week 7 with an Attendance greater than 44,000? | SELECT Date FROM table WHERE Attendance > 44,000 AND Week = 7 |
Translate the following into a SQL query | What is the Eagle Riders character voiced by Japanese voice actor Katsuji Mori? | SELECT Eagle Riders FROM table WHERE Japanese voice actor = katsuji mori |
Translate the following into a SQL query | Which Voice Actor for Eagle Riders had a bird uniform of condor? | SELECT Voice actor (Eagle Riders) FROM table WHERE Bird Uniform = condor |
Translate the following into a SQL query | Which weapon was used when the Battle of the Planets was Jason? | SELECT Weapon FROM table WHERE Battle of the Planets = jason |
Translate the following into a SQL query | Who was the voice actor (ADV TV/Sentai OVA dub) for the Gatchaman, jun? | SELECT Voice actor (ADV TV/Sentai OVA dub) FROM table WHERE Gatchaman = jun |
Translate the following into a SQL query | Which Japanese voice actor had the Mecha of airplane? | SELECT Japanese voice actor FROM table WHERE Mecha = airplane |
Translate the following into a SQL query | Which 1st leg has a Team 1 of drita? | SELECT 1st leg FROM table WHERE Team 1 = drita |
Translate the following into a SQL query | Which Team 2 has a Team 1 of vardar? | SELECT Team 2 FROM table WHERE Team 1 = vardar |
Translate the following into a SQL query | Which Team 1 has a 2nd leg of 1β2? | SELECT Team 1 FROM table WHERE 2nd leg = 1β2 |
Translate the following into a SQL query | What years was the jersey number(s) smaller than 3? | SELECT Years FROM table WHERE Jersey Number(s) < 3 |
Translate the following into a SQL query | Which position was played by the player wearing jersey number 40? | SELECT Position FROM table WHERE Jersey Number(s) = 40 |
Translate the following into a SQL query | What was the jersey number(s) when the position was SG from North Carolina? | SELECT Jersey Number(s) FROM table WHERE Position = sg AND From = north carolina |
Translate the following into a SQL query | Which nationality does Cincinnati belong to? | SELECT Nationality FROM table WHERE From = cincinnati |
Translate the following into a SQL query | Where is jersey number 3 from? | SELECT From FROM table WHERE Jersey Number(s) = 3 |
Translate the following into a SQL query | What pick number was the rhp with a hometown/school of university of hawaii? | SELECT MIN Pick FROM table WHERE Position = rhp AND Hometown/School = university of hawaii |
Translate the following into a SQL query | What player was drafted number 10? | SELECT Player FROM table WHERE Pick = 10 |
Translate the following into a SQL query | What number pick was the player with the hometown school of concordia college? | SELECT Pick FROM table WHERE Hometown/School = concordia college |
Translate the following into a SQL query | What is the date of game 66? | SELECT Date FROM table WHERE Game = 66 |
Translate the following into a SQL query | What is the game on February 21? | SELECT Game FROM table WHERE Date = february 21 |
Translate the following into a SQL query | What is the average number of draws that has a played entry of less than 30 and a goal difference greater than 2? | SELECT AVG Draws FROM table WHERE Goal Difference > 2 AND Played < 30 |
Translate the following into a SQL query | What is the average number played that has fewer than 11 wins, more than 42 goals, more than 22 points, and 11 losses? | SELECT AVG Played FROM table WHERE Wins < 11 AND Goals for > 42 AND Points > 22 AND Losses = 11 |
Translate the following into a SQL query | What is the total of the goal difference entries for entries with fewer than 49 goals and position smaller than 8? | SELECT COUNT Goal Difference FROM table WHERE Goals for < 49 AND Position < 8 |
Translate the following into a SQL query | What is the lowest played for the entry with position of 2 and fewer than 9 losses? | SELECT MIN Played FROM table WHERE Position = 2 AND Losses < 9 |
Translate the following into a SQL query | What is the total number of losses for entries that have 12 wins and a goal difference smaller than -14? | SELECT COUNT Losses FROM table WHERE Wins = 12 AND Goal Difference < -14 |
Translate the following into a SQL query | What are the goals for Pelletieri in ARG? | SELECT Goals(L/C/E) FROM table WHERE Nat. = arg AND Name = pelletieri |
Translate the following into a SQL query | What are the fewest ends with an App(L/C/E) of 51 (44/6/1)? | SELECT MIN Ends FROM table WHERE App(L/C/E) = 51 (44/6/1) |
Translate the following into a SQL query | Who has a nationality of GRE and an App(L/C/E) of 49 (40/8/1)? | SELECT Name FROM table WHERE Nat. = gre AND App(L/C/E) = 49 (40/8/1) |
Translate the following into a SQL query | What are the gaols(L/C/E) with an App(L/C/E) of 55 (47/5/3)? | SELECT Goals(L/C/E) FROM table WHERE App(L/C/E) = 55 (47/5/3) |
Translate the following into a SQL query | How many times was the reader's vote na and the lifetime achievement na? | SELECT COUNT Year FROM table WHERE Reader's Vote = na AND Lifetime Achievement = na |
Translate the following into a SQL query | who won the lifetime achievement in the year 1998? | SELECT Lifetime Achievement FROM table WHERE Year = 1998 |
Translate the following into a SQL query | who won the lifetime achievement when the best non-fiction is na, reader's vote is ne and the year is after 2005? | SELECT Lifetime Achievement FROM table WHERE Best Non-Fiction = na AND Reader's Vote = na AND Year > 2005 |
Translate the following into a SQL query | what is the reader's vote for 2011? | SELECT Reader's Vote FROM table WHERE Year = 2011 |
Translate the following into a SQL query | Constructor with total time of 2:45.416 | SELECT Constructor FROM table WHERE Q1+Q2 time = 2:45.416 |
Translate the following into a SQL query | Driver at larger than 10 with a Q1 of 18. | SELECT Driver FROM table WHERE Q1 order > 10 AND Q1 pos = 18 |
Translate the following into a SQL query | Who was the opponent when the record was 55-14? | SELECT Opponent FROM table WHERE Record = 55-14 |
Translate the following into a SQL query | What was the game number when record is 59-15? | SELECT MIN Game FROM table WHERE Record = 59-15 |
Translate the following into a SQL query | What is the date that the record was 51-14? | SELECT Date FROM table WHERE Record = 51-14 |
Translate the following into a SQL query | What is the sum of Pick #, when College is Laurier? | SELECT SUM Pick # FROM table WHERE College = laurier |
Translate the following into a SQL query | What is CFL Team, when Pick # is greater than 34, and when College is Boise State? | SELECT CFL Team FROM table WHERE Pick # > 34 AND College = boise state |
Translate the following into a SQL query | What is the lowest Pick #, when Position is REC, and when CFL Team is Hamilton Tiger-Cats? | SELECT MIN Pick # FROM table WHERE Position = rec AND CFL Team = hamilton tiger-cats |
Translate the following into a SQL query | What is Player, when Position is DB, and when College is Saint Mary's? | SELECT Player FROM table WHERE Position = db AND College = saint mary's |
Translate the following into a SQL query | What is Position, when Pick # is less than 40, and when College is Western? | SELECT Position FROM table WHERE Pick # < 40 AND College = western |
Translate the following into a SQL query | Which Date has a Time of 12:00? | SELECT Date FROM table WHERE Time = 12:00 |
Translate the following into a SQL query | Set 1 of 25β20, what was Set 2? | SELECT Set 2 FROM table WHERE Set 1 = 25β20 |
Translate the following into a SQL query | Whose rule began in 1906 BC? | SELECT Name FROM table WHERE From = 1906 bc |
Translate the following into a SQL query | What is the title of the one who ruled from 2007 BC? | SELECT Title FROM table WHERE From = 2007 bc |
Translate the following into a SQL query | What is the name of the ruler whose rule began in 1924 BC? | SELECT Name FROM table WHERE From = 1924 bc |
Translate the following into a SQL query | What royal house did Shaokang belong to? | SELECT Royal house FROM table WHERE Name = shaokang |
Translate the following into a SQL query | What is the highest rank of a building erected in 1976 with fewer than 21 floors? | SELECT MAX Rank FROM table WHERE Year = 1976 AND Floors < 21 |
Translate the following into a SQL query | What team was the opponent when February shows more than 2, with a game number less than 55? | SELECT Opponent FROM table WHERE February > 2 AND Game < 55 |
Translate the following into a SQL query | What is the game number when the Toronto Maple Leafs were the opponent, and the February was less than 17? | SELECT AVG Game FROM table WHERE Opponent = toronto maple leafs AND February < 17 |
Translate the following into a SQL query | What is the number of the game when the opponent was the New York Islanders, and a February less than 24? | SELECT SUM Game FROM table WHERE Opponent = new york islanders AND February < 24 |
Translate the following into a SQL query | What is the lowest game number when the record was 26-24-9? | SELECT MIN Game FROM table WHERE Record = 26-24-9 |
Translate the following into a SQL query | What rank has less than 16 gold, more than 2 bronze and silver, and a total of 14? | SELECT Rank FROM table WHERE Gold < 16 AND Bronze > 2 AND Silver > 2 AND Total = 14 |
Translate the following into a SQL query | What's the silver for rank 1 with less than 2 bronze? | SELECT MIN Silver FROM table WHERE Rank = 1 AND Bronze < 2 |
Translate the following into a SQL query | What's the lowest total when there's less than 16 bronze and more than 6 silver? | SELECT MIN Total FROM table WHERE Bronze < 16 AND Silver > 6 |
Translate the following into a SQL query | What's the lowest gold with a total over 15 and less than 16 silver? | SELECT MIN Gold FROM table WHERE Total > 15 AND Silver < 16 |
Translate the following into a SQL query | Which Gold has a Rank of 7, a Nation of italy, and a Silver smaller than 0? | SELECT COUNT Gold FROM table WHERE Rank = 7 AND Nation = italy AND Silver < 0 |
Translate the following into a SQL query | Which Gold has a Total larger than 3, a Rank of total, and a Silver larger than 8? | SELECT AVG Gold FROM table WHERE Total > 3 AND Rank = total AND Silver > 8 |
Translate the following into a SQL query | Which Club team has a Pick larger than 139? | SELECT Club team FROM table WHERE Pick > 139 |
Translate the following into a SQL query | Which Nationality has a Pick larger than 109, and a Round smaller than 5? | SELECT Nationality FROM table WHERE Pick > 109 AND Round < 5 |
Translate the following into a SQL query | Which school was Lawrence Roberts from ? | SELECT School/Club Team FROM table WHERE Player = lawrence roberts |
Translate the following into a SQL query | Which school was Chris Robinson from? | SELECT School/Club Team FROM table WHERE Player = chris robinson |
Translate the following into a SQL query | What was the position that Chris Robinson played? | SELECT Position FROM table WHERE Player = chris robinson |
Translate the following into a SQL query | In which years did Zach Randolph play for the Grizzlies? | SELECT Years for Grizzlies FROM table WHERE Player = zach randolph |
Translate the following into a SQL query | Which player played for Western Kentucky? | SELECT Player FROM table WHERE School/Club Team = western kentucky |
Translate the following into a SQL query | What was the score on January 14 when the Chicago Black Hawks were home against the New York Rangers? | SELECT Score FROM table WHERE Home = chicago black hawks AND Visitor = new york rangers AND Date = january 14 |
Translate the following into a SQL query | Who was the home team on February 18 that had a visitor of the Chicago Black Hawks? | SELECT Home FROM table WHERE Visitor = chicago black hawks AND Date = february 18 |
Translate the following into a SQL query | What is points diff when points against is 123? | SELECT Points diff FROM table WHERE Points against = 123 |
Translate the following into a SQL query | Which team has 123 points agaibst the other team? | SELECT Team FROM table WHERE Points against = 123 |
Translate the following into a SQL query | What is the points against when try diff is +23? | SELECT Points against FROM table WHERE Try diff = +23 |
Translate the following into a SQL query | What is points when try diff is +23? | SELECT Points for FROM table WHERE Try diff = +23 |
Translate the following into a SQL query | What is points sgsinst when points diff is +96? | SELECT Points against FROM table WHERE Points diff = +96 |
Translate the following into a SQL query | How many laps led when the Grid was 15? | SELECT Laps Led FROM table WHERE Grid = 15 |
Translate the following into a SQL query | Name the Time/Retired when the points were 32. | SELECT Time/Retired FROM table WHERE Points = 32 |
Translate the following into a SQL query | What car number had 24 points? | SELECT Car No. FROM table WHERE Points = 24 |
Translate the following into a SQL query | What team does Dan Wheldon drive for when he led 0 laps? | SELECT Team FROM table WHERE Laps Led = 0 AND Driver = dan wheldon |
Translate the following into a SQL query | How many points when the Grid was 1? | SELECT Points FROM table WHERE Grid = 1 |
Translate the following into a SQL query | What is the average game number that was on october 19? | SELECT AVG Game FROM table WHERE October = 19 |
Translate the following into a SQL query | What is the sum of October, when Opponent is "Pittsburgh Penguins"? | SELECT SUM October FROM table WHERE Opponent = pittsburgh penguins |
Translate the following into a SQL query | What is the sum of Game, when Record is "2-1-1", and when October is less than 21? | SELECT SUM Game FROM table WHERE Record = 2-1-1 AND October < 21 |
Translate the following into a SQL query | What is Opponent, when October is less than 31, and when Game is greater than 7? | SELECT Opponent FROM table WHERE October < 31 AND Game > 7 |
Translate the following into a SQL query | What is the tie number for the home team Orient? | SELECT Tie no FROM table WHERE Home team = orient |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.