instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Which home team has a venue of Arden Street Oval? | SELECT Home team FROM table WHERE Venue = arden street oval |
Translate the following into a SQL query | Which away team has a venue of Arden Street Oval? | SELECT Away team FROM table WHERE Venue = arden street oval |
Translate the following into a SQL query | What is the value for 2011 corresponding to a 2007 value of 1r? | SELECT 2011 FROM table WHERE 2007 = 1r |
Translate the following into a SQL query | What value in 2013 corresponds to Grand Slam Tournaments in 2012? | SELECT 2013 FROM table WHERE 2012 = grand slam tournaments |
Translate the following into a SQL query | What is the 2012 value when the 2011 and 2007 values are 1R? | SELECT 2012 FROM table WHERE 2011 = 1r AND 2007 = 1r |
Translate the following into a SQL query | What value for 2013 corresponds to the US Open Tournament? | SELECT 2013 FROM table WHERE Tournament = us open |
Translate the following into a SQL query | The school nicknamed the wildcats has what sum of enrollment? | SELECT SUM Enrollment FROM table WHERE Team Nickname = wildcats |
Translate the following into a SQL query | What is the Founded year of the school located in Paul Smiths, New York? | SELECT Founded FROM table WHERE Location = paul smiths, new york |
Translate the following into a SQL query | What home side scored 9.4 (58)? | SELECT Home team FROM table WHERE Home team score = 9.4 (58) |
Translate the following into a SQL query | What was fitzroy's away side score? | SELECT Away team score FROM table WHERE Away team = fitzroy |
Translate the following into a SQL query | What is the away team's score when the home side scores 9.4 (58)? | SELECT Away team score FROM table WHERE Home team score = 9.4 (58) |
Translate the following into a SQL query | What player attended UAB college? | SELECT Player FROM table WHERE College = uab |
Translate the following into a SQL query | What was the score of the game at RIch Stadium? | SELECT Result FROM table WHERE Stadium = rich stadium |
Translate the following into a SQL query | Who had the best time of 1:32.269? | SELECT Name FROM table WHERE Best = 1:32.269 |
Translate the following into a SQL query | Who from Conquest Racing had the best time of 1:34.748 in Qual 1? | SELECT Best FROM table WHERE Team = conquest racing AND Qual 1 = 1:34.748 |
Translate the following into a SQL query | Who in Qual 2 had the best time of 1:31.327? | SELECT Qual 2 FROM table WHERE Best = 1:31.327 |
Translate the following into a SQL query | What was Dan Selznick best time? | SELECT Best FROM table WHERE Name = dan selznick |
Translate the following into a SQL query | What team had 1:34.578 in Qual 2? | SELECT Team FROM table WHERE Qual 2 = 1:34.578 |
Translate the following into a SQL query | Jiang Tengyi is on which team? | SELECT Team FROM table WHERE Name = jiang tengyi |
Translate the following into a SQL query | What is the away team's score when footscray is the away team? | SELECT Away team score FROM table WHERE Away team = footscray |
Translate the following into a SQL query | What venue has an Away team score of 8.8 (56)? | SELECT Venue FROM table WHERE Away team score = 8.8 (56) |
Translate the following into a SQL query | Whom is the away team when the Away team score is 23.14 (152)? | SELECT Away team FROM table WHERE Away team score = 23.14 (152) |
Translate the following into a SQL query | Whom is the home team when the home team score is 12.13 (85)? | SELECT Home team FROM table WHERE Home team score = 12.13 (85) |
Translate the following into a SQL query | What was the rank for czechoslovakia with 1 bronze? | SELECT Rank FROM table WHERE Bronze = 1 AND Nation = czechoslovakia |
Translate the following into a SQL query | How many bronze medals for the nation with over 9 golds? | SELECT COUNT Bronze FROM table WHERE Gold > 9 |
Translate the following into a SQL query | What is the average number of goals that occurred in Hong Kong Stadium, Hong Kong? | SELECT AVG Goals FROM table WHERE Venue = hong kong stadium, hong kong |
Translate the following into a SQL query | Which country uses pound sterling with a value higher than 1.33 USD? | SELECT Country FROM table WHERE Value in USD > 1.33 AND Currency = pound sterling |
Translate the following into a SQL query | Who is the away side, when the home side scores 13.22 (100)? | SELECT Away team FROM table WHERE Home team score = 13.22 (100) |
Translate the following into a SQL query | What venue features carlton at home? | SELECT Venue FROM table WHERE Home team = carlton |
Translate the following into a SQL query | What venue features fitzroy as the away side? | SELECT Venue FROM table WHERE Away team = fitzroy |
Translate the following into a SQL query | What was the crowd size when the home team scored 17.14 (116)? | SELECT Crowd FROM table WHERE Home team score = 17.14 (116) |
Translate the following into a SQL query | What was the smallest crowd that Melbourne played for at home? | SELECT MIN Crowd FROM table WHERE Home team = melbourne |
Translate the following into a SQL query | What was the home teams score when the away team scored 7.5 (47)? | SELECT Home team score FROM table WHERE Away team score = 7.5 (47) |
Translate the following into a SQL query | What was the home teams score at Victoria Park? | SELECT Home team score FROM table WHERE Venue = victoria park |
Translate the following into a SQL query | What was the away team against which the home team scored 10.14 (74)? | SELECT Away team FROM table WHERE Home team score = 10.14 (74) |
Translate the following into a SQL query | What home team played the away team of Richmond? | SELECT Home team FROM table WHERE Away team = richmond |
Translate the following into a SQL query | What is the high score for the player with 0 stumps, 4 catches, more than 14 inns and an average smaller than 56.1? | SELECT SUM High Score FROM table WHERE Stump = 0 AND Catches = 4 AND Average < 56.1 AND Inns > 14 |
Translate the following into a SQL query | What is the total number of runs for the player with fewer than 9 Inns? | SELECT COUNT Runs FROM table WHERE Inns < 9 |
Translate the following into a SQL query | What is the smallest average for the player with 13 matches and fewer than 7 catches? | SELECT MIN Average FROM table WHERE Matches = 13 AND Catches < 7 |
Translate the following into a SQL query | Which city is the host of the University of Texas? | SELECT City FROM table WHERE Host = university of texas |
Translate the following into a SQL query | In which region is the Thompson-Boling arena located? | SELECT Region FROM table WHERE Venue = thompson-boling arena |
Translate the following into a SQL query | Who is the host in the city of Philadelphia? | SELECT Host FROM table WHERE City = philadelphia |
Translate the following into a SQL query | Which city in the mideast region is the hot of Temple University? | SELECT City FROM table WHERE Region = mideast AND Host = temple university |
Translate the following into a SQL query | Which city is the University of Montana located in? | SELECT City FROM table WHERE Host = university of montana |
Translate the following into a SQL query | What was the away team score at Hawthorn? | SELECT Away team score FROM table WHERE Home team = hawthorn |
Translate the following into a SQL query | Who went to Geelong to play? | SELECT Away team FROM table WHERE Home team = geelong |
Translate the following into a SQL query | Who did Collingwood play at home? | SELECT Home team FROM table WHERE Away team = collingwood |
Translate the following into a SQL query | When did an away team score 7.8 (50)? | SELECT Date FROM table WHERE Away team score = 7.8 (50) |
Translate the following into a SQL query | What population has an area (km²) of 62,848 and a density less than 37.7? | SELECT COUNT Population FROM table WHERE Area (km²) = 62,848 AND Density < 37.7 |
Translate the following into a SQL query | Which population is the greatest, has a density of 20.3, and an area (km²) larger than 50,350? | SELECT MAX Population FROM table WHERE Density = 20.3 AND Area (km²) > 50,350 |
Translate the following into a SQL query | The state of Aguascalientes has an area (km²) larger than 151,571 and a density greater than 80.9, what is the rank? | SELECT Rank FROM table WHERE Area (km²) > 151,571 AND Density > 80.9 AND State = aguascalientes |
Translate the following into a SQL query | Who was the home team at the game held at the Junction Oval? | SELECT Home team FROM table WHERE Venue = junction oval |
Translate the following into a SQL query | Where was the game held when Fitzroy was the away team? | SELECT Venue FROM table WHERE Away team = fitzroy |
Translate the following into a SQL query | How many people attended the Rams game against the Kansas City Chiefs? | SELECT Attendance FROM table WHERE Opponent = kansas city chiefs |
Translate the following into a SQL query | What is China's IATA? | SELECT IATA FROM table WHERE Country = china |
Translate the following into a SQL query | Where is the City of Douala? | SELECT Country FROM table WHERE City = douala |
Translate the following into a SQL query | Which airport is in South Africa and has a ICAO fajs? | SELECT Airport FROM table WHERE Country = south africa AND ICAO = fajs |
Translate the following into a SQL query | What is Cuba's ICAO? | SELECT ICAO FROM table WHERE Country = cuba |
Translate the following into a SQL query | What is Angola's airport and ICAO of fnsa? | SELECT Airport FROM table WHERE Country = angola AND ICAO = fnsa |
Translate the following into a SQL query | What team plays at home at Windy Hill? | SELECT Home team FROM table WHERE Venue = windy hill |
Translate the following into a SQL query | What was the size of the crowd that saw the Home team score 11.10 (76)? | SELECT COUNT Crowd FROM table WHERE Home team score = 11.10 (76) |
Translate the following into a SQL query | What was Footscray's score as an away team? | SELECT Away team score FROM table WHERE Away team = footscray |
Translate the following into a SQL query | What was the home teams score agains the team that scored 7.15 (57)? | SELECT Home team score FROM table WHERE Away team score = 7.15 (57) |
Translate the following into a SQL query | What day is richmond the away side? | SELECT Date FROM table WHERE Away team = richmond |
Translate the following into a SQL query | Who is the home team when hawthorn is the away team? | SELECT Home team FROM table WHERE Away team = hawthorn |
Translate the following into a SQL query | What is the name of the game with odds of winning 1 in 4.23 with a top prize of $15,000? | SELECT Game Name FROM table WHERE Odds of Winning = 1 in 4.23 AND Top Prize = $15,000 |
Translate the following into a SQL query | What is the launch date odds of winning 1 in 4.23 with a top prize of $15,000? | SELECT Launch Date FROM table WHERE Odds of Winning = 1 in 4.23 AND Top Prize = $15,000 |
Translate the following into a SQL query | What is the launch date odds of winning 1 in 4.54? | SELECT Launch Date FROM table WHERE Odds of Winning = 1 in 4.54 |
Translate the following into a SQL query | What is the launch date odds of winning 1 in 4.44? | SELECT Launch Date FROM table WHERE Odds of Winning = 1 in 4.44 |
Translate the following into a SQL query | What is the name of the game with a top prize of $888? | SELECT Game Name FROM table WHERE Top Prize = $888 |
Translate the following into a SQL query | What is the top price of $1 with a launch date on February 12, 2008? | SELECT Top Prize FROM table WHERE Price = $1 AND Launch Date = february 12, 2008 |
Translate the following into a SQL query | What is the highest number of laps when there are less than 5 points for team garry rogers motorsport and the grid number is under 23? | SELECT MAX Laps FROM table WHERE Points < 5 AND Team = garry rogers motorsport AND Grid < 23 |
Translate the following into a SQL query | What is the name of the driver who went 46 laps had less than 9 points and had a grid number under 12? | SELECT Name FROM table WHERE Laps = 46 AND Points < 9 AND Grid < 12 |
Translate the following into a SQL query | Where was the 1966 final played? | SELECT Finals Venue (surface) FROM table WHERE Year = 1966 |
Translate the following into a SQL query | What is the average Worst score for Mario Lopez as the Best dancer and Tango as the Dance? | SELECT AVG Worst score FROM table WHERE Best dancer = mario lopez AND Dance = tango |
Translate the following into a SQL query | What is the highest Best score for the Dance Mambo? | SELECT MAX Best score FROM table WHERE Dance = mambo |
Translate the following into a SQL query | Who is the Best dancer with the Worst dancer of Jerry Springer, a Best score of 29, and the Dance was the Quickstep? | SELECT Best dancer FROM table WHERE Worst dancer = jerry springer AND Best score = 29 AND Dance = quickstep |
Translate the following into a SQL query | How many dances placed below 1 with a point total of 40? | SELECT Number of dances FROM table WHERE Place > 1 AND Total points = 40 |
Translate the following into a SQL query | What is the lowest number of dances with a rank larger than 4 and a place of 8? | SELECT MIN Number of dances FROM table WHERE Rank by average > 4 AND Place = 8 |
Translate the following into a SQL query | What is the lowest number of dances with a less than 2 place and an average smaller than 27.5? | SELECT MIN Number of dances FROM table WHERE Place < 2 AND Average < 27.5 |
Translate the following into a SQL query | What is the total difference for teams that played less than 6 games? | SELECT SUM Diff. FROM table WHERE Played < 6 |
Translate the following into a SQL query | What is the highest number of games played for teams that lost over 5 games and had an against total of 228? | SELECT MAX Played FROM table WHERE Lost > 5 AND Against = 228 |
Translate the following into a SQL query | How many games lost for team(s) with less than 4 paints and against total of over 340? | SELECT COUNT Lost FROM table WHERE Points < 4 AND Against > 340 |
Translate the following into a SQL query | What week was the game that had an attendance of 24,242? | SELECT Week FROM table WHERE Attendance = 24,242 |
Translate the following into a SQL query | What was the attendance of the game that had a score of l 35–14? | SELECT Attendance FROM table WHERE Result = l 35–14 |
Translate the following into a SQL query | When was the pre-Week 10 game that had an attendance of over 38,865? | SELECT Date FROM table WHERE Week < 10 AND Attendance = 38,865 |
Translate the following into a SQL query | Which Location has a PPV Buyrate of 775,000? | SELECT Location FROM table WHERE PPV Buyrate = 775,000 |
Translate the following into a SQL query | Where did Geelong play as the away team? | SELECT Venue FROM table WHERE Away team = geelong |
Translate the following into a SQL query | What was the away team's score against Hawthorn? | SELECT Away team score FROM table WHERE Away team = hawthorn |
Translate the following into a SQL query | What was the largest crowd when the home team scored 14.7 (91)? | SELECT MAX Crowd FROM table WHERE Home team score = 14.7 (91) |
Translate the following into a SQL query | What as the home team that scored 18.15 (123)? | SELECT Home team FROM table WHERE Home team score = 18.15 (123) |
Translate the following into a SQL query | What was the away team that scored 6.13 (49)? | SELECT Away team FROM table WHERE Away team score = 6.13 (49) |
Translate the following into a SQL query | When Fitzroy was the home team, what was the away team's score? | SELECT Away team score FROM table WHERE Home team = fitzroy |
Translate the following into a SQL query | On what date did the home team score 5.8 (38)? | SELECT Date FROM table WHERE Home team score = 5.8 (38) |
Translate the following into a SQL query | How big was the largest crowd recorded at the Arden Street Oval venue? | SELECT MAX Crowd FROM table WHERE Venue = arden street oval |
Translate the following into a SQL query | How big was the crowd at the match where the away team had a score of 10.14 (74)? | SELECT COUNT Crowd FROM table WHERE Away team score = 10.14 (74) |
Translate the following into a SQL query | What is the average crowd size at all matches where the home team scored 6.12 (48)? | SELECT AVG Crowd FROM table WHERE Home team score = 6.12 (48) |
Translate the following into a SQL query | At what venue did the match where the home team scored 8.6 (54) take place? | SELECT Venue FROM table WHERE Home team score = 8.6 (54) |
Translate the following into a SQL query | What is the smallest attendance in week 1? | SELECT MIN Attendance FROM table WHERE Week = 1 |
Translate the following into a SQL query | What is the larges week for the date august 9, 1968 and less than 64,020 in attendance? | SELECT MAX Week FROM table WHERE Date = august 9, 1968 AND Attendance < 64,020 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.