instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | In which venue did 0 pens and 1 try occur? | SELECT Venue FROM table WHERE Pens = 0 AND Tries = 1 |
Translate the following into a SQL query | What was the score of the game against the St. Louis Cardinals? | SELECT Result FROM table WHERE Opponent = st. louis cardinals |
Translate the following into a SQL query | Which model has a CPU speed of 133mhz? | SELECT Model FROM table WHERE CPU Speed = 133mhz |
Translate the following into a SQL query | Which model has a maximum memory of 512 mb? | SELECT MAX Model FROM table WHERE Maximum memory = 512 mb |
Translate the following into a SQL query | What is the maximum memory of the model that has a standard memory of 16 mb? | SELECT Maximum memory FROM table WHERE Standard memory = 16 mb |
Translate the following into a SQL query | What is the largest crowd for a Melbourne away team? | SELECT MAX Crowd FROM table WHERE Away team = melbourne |
Translate the following into a SQL query | What is the home team score when the home team is Essendon? | SELECT Home team score FROM table WHERE Home team = essendon |
Translate the following into a SQL query | What is the home team when the home team score is 12.17 (89)? | SELECT Home team FROM table WHERE Home team score = 12.17 (89) |
Translate the following into a SQL query | What is the away team when the away team score is 10.10 (70)? | SELECT Away team FROM table WHERE Away team score = 10.10 (70) |
Translate the following into a SQL query | Which opponent was playing on December 20, 1998? | SELECT Opponent FROM table WHERE Date = december 20, 1998 |
Translate the following into a SQL query | Who was the home team that had a score of 13.11 (89)? | SELECT Home team FROM table WHERE Home team score = 13.11 (89) |
Translate the following into a SQL query | When was the game that was held at the Princes Park? | SELECT Date FROM table WHERE Venue = princes park |
Translate the following into a SQL query | What was the smallest crowd size at a home game for Footscray? | SELECT MIN Crowd FROM table WHERE Home team = footscray |
Translate the following into a SQL query | When was the game where the home team scored 18.14 (122)? | SELECT Date FROM table WHERE Home team score = 18.14 (122) |
Translate the following into a SQL query | What was Melbourne's score as the home team? | SELECT Home team score FROM table WHERE Home team = melbourne |
Translate the following into a SQL query | What was the away team's score when the crowd at Arden Street Oval was larger than 31,481? | SELECT Away team score FROM table WHERE Crowd > 31,481 AND Venue = arden street oval |
Translate the following into a SQL query | What was the away team that played Fitzroy? | SELECT Away team FROM table WHERE Home team = fitzroy |
Translate the following into a SQL query | What was the sum of the crowds at Western Oval? | SELECT SUM Crowd FROM table WHERE Venue = western oval |
Translate the following into a SQL query | What was the total crowd size when the away team scored 17.13 (115)? | SELECT COUNT Crowd FROM table WHERE Away team score = 17.13 (115) |
Translate the following into a SQL query | Where did the home team score 18.17 (125)? | SELECT Venue FROM table WHERE Home team score = 18.17 (125) |
Translate the following into a SQL query | What country had a winner in 1907? | SELECT Country FROM table WHERE Year = 1907 |
Translate the following into a SQL query | What velodrome took place earlier than 1950 with a winner from France in tandem paced over a distance of 951.750 km? | SELECT Velodrome FROM table WHERE Year < 1950 AND Country = france AND Pacing = tandem paced AND Distance = 951.750 km |
Translate the following into a SQL query | Where was the game played when they kickoff was 12:00 p.m., and a Record of 8-5? | SELECT Game site FROM table WHERE Kickoff = 12:00 p.m. AND Record = 8-5 |
Translate the following into a SQL query | What date has a Game site of bye? | SELECT Date FROM table WHERE Game site = bye |
Translate the following into a SQL query | What is the record which shows Kickoff as kickoff? | SELECT Record FROM table WHERE Kickoff = kickoff |
Translate the following into a SQL query | What is the record when the game was played at raymond james stadium? | SELECT Record FROM table WHERE Game site = raymond james stadium |
Translate the following into a SQL query | What is the kickoff for the game on october 22, 2000? | SELECT Kickoff FROM table WHERE Date = october 22, 2000 |
Translate the following into a SQL query | Which Hindi network is based in India and uses dish service and shows general programming? | SELECT Network FROM table WHERE Service = dish AND Language = hindi AND Origin of Programming = india AND Genre = general |
Translate the following into a SQL query | Which language is used by the optimum TV service that shows cricket and is based in the United States? | SELECT Language FROM table WHERE Service = optimum tv AND Origin of Programming = united states AND Genre = cricket |
Translate the following into a SQL query | What is the origin of the Malayalam Dish Service that shows general programming on the Asianet Plus network? | SELECT Origin of Programming FROM table WHERE Service = dish AND Language = malayalam AND Genre = general AND Network = asianet plus |
Translate the following into a SQL query | What is the average grid number with a ferrari and a time or retired time of 1:32:35.101? | SELECT AVG Grid FROM table WHERE Constructor = ferrari AND Time/Retired = 1:32:35.101 |
Translate the following into a SQL query | What week of the season was November 24, 1957? | SELECT Week FROM table WHERE Date = november 24, 1957 |
Translate the following into a SQL query | What was the score of the game against the San Diego Chargers? | SELECT Score FROM table WHERE Opponent = san diego chargers |
Translate the following into a SQL query | What is the week more than 58,675 attended on october 22, 1995? | SELECT SUM Week FROM table WHERE Attendance > 58,675 AND Date = october 22, 1995 |
Translate the following into a SQL query | What is the latest week with the date of november 5, 1995? | SELECT MAX Week FROM table WHERE Date = november 5, 1995 |
Translate the following into a SQL query | How many weeks was the attendance less than 74,171 and the result was w 26–10? | SELECT COUNT Week FROM table WHERE Attendance < 74,171 AND Result = w 26–10 |
Translate the following into a SQL query | What was the outcome of the Tournament in Buenos Aires? | SELECT Outcome FROM table WHERE Tournament = buenos aires |
Translate the following into a SQL query | In the match played with partner Andres Molteni, with the outcome of winner, who was the opponent? | SELECT Opponent FROM table WHERE Outcome = winner AND Partner = andres molteni |
Translate the following into a SQL query | What is the player with a Span of 1998-2009? | SELECT Player FROM table WHERE Span = 1998-2009 |
Translate the following into a SQL query | What draw has a Span of 1987-1999? | SELECT Draw FROM table WHERE Span = 1987-1999 |
Translate the following into a SQL query | What player has a span of 1997-2009? | SELECT Player FROM table WHERE Span = 1997-2009 |
Translate the following into a SQL query | What drop has a 0 conv and Tries of 6? | SELECT Drop FROM table WHERE Conv = 0 AND Tries = 6 |
Translate the following into a SQL query | What drop had a start of 40? | SELECT Drop FROM table WHERE Start = 40 |
Translate the following into a SQL query | What drop had 0 pens, 1 draw, and 8 tries? | SELECT Drop FROM table WHERE Pens = 0 AND Draw = 1 AND Tries = 8 |
Translate the following into a SQL query | What round did Takayo Hashi face Yoko Hattori? | SELECT SUM Round FROM table WHERE Opponent = yoko hattori |
Translate the following into a SQL query | What was the away team that played at Princes Park? | SELECT Away team FROM table WHERE Venue = princes park |
Translate the following into a SQL query | What was the date when Footscray was the away team? | SELECT Date FROM table WHERE Away team = footscray |
Translate the following into a SQL query | What was the home team's score in the match at Victoria Park? | SELECT Home team score FROM table WHERE Venue = victoria park |
Translate the following into a SQL query | On what date was South Melbourne the away team? | SELECT Date FROM table WHERE Away team = south melbourne |
Translate the following into a SQL query | At what venue did the home team score 12.19 (91)? | SELECT Venue FROM table WHERE Home team score = 12.19 (91) |
Translate the following into a SQL query | What away team did Carlton play? | SELECT Away team FROM table WHERE Home team = carlton |
Translate the following into a SQL query | What is the sum of bronze when silver is greater than 3? | SELECT SUM Bronze FROM table WHERE Silver > 3 |
Translate the following into a SQL query | What is the average total when gold is 0, bronze is 0, and silver is smaller than 1? | SELECT AVG Total FROM table WHERE Gold = 0 AND Bronze = 0 AND Silver < 1 |
Translate the following into a SQL query | What was the total attendance in week 8? | SELECT COUNT Attendance FROM table WHERE Week = 8 |
Translate the following into a SQL query | Who was the winner in 2007? | SELECT Winner FROM table WHERE Date = 2007 |
Translate the following into a SQL query | What sport was played before 2006 with a loser of france b? | SELECT Sport FROM table WHERE Date < 2006 AND Loser = france b |
Translate the following into a SQL query | Who was the winner with the loser being russia-2? | SELECT Winner FROM table WHERE Loser = russia-2 |
Translate the following into a SQL query | Who was the loser playing football with england b as a winner after 1992? | SELECT Loser FROM table WHERE Sport = football AND Winner = england b AND Date > 1992 |
Translate the following into a SQL query | What was the name of the race that occurred in Brooklyn, Michigan with a sanctioning of cart? | SELECT Race Name FROM table WHERE Sanctioning = cart AND City/Location = brooklyn, michigan |
Translate the following into a SQL query | Where did the Gould Rex Mays Classic 150 occur? | SELECT City/Location FROM table WHERE Race Name = gould rex mays classic 150 |
Translate the following into a SQL query | What is the date for the race that has a circuit of Milwaukee Mile and the sanctioning of cart? | SELECT Date FROM table WHERE Circuit = milwaukee mile AND Sanctioning = cart |
Translate the following into a SQL query | 15 albums were released in the UK during which year? | SELECT Year FROM table WHERE UK Albums = 15 |
Translate the following into a SQL query | What is the venue where Collingwood played as the home team? | SELECT Venue FROM table WHERE Home team = collingwood |
Translate the following into a SQL query | Who was the away team for the game where the home team scored 13.11 (89)? | SELECT Away team FROM table WHERE Home team score = 13.11 (89) |
Translate the following into a SQL query | What is the size of the crowd for the game with Footscray as the home team? | SELECT AVG Crowd FROM table WHERE Home team = footscray |
Translate the following into a SQL query | What is the largest crowd for any game where Footscray is the home team? | SELECT MAX Crowd FROM table WHERE Home team = footscray |
Translate the following into a SQL query | What is the maximum number of draws when the diff is smaller than 186, points are fewer than 12 and games played fewer than 6? | SELECT MAX Drawn FROM table WHERE Diff. < 186 AND Points < 12 AND Played < 6 |
Translate the following into a SQL query | What is the average diff when games played are more than 6? | SELECT AVG Diff. FROM table WHERE Played > 6 |
Translate the following into a SQL query | What is the highest draws when more than 6 are played and the points against are 54? | SELECT MAX Drawn FROM table WHERE Against = 54 AND Played > 6 |
Translate the following into a SQL query | What is the maximum number of points against when the team has more than 0 losses and plays fewer than 6 games? | SELECT MAX Against FROM table WHERE Lost > 0 AND Played < 6 |
Translate the following into a SQL query | What is the number of games played for the team with 12 points and an against smaller than 52? | SELECT AVG Played FROM table WHERE Points = 12 AND Against < 52 |
Translate the following into a SQL query | What was the crowd size when the home team scored 10.10 (70)? | SELECT Crowd FROM table WHERE Home team score = 10.10 (70) |
Translate the following into a SQL query | What was the away team when the home team scored 10.10 (70)? | SELECT Away team FROM table WHERE Home team score = 10.10 (70) |
Translate the following into a SQL query | What was the away team's score when the crowd was larger than 16,500 and the home team scored 15.15 (105)? | SELECT Away team score FROM table WHERE Crowd > 16,500 AND Home team score = 15.15 (105) |
Translate the following into a SQL query | What is the lowest average parish size with 47.2% of adherents and 4,936 regular attendees? | SELECT MIN Average Parish Size FROM table WHERE % of adherents = 47.2% AND Regular Attendees > 4,936 |
Translate the following into a SQL query | What is the average regular number of attendees that has 79 parishes? | SELECT AVG Regular Attendees FROM table WHERE Parishes = 79 |
Translate the following into a SQL query | What is the lowest number of monasteries with over 20 parishes, 210,864 regular attendeeds, and over 799,776 adherents? | SELECT MIN Monasteries FROM table WHERE Parishes > 20 AND Regular Attendees = 210,864 AND Adherents > 799,776 |
Translate the following into a SQL query | Which Grand Prix has the Circuit of Lille? | SELECT Name FROM table WHERE Circuit = lille |
Translate the following into a SQL query | Which winning driver of the Roussillon Grand Prix had an Alfa Romeo? | SELECT Winning driver FROM table WHERE Winning constructor = alfa romeo AND Name = roussillon grand prix |
Translate the following into a SQL query | Which Constructor won the Roussillon Grand Prix? | SELECT Winning constructor FROM table WHERE Name = roussillon grand prix |
Translate the following into a SQL query | Which Driver won the Circuit of Rio de Janeiro? | SELECT Winning driver FROM table WHERE Circuit = rio de janeiro |
Translate the following into a SQL query | Who was the home team for the Essendon away team with attendance over 13,500? | SELECT Home team score FROM table WHERE Crowd > 13,500 AND Away team = essendon |
Translate the following into a SQL query | What day did the VFL pay MCG? | SELECT Date FROM table WHERE Venue = mcg |
Translate the following into a SQL query | What was November 4, 1973 attendance? | SELECT Attendance FROM table WHERE Date = november 4, 1973 |
Translate the following into a SQL query | What is the number of laps with a Constructor of renault, and a driver of jacques villeneuve? | SELECT Laps FROM table WHERE Constructor = renault AND Driver = jacques villeneuve |
Translate the following into a SQL query | What is the time/retired for grid 3? | SELECT Time/Retired FROM table WHERE Grid = 3 |
Translate the following into a SQL query | What is the time/retired for grid 8? | SELECT Time/Retired FROM table WHERE Grid = 8 |
Translate the following into a SQL query | What is the time/retired for a grid larger than 11, laps larger than 41, and nick heidfeld? | SELECT Time/Retired FROM table WHERE Grid > 11 AND Laps > 41 AND Driver = nick heidfeld |
Translate the following into a SQL query | Who was the driver with less than 53 laps, Grid larger than 17, and a Time/Retired of spin? | SELECT Driver FROM table WHERE Laps < 53 AND Grid > 17 AND Time/Retired = spin |
Translate the following into a SQL query | Who has won $98,860? | SELECT Driver FROM table WHERE Winnings = $98,860 |
Translate the following into a SQL query | What team is travelling to play Hawthorn? | SELECT Away team FROM table WHERE Home team = hawthorn |
Translate the following into a SQL query | What is the smallest crowd at the Victoria Park Venue? | SELECT MIN Crowd FROM table WHERE Venue = victoria park |
Translate the following into a SQL query | What is the score given by the Home team Geelong? | SELECT Home team score FROM table WHERE Home team = geelong |
Translate the following into a SQL query | What is the largest crowd at arden street oval? | SELECT MAX Crowd FROM table WHERE Venue = arden street oval |
Translate the following into a SQL query | What is the home side's score at western oval? | SELECT Home team score FROM table WHERE Venue = western oval |
Translate the following into a SQL query | What venue is in the state of Connecticut? | SELECT Venue FROM table WHERE State = connecticut |
Translate the following into a SQL query | What venue is in the city of Durham? | SELECT Venue FROM table WHERE City = durham |
Translate the following into a SQL query | In what state is the Thomas Assembly Center located? | SELECT State FROM table WHERE Venue = thomas assembly center |
Translate the following into a SQL query | What venue is located in Indiana and hosted at Purdue University? | SELECT Venue FROM table WHERE State = indiana AND Host = purdue university |
Translate the following into a SQL query | What city is located in Oklahoma? | SELECT City FROM table WHERE State = oklahoma |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.