instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
When the home team scored 12.21 (93), what was the average crowd size?
SELECT AVG Crowd FROM table WHERE Home team score = 12.21 (93)
Translate the following into a SQL query
Name the transfer wind for giuly
SELECT Transfer window FROM table WHERE Name = giuly
Translate the following into a SQL query
Name the transfer fee for transfer status for fra
SELECT Transfer fee FROM table WHERE Status = transfer AND Country = fra
Translate the following into a SQL query
Name the status for belletti
SELECT Status FROM table WHERE Name = belletti
Translate the following into a SQL query
Name the moving to for fra
SELECT Moving to FROM table WHERE Country = fra
Translate the following into a SQL query
Name the transfer window of realmadrid
SELECT Transfer window FROM table WHERE Moving to = realmadrid
Translate the following into a SQL query
Name the country moving to chelsea
SELECT Country FROM table WHERE Moving to = chelsea
Translate the following into a SQL query
Who was the leading scorer of the game on 20 February 2008?
SELECT Leading scorer FROM table WHERE Date = 20 february 2008
Translate the following into a SQL query
What is the visitor team of the game with Rudy Gay (23) as the leading scorer?
SELECT Visitor FROM table WHERE Leading scorer = rudy gay (23)
Translate the following into a SQL query
What is the home team of the game where the Grizzlies were the visitor team and Rudy Gay (21) was the leading scorer?
SELECT Home FROM table WHERE Visitor = grizzlies AND Leading scorer = rudy gay (21)
Translate the following into a SQL query
What is the record of the game on 5 February 2008?
SELECT Record FROM table WHERE Date = 5 february 2008
Translate the following into a SQL query
tell me the writer of production code ad1d09.
SELECT Written by FROM table WHERE Production code = ad1d09
Translate the following into a SQL query
tell me the director of the production code ad1d02.
SELECT Directed by FROM table WHERE Production code = ad1d02
Translate the following into a SQL query
Which team has a Reg GP of 0, a pick number under 136 with a player named Regan Darby?
SELECT Team (League) FROM table WHERE Reg GP = 0 AND Pick # < 136 AND Player = regan darby
Translate the following into a SQL query
What planet orbits in 3.23 days?
SELECT Planet FROM table WHERE Orbital Period = 3.23 days
Translate the following into a SQL query
What type of planet has a radial velocity of 45.2 m/s?
SELECT Planet Type FROM table WHERE Radial velocity (m/s) > 45.2
Translate the following into a SQL query
What type of planet has a semimajor axis of 0.07 AU?
SELECT Planet Type FROM table WHERE Semimajor Axis ( AU ) = 0.07
Translate the following into a SQL query
How can Planet, 51 pegasi b be detected?
SELECT Detectable by: FROM table WHERE Planet = 51 pegasi b
Translate the following into a SQL query
What is the city where the Telstra Dome is?
SELECT City FROM table WHERE Stadium = telstra dome
Translate the following into a SQL query
Name the D 41 which has a D 46 of r 6
SELECT D 41 FROM table WHERE D 46 = r 6
Translate the following into a SQL query
Name the D 41 which has a D 43 of r 18
SELECT D 41 FROM table WHERE D 43 = r 18
Translate the following into a SQL query
Name the R 52 which has a D 44 of d 44
SELECT R 52 FROM table WHERE D 44 = d 44
Translate the following into a SQL query
Name the D 46 which has a D 43 of majority→
SELECT D 46 FROM table WHERE D 43 = majority→
Translate the following into a SQL query
Name the D 42 which has a D 46 of r 26
SELECT D 42 FROM table WHERE D 46 = r 26
Translate the following into a SQL query
Name the D 42 which has a D 44 of d 44
SELECT D 42 FROM table WHERE D 44 = d 44
Translate the following into a SQL query
How many wins did SD Eibar, which played less than 38 games, have?
SELECT SUM Wins FROM table WHERE Club = sd eibar AND Played < 38
Translate the following into a SQL query
What is the highest number of draws a club with less than 20 wins, less than 41 points, and less than 27 goals have?
SELECT MAX Draws FROM table WHERE Wins < 20 AND Points < 41 AND Goals for < 27
Translate the following into a SQL query
What is the lowest goal difference a club with more than 13 wins, less than 8 losses, and less than 11 draws has?
SELECT MIN Goal Difference FROM table WHERE Wins > 13 AND Losses < 8 AND Draws < 11
Translate the following into a SQL query
What is the number of played games a club with more than 71 points and less than 8 losses has?
SELECT SUM Played FROM table WHERE Points > 71 AND Losses < 8
Translate the following into a SQL query
What is the lowest goal difference a club with 61 goals against and less than 11 draws has?
SELECT MIN Goal Difference FROM table WHERE Goals against = 61 AND Draws < 11
Translate the following into a SQL query
Which Crowd has a Venue of princes park?
SELECT MIN Crowd FROM table WHERE Venue = princes park
Translate the following into a SQL query
Which Date has an Away team score of 16.13 (109)?
SELECT Date FROM table WHERE Away team score = 16.13 (109)
Translate the following into a SQL query
Which Away team has a Venue of mcg?
SELECT Away team FROM table WHERE Venue = mcg
Translate the following into a SQL query
Which average Crowd has a Home team of essendon?
SELECT AVG Crowd FROM table WHERE Home team = essendon
Translate the following into a SQL query
When was terry cook picked?
SELECT AVG Pick FROM table WHERE Player = terry cook
Translate the following into a SQL query
What position is todd hammel?
SELECT Position FROM table WHERE Player = todd hammel
Translate the following into a SQL query
What is the score of the away team that played Essendon?
SELECT Away team score FROM table WHERE Home team = essendon
Translate the following into a SQL query
How many people attended the North Melbourne game?
SELECT AVG Crowd FROM table WHERE Home team = north melbourne
Translate the following into a SQL query
Where did Carlton play?
SELECT Venue FROM table WHERE Away team = carlton
Translate the following into a SQL query
Which team played at VFL Park?
SELECT Home team FROM table WHERE Venue = vfl park
Translate the following into a SQL query
Which player has a College of arizona?
SELECT Player FROM table WHERE College = arizona
Translate the following into a SQL query
Which school has a Hometown of phoenix, az?
SELECT School FROM table WHERE Hometown = phoenix, az
Translate the following into a SQL query
Which NBA draft has a School of huntington high school?
SELECT NBA Draft FROM table WHERE School = huntington high school
Translate the following into a SQL query
Which NBA draft has a School of st. mary's high school?
SELECT NBA Draft FROM table WHERE School = st. mary's high school
Translate the following into a SQL query
Which school has a Player of donte greene?
SELECT School FROM table WHERE Player = donte greene
Translate the following into a SQL query
For R. Magjistari scores over 12, what is the highest number of points?
SELECT MAX Points FROM table WHERE R. Magjistari > 12
Translate the following into a SQL query
For R. Magjistari scores under 6, D. Tukiqi scores of 6, and ranks under 5, what is the average A. Krajka score?
SELECT AVG A. Krajka FROM table WHERE R. Magjistari < 6 AND D. Tukiqi = 6 AND Rank < 5
Translate the following into a SQL query
Where did the Vitória de Setúbal club place in the 2006-2007 season?
SELECT 2006-2007 season FROM table WHERE Club = vitória de setúbal
Translate the following into a SQL query
Name the total number of TD's for long more than 6 and cars less than 4
SELECT COUNT TD's FROM table WHERE Long > 6 AND Car. < 4
Translate the following into a SQL query
Name the sum of Long for yards less than 197 and players of matt nagy
SELECT SUM Long FROM table WHERE Yards < 197 AND Player = matt nagy
Translate the following into a SQL query
Who was the visitor team in tampa bay?
SELECT Visitor FROM table WHERE Home = tampa bay
Translate the following into a SQL query
Who had a 32-29-8 record at home?
SELECT Home FROM table WHERE Record = 32-29-8
Translate the following into a SQL query
Who had a 33-30-8 record at home?
SELECT Home FROM table WHERE Record = 33-30-8
Translate the following into a SQL query
What was the home teams score when North Melbourne played as the away team?
SELECT Home team score FROM table WHERE Away team = north melbourne
Translate the following into a SQL query
Who was the away team at Windy Hill?
SELECT Away team FROM table WHERE Venue = windy hill
Translate the following into a SQL query
Where did Fitzroy play as the home team?
SELECT Venue FROM table WHERE Home team = fitzroy
Translate the following into a SQL query
Who was away team at the home game of south melbourne?
SELECT Away team FROM table WHERE Home team = south melbourne
Translate the following into a SQL query
What did the away team score when they visited south melbourne?
SELECT Away team score FROM table WHERE Home team = south melbourne
Translate the following into a SQL query
How many people were in the crowd when the away team scored 15.18 (108)?
SELECT Crowd FROM table WHERE Away team score = 15.18 (108)
Translate the following into a SQL query
Who was the away team when they scored 12.9 (81) at the game?
SELECT Away team FROM table WHERE Away team score = 12.9 (81)
Translate the following into a SQL query
What is the highest crowd with north melbourne as away team?
SELECT MAX Crowd FROM table WHERE Away team = north melbourne
Translate the following into a SQL query
Which away team has a Home team score of 17.13 (115)?
SELECT Away team FROM table WHERE Home team score = 17.13 (115)
Translate the following into a SQL query
Which venue has a Home team of south melbourne?
SELECT Venue FROM table WHERE Home team = south melbourne
Translate the following into a SQL query
What home score has an Away team of fitzroy?
SELECT Home team score FROM table WHERE Away team = fitzroy
Translate the following into a SQL query
Which home team has a Venue of corio oval?
SELECT Home team FROM table WHERE Venue = corio oval
Translate the following into a SQL query
Which home team an Away team score of 7.9 (51)?
SELECT Home team FROM table WHERE Away team score = 7.9 (51)
Translate the following into a SQL query
Which away team has a Home team score of 4.4 (28)?
SELECT Away team FROM table WHERE Home team score = 4.4 (28)
Translate the following into a SQL query
Which team has an Away team of carlton?
SELECT Home team FROM table WHERE Away team = carlton
Translate the following into a SQL query
Which date has an Away team of richmond?
SELECT Date FROM table WHERE Away team = richmond
Translate the following into a SQL query
How many regions have a capital of matanzas and a 2005 population under 670427?
SELECT COUNT Area (km²) FROM table WHERE Capital = matanzas AND Population (2005) < 670427
Translate the following into a SQL query
What is the average area that has a Capital of camagüey, with a Population (%) larger than 7.02?
SELECT AVG Area (km²) FROM table WHERE Capital = camagüey AND Population (%) > 7.02
Translate the following into a SQL query
What was the score of the Kings game attended by more than 18,630 people?
SELECT Score FROM table WHERE Attendance > 18,630
Translate the following into a SQL query
What was the average attendance for a Kings game when they had a record of 1–5–0?
SELECT AVG Attendance FROM table WHERE Record = 1–5–0
Translate the following into a SQL query
What team has over 1 tournament title, 0 in the regular season, and 2 total?
SELECT Team FROM table WHERE Tournament > 1 AND Regular season = 0 AND Total = 2
Translate the following into a SQL query
What is the total on average for teams with 3 tournaments?
SELECT AVG Total FROM table WHERE Tournament = 3
Translate the following into a SQL query
what is the lowest grid when the laps is more than 7 and the driver is rubens barrichello?
SELECT MIN Grid FROM table WHERE Laps > 7 AND Driver = rubens barrichello
Translate the following into a SQL query
what is the grid when the laps is more than 0, the time/retired is engine and the driver is pedro de la rosa?
SELECT Grid FROM table WHERE Laps > 0 AND Time/Retired = engine AND Driver = pedro de la rosa
Translate the following into a SQL query
who is the driver with the grid of 13?
SELECT Driver FROM table WHERE Grid = 13
Translate the following into a SQL query
How many championships did the team or teams established in 1976 win?
SELECT SUM Championships FROM table WHERE Established = 1976
Translate the following into a SQL query
Which WNBA team that won at least 2 championships was established most recently?
SELECT MAX Established FROM table WHERE League = wnba AND Championships > 2
Translate the following into a SQL query
What are the venues that host WNBA games?
SELECT Venue FROM table WHERE League = wnba
Translate the following into a SQL query
Name the bowling style of the player born 16 march 1974
SELECT Bowling Style FROM table WHERE Date of Birth = 16 march 1974
Translate the following into a SQL query
Name the batting style for heath streak
SELECT Batting Style FROM table WHERE Player = heath streak
Translate the following into a SQL query
What is the name of a building that has 52 floors?
SELECT Name FROM table WHERE Floors = 52
Translate the following into a SQL query
How many floors does the Custom House Tower have?
SELECT COUNT Floors FROM table WHERE Name = custom house tower
Translate the following into a SQL query
How many floors does the building on 800 Boylston Street have?
SELECT MAX Floors FROM table WHERE Street address = 800 boylston street
Translate the following into a SQL query
What is the street address for the Prudential Tower building?
SELECT Street address FROM table WHERE Name = prudential tower
Translate the following into a SQL query
There is a building at 800 Boylston Street, how many floors does it have?
SELECT SUM Floors FROM table WHERE Street address = 800 boylston street
Translate the following into a SQL query
What was the highest number of WJC Jews that had a WJC rank of 6 and a ARDA rank of more than 8?
SELECT MAX Number of Jews (WJC) FROM table WHERE Rank ( WJC ) = 6 AND Rank (ARDA) > 8
Translate the following into a SQL query
What was the WJC rank in San Francisco metro area with the ASARB Jews less than 261,100 and WJC Jews of more than 210,000?
SELECT AVG Rank ( WJC ) FROM table WHERE Number of Jews (ASARB) < 261,100 AND Metro area = san francisco AND Number of Jews (WJC) > 210,000
Translate the following into a SQL query
What was the number of WJC Jews with a WJC rank of 6?
SELECT Number of Jews (WJC) FROM table WHERE Rank ( WJC ) = 6
Translate the following into a SQL query
What was the total number of WJC rank when the ARDA rank was less than 2 and ASARB Jews less than 2,028,200?
SELECT COUNT Rank ( WJC ) FROM table WHERE Rank (ARDA) < 2 AND Number of Jews (ASARB) < 2,028,200
Translate the following into a SQL query
How many number of WJC Jews in the Los Angeles Metro Area has a ARDA rank of more than 2?
SELECT SUM Number of Jews (WJC) FROM table WHERE Metro area = los angeles AND Rank (ARDA) > 2
Translate the following into a SQL query
Who drove during the race with less than 19 laps and a time listed as ignition?
SELECT Driver FROM table WHERE Laps < 19 AND Time/Retired = ignition
Translate the following into a SQL query
What is his record for fights that went over 2 rounds in the Event of raging wolf 6: mayhem in the mist?
SELECT Record FROM table WHERE Round > 2 AND Event = raging wolf 6: mayhem in the mist
Translate the following into a SQL query
Where was the game played when the home team scored 16.19 (115)?
SELECT Venue FROM table WHERE Home team score = 16.19 (115)
Translate the following into a SQL query
What is the highest number of people that attended a game at Moorabbin Oval?
SELECT MAX Crowd FROM table WHERE Venue = moorabbin oval
Translate the following into a SQL query
What did the home team Hawthorn score in the game attended by more than 14,922 people?
SELECT Home team score FROM table WHERE Crowd > 14,922 AND Home team = hawthorn
Translate the following into a SQL query
What is the least amount of people that attended a game when Essendon was the away team?
SELECT MIN Crowd FROM table WHERE Away team = essendon
Translate the following into a SQL query
Which date did South Melbourne play as the away team?
SELECT Date FROM table WHERE Away team = south melbourne