instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What was the tonnage of the Great Britain ship Batna?
SELECT Tonnage FROM table WHERE Nationality = great britain AND Ship = batna
Translate the following into a SQL query
How many silver medals were won when there were 4 gold and 22 in total?
SELECT MIN Silver FROM table WHERE Gold = 4 AND Total = 22
Translate the following into a SQL query
What car number has 130 points?
SELECT Car # FROM table WHERE Points = 130
Translate the following into a SQL query
What is the lowest number of laps for ryan newman with over 96 points, a cur number under 24,
SELECT MIN Laps FROM table WHERE Points > 96 AND Car # < 24 AND Driver = ryan newman
Translate the following into a SQL query
What is the sum of car numbers with less than 126 points and 147 laps?
SELECT SUM Car # FROM table WHERE Points < 126 AND Laps = 147
Translate the following into a SQL query
How many total laps for the driver with Winnings of $116,033, and a Car # smaller than 18?
SELECT COUNT Laps FROM table WHERE Winnings = $116,033 AND Car # < 18
Translate the following into a SQL query
What was the crowd when the home team had a score of 16.21 (117)?
SELECT Crowd FROM table WHERE Home team score = 16.21 (117)
Translate the following into a SQL query
What was the home team's score at kardinia park?
SELECT Home team score FROM table WHERE Venue = kardinia park
Translate the following into a SQL query
What is the venue when melbourne is the away team?
SELECT Venue FROM table WHERE Away team = melbourne
Translate the following into a SQL query
What is the smallest crowd that Footscray had as the away team?
SELECT MIN Crowd FROM table WHERE Away team = footscray
Translate the following into a SQL query
Which home team scored 12.15 (87)?
SELECT Home team FROM table WHERE Home team score = 12.15 (87)
Translate the following into a SQL query
Where is the Mackey Arena located?
SELECT City FROM table WHERE Venue = mackey arena
Translate the following into a SQL query
What state has the University of California, Los Angeles?
SELECT State FROM table WHERE Host = university of california, los angeles
Translate the following into a SQL query
What region does the University of California, Los Angeles play in?
SELECT Region FROM table WHERE State = california AND Host = university of california, los angeles
Translate the following into a SQL query
What venue is in Santa Barbara, California?
SELECT Venue FROM table WHERE State = california AND City = santa barbara
Translate the following into a SQL query
What Venue is in Colorado?
SELECT Venue FROM table WHERE State = colorado
Translate the following into a SQL query
What city is Mackey Arena in?
SELECT City FROM table WHERE Venue = mackey arena
Translate the following into a SQL query
What lane is David Carry in heat 1?
SELECT COUNT Lane FROM table WHERE Heat = 1 AND Name = david carry
Translate the following into a SQL query
Who is the opponent after week 9 at rich stadium?
SELECT Opponent FROM table WHERE Week > 9 AND Game site = rich stadium
Translate the following into a SQL query
What was the attendance on 1997-12-14?
SELECT Attendance FROM table WHERE Date = 1997-12-14
Translate the following into a SQL query
For the 1967 Cleveland Browns season what is the total number of times they played the Minnesota Vikings and had an atttendance smaller than 68,431?
SELECT COUNT Week FROM table WHERE Opponent = minnesota vikings AND Attendance < 68,431
Translate the following into a SQL query
What is the lowest attendance for a game before 10 weeks on November 12, 1967
SELECT MIN Attendance FROM table WHERE Week < 10 AND Date = november 12, 1967
Translate the following into a SQL query
What is the smallest number of injured in mayurbhanj, odisha and less than 1 killed?
SELECT MIN Injured FROM table WHERE Place = mayurbhanj, odisha AND Killed < 1
Translate the following into a SQL query
What is the Venue when the Crowd was larger than 11,000 and the Away team score was 7.9 (51)?
SELECT Venue FROM table WHERE Crowd > 11,000 AND Away team score = 7.9 (51)
Translate the following into a SQL query
When the Away team had a score of 11.16 (82), what is the average Crowd?
SELECT AVG Crowd FROM table WHERE Away team score = 11.16 (82)
Translate the following into a SQL query
Which Away team has a score of 6.17 (53)?
SELECT Away team FROM table WHERE Away team score = 6.17 (53)
Translate the following into a SQL query
Which Away team has Carlton for it's Home team?
SELECT Away team FROM table WHERE Home team = carlton
Translate the following into a SQL query
Which Venue has Footscray as it's Home team?
SELECT Venue FROM table WHERE Home team = footscray
Translate the following into a SQL query
What home team has Richmond listed as their Away team?
SELECT Home team FROM table WHERE Away team = richmond
Translate the following into a SQL query
What is the name of the away team that has the home team score of 15.17 (107)?
SELECT Away team FROM table WHERE Home team score = 15.17 (107)
Translate the following into a SQL query
What is the number of the crowd for the home team of South Melbourne?
SELECT SUM Crowd FROM table WHERE Home team = south melbourne
Translate the following into a SQL query
What is the away team score for the home team listed as Footscray?
SELECT Away team score FROM table WHERE Home team = footscray
Translate the following into a SQL query
In which venue did the home team score 11.20 (86)?
SELECT Venue FROM table WHERE Home team score = 11.20 (86)
Translate the following into a SQL query
Which venue exceeded a crowd size of 33,642?
SELECT Venue FROM table WHERE Crowd > 33,642
Translate the following into a SQL query
Which home team scored 7.10 (52)?
SELECT Home team FROM table WHERE Home team score = 7.10 (52)
Translate the following into a SQL query
What is the largest crowd size that had a home team score of 17.18 (120)?
SELECT MAX Crowd FROM table WHERE Home team score = 17.18 (120)
Translate the following into a SQL query
In which venue did the away team score 9.11 (65)?
SELECT Venue FROM table WHERE Away team score = 9.11 (65)
Translate the following into a SQL query
When were both the crowd larger than 15,000 and the Away team score of 9.11 (65)?
SELECT Date FROM table WHERE Crowd > 15,000 AND Away team score = 9.11 (65)
Translate the following into a SQL query
What was the attendance at the Meadowlands against the New England Patriots?
SELECT Attendance FROM table WHERE Game site = the meadowlands AND Opponent = new england patriots
Translate the following into a SQL query
What game did Jets have an attendance of 78,722?
SELECT Game site FROM table WHERE Attendance = 78,722
Translate the following into a SQL query
Which home team corresponds to an away team score of 5.10 (40)?
SELECT Home team FROM table WHERE Away team score = 5.10 (40)
Translate the following into a SQL query
What is the largest crowd for an away team score of 8.7 (55)?
SELECT MAX Crowd FROM table WHERE Away team score = 8.7 (55)
Translate the following into a SQL query
Which venue hosted a home team with a score of 11.16 (82)?
SELECT Venue FROM table WHERE Home team score = 11.16 (82)
Translate the following into a SQL query
Which away team has a team score of 12.11 (83)?
SELECT Away team FROM table WHERE Away team score = 12.11 (83)
Translate the following into a SQL query
Who played the Rams on October 2, 2005?
SELECT Opponent FROM table WHERE Date = october 2, 2005
Translate the following into a SQL query
What was the attendance of the game on December 11, 2005?
SELECT Attendance FROM table WHERE Date = december 11, 2005
Translate the following into a SQL query
What was the result of the game played in front of 65,473?
SELECT Result FROM table WHERE Attendance = 65,473
Translate the following into a SQL query
How large was the crowd at Carlton's home game?
SELECT COUNT Crowd FROM table WHERE Home team = carlton
Translate the following into a SQL query
On what date did the away team score 12.9 (81)?
SELECT Date FROM table WHERE Away team score = 12.9 (81)
Translate the following into a SQL query
What was the score when St Kilda played as the home team?
SELECT Home team score FROM table WHERE Home team = st kilda
Translate the following into a SQL query
What was the crowd when the VFL played Windy Hill?
SELECT SUM Crowd FROM table WHERE Venue = windy hill
Translate the following into a SQL query
What was Carlton's score when they were the away team?
SELECT Away team score FROM table WHERE Away team = carlton
Translate the following into a SQL query
What was the sum of the crowds in the matches where the away team scored 11.8 (74)?
SELECT SUM Crowd FROM table WHERE Away team score = 11.8 (74)
Translate the following into a SQL query
What was the away team that played at Corio Oval?
SELECT Away team FROM table WHERE Venue = corio oval
Translate the following into a SQL query
Which Home team faced the Away team, Hawthorn?
SELECT Home team FROM table WHERE Away team = hawthorn
Translate the following into a SQL query
Which Away team scored 12.17 (89) when the crowd was larger than 17,000?
SELECT Away team FROM table WHERE Crowd > 17,000 AND Away team score = 12.17 (89)
Translate the following into a SQL query
What was the Home team's score when the Away team scored 12.6 (78)?
SELECT Home team score FROM table WHERE Away team score = 12.6 (78)
Translate the following into a SQL query
What was the Home team's score when the Venue was mcg?
SELECT Home team score FROM table WHERE Venue = mcg
Translate the following into a SQL query
What is the division in the season more recent than 2012 when the round of 16 was reached in the FA Cup?
SELECT COUNT Division FROM table WHERE FA Cup = round of 16 AND Season > 2012
Translate the following into a SQL query
What is the division in the season with 13 tms and pos smaller than 8?
SELECT COUNT Division FROM table WHERE Tms. = 13 AND Pos. < 8
Translate the following into a SQL query
What is the population of the county with an area of 9,378 km² and a population density larger than 46.7?
SELECT MIN Population (2011) FROM table WHERE Area (km²) = 9,378 AND Density (2011) > 46.7
Translate the following into a SQL query
Of the games before week 3 which had attendance great than 65,904?
SELECT Date FROM table WHERE Week < 3 AND Attendance > 65,904
Translate the following into a SQL query
What was the first week to have attendance of 65,866?
SELECT MIN Week FROM table WHERE Attendance = 65,866
Translate the following into a SQL query
Where is the Belhaven College SSAC conference location?
SELECT Location FROM table WHERE Current Conference = ssac AND Institution = belhaven college
Translate the following into a SQL query
What American Southwest Conference school was founded in 1883?
SELECT Institution FROM table WHERE Founded > 1883 AND Current Conference = american southwest
Translate the following into a SQL query
Which League showed 7,975 for an average attendance?
SELECT League FROM table WHERE Attendance Average = 7,975
Translate the following into a SQL query
What is the average attendance of the team that had a regular season result of 2nd aisa, 24-16?
SELECT Attendance Average FROM table WHERE Reg. Season = 2nd aisa, 24-16
Translate the following into a SQL query
Who won Group VI, when Group 1 was won by deportivo, group IV by sevilla, and group III by Valencia?
SELECT Group VI FROM table WHERE Group I = deportivo AND Group IV = sevilla AND Group III = valencia
Translate the following into a SQL query
Who won group III when group 1 was of the racing club?
SELECT Group III FROM table WHERE Group I = racing club
Translate the following into a SQL query
What season has Group IV Sevilla, Group VI las palmas, group III barcelona, and group 1 sporting?
SELECT Season FROM table WHERE Group IV = sevilla AND Group VI = las palmas AND Group III = barcelona AND Group I = sporting
Translate the following into a SQL query
Which team is John Williams a rider for?
SELECT Team FROM table WHERE Rider = john williams
Translate the following into a SQL query
How big was the crowd when Geelong was the home team?
SELECT COUNT Crowd FROM table WHERE Home team = geelong
Translate the following into a SQL query
Where was the game when the away team scored 11.6 (72)?
SELECT Venue FROM table WHERE Away team score = 11.6 (72)
Translate the following into a SQL query
Who was the away team when Hawthorn was the home team?
SELECT Away team score FROM table WHERE Home team = hawthorn
Translate the following into a SQL query
Who was the away team when the home team scored 9.16 (70)?
SELECT Away team FROM table WHERE Home team score = 9.16 (70)
Translate the following into a SQL query
What is the total in the case where theere are 6 lecturers and fewer than 48 professors?
SELECT AVG Total FROM table WHERE Lecturers = 6 AND Professors < 48
Translate the following into a SQL query
What is the total in the case when there are more than 4 associate professors, 5 lecturers and fewer professors than 40?
SELECT COUNT Total FROM table WHERE Associate professors > 4 AND Lecturers = 5 AND Professors < 40
Translate the following into a SQL query
How may lecturers are there in the case when there are more than 8 assistant professors, fewer than 35 associate professors, more than 14 professors and total of more than 81?
SELECT COUNT Lecturers FROM table WHERE Assistant professors > 8 AND Professors > 14 AND Associate professors < 35 AND Total > 81
Translate the following into a SQL query
What is the maximum number of associate professors when there are more than 5 assistant professors and fewer than 14 professors?
SELECT MAX Associate professors FROM table WHERE Assistant professors > 5 AND Professors < 14
Translate the following into a SQL query
Which country has the banglavision Network?
SELECT Origin of Programming FROM table WHERE Network = banglavision
Translate the following into a SQL query
Which general service in India is a part of the zee variasi network?
SELECT Service FROM table WHERE Origin of Programming = india AND Genre = general AND Network = zee variasi
Translate the following into a SQL query
Which sliding tackle has no dump tackle and a restricted shoulder charge?
SELECT sliding tackle FROM table WHERE dump tackle = no AND shoulder charge = restricted
Translate the following into a SQL query
Which bumping/blocking has a yes for both the ankle tap and steal/intercept ball?
SELECT bumping/blocking FROM table WHERE ankle tap = yes AND steal/intercept ball = yes
Translate the following into a SQL query
Which body tackle has yes for the diving tackle and the sliding tackle classified as a trip?
SELECT body tackle FROM table WHERE diving tackle = yes AND sliding tackle = classified as a trip
Translate the following into a SQL query
Which Chicken wing has no steal/intercept ball?
SELECT Chicken wing FROM table WHERE steal/intercept ball = no
Translate the following into a SQL query
Which steal/intercept ball has no for both the sliding tackle and dump tackle?
SELECT steal/intercept ball FROM table WHERE sliding tackle = no AND dump tackle = no
Translate the following into a SQL query
Which shoulder charge has restricted as the body tackle?
SELECT shoulder charge FROM table WHERE body tackle = restricted
Translate the following into a SQL query
Which player has West Virginia listed as their school/country?
SELECT Player FROM table WHERE School/Country = west virginia
Translate the following into a SQL query
Which player played the guard position from 1968?
SELECT Player FROM table WHERE Position = guard AND From = 1968
Translate the following into a SQL query
What is the total crowd size when the away team scores 14.6 (90)?
SELECT SUM Crowd FROM table WHERE Away team score = 14.6 (90)
Translate the following into a SQL query
What is the average crowd size when fitzroy plays at home?
SELECT AVG Crowd FROM table WHERE Home team = fitzroy
Translate the following into a SQL query
What is the result of the election with 3,871 total votes?
SELECT Results FROM table WHERE Total votes > 3,871
Translate the following into a SQL query
What is the lowest number of bids in the Missouri Valley conference?
SELECT MIN # of Bids FROM table WHERE Conference = missouri valley
Translate the following into a SQL query
What was the attendance on the bye week?
SELECT Attendance FROM table WHERE Date = bye
Translate the following into a SQL query
What was the last week when the team had a bye week?
SELECT MAX Week FROM table WHERE Result = bye
Translate the following into a SQL query
Where was the game held where North Melbourne was the away team?
SELECT Venue FROM table WHERE Away team = north melbourne
Translate the following into a SQL query
Who was the away team who scored 9.7 (61)?
SELECT Away team FROM table WHERE Away team score = 9.7 (61)
Translate the following into a SQL query
What was the smallest crowd for a game where the home team scored 11.18 (84)?
SELECT MIN Crowd FROM table WHERE Home team score = 11.18 (84)
Translate the following into a SQL query
What was the smallest crowd size for a home game for Richmond?
SELECT MIN Crowd FROM table WHERE Home team = richmond
Translate the following into a SQL query
When did the 1966 Cleveland Browns play the Green Bay Packers?
SELECT Date FROM table WHERE Opponent = green bay packers