instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What is the registration of the station at Cambridge?
SELECT Registrations FROM table WHERE District = cambridge
Translate the following into a SQL query
What is the location of the station at Huntingdonshire with a station number of c17?
SELECT Location FROM table WHERE District = huntingdonshire AND Station Number = c17
Translate the following into a SQL query
What is the registration of the station with a retained type and a station number of c03?
SELECT Registrations FROM table WHERE Type = retained AND Station Number = c03
Translate the following into a SQL query
Name the nationality of the player with round more than 4
SELECT Nationality FROM table WHERE Round > 4
Translate the following into a SQL query
In what Year was the Rank 14.0 14?
SELECT SUM Year FROM table WHERE Rank = 14.0 14
Translate the following into a SQL query
After 1971, what is the Rank with a Height ft (m) of 19.0 477 (145) and less than 35 Floors?
SELECT Rank FROM table WHERE Year > 1971 AND Floors < 35 AND Height ft (m) = 19.0 477 (145)
Translate the following into a SQL query
What Year has a Rank of 12.0 12?
SELECT AVG Year FROM table WHERE Rank = 12.0 12
Translate the following into a SQL query
Which crowd has an Away team score of 8.10 (58)?
SELECT Crowd FROM table WHERE Away team score = 8.10 (58)
Translate the following into a SQL query
Which away team had a score of 17.13 (115)?
SELECT Away team FROM table WHERE Away team score = 17.13 (115)
Translate the following into a SQL query
What did the away team score at VFL Park?
SELECT Away team score FROM table WHERE Venue = vfl park
Translate the following into a SQL query
How many people watched the game at Lake Oval?
SELECT SUM Crowd FROM table WHERE Venue = lake oval
Translate the following into a SQL query
Where did the home team score 15.21 (111)?
SELECT Venue FROM table WHERE Home team score = 15.21 (111)
Translate the following into a SQL query
What was the Comp average, having Gino Guidugli as a player and a rating of more than 92.2?
SELECT AVG Comp FROM table WHERE Player = gino guidugli AND Rating > 92.2
Translate the following into a SQL query
For the player with yards less than 138, and Comp more than 0, what was the highest Att.?
SELECT MAX Att. FROM table WHERE Yards < 138 AND Comp > 0
Translate the following into a SQL query
How many laps for grid of 9?
SELECT Laps FROM table WHERE Grid = 9
Translate the following into a SQL query
What is the high lap total for a grid less than 6, and a Time/Retired of halfshaft?
SELECT MAX Laps FROM table WHERE Grid < 6 AND Time/Retired = halfshaft
Translate the following into a SQL query
What is the Set 1 with a Score with 3–2?
SELECT Set 1 FROM table WHERE Score = 3–2
Translate the following into a SQL query
What is the Set 1 with a Set 2 of 15–5, and a Set 3 with 15–3?
SELECT Set 1 FROM table WHERE Set 2 = 15–5 AND Set 3 = 15–3
Translate the following into a SQL query
What is the Date with a Set 1 with 15–1?
SELECT Date FROM table WHERE Set 1 = 15–1
Translate the following into a SQL query
What is the Set 3 with a Date of 04 oct, and a Set 2 with 15–5?
SELECT Set 3 FROM table WHERE Date = 04 oct AND Set 2 = 15–5
Translate the following into a SQL query
What is the Set 3 with a Set 2 with 15–6?
SELECT Set 3 FROM table WHERE Set 2 = 15–6
Translate the following into a SQL query
What is the Set 2 with a Total of 45–12, and a Set 3 with 15–2?
SELECT Set 2 FROM table WHERE Total = 45–12 AND Set 3 = 15–2
Translate the following into a SQL query
What was the grid associated with under 26 laps and a Time/Retired of +6.077?
SELECT AVG Grid FROM table WHERE Time/Retired = +6.077 AND Laps < 26
Translate the following into a SQL query
On 5 May 2011, what was the lead percentage?
SELECT Lead FROM table WHERE Date(s) conducted = 5 may 2011
Translate the following into a SQL query
On what date was the lead 8.6%?
SELECT Date(s) conducted FROM table WHERE Lead = 8.6%
Translate the following into a SQL query
what is the lifespan when the imperial height is 7ft 8 in and the nationality is fiji?
SELECT Lifespan FROM table WHERE Imperial = 7ft 8 in AND Nationality = fiji
Translate the following into a SQL query
what is the nationality with the metric height of 2.36m named sun ming-ming?
SELECT Nationality FROM table WHERE Metric = 2.36m AND Name = sun ming-ming
Translate the following into a SQL query
What is the grid total that had a retired for engine, teo fabi driving, and under 39 laps?
SELECT SUM Grid FROM table WHERE Time/Retired = engine AND Driver = teo fabi AND Laps < 39
Translate the following into a SQL query
What is the average grid for johnny dumfries with less than 8 laps?
SELECT AVG Grid FROM table WHERE Driver = johnny dumfries AND Laps < 8
Translate the following into a SQL query
What is the low lap total for minardi - motori moderni, and a Grid smaller than 18?
SELECT MIN Laps FROM table WHERE Constructor = minardi - motori moderni AND Grid < 18
Translate the following into a SQL query
What constructor has a 12 grid?
SELECT Constructor FROM table WHERE Grid = 12
Translate the following into a SQL query
What is the average where the swimsuit is larger than 9.437?
SELECT MAX Average FROM table WHERE Swimsuit > 9.437
Translate the following into a SQL query
What is the evening gown score where the interview score is 9.22 and the preliminaries are larger than 9.057?
SELECT SUM Evening Gown FROM table WHERE Interview = 9.22 AND Preliminaries > 9.057
Translate the following into a SQL query
What is Pennsylvania's average where the swimsuit is smaller than 9.109 and the evening gown is smaller than 9.163?
SELECT AVG Average FROM table WHERE Swimsuit < 9.109 AND Country = pennsylvania AND Evening Gown < 9.163
Translate the following into a SQL query
What is the preliminaries score where the swimsuit is smaller than 9.297, the evening gown is 9.617, and the interview is larger than 9.143?
SELECT AVG Preliminaries FROM table WHERE Swimsuit < 9.297 AND Evening Gown = 9.617 AND Interview > 9.143
Translate the following into a SQL query
For Amazon.com's device with a weight of 221g (7.8oz) how many screen pixels does the device have?
SELECT Screen pixels FROM table WHERE Maker = amazon.com AND Weight = 221g (7.8oz)
Translate the following into a SQL query
How many 5K wins did Lynn Jennings, who had more than 0 10K wins, have?
SELECT SUM 5K Wins FROM table WHERE 10K Wins > 0 AND Runner = lynn jennings
Translate the following into a SQL query
What is the average 10K wins the United States, which had 0 5K wins, have?
SELECT AVG 10K Wins FROM table WHERE Country = united states AND 5K Wins = 0
Translate the following into a SQL query
How many 5K wins did Emily Chebet, who had more than 2 total, have?
SELECT SUM 5K Wins FROM table WHERE Runner = emily chebet AND Total > 2
Translate the following into a SQL query
How many 5K wins did Emily Chebet, who had more than 2 total, have?
SELECT COUNT 5K Wins FROM table WHERE Runner = emily chebet AND Total > 2
Translate the following into a SQL query
What is the largest number of Peak lessons taught when the Evaluation average (Before April 2009) was 4.4?
SELECT MAX Peak lessons taught FROM table WHERE Evaluation average (Before April 2009) = 4.4
Translate the following into a SQL query
What is the mean Evaluation number (before April 2009) when the Peak lessons taught was less than 80 and the negative percentage of evaluations was 0.8%?
SELECT Evaluation average (Before April 2009) FROM table WHERE Peak lessons taught < 80 AND % of negative evaluations = 0.8%
Translate the following into a SQL query
What is the mean Evaluation number (Before April 2009) when the percentage of negative evaluations was 0.8% and the mean Evaluation number of April 2009 was 4.2?
SELECT Evaluation average (Before April 2009) FROM table WHERE % of negative evaluations = 0.8% AND Evaluation average (From April 2009) = 4.2
Translate the following into a SQL query
Which venue has an Away team score of 18.9 (117)?
SELECT Venue FROM table WHERE Away team score = 18.9 (117)
Translate the following into a SQL query
What date has a Home team score of 7.11 (53)?
SELECT Date FROM table WHERE Home team score = 7.11 (53)
Translate the following into a SQL query
What is moorabbin oval's away team?
SELECT Away team FROM table WHERE Venue = moorabbin oval
Translate the following into a SQL query
What is the home score with an Away team score of 10.14 (74)?
SELECT Home team score FROM table WHERE Away team score = 10.14 (74)
Translate the following into a SQL query
What is Karl Wendlinger's total grid #?
SELECT COUNT Grid FROM table WHERE Driver = karl wendlinger
Translate the following into a SQL query
Which away team score also had a home team score of 20.20 (140)?
SELECT Away team score FROM table WHERE Home team score = 20.20 (140)
Translate the following into a SQL query
Which Home team score had a Home team of Fitzroy?
SELECT Home team score FROM table WHERE Home team = fitzroy
Translate the following into a SQL query
Who was replaced by Lieve Wierinck?
SELECT Name FROM table WHERE Replacement = lieve wierinck
Translate the following into a SQL query
Name the sum of gross tonnage for wood on date more tahn 1846 for comissioned and ship of esk
SELECT SUM Gross Tonnage FROM table WHERE Material = wood AND Date Commissioned > 1846 AND Ship = esk
Translate the following into a SQL query
Tell me the sum of Gross Tonnage for isis ship on date commisioned less than 1842
SELECT SUM Gross Tonnage FROM table WHERE Ship = isis AND Date Commissioned < 1842
Translate the following into a SQL query
Tell me the lowest date commissioned for iron rmsrhone and gross tonnage less than 2,738
SELECT MIN Date Commissioned FROM table WHERE Material = iron AND Ship = rmsrhone AND Gross Tonnage < 2,738
Translate the following into a SQL query
Name the height for 2008 club of trentino volley
SELECT Height FROM table WHERE 2008 club = trentino volley
Translate the following into a SQL query
Who was in the 2008 club of gabeca montichiari?
SELECT Name FROM table WHERE 2008 club = gabeca montichiari
Translate the following into a SQL query
What Constructor has a +1.027 Time/Retired?
SELECT Constructor FROM table WHERE Time/Retired = +1.027
Translate the following into a SQL query
What Constructor has 56 Laps?
SELECT Constructor FROM table WHERE Laps = 56
Translate the following into a SQL query
What Driver has 28 Laps and a Grid greater than 5?
SELECT Driver FROM table WHERE Grid > 5 AND Laps = 28
Translate the following into a SQL query
What is the highest Laps with a Time/Retired Wheel?
SELECT MAX Laps FROM table WHERE Time/Retired = wheel
Translate the following into a SQL query
What Driver has a +1.027 Time/Retired?
SELECT Driver FROM table WHERE Time/Retired = +1.027
Translate the following into a SQL query
What game has a score of 44-20?
SELECT Result FROM table WHERE Score = 44-20
Translate the following into a SQL query
What date was a game played at Headingley Stadium?
SELECT Date FROM table WHERE Venue = headingley stadium
Translate the following into a SQL query
What competition was played at Shay Stadium?
SELECT Competition FROM table WHERE Venue = shay stadium
Translate the following into a SQL query
Which show had a part 3 before 2011?
SELECT Show FROM table WHERE Year < 2011 AND Episode title = part 3
Translate the following into a SQL query
What are the male Bounder books?
SELECT Books FROM table WHERE Gender = male AND Animal Name = bounder
Translate the following into a SQL query
How many people attended on April 12?
SELECT COUNT Attendance FROM table WHERE Date = april 12
Translate the following into a SQL query
On what date were 5 built with 4-4-2t wheels?
SELECT Date FROM table WHERE No. built = 5 AND Wheels = 4-4-2t
Translate the following into a SQL query
On what date was the number of locomotives 421-6?
SELECT Date FROM table WHERE Loco Nos. = 421-6
Translate the following into a SQL query
How many were built with a locomotive number of 11-20?
SELECT No. built FROM table WHERE Loco Nos. = 11-20
Translate the following into a SQL query
On what date were more than 5 built with 4-4-2 wheels?
SELECT Date FROM table WHERE Wheels = 4-4-2 AND No. built > 5
Translate the following into a SQL query
On what date were less than 10 built with a locomotive number of 31-35?
SELECT Date FROM table WHERE No. built < 10 AND Loco Nos. = 31-35
Translate the following into a SQL query
How many spectators watched when the away team was Collingwood?
SELECT Crowd FROM table WHERE Away team = collingwood
Translate the following into a SQL query
What did Essendon score when they were the away team?
SELECT Away team score FROM table WHERE Away team = essendon
Translate the following into a SQL query
When did the home team score 19.17 (131)?
SELECT Date FROM table WHERE Home team score = 19.17 (131)
Translate the following into a SQL query
Who was the home team at Brunswick Street Oval?
SELECT Home team FROM table WHERE Venue = brunswick street oval
Translate the following into a SQL query
What was South Melbourne's away team score?
SELECT Away team score FROM table WHERE Away team = south melbourne
Translate the following into a SQL query
Who was the away team at Brunswick Street Oval?
SELECT Away team score FROM table WHERE Venue = brunswick street oval
Translate the following into a SQL query
Tell me the lowest height for class of hewitt and prom less than 148
SELECT MIN Height (m) FROM table WHERE Class = hewitt AND Prom. (m) < 148
Translate the following into a SQL query
Tell me the total number of prom for height less than 615
SELECT COUNT Prom. (m) FROM table WHERE Height (m) < 615
Translate the following into a SQL query
I want to know the peak which is prom less than 147 and height less than 619
SELECT Peak FROM table WHERE Prom. (m) < 147 AND Height (m) < 619
Translate the following into a SQL query
Tell me the peak for prom being less than 147
SELECT Peak FROM table WHERE Prom. (m) < 147
Translate the following into a SQL query
Tell me the lowest prom for class of hewitt and peak of cushat law and height more than 615
SELECT MIN Prom. (m) FROM table WHERE Class = hewitt AND Peak = cushat law AND Height (m) > 615
Translate the following into a SQL query
Name the peak for height more than 619 and class of hewitt with prom being 148
SELECT Peak FROM table WHERE Height (m) > 619 AND Class = hewitt AND Prom. (m) = 148
Translate the following into a SQL query
What is the percentage democrats with 2/4 democrat/republican?
SELECT Percentage Democrats FROM table WHERE Democratic/ Republican = 2/4
Translate the following into a SQL query
What is the percentage democrats with democratic plurality of -3, and 2/5 democrat/republican?
SELECT Percentage Democrats FROM table WHERE Democratic seat plurality = -3 AND Democratic/ Republican = 2/5
Translate the following into a SQL query
What is the percent of republicans with 7/6 democrat/republican?
SELECT Percentage Republicans FROM table WHERE Democratic/ Republican = 7/6
Translate the following into a SQL query
What is the democratic seat plurality with 29% democrat?
SELECT Democratic seat plurality FROM table WHERE Percentage Democrats = 29%
Translate the following into a SQL query
What is the democratic seat plurality with partisan order of New Hampshire?
SELECT Democratic seat plurality FROM table WHERE State ranked in partisan order = new hampshire
Translate the following into a SQL query
What is the score of the game with Pacers as the Visitor?
SELECT Score FROM table WHERE Visitor = pacers
Translate the following into a SQL query
Who was Home on December 5, 2007?
SELECT Home FROM table WHERE Date = december 5, 2007
Translate the following into a SQL query
What is the Japanese orthography for the abbreviation of ndmc?
SELECT Japanese orthography FROM table WHERE abbreviation = ndmc
Translate the following into a SQL query
What is the english name of the ministry of defense with an abbreviation of nda bōei-dai(防衛大)?
SELECT English Name FROM table WHERE Provider(national government) = ministry of defense AND abbreviation = nda bōei-dai(防衛大)
Translate the following into a SQL query
What did the team score when playing at home in victoria park?
SELECT Home team score FROM table WHERE Venue = victoria park
Translate the following into a SQL query
What was the top crowd when the away team scored 11.14 (80)?
SELECT MAX Crowd FROM table WHERE Away team score = 11.14 (80)
Translate the following into a SQL query
What did st kilda score at home?
SELECT Home team score FROM table WHERE Home team = st kilda
Translate the following into a SQL query
What was the top crowd when collingwood played home?
SELECT MAX Crowd FROM table WHERE Home team = collingwood
Translate the following into a SQL query
Which team plays home in western oval venue?
SELECT Home team FROM table WHERE Venue = western oval
Translate the following into a SQL query
When the driver is innes ireland and they drove under 53 laps, what was the Time/Retired?
SELECT Time/Retired FROM table WHERE Laps < 53 AND Driver = innes ireland
Translate the following into a SQL query
How many laps does peter arundell have?
SELECT Laps FROM table WHERE Driver = peter arundell