instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What's the lowest Floors with Feet that's larger htan 262, has a Name of Standard Bank Building, and Metres that's larger htan 138.8?
SELECT MIN Floors FROM table WHERE Feet > 262 AND Name = standard bank building AND Metres > 138.8
Translate the following into a SQL query
What is the sum of Metres wiht a Feet that's smaller than 196?
SELECT COUNT Metres FROM table WHERE Feet < 196
Translate the following into a SQL query
What is the lowest week number that there was a game on October 23, 1977 with less than 68,977 people attending?
SELECT MIN Week FROM table WHERE Attendance < 68,977 AND Date = october 23, 1977
Translate the following into a SQL query
What is the highest weight of the position scrum half?
SELECT MAX Weight (Kg) FROM table WHERE Position = scrum half
Translate the following into a SQL query
What is the power of the engine with a torque of n·m (lb·ft) at1,500rpm?
SELECT Power FROM table WHERE Torque = n·m (lb·ft) at1,500rpm
Translate the following into a SQL query
Which torque value is associated with the 1.3 16V multijet engine?
SELECT Torque FROM table WHERE Engine = 1.3 16v multijet
Translate the following into a SQL query
What is the lowest against value with less than 2 draws, 10 points, and less than 4 lost?
SELECT MIN Against FROM table WHERE Drawn < 2 AND Points = 10 AND Lost < 4
Translate the following into a SQL query
What is the average position with an against value less than 11?
SELECT AVG Position FROM table WHERE Against < 11
Translate the following into a SQL query
What is the largest value for lost with a position greater than 10?
SELECT MAX Lost FROM table WHERE Position > 10
Translate the following into a SQL query
What is the total of all against values for the Corinthians with less than 3 lost?
SELECT COUNT Against FROM table WHERE Team = corinthians AND Lost < 3
Translate the following into a SQL query
What is the lowest against value with less than 9 points and more than 6 lost?
SELECT MIN Against FROM table WHERE Points < 9 AND Lost > 6
Translate the following into a SQL query
What tournament located is mississippi was nov 5
SELECT Tournament FROM table WHERE Date = nov 5 AND Location = mississippi
Translate the following into a SQL query
what is the 1st prize for may 21
SELECT SUM 1st prize ( $ ) FROM table WHERE Date = may 21
Translate the following into a SQL query
Who is the director of the game with HIroshi Sato as the producer on the GBA platform?
SELECT Director FROM table WHERE Producer = hiroshi sato AND Platform(s) = gba
Translate the following into a SQL query
Who is the director of Last Window: The Secret of Cape West 3?
SELECT Director FROM table WHERE Title = last window: the secret of cape west 3
Translate the following into a SQL query
What is the platform of the 2010 game with Shuichiro Nishiya as director?
SELECT Platform(s) FROM table WHERE Year = 2010 AND Director = shuichiro nishiya
Translate the following into a SQL query
Which Opponent is on October of 29?
SELECT Opponent FROM table WHERE October = 29
Translate the following into a SQL query
WHich October has a Record of 1–0–0?
SELECT MIN October FROM table WHERE Record = 1–0–0
Translate the following into a SQL query
Which Opponent has a October larger than 20 with a Score of 2–2?
SELECT Opponent FROM table WHERE October > 20 AND Score = 2–2
Translate the following into a SQL query
What year was the margin of victory 9 strokes and the purse under $2,750,000?
SELECT AVG Year FROM table WHERE Margin of victory = 9 strokes AND Purse ( $ ) < 2,750,000
Translate the following into a SQL query
What year was the score 269?
SELECT COUNT Year FROM table WHERE Score = 269
Translate the following into a SQL query
What is the average number of points for a team in the 250cc class with fewer than 0 wins?
SELECT AVG Points FROM table WHERE Class = 250cc AND Wins < 0
Translate the following into a SQL query
What is the smallest number of points for a 1981 team?
SELECT MIN Points FROM table WHERE Year = 1981
Translate the following into a SQL query
What is the fewest number of wins for a team ranked 8th with fewer than 32 points in the 350cc class?
SELECT MIN Wins FROM table WHERE Points < 32 AND Class = 350cc AND Rank = 8th
Translate the following into a SQL query
What was the rank of the 1983 team in the 250cc class?
SELECT Rank FROM table WHERE Class = 250cc AND Year = 1983
Translate the following into a SQL query
Which district has joseph t. johnson as an incumbent?
SELECT District FROM table WHERE Incumbent = joseph t. johnson
Translate the following into a SQL query
What was the result for james o'h. patterson when first elected in 1904?
SELECT Result FROM table WHERE First elected = 1904 AND Incumbent = james o'h. patterson
Translate the following into a SQL query
Which party was re-elected in south carolina 5 district?
SELECT Party FROM table WHERE Result = re-elected AND District = south carolina 5
Translate the following into a SQL query
Which party was joseph t. johnson in?
SELECT Party FROM table WHERE Incumbent = joseph t. johnson
Translate the following into a SQL query
Which party was first elected in 1898?
SELECT Party FROM table WHERE First elected = 1898
Translate the following into a SQL query
Which district won when first elected in 1900?
SELECT District FROM table WHERE First elected = 1900
Translate the following into a SQL query
How many wins did the player who earned $6,607,562 have?
SELECT SUM Wins FROM table WHERE Earnings ( $ ) = 6,607,562
Translate the following into a SQL query
What is the average earnings made by Greg Norman?
SELECT AVG Earnings ( $ ) FROM table WHERE Player = greg norman
Translate the following into a SQL query
what city has a game of friendly and an opponent of tunisia?
SELECT City FROM table WHERE Type of game = friendly AND Opponent = tunisia
Translate the following into a SQL query
what are the results of the opponent of spain?
SELECT Results¹ FROM table WHERE Opponent = spain
Translate the following into a SQL query
what results are dated december 19?
SELECT Results¹ FROM table WHERE Date = december 19
Translate the following into a SQL query
what city has the results of 4:2?
SELECT City FROM table WHERE Results¹ = 4:2
Translate the following into a SQL query
what type of game has the resuts of 1:0?
SELECT Type of game FROM table WHERE Results¹ = 1:0
Translate the following into a SQL query
What is the average Games for 1965–1981, and a Ranking larger than 4?
SELECT AVG Games FROM table WHERE Years = 1965–1981 AND Ranking > 4
Translate the following into a SQL query
What is the Years when games shows 550?
SELECT Years FROM table WHERE Games = 550
Translate the following into a SQL query
What is the Nationality that shows 4 as the ranking?
SELECT Nationality FROM table WHERE Ranking = 4
Translate the following into a SQL query
Which location has a copies per particle of 0 and a protein of nsp3?
SELECT Location FROM table WHERE Copies per particle = 0 AND Protein = nsp3
Translate the following into a SQL query
How many copies per particle does the protein nsp2 have?
SELECT Copies per particle FROM table WHERE Protein = nsp2
Translate the following into a SQL query
What is the highest RNA segment having a protein of vp2 and a base pair size over 2690?
SELECT MAX RNA Segment (Gene) FROM table WHERE Protein = vp2 AND Size ( s base pair ) > 2690
Translate the following into a SQL query
What is the number of copies per particle having a nonstructural location, an RNA segment over 5 and a base pair size under 751?
SELECT Copies per particle FROM table WHERE Location = nonstructural AND RNA Segment (Gene) > 5 AND Size ( s base pair ) < 751
Translate the following into a SQL query
Who won the bronze medal in Hiroshima?
SELECT Bronze FROM table WHERE Location = hiroshima
Translate the following into a SQL query
Who won the silver medal in the games where Hong Chia-yuh took home bronze?
SELECT Silver FROM table WHERE Bronze = hong chia-yuh
Translate the following into a SQL query
Where did Michael Eric Bibat win bronze?
SELECT Location FROM table WHERE Bronze = michael eric bibat
Translate the following into a SQL query
Who won gold in the games where Pan Cheng-Tsung won silver?
SELECT Gold FROM table WHERE Silver = pan cheng-tsung
Translate the following into a SQL query
How many Bronzes that has a Silver of 0, and a Gold of 0, and a Nation of denmark, and a Total larger than 1?
SELECT SUM Bronze FROM table WHERE Silver = 0 AND Gold = 0 AND Nation = denmark AND Total > 1
Translate the following into a SQL query
How many Bronzes that has a Nation of italy?
SELECT MAX Bronze FROM table WHERE Nation = italy
Translate the following into a SQL query
How many Silvers that has a Gold smaller than 1, and a Rank of 9, and a Total smaller than 1?
SELECT SUM Silver FROM table WHERE Gold < 1 AND Rank = 9 AND Total < 1
Translate the following into a SQL query
Which Bronze has a Nation of spain?
SELECT MAX Bronze FROM table WHERE Nation = spain
Translate the following into a SQL query
Who was the opponent at the competition held at Jeonju?
SELECT Opponent FROM table WHERE Venue = jeonju
Translate the following into a SQL query
How many Januarys had records of 22-15-6?
SELECT COUNT January FROM table WHERE Record = 22-15-6
Translate the following into a SQL query
what is the date of barbagallo raceway?
SELECT Date FROM table WHERE Event Circuit = barbagallo raceway
Translate the following into a SQL query
What city is the hidden valley raceway in?
SELECT City / State FROM table WHERE Event Circuit = hidden valley raceway
Translate the following into a SQL query
What was the score in game 81?
SELECT Score FROM table WHERE Game # = 81
Translate the following into a SQL query
What was the record after game 79?
SELECT Record FROM table WHERE Game # = 79
Translate the following into a SQL query
Who was the home team on April 15?
SELECT Home FROM table WHERE Date = april 15
Translate the following into a SQL query
What is the Pinyin for 依兰县?
SELECT Hanyu Pinyin FROM table WHERE Hanzi = 依兰县
Translate the following into a SQL query
What is the Pinyin for the item that has a density of 77?
SELECT Hanyu Pinyin FROM table WHERE Density (/km²) = 77
Translate the following into a SQL query
What is the population for the area that has a Hanzi of 延寿县?
SELECT Population (2010-11-01) FROM table WHERE Hanzi = 延寿县
Translate the following into a SQL query
What is the population as of 11-01-2010 for Bayan County?
SELECT Population (2010-11-01) FROM table WHERE Name = bayan county
Translate the following into a SQL query
What is the Hanzi for píngfáng qū?
SELECT Hanzi FROM table WHERE Hanyu Pinyin = píngfáng qū
Translate the following into a SQL query
Which Slalom has an overall of 25 in the 2009 season?
SELECT Slalom FROM table WHERE Overall = 25 AND Season = 2009
Translate the following into a SQL query
What is the earliest season with a Giant Slalom of 5?
SELECT MIN Season FROM table WHERE Giant Slalom = 5
Translate the following into a SQL query
Which combined score has an overall of 8?
SELECT Combined FROM table WHERE Overall = 8
Translate the following into a SQL query
Which Super Ghas a missed season due to injury?
SELECT Super G FROM table WHERE Overall = missed season due to injury
Translate the following into a SQL query
Name the most events with cuts made more than 6 and top 25 more than 30
SELECT MAX Events FROM table WHERE Cuts made > 6 AND Top-25 > 30
Translate the following into a SQL query
Name the top-10 with top-5 less than 1
SELECT Top-10 FROM table WHERE Top-5 < 1
Translate the following into a SQL query
Name the averae top 25 with events less than 0
SELECT AVG Top-25 FROM table WHERE Events < 0
Translate the following into a SQL query
Name the total number of top 10 with top 25 less than 2 and top 5 more than 0
SELECT COUNT Top-10 FROM table WHERE Top-25 < 2 AND Top-5 > 0
Translate the following into a SQL query
In what Year is the Gauge 2 ft 6 in?
SELECT Year FROM table WHERE Gauge = 2 ft 6 in
Translate the following into a SQL query
In what Year is the Works No. 2040-2049?
SELECT Year FROM table WHERE Works no. = 2040-2049
Translate the following into a SQL query
In what Year is the Works no. 2040-2049?
SELECT Year FROM table WHERE Works no. = 2040-2049
Translate the following into a SQL query
What is the Gauge of Builder Beyer, Peacock?
SELECT Gauge FROM table WHERE Builder = beyer, peacock
Translate the following into a SQL query
Which round has the record of 5-0?
SELECT Round FROM table WHERE Record = 5-0
Translate the following into a SQL query
Which method has the record of 11-1?
SELECT Method FROM table WHERE Record = 11-1
Translate the following into a SQL query
The UFC 44 event has what method?
SELECT Method FROM table WHERE Event = ufc 44
Translate the following into a SQL query
Which event has 12-1 as a record?
SELECT Event FROM table WHERE Record = 12-1
Translate the following into a SQL query
What round was a loss with a record of 12-3?
SELECT Round FROM table WHERE Res. = loss AND Record = 12-3
Translate the following into a SQL query
The record of 11-1 used what method?
SELECT Method FROM table WHERE Record = 11-1
Translate the following into a SQL query
What surface was the match on November 6, 1982 played on?
SELECT Surface FROM table WHERE Date = november 6, 1982
Translate the following into a SQL query
What place did russia finish in?
SELECT COUNT Placing FROM table WHERE Team = russia
Translate the following into a SQL query
What's the WChmp of the race greater than 42 and pole greater than 11?
SELECT COUNT WChmp FROM table WHERE Race > 42 AND Pole > 11
Translate the following into a SQL query
If podiums are 26, what's the lowest WChmp?
SELECT MIN WChmp FROM table WHERE Podiums = 26
Translate the following into a SQL query
If the class is total, what is the total number of podiums?
SELECT COUNT Podiums FROM table WHERE Class = total
Translate the following into a SQL query
During race 14, what's the podiums?
SELECT MAX Podiums FROM table WHERE Race = 14
Translate the following into a SQL query
What Call sign has a City of license of higgston, ga?
SELECT Call sign FROM table WHERE City of license = higgston, ga
Translate the following into a SQL query
What City of license has a ERP W of 2,000?
SELECT City of license FROM table WHERE ERP W = 2,000
Translate the following into a SQL query
What is the Class where City of license is lake oconee, ga?
SELECT Class FROM table WHERE City of license = lake oconee, ga
Translate the following into a SQL query
What chassis has 2012 as the year?
SELECT Chassis FROM table WHERE Year = 2012
Translate the following into a SQL query
What engine has a start less than 7, and 23 as a finish?
SELECT Engine FROM table WHERE Start < 7 AND Finish = 23
Translate the following into a SQL query
What is the average finish that has a start greater than 3, with honda as the engine, and 2011 as the year?
SELECT AVG Finish FROM table WHERE Start > 3 AND Engine = honda AND Year = 2011
Translate the following into a SQL query
How many starts have a year prior to 2012, and team penske as the team, with a finish greater than 27?
SELECT SUM Start FROM table WHERE Year < 2012 AND Team = team penske AND Finish > 27
Translate the following into a SQL query
What start has a year later than 2010, and chip ganassi racing as the team?
SELECT Start FROM table WHERE Year > 2010 AND Team = chip ganassi racing
Translate the following into a SQL query
Who was the opponent at the Football League Trophy competition?
SELECT Opponents FROM table WHERE Competition = football league trophy
Translate the following into a SQL query
What was the opponent at the League Play Offs at home?
SELECT Opponents FROM table WHERE Venue = home AND Competition = league play offs
Translate the following into a SQL query
What venue held that game against the Queens Park Rangers?
SELECT Venue FROM table WHERE Opponents = queens park rangers