instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What is the fleet number of the locomotive with 1 quantity made?
SELECT Fleet number(s) FROM table WHERE Quantity made = 1
Translate the following into a SQL query
In games where st kilda was the away team, what was the smallest crowd?
SELECT MIN Crowd FROM table WHERE Away team = st kilda
Translate the following into a SQL query
In fitzroy's match where they were the home team, how much did they score?
SELECT Home team score FROM table WHERE Home team = fitzroy
Translate the following into a SQL query
What was the score for the home team who plays their matches at the mcg venue?
SELECT Home team score FROM table WHERE Venue = mcg
Translate the following into a SQL query
Which player has the lowest earnings and has at least 4 wins and is ranked higher than 4?
SELECT MIN Earnings( $ ) FROM table WHERE Wins = 4 AND Rank > 4
Translate the following into a SQL query
How many wins do the players that earned more than 720,134 have?
SELECT SUM Wins FROM table WHERE Earnings( $ ) > 720,134
Translate the following into a SQL query
Who is the highest ranked player that has earnings below 395,386?
SELECT MAX Rank FROM table WHERE Earnings( $ ) < 395,386
Translate the following into a SQL query
What player has earnings above 358,770 and a rank smaller than 2?
SELECT Player FROM table WHERE Earnings( $ ) > 358,770 AND Rank < 2
Translate the following into a SQL query
In what Game did Rams Points equal 0?
SELECT Game FROM table WHERE Rams points = 0
Translate the following into a SQL query
What Opponent has a 6-0 Record?
SELECT Opponent FROM table WHERE Record = 6-0
Translate the following into a SQL query
What is the sum of the interview scores from North Dakota that have averages less than 8.697, evening gown scores less than 8.73, and swimsuit scores greater than 8.41?
SELECT SUM Interview FROM table WHERE Average < 8.697 AND Evening gown < 8.73 AND State = north dakota AND Swimsuit > 8.41
Translate the following into a SQL query
What is the sum of the swimsuit scores from Missouri that have evening gown scores less than 8.77 and average scores less than 8.823?
SELECT SUM Swimsuit FROM table WHERE Evening gown < 8.77 AND State = missouri AND Average < 8.823
Translate the following into a SQL query
What is the total number of swimsuit scores that have average scores less than 8.823, evening gown scores less than 8.69, and interview scores equal to 8.27?
SELECT COUNT Swimsuit FROM table WHERE Average < 8.823 AND Evening gown < 8.69 AND Interview = 8.27
Translate the following into a SQL query
What is the lowest swimsuit score where the contestant scored less than 8.56 in the interview and greater than 8.54 in the evening gown?
SELECT MIN Swimsuit FROM table WHERE Interview < 8.56 AND Evening gown > 8.54
Translate the following into a SQL query
What is the sum of the evening gown scores where the interview score is less than 8.77, the swimsuit score is equal to 7.8, and the average score is less than 8.2?
SELECT SUM Evening gown FROM table WHERE Interview < 8.77 AND Swimsuit = 7.8 AND Average < 8.2
Translate the following into a SQL query
What was the attendance for the game that has a tie number of 13?
SELECT SUM Attendance FROM table WHERE Tie no = 13
Translate the following into a SQL query
What is the average attendance when the Forest Green Rovers is the away team?
SELECT AVG Attendance FROM table WHERE Away team = forest green rovers
Translate the following into a SQL query
What is the grid number for troy corser with under 22 laps?
SELECT SUM Grid FROM table WHERE Rider = troy corser AND Laps < 22
Translate the following into a SQL query
What rider went under 22 laps with grid number 2?
SELECT Rider FROM table WHERE Laps < 22 AND Grid = 2
Translate the following into a SQL query
What country speaks Vietnamese?
SELECT Country/Region FROM table WHERE Languages = vietnamese
Translate the following into a SQL query
What ranking did Team 250cc Honda end up in when it finished a race with a time of 1:27.57.28?
SELECT COUNT Rank FROM table WHERE Team = 250cc honda AND Time = 1:27.57.28
Translate the following into a SQL query
Tell me the constructor for grid of 8
SELECT Constructor FROM table WHERE Grid = 8
Translate the following into a SQL query
I want the total number of Grids for heinz-harald frentzen
SELECT COUNT Grid FROM table WHERE Driver = heinz-harald frentzen
Translate the following into a SQL query
On what date did Fitzroy have a home team score of 8.13 (61)?
SELECT Date FROM table WHERE Home team score = 8.13 (61)
Translate the following into a SQL query
What is the average crowd for the home team of North Melbourne?
SELECT AVG Crowd FROM table WHERE Home team = north melbourne
Translate the following into a SQL query
Who was the visiting team on 12 March 2008?
SELECT Visitor FROM table WHERE Date = 12 march 2008
Translate the following into a SQL query
Who was the home team where Trail Blazers were the visitor?
SELECT Home FROM table WHERE Visitor = trail blazers
Translate the following into a SQL query
In the game on 11 March 2008 with a visiting team of Bucks, who was the home team?
SELECT Home FROM table WHERE Visitor = bucks AND Date = 11 march 2008
Translate the following into a SQL query
How many laps for robin montgomerie-charrington, and a Grid smaller than 15?
SELECT COUNT Laps FROM table WHERE Driver = robin montgomerie-charrington AND Grid < 15
Translate the following into a SQL query
What is the mean number of totals with no silvers and a bronze number less than 0?
SELECT AVG Total FROM table WHERE Silver = 0 AND Bronze < 0
Translate the following into a SQL query
What is the least number of Silvers with a ranking of less than 4 where the bronze number was larger than 9?
SELECT MIN Silver FROM table WHERE Rank < 4 AND Bronze > 9
Translate the following into a SQL query
Which mean rank had a silver number smaller than 0?
SELECT AVG Rank FROM table WHERE Silver < 0
Translate the following into a SQL query
What is the least total number with a rank of 4 and a total silver number bigger than 3?
SELECT MIN Total FROM table WHERE Rank = 4 AND Silver > 3
Translate the following into a SQL query
Name the category for 2nd melon music awards
SELECT Category FROM table WHERE Award = 2nd melon music awards
Translate the following into a SQL query
Name the award won in the hall of fame
SELECT Award FROM table WHERE Result = won AND Category = hall of fame
Translate the following into a SQL query
Name the nomination in 2011 that won
SELECT Nomination FROM table WHERE Year = 2011 AND Result = won
Translate the following into a SQL query
Name the result in 2010 for bgm cyworld
SELECT Result FROM table WHERE Year = 2010 AND Award = bgm cyworld
Translate the following into a SQL query
What is the car # of the Chevrolet that complete 363 laps?
SELECT COUNT Car # FROM table WHERE Make = chevrolet AND Laps = 363
Translate the following into a SQL query
How many points did the driver who won $127,541 driving car #31 get?
SELECT MAX Points FROM table WHERE Winnings = $127,541 AND Car # > 31
Translate the following into a SQL query
What is the english title of the film before 1999 with a role of kim da-rim?
SELECT English title FROM table WHERE Year < 1999 AND Role = kim da-rim
Translate the following into a SQL query
What English title for the Romanization of lee jae-su-eui nan?
SELECT English title FROM table WHERE Romanization = lee jae-su-eui nan
Translate the following into a SQL query
What is the Romanization for my old sweetheart?
SELECT Romanization FROM table WHERE English title = my old sweetheart
Translate the following into a SQL query
What is the English of chae soo-yeon?
SELECT English title FROM table WHERE Role = chae soo-yeon
Translate the following into a SQL query
What is the lowest high position for 10 years of hits, and over 870,000 sales?
SELECT MIN Highest Position FROM table WHERE Album Title = 10 years of hits AND Sales > 870,000
Translate the following into a SQL query
What is the average high position for the album unwritten?
SELECT AVG Highest Position FROM table WHERE Album Title = unwritten
Translate the following into a SQL query
When did the Grand Prix de Monaco race?
SELECT Date FROM table WHERE Race Title = grand prix de monaco
Translate the following into a SQL query
What circuit had 16 rounds?
SELECT Circuit FROM table WHERE Round = 16
Translate the following into a SQL query
Which Grand Prix had 9 rounds?
SELECT Grand Prix FROM table WHERE Round = 9
Translate the following into a SQL query
What is the Base Fare in the senior/disabled category?
SELECT Base Fares FROM table WHERE Fare Categories = senior/disabled
Translate the following into a SQL query
Which 30-day Pass has a Base Fare of $3?
SELECT 30-Day Pass FROM table WHERE Base Fares = $3
Translate the following into a SQL query
What is the length for years 2012-2013?
SELECT Length FROM table WHERE Year = 2012-2013
Translate the following into a SQL query
If length is ft (m) with numbers of 6600-6684 (84 buses) for 2003, what is the engine type?
SELECT Engine Type FROM table WHERE Length = ft (m) AND Year = 2003 AND Numbers = 6600-6684 (84 buses)
Translate the following into a SQL query
For numbers of 2600-2825 (223 buses), what is the length?
SELECT Length FROM table WHERE Numbers = 2600-2825 (223 buses)
Translate the following into a SQL query
What is the lenth of a 2003 Make & Model of nabi 35-lfw?
SELECT Length FROM table WHERE Year = 2003 AND Make & Model = nabi 35-lfw
Translate the following into a SQL query
What is the length for a diesel engine with numbers of tbd (13 buses)?
SELECT Length FROM table WHERE Engine Type = diesel AND Numbers = tbd (13 buses)
Translate the following into a SQL query
What year has a make & model of mci d4000n?
SELECT Year FROM table WHERE Make & Model = mci d4000n
Translate the following into a SQL query
What type has a Date of 8 dec 16, and a Ship of duchess of cornwall?
SELECT Type FROM table WHERE Date = 8 dec 16 AND Ship = duchess of cornwall
Translate the following into a SQL query
Which Nationality has a Tonnage GRT larger than 2,890, and a Ship of mount temple?
SELECT Nationality FROM table WHERE Tonnage GRT > 2,890 AND Ship = mount temple
Translate the following into a SQL query
Which nationality has a Ship of minteh?
SELECT Nationality FROM table WHERE Ship = minteh
Translate the following into a SQL query
What is the total Tonnage GRT with a Type of cargo ship, and a Nationality of norway?
SELECT SUM Tonnage GRT FROM table WHERE Type = cargo ship AND Nationality = norway
Translate the following into a SQL query
Which Date has a Ship of hallbjorg?
SELECT Date FROM table WHERE Ship = hallbjorg
Translate the following into a SQL query
What is the score of set 3 when the total is 45–31?
SELECT Set 3 FROM table WHERE Total = 45–31
Translate the following into a SQL query
What is the score for set 2 when set 3 was 15–6?
SELECT Set 2 FROM table WHERE Set 3 = 15–6
Translate the following into a SQL query
What is the total when the score of set 1 was 15–11?
SELECT Total FROM table WHERE Set 1 = 15–11
Translate the following into a SQL query
What is the total when the score of set 1 is 15–11?
SELECT Total FROM table WHERE Set 1 = 15–11
Translate the following into a SQL query
On what date was the total 25–45?
SELECT Date FROM table WHERE Total = 25–45
Translate the following into a SQL query
What was the score of the Away team when the score of the Home team was 13.14 (92)?
SELECT Away team score FROM table WHERE Home team score = 13.14 (92)
Translate the following into a SQL query
What was St Kilda's score as the Away team?
SELECT Away team score FROM table WHERE Away team = st kilda
Translate the following into a SQL query
At what Venue was the Home team score 17.19 (121)?
SELECT Venue FROM table WHERE Home team score = 17.19 (121)
Translate the following into a SQL query
At the venue Vfl Park, what was the Home team score?
SELECT Home team score FROM table WHERE Venue = vfl park
Translate the following into a SQL query
How many Reg GP does daniel rahimi have with a rd # greater than 3?
SELECT COUNT Reg GP FROM table WHERE Player = daniel rahimi AND Rd # > 3
Translate the following into a SQL query
What is the lowest Pick # with michael grabner and less than 20 Reg GP?
SELECT MIN Pick # FROM table WHERE Player = michael grabner AND Reg GP < 20
Translate the following into a SQL query
Which class has a peak named fountains fell south top?
SELECT Class FROM table WHERE Peak = fountains fell south top
Translate the following into a SQL query
What is the total of Prom in M for Peak great knoutberry hill?
SELECT SUM Prom. (m) FROM table WHERE Peak = great knoutberry hill
Translate the following into a SQL query
What is the average height for hewitt class, with prom less than 86, and a Peak of gragareth?
SELECT AVG Height (m) FROM table WHERE Class = hewitt AND Prom. (m) < 86 AND Peak = gragareth
Translate the following into a SQL query
In which movie is Selva Nambi a co-singer?
SELECT Movie FROM table WHERE Co-Singers = selva nambi
Translate the following into a SQL query
Who was the music director in 1994?
SELECT Music Director FROM table WHERE Year = 1994
Translate the following into a SQL query
What years was Denis Lawson nominated for an award?
SELECT COUNT Year FROM table WHERE Nominee = denis lawson
Translate the following into a SQL query
Did Jason Pennycooke win the award he was nominated for?
SELECT Result FROM table WHERE Nominee = jason pennycooke
Translate the following into a SQL query
How many years was Best Musical Revival nominated?
SELECT COUNT Year FROM table WHERE Nominee = best musical revival
Translate the following into a SQL query
What award was Denis Lawson nominated for in the Best Actor in a Musical category?
SELECT Award FROM table WHERE Category = best actor in a musical AND Nominee = denis lawson
Translate the following into a SQL query
Which opponent has an Outcome of winner, and a Date of 5 november 2011?
SELECT Opponent FROM table WHERE Outcome = winner AND Date = 5 november 2011
Translate the following into a SQL query
Which date has a Score of 4–6, 2–6?
SELECT Date FROM table WHERE Score = 4–6, 2–6
Translate the following into a SQL query
Which date has a Opponent of juan mΓ³naco, and a Score of 6–2, 4–6, 7–6 (7–3)?
SELECT Date FROM table WHERE Opponent = juan mΓ³naco AND Score = 6–2, 4–6, 7–6 (7–3)
Translate the following into a SQL query
Which outcome has a Opponent of fernando verdasco?
SELECT Outcome FROM table WHERE Opponent = fernando verdasco
Translate the following into a SQL query
Which surface has an Opponent of fernando verdasco?
SELECT Surface FROM table WHERE Opponent = fernando verdasco
Translate the following into a SQL query
Which surface has a Date of 5 november 2011?
SELECT Surface FROM table WHERE Date = 5 november 2011
Translate the following into a SQL query
When the Venue was mcg what was the sum of all Crowds for that venue?
SELECT SUM Crowd FROM table WHERE Venue = mcg
Translate the following into a SQL query
If the Away team is essendon, what was the Date they played?
SELECT Date FROM table WHERE Away team = essendon
Translate the following into a SQL query
On what Date did the Away team essendon play?
SELECT Date FROM table WHERE Away team = essendon
Translate the following into a SQL query
When the Home team was north melbourne what was the Date of the game?
SELECT Date FROM table WHERE Home team = north melbourne
Translate the following into a SQL query
What was the record as of September 1?
SELECT Record FROM table WHERE Date = september 1
Translate the following into a SQL query
What was the losing score on September 1?
SELECT Loss FROM table WHERE Date = september 1
Translate the following into a SQL query
What is the 1988 value when the 1987 value was 1r?
SELECT 1988 FROM table WHERE 1987 = 1r
Translate the following into a SQL query
What is the 1981 value at the Tournament of Wimbledon?
SELECT 1981 FROM table WHERE Tournament = wimbledon
Translate the following into a SQL query
What is the name of the rollercoaster that opened in 2004 in bobbejaanland?
SELECT Name FROM table WHERE Opened = 2004 AND Park = bobbejaanland
Translate the following into a SQL query
What is the status of the junior coaster model that opened in 2008?
SELECT Status FROM table WHERE Opened = 2008 AND Model = junior coaster
Translate the following into a SQL query
What is the model for Thor's Hammer which is listed as operating?
SELECT Model FROM table WHERE Status = operating AND Name = thor's hammer
Translate the following into a SQL query
What is the name of the coaster that opened in 2011 and is a euro-fighter model?
SELECT Name FROM table WHERE Model = euro-fighter AND Opened = 2011
Translate the following into a SQL query
Which driver won the iv j.c.c. jersey road race?
SELECT Winning driver FROM table WHERE Race Name = iv j.c.c. jersey road race