instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the lowest total from slovenia with a Gold smaller than 0? | SELECT MIN Total FROM table WHERE Nation = slovenia AND Gold < 0 |
Translate the following into a SQL query | What class has less than 12 numbers built operated by southern? | SELECT Class FROM table WHERE No. Built < 12 AND Operator = southern |
Translate the following into a SQL query | Tell me the episode with an 18-49 rating of 2.0/5 | SELECT Episode FROM table WHERE 18-49 (Rating/Share) = 2.0/5 |
Translate the following into a SQL query | Name the episode for viewers bigger than 5.63 and the households rating is 4.5/7 | SELECT Episode FROM table WHERE Viewers (m) > 5.63 AND Households (Rating/Share) = 4.5/7 |
Translate the following into a SQL query | Name the 18-49 rating for weekly rank of 30 | SELECT 18-49 (Rating/Share) FROM table WHERE Weekly Rank (#) = 30 |
Translate the following into a SQL query | Who was the driver with 29 laps? | SELECT Driver FROM table WHERE Laps = 29 |
Translate the following into a SQL query | What was the retired time for someone who was on grid 18? | SELECT Time/Retired FROM table WHERE Grid = 18 |
Translate the following into a SQL query | Jacques Villeneuve was on what grid? | SELECT Grid FROM table WHERE Driver = jacques villeneuve |
Translate the following into a SQL query | What's the time for someone on grid 9? | SELECT Time/Retired FROM table WHERE Grid = 9 |
Translate the following into a SQL query | What was the grid of Alex Yoong? | SELECT Grid FROM table WHERE Driver = alex yoong |
Translate the following into a SQL query | What date was the game played at Lake Oval? | SELECT Date FROM table WHERE Venue = lake oval |
Translate the following into a SQL query | How many people came to the game at Victoria Park? | SELECT COUNT Crowd FROM table WHERE Venue = victoria park |
Translate the following into a SQL query | Who lost to moyer (9β4)? | SELECT Opponent FROM table WHERE Loss = moyer (9β4) |
Translate the following into a SQL query | How many people attended when the record was broken with 47β63? | SELECT Attendance FROM table WHERE Record = 47β63 |
Translate the following into a SQL query | Who is the home team that played the away team that scored 11.13 (79)? | SELECT Home team score FROM table WHERE Away team score = 11.13 (79) |
Translate the following into a SQL query | What is the score of the home team that played Collingwood? | SELECT Home team score FROM table WHERE Away team = collingwood |
Translate the following into a SQL query | Who is the away team that played at punt road oval where the crowd was larger than 12,000? | SELECT Away team FROM table WHERE Crowd > 12,000 AND Venue = punt road oval |
Translate the following into a SQL query | Who was the visitor when ward recorded the decision with a record of 22β21β4? | SELECT Visitor FROM table WHERE Decision = ward AND Record = 22β21β4 |
Translate the following into a SQL query | What is the score of the game when they had a record of 22β19β4? | SELECT Score FROM table WHERE Record = 22β19β4 |
Translate the following into a SQL query | What is the 1st week sales for the album finding forever before the number 6? | SELECT SUM 1st week sales FROM table WHERE Album = finding forever AND Number < 6 |
Translate the following into a SQL query | What is the album for the number 6 with the 1st week position of #1? | SELECT Album FROM table WHERE 1st week position = #1 AND Number = 6 |
Translate the following into a SQL query | What is the sum number of grid where time/retired is 2:41:38.4 and laps were more than 40? | SELECT COUNT Grid FROM table WHERE Time/Retired = 2:41:38.4 AND Laps > 40 |
Translate the following into a SQL query | Which constructor had laps amounting to more than 21 where the driver was John Surtees? | SELECT Constructor FROM table WHERE Laps > 21 AND Driver = john surtees |
Translate the following into a SQL query | How many laps did Jo Bonnier driver when the grid number was smaller than 11? | SELECT SUM Laps FROM table WHERE Driver = jo bonnier AND Grid < 11 |
Translate the following into a SQL query | How many laps were there when time/retired was gearbox? | SELECT SUM Laps FROM table WHERE Time/Retired = gearbox |
Translate the following into a SQL query | How many were in attendance at the game where the visiting team was the Jazz? | SELECT SUM Attendance FROM table WHERE Visitor = jazz |
Translate the following into a SQL query | Who did the Chiefs play at the game attended by 34,063? | SELECT Opponent FROM table WHERE Attendance = 34,063 |
Translate the following into a SQL query | Which week's game was attended by 33,057 people? | SELECT Week FROM table WHERE Attendance = 33,057 |
Translate the following into a SQL query | what is the organisation when the year is less than 2005 and the award is the best variety show host? | SELECT Organisation FROM table WHERE Year < 2005 AND Award = best variety show host |
Translate the following into a SQL query | what is the organisation when the nominated work title is n/a in the year 2005? | SELECT Organisation FROM table WHERE Nominated Work Title = n/a AND Year = 2005 |
Translate the following into a SQL query | what is the lowest year with the result is nominated for the work title is love bites? | SELECT MIN Year FROM table WHERE Result = nominated AND Nominated Work Title = love bites |
Translate the following into a SQL query | what is the year when then organisation is star awards, the result is won and the nominated work title is n/a? | SELECT Year FROM table WHERE Organisation = star awards AND Result = won AND Nominated Work Title = n/a |
Translate the following into a SQL query | what is the latest year that has the result of nominated and the nominated work title is n/a? | SELECT MAX Year FROM table WHERE Result = nominated AND Nominated Work Title = n/a |
Translate the following into a SQL query | what is the nominated work title when the result is won, the organisation is star awards and the award is top 10 most popular female artiste in the year 2007? | SELECT Nominated Work Title FROM table WHERE Result = won AND Organisation = star awards AND Award = top 10 most popular female artiste AND Year > 2007 |
Translate the following into a SQL query | What is the rank of the games that had 9 gold and 9 silvers? | SELECT Rank FROM table WHERE Gold = 9 AND Silver = 9 |
Translate the following into a SQL query | How many golds were there in a game that has 17 bronze and a total of 31? | SELECT Gold FROM table WHERE Bronze = 17 AND Total = 31 |
Translate the following into a SQL query | Which game had 8 bronze and 4 gold? | SELECT Games FROM table WHERE Bronze = 8 AND Gold = 4 |
Translate the following into a SQL query | When did San Jose visit the St. Louis? | SELECT Date FROM table WHERE Visitor = san jose |
Translate the following into a SQL query | How many total wins with the latest win at the 1999 Italian Grand Prix at a rank of 15? | SELECT SUM Wins FROM table WHERE Latest win = 1999 italian grand prix AND Rank > 15 |
Translate the following into a SQL query | What is the rank 6 lowest win who's first win was at the 1950 British Grand Prix? | SELECT MIN Wins FROM table WHERE Rank > 6 AND First win = 1950 british grand prix |
Translate the following into a SQL query | What is the rank 16 wins with the latest win at the 1967 Belgian Grand Prix? | SELECT Wins FROM table WHERE Rank > 16 AND Latest win = 1967 belgian grand prix |
Translate the following into a SQL query | What's the lowest pick for a defensive back at Drake? | SELECT MIN Pick FROM table WHERE Position = defensive back AND School = drake |
Translate the following into a SQL query | What's terry jones' lowest pick? | SELECT MIN Pick FROM table WHERE Player = terry jones |
Translate the following into a SQL query | What position does gerald carter play? | SELECT Position FROM table WHERE Player = gerald carter |
Translate the following into a SQL query | Who is the guard for Wisconsin? | SELECT Player FROM table WHERE Position = guard AND School = wisconsin |
Translate the following into a SQL query | Which player is Pick 33 and has a Nationality of USA? | SELECT Player FROM table WHERE Nationality = usa AND Pick = 33 |
Translate the following into a SQL query | What is the nationality of the player who has a pick lower than 33 and a School/Club Team of Vanderbilt? | SELECT Nationality FROM table WHERE Pick < 33 AND School/Club Team = vanderbilt |
Translate the following into a SQL query | What is the nationality of the player who had the pick of 52 and plays for the NBA team of Phoenix Suns? | SELECT Nationality FROM table WHERE NBA Team = phoenix suns AND Pick = 52 |
Translate the following into a SQL query | How many leage apperances for the player with one FA cup, and a FLT Apps of 0 (1)? | SELECT League Apps FROM table WHERE FA Cup Apps = 1 AND FLT Apps = 0 (1) |
Translate the following into a SQL query | What day did St Kilda play as the away team? | SELECT Date FROM table WHERE Away team = st kilda |
Translate the following into a SQL query | What's the value for 2007 when 2011 is a and 2009 is q2? | SELECT 2007 FROM table WHERE 2011 = a AND 2009 = q2 |
Translate the following into a SQL query | Tell me the highest league goals with total goals less than 1 and FA cups more than 0 | SELECT MAX League Goals FROM table WHERE Total Goals < 1 AND FA Cup Goals > 0 |
Translate the following into a SQL query | I want to know the sum of fa cup goals for david mirfin and total goals less than 1 | SELECT SUM FA Cup Goals FROM table WHERE Name = david mirfin AND Total Goals < 1 |
Translate the following into a SQL query | Tell me the league apps with league goals less than 2 and position of df and FA cup apps of 5 | SELECT League Apps FROM table WHERE League Goals < 2 AND Position = df AND FA Cup Apps = 5 |
Translate the following into a SQL query | What is the video ratio on channel 14.2? | SELECT Video FROM table WHERE Channel = 14.2 |
Translate the following into a SQL query | What network has an aspect of 4:3 and a PSIP Short Name of qvc? | SELECT Network FROM table WHERE Aspect = 4:3 AND PSIP Short Name = qvc |
Translate the following into a SQL query | What is ion life network's PSIP Short Name? | SELECT PSIP Short Name FROM table WHERE Network = ion life |
Translate the following into a SQL query | What is the sum of channels for qubo network? | SELECT SUM Channel FROM table WHERE Network = qubo |
Translate the following into a SQL query | How many deaths did eseta cause? | SELECT Deaths FROM table WHERE Name = eseta |
Translate the following into a SQL query | What was the date when the away team was Carlton? | SELECT Date FROM table WHERE Away team = carlton |
Translate the following into a SQL query | What was the home team that had a score of 6.20 (56) | SELECT Home team FROM table WHERE Home team score = 6.20 (56) |
Translate the following into a SQL query | What was the away team at the venue victoria park? | SELECT Away team score FROM table WHERE Venue = victoria park |
Translate the following into a SQL query | When the home team was hawthorn, what was the date? | SELECT Date FROM table WHERE Home team = hawthorn |
Translate the following into a SQL query | Where did the game take place when the away team scored 14.15 (99)? | SELECT Venue FROM table WHERE Away team score = 14.15 (99) |
Translate the following into a SQL query | Which home team scored 23.18 (156)? | SELECT Home team FROM table WHERE Home team score = 23.18 (156) |
Translate the following into a SQL query | How many spectators had a home team score of 15.14 (104)? | SELECT AVG Crowd FROM table WHERE Home team score = 15.14 (104) |
Translate the following into a SQL query | What did Geelong score as the away team? | SELECT Away team score FROM table WHERE Away team = geelong |
Translate the following into a SQL query | What date did the home team of footscray play? | SELECT Date FROM table WHERE Home team = footscray |
Translate the following into a SQL query | Which away team scored 5.8 (38)? | SELECT Away team FROM table WHERE Away team score = 5.8 (38) |
Translate the following into a SQL query | Name the club team for overall of 188 for canada | SELECT Club team FROM table WHERE Nationality = canada AND Overall = 188 |
Translate the following into a SQL query | Name the nationality of the player with an overall of 74 | SELECT Nationality FROM table WHERE Overall = 74 |
Translate the following into a SQL query | What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30? | SELECT MAX Aug 2013 FROM table WHERE Nov 2011 < 968 AND Jul 2012 = 31 AND Jun 2011 > 30 |
Translate the following into a SQL query | What is the average Apr 2013 with a Jun 2011 less than 14? | SELECT AVG Apr 2013 FROM table WHERE Jun 2011 < 14 |
Translate the following into a SQL query | What is the average Feb 2013 with a Feb 2010 with 37, and a Nov 2012 less than 32? | SELECT AVG Feb 2013 FROM table WHERE Feb 2010 = 37 AND Nov 2012 < 32 |
Translate the following into a SQL query | What is the total number with Nov 2012 with a Jun 2013 larger than 542, and a Aug 2011 more than 935? | SELECT COUNT Nov 2012 FROM table WHERE Jun 2013 > 542 AND Aug 2011 > 935 |
Translate the following into a SQL query | What's the total grid for a Time/Retired of +1:03.741, and Laps larger than 44? | SELECT COUNT Grid FROM table WHERE Time/Retired = +1:03.741 AND Laps > 44 |
Translate the following into a SQL query | What did the home team at Brunswick Street Oval score? | SELECT Home team score FROM table WHERE Venue = brunswick street oval |
Translate the following into a SQL query | Who had the highest rebounds of the game with A. Johnson (6) as the highest assist? | SELECT High rebounds FROM table WHERE High assists = a. johnson (6) |
Translate the following into a SQL query | Who had the highest rebounds of the game with A. Johnson (14) as the highest assists? | SELECT High rebounds FROM table WHERE High assists = a. johnson (14) |
Translate the following into a SQL query | Who was the opponent on August 30? | SELECT Opponent FROM table WHERE Date = august 30 |
Translate the following into a SQL query | What was the score on August 8? | SELECT Score FROM table WHERE Date = august 8 |
Translate the following into a SQL query | Which pick was the lowest from Manila College in Philippines? | SELECT MIN Pick FROM table WHERE Country of origin* = philippines AND College = manila |
Translate the following into a SQL query | How many picks included Kenny Evans? | SELECT COUNT Pick FROM table WHERE Player = kenny evans |
Translate the following into a SQL query | How many picks went to College of Letran? | SELECT COUNT Pick FROM table WHERE College = letran |
Translate the following into a SQL query | Which player has a PBA team of Red Bull Thunder? | SELECT Player FROM table WHERE PBA team = red bull thunder |
Translate the following into a SQL query | In which event did he place 6th in 1971? | SELECT Event FROM table WHERE Year = 1971 AND Result = 6th |
Translate the following into a SQL query | When was the first year he placed 2nd in Izmir, Turkey? | SELECT MIN Year FROM table WHERE Result = 2nd AND Venue = izmir, turkey |
Translate the following into a SQL query | How did he place in 1970? | SELECT Result FROM table WHERE Year = 1970 |
Translate the following into a SQL query | How many were in Attendance on the Date May 29? | SELECT COUNT Attendance FROM table WHERE Date = may 29 |
Translate the following into a SQL query | What was the Record on the Date May 8? | SELECT Record FROM table WHERE Date = may 8 |
Translate the following into a SQL query | What is the 10:00 with a 5:00 with monster knockouts? | SELECT 10:00 FROM table WHERE 5:00 = monster knockouts |
Translate the following into a SQL query | What is the 6:00 with a 10:00 with mysteryquest? | SELECT 6:00 FROM table WHERE 10:00 = mysteryquest |
Translate the following into a SQL query | What is the 11:00 with a 5:00 with monster knockouts? | SELECT 11:00 FROM table WHERE 5:00 = monster knockouts |
Translate the following into a SQL query | What is the 10:00 with a 7:00 with mostly true stories: urban legends revealed? | SELECT 10:00 FROM table WHERE 7:00 = mostly true stories: urban legends revealed |
Translate the following into a SQL query | What is the 6:00 with a 7:00 of mostly true stories: urban legends revealed, and a 10:00 with mysteryquest? | SELECT 6:00 FROM table WHERE 7:00 = mostly true stories: urban legends revealed AND 10:00 = mysteryquest |
Translate the following into a SQL query | What is the 6:00 with an 11:00 of underbelly, and a 10:00 with nostradamus effect? | SELECT 6:00 FROM table WHERE 11:00 = underbelly AND 10:00 = nostradamus effect |
Translate the following into a SQL query | Who was the home team at the game played on April 14, 2008? | SELECT Home FROM table WHERE Date = april 14, 2008 |
Translate the following into a SQL query | How many votes were cast when the notes reported lost to incumbent vic gilliam? | SELECT Votes FROM table WHERE Notes = lost to incumbent vic gilliam |
Translate the following into a SQL query | Who is the candidate in Race for State representative, hd18? | SELECT Candidate FROM table WHERE Race = state representative, hd18 |
Translate the following into a SQL query | What club/province does the prop player with over 45 caps play for? | SELECT Club/province FROM table WHERE Caps > 45 AND Position = prop |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.