instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
what is the total when the rank is 4?
SELECT Total FROM table WHERE Rank = 4
Translate the following into a SQL query
what is the nation when the gold is 1 and bronze is larger than 0?
SELECT Nation FROM table WHERE Gold = 1 AND Bronze > 0
Translate the following into a SQL query
Which entrant has Ferrari 038 3.5 v12 engine?
SELECT Entrant FROM table WHERE Engine = ferrari 038 3.5 v12
Translate the following into a SQL query
What is the date that the Institution of Lynn University was founded on?
SELECT Founded FROM table WHERE Institution = lynn university
Translate the following into a SQL query
What's the Loss listed with a Score of 5-1?
SELECT Loss FROM table WHERE Score = 5-1
Translate the following into a SQL query
Which Date has a record of 3-5?
SELECT Date FROM table WHERE Record = 3-5
Translate the following into a SQL query
Which Date has a Record of 6-9?
SELECT Date FROM table WHERE Record = 6-9
Translate the following into a SQL query
What's the Loss listed for the Opponent of California Angels and has an Attendance of 57,762?
SELECT Loss FROM table WHERE Opponent = california angels AND Attendance = 57,762
Translate the following into a SQL query
Which Date has an Attendance of 9,535?
SELECT Date FROM table WHERE Attendance = 9,535
Translate the following into a SQL query
What is the Score for the Date of April 23?
SELECT Score FROM table WHERE Date = april 23
Translate the following into a SQL query
What was the average crowd size at Victoria Park?
SELECT AVG Crowd FROM table WHERE Venue = victoria park
Translate the following into a SQL query
What is the crowd size of the match featuring North Melbourne as the away team?
SELECT MIN Crowd FROM table WHERE Away team = north melbourne
Translate the following into a SQL query
Name the team which has high rebounds of smith (10)
SELECT Team FROM table WHERE High rebounds = smith (10)
Translate the following into a SQL query
What team was the home team against Melbourne?
SELECT Home team FROM table WHERE Away team = melbourne
Translate the following into a SQL query
What was the home team score when the away team scored 13.17 (95)?
SELECT Home team score FROM table WHERE Away team score = 13.17 (95)
Translate the following into a SQL query
Which team is Lake Oval home to?
SELECT Home team FROM table WHERE Venue = lake oval
Translate the following into a SQL query
What did the home team score when Carlton played as the Away team?
SELECT Home team score FROM table WHERE Away team = carlton
Translate the following into a SQL query
How many people attended the home game for South Melbourne?
SELECT SUM Crowd FROM table WHERE Home team = south melbourne
Translate the following into a SQL query
What was the home team score at VFL Park?
SELECT Home team score FROM table WHERE Venue = vfl park
Translate the following into a SQL query
How many grids have a Time/Retired of gearbox, and Laps smaller than 3?
SELECT COUNT Grid FROM table WHERE Time/Retired = gearbox AND Laps < 3
Translate the following into a SQL query
What is masten gregory's average lap?
SELECT AVG Laps FROM table WHERE Driver = masten gregory
Translate the following into a SQL query
Which Time/Retired has a Grid of 2?
SELECT Time/Retired FROM table WHERE Grid = 2
Translate the following into a SQL query
When the engine Ford Cosworth DFV 3.0 v8 has a chassis of m23 and in rounds 14-15, what is its Tyre?
SELECT Tyre FROM table WHERE Rounds = 14-15 AND Engine = ford cosworth dfv 3.0 v8 AND Chassis = m23
Translate the following into a SQL query
Which driver uses the ts16 chassis?
SELECT Driver FROM table WHERE Chassis = ts16
Translate the following into a SQL query
What is the home team of the game on April 20?
SELECT Home FROM table WHERE Date = april 20
Translate the following into a SQL query
What is the series score of the game with Vancouver as the visiting team on April 16?
SELECT Series FROM table WHERE Visitor = vancouver AND Date = april 16
Translate the following into a SQL query
What is the series score of the game on April 16?
SELECT Series FROM table WHERE Date = april 16
Translate the following into a SQL query
Tell me the away team for venue of western oval
SELECT Away team FROM table WHERE Venue = western oval
Translate the following into a SQL query
Tell me the away team score for 27 april 1974 and veue of mcg
SELECT Away team score FROM table WHERE Date = 27 april 1974 AND Venue = mcg
Translate the following into a SQL query
I want to see the away team the has a home team of richmond
SELECT Away team FROM table WHERE Home team = richmond
Translate the following into a SQL query
What venue did group g play at on Mar 8, 1998?
SELECT Venue FROM table WHERE Stage = group g AND Date = mar 8, 1998
Translate the following into a SQL query
Which stage was being played in Romania?
SELECT Stage FROM table WHERE Venue = romania
Translate the following into a SQL query
What was the score of the 1999 fifa world cup qualification (uefa) on Nov 23, 1997?
SELECT Result FROM table WHERE Competition = 1999 fifa world cup qualification (uefa) AND Date = nov 23, 1997
Translate the following into a SQL query
What was being played on Nov 23, 2006?
SELECT Competition FROM table WHERE Date = nov 23, 2006
Translate the following into a SQL query
What is the lowest crowd at windy hill?
SELECT MIN Crowd FROM table WHERE Venue = windy hill
Translate the following into a SQL query
What is the crowd with a Home team score of 8.17 (65)?
SELECT AVG Crowd FROM table WHERE Home team score = 8.17 (65)
Translate the following into a SQL query
What home team has an Away team score of 11.12 (78)?
SELECT Home team score FROM table WHERE Away team score = 11.12 (78)
Translate the following into a SQL query
What date has a Crowd larger than 12,000, and an Away team score of 9.16 (70)?
SELECT Date FROM table WHERE Crowd > 12,000 AND Away team score = 9.16 (70)
Translate the following into a SQL query
What is the lowest crowd with home team richmond?
SELECT MIN Crowd FROM table WHERE Home team = richmond
Translate the following into a SQL query
Which home team has an Away team score of 6.9 (45)?
SELECT Home team FROM table WHERE Away team score = 6.9 (45)
Translate the following into a SQL query
When there are more than 12 total medals and less than 5 gold medals, how many bronze medals are there?
SELECT COUNT Bronze FROM table WHERE Total > 12 AND Gold < 5
Translate the following into a SQL query
When the united states won a total number of medals larger than 25, what was the lowest amount of Bronze medals won?
SELECT MIN Bronze FROM table WHERE Nation = united states AND Total > 25
Translate the following into a SQL query
When the nation of poland had less than 17 medals but more than 1 gold medal, what's the Highest number of bronze medals?
SELECT MAX Bronze FROM table WHERE Total < 17 AND Nation = poland AND Gold > 1
Translate the following into a SQL query
If there are more than 0 Silver medals, less than 5 gold medals, and no bronze medals, what was the total number of medals?
SELECT COUNT Total FROM table WHERE Silver > 0 AND Gold < 5 AND Bronze < 0
Translate the following into a SQL query
What's the total number of NGC that has a Declination ( J2000 ) of °15′55″, and an Apparent magnitude greater than 10?
SELECT SUM NGC number FROM table WHERE Declination ( J2000 ) = °15′55″ AND Apparent magnitude > 10
Translate the following into a SQL query
Which object has an Apparent magnitude larger than 9.6, and a Right ascension ( J2000 ) of 17h59m02.0s?
SELECT Object type FROM table WHERE Apparent magnitude > 9.6 AND Right ascension ( J2000 ) = 17h59m02.0s
Translate the following into a SQL query
Which species of bacteria has 5,566 genes?
SELECT Strain FROM table WHERE Genes = 5,566
Translate the following into a SQL query
What is the Strain name of Species Thiomicrospira crunogena?
SELECT Strain FROM table WHERE Species = thiomicrospira crunogena
Translate the following into a SQL query
Name the location of record 5-3
SELECT Location FROM table WHERE Record = 5-3
Translate the following into a SQL query
What's the rank for a team that has a percentage of 56% and a loss smaller than 4?
SELECT AVG Rank FROM table WHERE Percentage! = 56% AND Loss < 4
Translate the following into a SQL query
Name the average avg for TD's less than 3 for devin wyman and long more than 3
SELECT AVG Avg. FROM table WHERE TD's < 3 AND Player = devin wyman AND Long > 3
Translate the following into a SQL query
Name the lowest yards for 34 long and avg less than 12.6
SELECT MIN Yards FROM table WHERE Long = 34 AND Avg. < 12.6
Translate the following into a SQL query
What team is sponsored by chameleon sunglasses?
SELECT Team FROM table WHERE Sponsor = chameleon sunglasses
Translate the following into a SQL query
What team does bobby hillin jr. (r) drive a buick regal for?
SELECT Team FROM table WHERE Make = buick regal AND Driver = bobby hillin jr. (r)
Translate the following into a SQL query
What team is sponsored by w.h. bolin?
SELECT Team FROM table WHERE Sponsor = w.h. bolin
Translate the following into a SQL query
Who drives for the sponsor w.h. bolin?
SELECT Driver FROM table WHERE Sponsor = w.h. bolin
Translate the following into a SQL query
Who sponsors driver neil bonnett?
SELECT Sponsor FROM table WHERE Driver = neil bonnett
Translate the following into a SQL query
What channel has a description of the public broadcaster?
SELECT Channel FROM table WHERE Description = public broadcaster
Translate the following into a SQL query
What was the channel that was financed by commercials?
SELECT Channel FROM table WHERE Financed by = commercials
Translate the following into a SQL query
Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc Gené, and a grid larger than 20?
SELECT MAX Laps FROM table WHERE Constructor = minardi - fondmetal AND Driver = marc gené AND Grid > 20
Translate the following into a SQL query
What is the sum of grid values of driver Michael Schumacher with lap counts larger than 66?
SELECT SUM Grid FROM table WHERE Laps > 66 AND Driver = michael schumacher
Translate the following into a SQL query
Which driver has 62 laps?
SELECT Driver FROM table WHERE Laps = 62
Translate the following into a SQL query
What is the highest grid value with constructor Mclaren - Mercedes, driver David Coulthard, and has fewer than 66 laps?
SELECT MAX Grid FROM table WHERE Constructor = mclaren - mercedes AND Driver = david coulthard AND Laps < 66
Translate the following into a SQL query
What is the highest number of laps for grid 17?
SELECT MAX Laps FROM table WHERE Grid = 17
Translate the following into a SQL query
None of the rounds has Roger Williamson as a driver.
SELECT Rounds FROM table WHERE Driver = roger williamson
Translate the following into a SQL query
What is the time/retired for alain prost?
SELECT Time/Retired FROM table WHERE Driver = alain prost
Translate the following into a SQL query
What is the time/retired for grid 9?
SELECT Time/Retired FROM table WHERE Grid = 9
Translate the following into a SQL query
Who had to retire due to suspension?
SELECT Driver FROM table WHERE Time/Retired = suspension
Translate the following into a SQL query
What class is volleyball in 2000?
SELECT Class FROM table WHERE Sport = volleyball AND Year = 2000
Translate the following into a SQL query
What is the team's record in 3a volleyball?
SELECT Record FROM table WHERE Class = 3a AND Sport = volleyball
Translate the following into a SQL query
Who was the away team at Melbourne's home game?
SELECT Away team FROM table WHERE Home team = melbourne
Translate the following into a SQL query
What was the away team score at Corio Oval?
SELECT Away team score FROM table WHERE Venue = corio oval
Translate the following into a SQL query
When did the away team score 12.14 (86)?
SELECT Date FROM table WHERE Away team score = 12.14 (86)
Translate the following into a SQL query
Which Call Sign that has a Tail Code of oy belong to Weapon Systems Officer Capt Charles B. Debellevue?
SELECT Call Sign FROM table WHERE Tail Code = oy AND Weapon Systems Officer = capt charles b. debellevue
Translate the following into a SQL query
Which Tail Code belongs to Weapon Systems Officer Capt Charles B. Debellevue?
SELECT Tail Code FROM table WHERE Weapon Systems Officer = capt charles b. debellevue
Translate the following into a SQL query
Which Aircraft has the Call Sign Paula 01?
SELECT Aircraft FROM table WHERE Call Sign = paula 01
Translate the following into a SQL query
Which Call Sign that has Tail Code ed?
SELECT Call Sign FROM table WHERE Tail Code = ed
Translate the following into a SQL query
Which aircraft Weapon Systems Officer Capt Charles B. Debellevue belongs on?
SELECT Aircraft FROM table WHERE Weapon Systems Officer = capt charles b. debellevue
Translate the following into a SQL query
What is the lowest amount of wins of someone who has 2 losses?
SELECT MIN Wins FROM table WHERE Losses = 2
Translate the following into a SQL query
What is the largest amount of wins of someone who has an against score greater than 1249 and a number of losses less than 17?
SELECT MAX Wins FROM table WHERE Against > 1249 AND Losses < 17
Translate the following into a SQL query
What is the name of race that has a winning driver of Stirling moss and a Circuit of oulton park?
SELECT Race Name FROM table WHERE Winning driver = stirling moss AND Circuit = oulton park
Translate the following into a SQL query
Who is the winning driver that has a construction of brm?
SELECT Winning driver FROM table WHERE Constructor = brm
Translate the following into a SQL query
What is the high bronze total for nations ranked 12?
SELECT MAX Bronze FROM table WHERE Rank = 12
Translate the following into a SQL query
Who was the away team when Footscray scored 11.14 (80)?
SELECT Away team FROM table WHERE Home team score = 11.14 (80)
Translate the following into a SQL query
What was the winning score on May 3, 1998?
SELECT Winning score FROM table WHERE Date = may 3, 1998
Translate the following into a SQL query
What is the role of the aircraft that has a registration of s5-hpg s5-hpc?
SELECT Role FROM table WHERE Registration = s5-hpg s5-hpc
Translate the following into a SQL query
What is the country of origin of the aircraft with a registration s5-hpb?
SELECT Origin FROM table WHERE Registration = s5-hpb
Translate the following into a SQL query
What is the role of the aircraft that originates from the European Union?
SELECT Role FROM table WHERE Origin = european union
Translate the following into a SQL query
What is the role of the aircraft that has a registration of s5-hpb?
SELECT Role FROM table WHERE Registration = s5-hpb
Translate the following into a SQL query
Which Hometown has a Height of 6-10?
SELECT Hometown FROM table WHERE Height = 6-10
Translate the following into a SQL query
What is the NBA Draft for the School Bishop O'Connell High School?
SELECT NBA Draft FROM table WHERE School = bishop o'connell high school
Translate the following into a SQL query
Which School is located in Winter Park, FL (Hometown)?
SELECT School FROM table WHERE Hometown = winter park, fl
Translate the following into a SQL query
When the School is Bishop Luers High School, what is the Hometown?
SELECT Hometown FROM table WHERE School = bishop luers high school
Translate the following into a SQL query
What is the Hometown for Villanova College?
SELECT Hometown FROM table WHERE College = villanova
Translate the following into a SQL query
Who was the home team at the game when the Thrashers had a record of 18–18–1?
SELECT Home FROM table WHERE Record = 18–18–1
Translate the following into a SQL query
What was the date of the game with a decision of Lehtonen and attended by more than 17,731 people?
SELECT Date FROM table WHERE Decision = lehtonen AND Attendance > 17,731
Translate the following into a SQL query
What is the average grid for johnny herbert with a Time/Retired of +1 lap?
SELECT AVG Grid FROM table WHERE Time/Retired = +1 lap AND Driver = johnny herbert
Translate the following into a SQL query
Who was the away team at mcg?
SELECT Away team FROM table WHERE Venue = mcg
Translate the following into a SQL query
Who was the home team at princes park?
SELECT Home team FROM table WHERE Venue = princes park
Translate the following into a SQL query
Which Object type has a Constellation of orion, and an NGC number larger than 2174, and a Declination (J2000) of °48′06″?
SELECT Object type FROM table WHERE Constellation = orion AND NGC number > 2174 AND Declination ( J2000 ) = °48′06″