instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the description where the date is 1911? | SELECT Description FROM table WHERE Date = 1911 |
Translate the following into a SQL query | What is the number and name where the date is earlier than 1905? | SELECT Number & Name FROM table WHERE Date < 1905 |
Translate the following into a SQL query | What year was the name mount roskill grammar school? | SELECT Years FROM table WHERE Name = mount roskill grammar school |
Translate the following into a SQL query | When melbourne played as the home team, who did they play? | SELECT Away team FROM table WHERE Home team = melbourne |
Translate the following into a SQL query | When the home team was geelong, who played as the away team? | SELECT Away team FROM table WHERE Home team = geelong |
Translate the following into a SQL query | If north melbourne played as the home team, who was the away team they played? | SELECT Away team FROM table WHERE Home team = north melbourne |
Translate the following into a SQL query | Who was the away team when the home team scored 10.5 (65)? | SELECT Away team FROM table WHERE Home team score = 10.5 (65) |
Translate the following into a SQL query | When st kilda was playing at home what was the away teams score? | SELECT Away team score FROM table WHERE Home team = st kilda |
Translate the following into a SQL query | What is the production code of the episode before season 8, with a series number less than 31, and aired on September 21, 1995? | SELECT Production code FROM table WHERE Season # < 8 AND Series # < 31 AND Original air date = september 21, 1995 |
Translate the following into a SQL query | Where was the game played where the home team scored 14.12 (96)? | SELECT Venue FROM table WHERE Home team score = 14.12 (96) |
Translate the following into a SQL query | Who was the away team when the home team scored 18.9 (117)? | SELECT Away team FROM table WHERE Home team score = 18.9 (117) |
Translate the following into a SQL query | Which home team scored 18.9 (117)? | SELECT Home team FROM table WHERE Home team score = 18.9 (117) |
Translate the following into a SQL query | What is the smallest amount of spectators when the away team was Hawthorn? | SELECT MIN Crowd FROM table WHERE Away team = hawthorn |
Translate the following into a SQL query | How many people attended when the away team was Richmond? | SELECT SUM Crowd FROM table WHERE Away team = richmond |
Translate the following into a SQL query | What was the score when the record was 18β14β4 with a toivonen decision? | SELECT Score FROM table WHERE Decision = toivonen AND Record = 18β14β4 |
Translate the following into a SQL query | What's the sum of the attendance for the calgary home team? | SELECT SUM Attendance FROM table WHERE Home = calgary |
Translate the following into a SQL query | What was the record when chicago was the visiting team? | SELECT Record FROM table WHERE Visitor = chicago |
Translate the following into a SQL query | What was the record of the series at the game attended by 17,181 and a loss of Giguere (0β1)? | SELECT Series FROM table WHERE Attendance > 17,181 AND Loss = giguere (0β1) |
Translate the following into a SQL query | What was the date of the game when the record of the series was 0β1? | SELECT Date FROM table WHERE Series = 0β1 |
Translate the following into a SQL query | what team was the away team when the home team scored 10.16 (76)? | SELECT Away team FROM table WHERE Home team score = 10.16 (76) |
Translate the following into a SQL query | What is the sum of Crowd when the away team scored 8.12 (60)? | SELECT SUM Crowd FROM table WHERE Away team score = 8.12 (60) |
Translate the following into a SQL query | What is the number of people in the crowd when the home team scored 15.20 (110)? | SELECT COUNT Crowd FROM table WHERE Home team score = 15.20 (110) |
Translate the following into a SQL query | What is the score for the away team when South Melbourne was the home team? | SELECT Away team score FROM table WHERE Home team = south melbourne |
Translate the following into a SQL query | What was the score of the 2001 game held at Network Associates Coliseum? | SELECT Result FROM table WHERE Year = 2001 AND Location = network associates coliseum |
Translate the following into a SQL query | What region has giuseppe sivori as a home venue? | SELECT Region FROM table WHERE Home venue = giuseppe sivori |
Translate the following into a SQL query | What city has the nickname of pontisola? | SELECT City FROM table WHERE Short name = pontisola |
Translate the following into a SQL query | What squad plays at comunale in darfo boario terme? | SELECT Name FROM table WHERE Home venue = comunale AND City = darfo boario terme |
Translate the following into a SQL query | What pick was Scott Glennie from the Western hockey league | SELECT Pick # FROM table WHERE League from = western hockey league AND Player = scott glennie |
Translate the following into a SQL query | What player from the United States played in the western collegiate hockey association? | SELECT Player FROM table WHERE Nationality = united states AND League from = western collegiate hockey association |
Translate the following into a SQL query | Where the time/retired is +1 lap, the constructor is BRM, and the grid is above 1, what's the highest laps recorded? | SELECT MAX Laps FROM table WHERE Time/Retired = +1 lap AND Constructor = brm AND Grid > 1 |
Translate the following into a SQL query | When the laps driven were under 9 and the time/retired recorded was engine, what's the total number of grid values? | SELECT COUNT Grid FROM table WHERE Laps < 9 AND Time/Retired = engine |
Translate the following into a SQL query | Which driver has a grid of 3? | SELECT Driver FROM table WHERE Grid = 3 |
Translate the following into a SQL query | When the laps are 31 and the constructor was honda, what's the sum of all grid values? | SELECT SUM Grid FROM table WHERE Constructor = honda AND Laps = 31 |
Translate the following into a SQL query | What is the chassis for all rounds on the entrant Benson and Hedges Jordan driven by Damon Hill? | SELECT Chassis FROM table WHERE Rounds = all AND Entrant = benson and hedges jordan AND Driver = damon hill |
Translate the following into a SQL query | What is the constructor of driver Alexander Wurz? | SELECT Constructor FROM table WHERE Driver = alexander wurz |
Translate the following into a SQL query | Who was the driver that had all rounds and a f399 chassis? | SELECT Driver FROM table WHERE Rounds = all AND Chassis = f399 |
Translate the following into a SQL query | What were the rounds on the Engine β of the Ferrari 048? | SELECT Rounds FROM table WHERE Engine β = ferrari 048 |
Translate the following into a SQL query | Which Semifinal has an Event of team? | SELECT Semifinal FROM table WHERE Event = team |
Translate the following into a SQL query | Which Quarterfinal has a Rank larger than 9? | SELECT Quarterfinal FROM table WHERE Rank > 9 |
Translate the following into a SQL query | What is the pick number of the DB? | SELECT COUNT Pick # FROM table WHERE Position = db |
Translate the following into a SQL query | What college did the T who was pick after 13 go to? | SELECT College FROM table WHERE Pick # > 13 AND Position = t |
Translate the following into a SQL query | Which CFL team drafted a pick from Boston College? | SELECT CFL Team FROM table WHERE College = boston college |
Translate the following into a SQL query | What position did the Saskatchewan player get drafted as? | SELECT Position FROM table WHERE College = saskatchewan |
Translate the following into a SQL query | When the laps are over 53, what's the average grid? | SELECT AVG Grid FROM table WHERE Laps > 53 |
Translate the following into a SQL query | What's the average laps driven by david coulthard? | SELECT AVG Laps FROM table WHERE Driver = david coulthard |
Translate the following into a SQL query | who is the opponent in the final when the year is before 1883? | SELECT Opponent in the final FROM table WHERE Year < 1883 |
Translate the following into a SQL query | what is the outcome for the 1887? | SELECT Outcome FROM table WHERE Year = 1887 |
Translate the following into a SQL query | what is the outcome when the opponent in the final is william renshaw after year 1882? | SELECT Outcome FROM table WHERE Year > 1882 AND Opponent in the final = william renshaw |
Translate the following into a SQL query | what is the score when the outcome is runner-up, the opponent in the final is herbert lawford and the year is after 1882? | SELECT Score FROM table WHERE Year > 1882 AND Outcome = runner-up AND Opponent in the final = herbert lawford |
Translate the following into a SQL query | What artist has a mintage of greater than 34,135? | SELECT Artist FROM table WHERE Mintage > 34,135 |
Translate the following into a SQL query | What artist was released in 2005? | SELECT Artist FROM table WHERE Year = 2005 |
Translate the following into a SQL query | What's melbourne's average year? | SELECT AVG Year FROM table WHERE Team = melbourne |
Translate the following into a SQL query | Who was ashley sampi's opponent? | SELECT Opponent FROM table WHERE Player = ashley sampi |
Translate the following into a SQL query | Which team did daniel bradshaw play for after 1935? | SELECT Team FROM table WHERE Year > 1935 AND Player = daniel bradshaw |
Translate the following into a SQL query | Who played in 1992? | SELECT Player FROM table WHERE Year = 1992 |
Translate the following into a SQL query | What date was fitzroy the away team? | SELECT Date FROM table WHERE Away team = fitzroy |
Translate the following into a SQL query | Name the surface when the partner is carlos berlocq | SELECT Surface FROM table WHERE Partner = carlos berlocq |
Translate the following into a SQL query | Name the date for clay surface and score of 0β6, 0β6 | SELECT Date FROM table WHERE Surface = clay AND Score = 0β6, 0β6 |
Translate the following into a SQL query | Name the partner with score of 6β3, 6β2 | SELECT Partner FROM table WHERE Score = 6β3, 6β2 |
Translate the following into a SQL query | Name the tournament for clay surface and outcome is winner with score is 6β3, 6β2 | SELECT Tournament FROM table WHERE Surface = clay AND Outcome = winner AND Score = 6β3, 6β2 |
Translate the following into a SQL query | Name the outcome on 6 october 2013 | SELECT Outcome FROM table WHERE Date = 6 october 2013 |
Translate the following into a SQL query | What is the song with more than 9 points and 44 (11) jury (points)? | SELECT Song FROM table WHERE Total Points > 9 AND Jury (Points) = 44 (11) |
Translate the following into a SQL query | Who is the artist with 2153 (5) televotes (points)? | SELECT Artist FROM table WHERE Televotes (Points) = 2153 (5) |
Translate the following into a SQL query | What is the lowest total points Karine TrΓ©cy has with less than 4 draws? | SELECT MIN Total Points FROM table WHERE Draw < 4 AND Artist = karine trΓ©cy |
Translate the following into a SQL query | What is the lowest total points Karine TrΓ©cy has with a less than 12 place? | SELECT MIN Total Points FROM table WHERE Artist = karine trΓ©cy AND Place < 12 |
Translate the following into a SQL query | What is the average rating of viewers 18 to 49 where the total viewer count is 3.93 million and share less than 4? | SELECT AVG 18β49 FROM table WHERE Viewers (m) = 3.93 AND Share < 4 |
Translate the following into a SQL query | What is the total number of ratings among the 18 to 49 group that was aired on January 7, 2009? | SELECT COUNT 18β49 FROM table WHERE Air Date = january 7, 2009 |
Translate the following into a SQL query | What is the total number of viewers for the show that was aired on December 10, 2008 with an 18 to 49 rating less than 1.2? | SELECT COUNT Viewers (m) FROM table WHERE Air Date = december 10, 2008 AND 18β49 < 1.2 |
Translate the following into a SQL query | What was Mike Hailwood's highest laps when he had a grid more than 7? | SELECT MAX Laps FROM table WHERE Driver = mike hailwood AND Grid > 7 |
Translate the following into a SQL query | What is the name of the site with a CERCLIS ID of prd980512362? | SELECT Name FROM table WHERE CERCLIS ID = prd980512362 |
Translate the following into a SQL query | What is the site for Florida? | SELECT Listed FROM table WHERE Municipality = florida |
Translate the following into a SQL query | What site in the RCA Del Caribe was deleted? | SELECT Deleted FROM table WHERE Name = rca del caribe |
Translate the following into a SQL query | Where is the partially deleted site of fibers public supply wells located? | SELECT Partially deleted FROM table WHERE Name = fibers public supply wells |
Translate the following into a SQL query | The proposed 03/08/2004 site is in what municipality? | SELECT Municipality FROM table WHERE Proposed = 03/08/2004 |
Translate the following into a SQL query | What is the release format for titles after 1983? | SELECT Release format FROM table WHERE Release date > 1983 |
Translate the following into a SQL query | Which crowd had an Away team score of 7.12 (54)? | SELECT AVG Crowd FROM table WHERE Away team score = 7.12 (54) |
Translate the following into a SQL query | What venue is the home of the Carlton team? | SELECT Venue FROM table WHERE Home team = carlton |
Translate the following into a SQL query | Which driver had a grid of 18 with 68 laps? | SELECT Driver FROM table WHERE Laps = 68 AND Grid = 18 |
Translate the following into a SQL query | Which driver had a grid of 18? | SELECT Driver FROM table WHERE Grid = 18 |
Translate the following into a SQL query | Which driver had a grid of 22? | SELECT Driver FROM table WHERE Grid = 22 |
Translate the following into a SQL query | Which season is the wicket 2nd partnership in? | SELECT Season FROM table WHERE Wicket Partnership = 2nd |
Translate the following into a SQL query | Where did v kent play? | SELECT Venue FROM table WHERE Opponents = v kent |
Translate the following into a SQL query | Which runs had james bryant graeme welch as Batsmen? | SELECT Runs FROM table WHERE Batsmen = james bryant graeme welch |
Translate the following into a SQL query | Which clay has a Record of 2β0, and a Hard 1β0? | SELECT Clay FROM table WHERE Record = 2β0 AND Hard = 1β0 |
Translate the following into a SQL query | Which hard has a Clay of 0β0, Grass of 0β0, Carpet of 0β0, and a Record of 1β0? | SELECT Hard FROM table WHERE Clay = 0β0 AND Grass = 0β0 AND Carpet = 0β0 AND Record = 1β0 |
Translate the following into a SQL query | Which carpet has a Clay of 1β0 and a Hard 1β1? | SELECT Carpet FROM table WHERE Clay = 1β0 AND Hard = 1β1 |
Translate the following into a SQL query | Name the most rank for population more than 93,378 | SELECT MAX Rank FROM table WHERE Population > 93,378 |
Translate the following into a SQL query | What award is featured in 1992? | SELECT Award FROM table WHERE Year = 1992 |
Translate the following into a SQL query | What award was won in the best sound category for the exorcist before 1998? | SELECT Award FROM table WHERE Year < 1998 AND Type = won AND Category = best sound AND Title = the exorcist |
Translate the following into a SQL query | What was the candidate that got 1,019 votes for staten island? | SELECT 1953 FROM table WHERE Richmond [Staten Is.] = 1,019 |
Translate the following into a SQL query | What was the opposing team for the game on August 29? | SELECT Opponent FROM table WHERE Date = august 29 |
Translate the following into a SQL query | which spans had a drop of 0? | SELECT Span FROM table WHERE Drop = 0 |
Translate the following into a SQL query | which player has 11 tries? | SELECT Player FROM table WHERE Tries = 11 |
Translate the following into a SQL query | which player has a conv of 14? | SELECT Player FROM table WHERE Conv = 14 |
Translate the following into a SQL query | on the span of 1992-2000, what was the conv ? | SELECT Conv FROM table WHERE Span = 1992-2000 |
Translate the following into a SQL query | What is the high point toal for martine foubert placing below 2? | SELECT MAX Points FROM table WHERE Artist = martine foubert AND Place > 2 |
Translate the following into a SQL query | How much did the away team Melbourne score? | SELECT Away team score FROM table WHERE Away team = melbourne |
Translate the following into a SQL query | What is the highest crowd number for the home team Richmond? | SELECT MAX Crowd FROM table WHERE Home team = richmond |
Translate the following into a SQL query | What home team played at Glenferrie Oval? | SELECT Home team FROM table WHERE Venue = glenferrie oval |
Translate the following into a SQL query | How much did the away team St Kilda score? | SELECT Away team score FROM table WHERE Away team = st kilda |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.