instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What is the score of the game played on February 18?
|
SELECT Score FROM table WHERE Date = february 18
|
Translate the following into a SQL query
|
Who was the home team that played against the Boston Bruins on January 11?
|
SELECT Home FROM table WHERE Visitor = boston bruins AND Date = january 11
|
Translate the following into a SQL query
|
Name the sum of year for olimpija ljubljana with height less than 2.04
|
SELECT SUM Year born FROM table WHERE Current Club = olimpija ljubljana AND Height < 2.04
|
Translate the following into a SQL query
|
Name the position with height of 2.09
|
SELECT Position FROM table WHERE Height = 2.09
|
Translate the following into a SQL query
|
What was the attendance at the ballpark during the game where the Blue Jays had a record of 26-35 during the 1996 season?
|
SELECT COUNT Attendance FROM table WHERE Record = 26-35
|
Translate the following into a SQL query
|
What nominated work received a tony award in 2009?
|
SELECT Nominated Work FROM table WHERE Award = tony award AND Year = 2009
|
Translate the following into a SQL query
|
What result in the table is from the year 2012?
|
SELECT Result FROM table WHERE Year = 2012
|
Translate the following into a SQL query
|
Name the 2011 with 2010 of 2r
|
SELECT 2011 FROM table WHERE 2010 = 2r
|
Translate the following into a SQL query
|
Name the 2012 when 2011 is qf
|
SELECT 2012 FROM table WHERE 2011 = qf
|
Translate the following into a SQL query
|
Name the 2012 for 2011 being 1r
|
SELECT 2012 FROM table WHERE 2011 = 1r
|
Translate the following into a SQL query
|
Name the 2012 for 2011 being qf
|
SELECT 2012 FROM table WHERE 2011 = qf
|
Translate the following into a SQL query
|
Name the 2008 for 2012 f
|
SELECT 2008 FROM table WHERE 2012 = f
|
Translate the following into a SQL query
|
What is the location of the match on February 29, 2012?
|
SELECT Location FROM table WHERE Date = february 29, 2012
|
Translate the following into a SQL query
|
What is the score of the match on November 15, 2011?
|
SELECT Score FROM table WHERE Date = november 15, 2011
|
Translate the following into a SQL query
|
How many races were in the Mallala Motor Sport Park circuit?
|
SELECT COUNT Race FROM table WHERE Circuit = mallala motor sport park
|
Translate the following into a SQL query
|
What was the first race in Launceston, Tasmania?
|
SELECT MIN Race FROM table WHERE Location / State = launceston, tasmania
|
Translate the following into a SQL query
|
Name the 2nd leg for team 1 of hamburg
|
SELECT 2nd leg FROM table WHERE Team 1 = hamburg
|
Translate the following into a SQL query
|
Name the role for mono studio and title of paradise canyon
|
SELECT Role FROM table WHERE Studio = mono AND Title = paradise canyon
|
Translate the following into a SQL query
|
Name the title for marion burns leading lady and role of john mason
|
SELECT Title FROM table WHERE Leading lady = marion burns AND Role = john mason
|
Translate the following into a SQL query
|
Name the role for studio of rep with sheila mannors leading lady and title of westward ho
|
SELECT Role FROM table WHERE Studio = rep AND Leading lady = sheila mannors AND Title = westward ho
|
Translate the following into a SQL query
|
Name the studio for john scott
|
SELECT Studio FROM table WHERE Role = john scott
|
Translate the following into a SQL query
|
What is the amount of 000s from 1996?
|
SELECT SUM Total (000s) FROM table WHERE Year = 1996
|
Translate the following into a SQL query
|
What was the amount of 000s when Germany had 16.6?
|
SELECT Total (000s) FROM table WHERE Germany = 16.6
|
Translate the following into a SQL query
|
Name the average concacaf for merconorte larger than 0 and player of jared borgetti
|
SELECT AVG Concacaf FROM table WHERE Merconorte > 0 AND Player = jared borgetti AND Superliga > 0
|
Translate the following into a SQL query
|
Name the least merconorte for interliga of 2 and matches more than 260 with superliga more than 7
|
SELECT MIN Merconorte FROM table WHERE InterLiga = 2 AND Matches > 260 AND Superliga > 7
|
Translate the following into a SQL query
|
What was the outcome for the match that ended in a score of 5–7, 6–4, [10–7]?
|
SELECT Outcome FROM table WHERE Score in final = 5–7, 6–4, [10–7]
|
Translate the following into a SQL query
|
What was the surface of the match that ended in a score of 5–7, 6–4, [10–7]?
|
SELECT Surface FROM table WHERE Score in final = 5–7, 6–4, [10–7]
|
Translate the following into a SQL query
|
Who were the opponents in the match or matches that ended in a score of W/O?
|
SELECT Opponents in final FROM table WHERE Score in final = w/o
|
Translate the following into a SQL query
|
What kind of Chassis supports a Maserati Straight-6 engine with Points greater than 0 and built in the year 1955?
|
SELECT Chassis FROM table WHERE Engine = maserati straight-6 AND Points > 0 AND Year = 1955
|
Translate the following into a SQL query
|
What kind of Chassis supports an Equipe Gordini Entrant?
|
SELECT Chassis FROM table WHERE Entrant = equipe gordini
|
Translate the following into a SQL query
|
What kind of Entrant has a Maserati Straight-6 Engine, built in the year 1958 or early, and has a Maserati 250f Chassis with points less than 4?
|
SELECT Entrant FROM table WHERE Engine = maserati straight-6 AND Year < 1958 AND Chassis = maserati 250f AND Points < 4
|
Translate the following into a SQL query
|
What is the average year for Maserati Straight-4 Engines?
|
SELECT AVG Year FROM table WHERE Engine = maserati straight-4
|
Translate the following into a SQL query
|
Name the sum of ERP W for class of d and frequency mhz of 98.7
|
SELECT SUM ERP W FROM table WHERE Class = d AND Frequency MHz = 98.7
|
Translate the following into a SQL query
|
Name the ERP W with a frequency mhz more than 93.3 and city license of washington, georgia
|
SELECT ERP W FROM table WHERE Frequency MHz > 93.3 AND City of license = washington, georgia
|
Translate the following into a SQL query
|
Which record has a result of loss in the Hero's 3 event?
|
SELECT Record FROM table WHERE Res. = loss AND Event = hero's 3
|
Translate the following into a SQL query
|
Which event led to a 4-0 record?
|
SELECT Event FROM table WHERE Record = 4-0
|
Translate the following into a SQL query
|
Which location led to a 10-3 record?
|
SELECT Location FROM table WHERE Record = 10-3
|
Translate the following into a SQL query
|
In the match against Masahiro Oishi, what was the record?
|
SELECT Record FROM table WHERE Opponent = masahiro oishi
|
Translate the following into a SQL query
|
What is the fewest number of points for clubs with less than 2 draws and more than 8 matches played?
|
SELECT MIN Points FROM table WHERE Drawn < 2 AND Played > 8
|
Translate the following into a SQL query
|
What is the fewest drawn matches for teams with 2 points and fewer than 6 losses?
|
SELECT MIN Drawn FROM table WHERE Points = 2 AND Lost < 6
|
Translate the following into a SQL query
|
What is the most number of losses for Quetta Zorawar?
|
SELECT MAX Lost FROM table WHERE Team = quetta zorawar
|
Translate the following into a SQL query
|
What is the sum of the drawn values for teams with 2 losses?
|
SELECT SUM Drawn FROM table WHERE Lost = 2
|
Translate the following into a SQL query
|
which round has a margin of 178?
|
SELECT Round FROM table WHERE Margin = 178
|
Translate the following into a SQL query
|
Name the average total for gold less than 1 and rank less than 5
|
SELECT AVG Total FROM table WHERE Gold < 1 AND Rank < 5
|
Translate the following into a SQL query
|
Name the sum of silver when total is mor ethan 1, bronze is 1 and gold is les than 0
|
SELECT SUM Silver FROM table WHERE Total > 1 AND Bronze = 1 AND Gold < 0
|
Translate the following into a SQL query
|
Name the most gold when bronze is more than 0 and rank is more than 5 with total more than 2
|
SELECT MAX Gold FROM table WHERE Bronze > 0 AND Rank > 5 AND Total > 2
|
Translate the following into a SQL query
|
Name the average bronze with silver more than 0, total of 6 and gold more than 0
|
SELECT AVG Bronze FROM table WHERE Silver > 0 AND Total = 6 AND Gold > 0
|
Translate the following into a SQL query
|
Name the sum of total with gold more than 1 and bronze more than 0
|
SELECT SUM Total FROM table WHERE Gold > 1 AND Bronze > 0
|
Translate the following into a SQL query
|
What country did Jonas Geirnaert direct a film in?
|
SELECT Country FROM table WHERE Director(s) = jonas geirnaert
|
Translate the following into a SQL query
|
What Nominating Festival took place in Germany?
|
SELECT Nominating Festival FROM table WHERE Country = germany
|
Translate the following into a SQL query
|
What is the category of the film made in Switzerland?
|
SELECT Category FROM table WHERE Country = switzerland
|
Translate the following into a SQL query
|
What film was directed by Sandro Aguilar?
|
SELECT Film FROM table WHERE Director(s) = sandro aguilar
|
Translate the following into a SQL query
|
Name the language that has number of 14
|
SELECT Language FROM table WHERE Number = 14
|
Translate the following into a SQL query
|
Name the number which has language of other
|
SELECT Number FROM table WHERE Language = other
|
Translate the following into a SQL query
|
Tell me the average goals for losses of 19 and goals against more than 59
|
SELECT AVG Goals for FROM table WHERE Losses = 19 AND Goals against > 59
|
Translate the following into a SQL query
|
Name the average position when the goals against are more than 42 and draws less than 16 with goals of 44
|
SELECT AVG Position FROM table WHERE Goals against > 42 AND Goals for = 44 AND Draws < 16
|
Translate the following into a SQL query
|
Which regular season was 2013 in?
|
SELECT Regular Season FROM table WHERE Year = 2013
|
Translate the following into a SQL query
|
What year did the team make conference semifinals?
|
SELECT COUNT Year FROM table WHERE Playoffs = conference semifinals
|
Translate the following into a SQL query
|
What's the name of a subdivision in Denmark ranked less than 24 with an area greater than 1,420,968?
|
SELECT Subdivision name FROM table WHERE Rank < 24 AND Area (km²) > 1,420,968 AND Country = denmark
|
Translate the following into a SQL query
|
What's the smallest area in Russia that is ranked 23 with a population more than 522,800?
|
SELECT MIN Area (km²) FROM table WHERE Country = russia AND Rank = 23 AND Population > 522,800
|
Translate the following into a SQL query
|
On the date of June 8 what was the record?
|
SELECT Record FROM table WHERE Date = june 8
|
Translate the following into a SQL query
|
On the date of June 15 what was the score?
|
SELECT Score FROM table WHERE Date = june 15
|
Translate the following into a SQL query
|
What College/junior/club had a player of United States nationality drafted by the Toronto Maple Leafs?
|
SELECT College/junior/club team FROM table WHERE NHL team = toronto maple leafs AND Nationality = united states
|
Translate the following into a SQL query
|
What is the college/junior/club team of the defence player drafted by the New York Rangers?
|
SELECT College/junior/club team FROM table WHERE NHL team = new york rangers AND Position = defence
|
Translate the following into a SQL query
|
What is the rank of the cadillac northstar lmp02 chassis?
|
SELECT Rank FROM table WHERE Chassis = cadillac northstar lmp02
|
Translate the following into a SQL query
|
What is the entrant for the audi 3.6l turbo v8 engine and ranked 3rd with 163 points?
|
SELECT Entrant FROM table WHERE Engine = audi 3.6l turbo v8 AND Rank = 3rd AND Points = 163
|
Translate the following into a SQL query
|
What is the rank with more than 123 points, an audi r8 chassis, and a lmp900 class?
|
SELECT Rank FROM table WHERE Points > 123 AND Chassis = audi r8 AND Class = lmp900
|
Translate the following into a SQL query
|
What is the engine for the bmw motorsport entrant with 123 points before 2004?
|
SELECT Engine FROM table WHERE Year < 2004 AND Entrant = bmw motorsport AND Points = 123
|
Translate the following into a SQL query
|
Which points have a Combined elapsed time of 175d 20h 46m 04s?
|
SELECT Points FROM table WHERE Combined elapsed time = 175d 20h 46m 04s
|
Translate the following into a SQL query
|
Which yacht name has a Combined elapsed time of 179d 11h 58m 14s?
|
SELECT Yacht name FROM table WHERE Combined elapsed time = 179d 11h 58m 14s
|
Translate the following into a SQL query
|
Which skipper has 78 points?
|
SELECT Skipper FROM table WHERE Points = 78
|
Translate the following into a SQL query
|
Which points have an Overall place of 9=, and a Skipper of nick fenton?
|
SELECT Points FROM table WHERE Overall place = 9= AND Skipper = nick fenton
|
Translate the following into a SQL query
|
Which Overall place has a Yacht name of lg flatron?
|
SELECT Overall place FROM table WHERE Yacht name = lg flatron
|
Translate the following into a SQL query
|
Which Combined elapsed time has a Skipper of stephen wilkins?
|
SELECT Combined elapsed time FROM table WHERE Skipper = stephen wilkins
|
Translate the following into a SQL query
|
Before the year 1988, what is the lowest number of points that entrant Coloni SpA scored?
|
SELECT MIN Points FROM table WHERE Entrant = coloni spa AND Year < 1988
|
Translate the following into a SQL query
|
Which chassis used by the entrant Automobiles Gonfaronnaises Sportives scored 0 points?
|
SELECT Chassis FROM table WHERE Points = 0 AND Entrant = automobiles gonfaronnaises sportives
|
Translate the following into a SQL query
|
Who was the entrant before 1988?
|
SELECT Entrant FROM table WHERE Year < 1988
|
Translate the following into a SQL query
|
Which engine was used in 1987?
|
SELECT Engine FROM table WHERE Year = 1987
|
Translate the following into a SQL query
|
What league did they play in 2001?
|
SELECT League FROM table WHERE Year = 2001
|
Translate the following into a SQL query
|
What open cup did they play in when they finished 2nd, northeast in the reg. season?
|
SELECT Open Cup FROM table WHERE Reg. Season = 2nd, northeast
|
Translate the following into a SQL query
|
What is the week with a date of October 9, 1983, and attendance smaller than 40,492?
|
SELECT COUNT Week FROM table WHERE Date = october 9, 1983 AND Attendance < 40,492
|
Translate the following into a SQL query
|
What is the lowest attendance with week 14?
|
SELECT MIN Attendance FROM table WHERE Week = 14
|
Translate the following into a SQL query
|
Where did the Oakland Raiders play in week 12 of their 1976 season?
|
SELECT Game site FROM table WHERE Week = 12
|
Translate the following into a SQL query
|
How many years did Barclay Nordica Arrows BMW enter with Cosworth v8 engine?
|
SELECT SUM Year FROM table WHERE Entrant = barclay nordica arrows bmw AND Engine = cosworth v8
|
Translate the following into a SQL query
|
How many years did barclay nordica arrows bmw enter with a bmw str-4 t/c engine with less than 1 point?
|
SELECT SUM Year FROM table WHERE Engine = bmw str-4 t/c AND Entrant = barclay nordica arrows bmw AND Points < 1
|
Translate the following into a SQL query
|
How many years was ensign n180b a Chassis with 4 points?
|
SELECT SUM Year FROM table WHERE Points = 4 AND Chassis = ensign n180b
|
Translate the following into a SQL query
|
What is the division record for the Indians?
|
SELECT Division Record FROM table WHERE Team = indians
|
Translate the following into a SQL query
|
What is the overall record of Indian River?
|
SELECT Overall Record FROM table WHERE School = indian river
|
Translate the following into a SQL query
|
What was the season outcome of Lake Forest?
|
SELECT Season Outcome FROM table WHERE School = lake forest
|
Translate the following into a SQL query
|
How many Deciles are coed?
|
SELECT COUNT Decile FROM table WHERE Gender = coed
|
Translate the following into a SQL query
|
Which is the lowest Decile that is coed?
|
SELECT MIN Decile FROM table WHERE Gender = coed
|
Translate the following into a SQL query
|
What are the years for Kawerau Putauaki School?
|
SELECT Years FROM table WHERE Name = kawerau putauaki school
|
Translate the following into a SQL query
|
What is the round or race of the winning driver Charles Hollings and what was his pole position?
|
SELECT Round / Race FROM table WHERE Winning driver = charles hollings AND Pole Position = charles hollings
|
Translate the following into a SQL query
|
What was the earliest year in which long jump was performed in the world indoor Championships in 5th position?
|
SELECT MIN Year FROM table WHERE Performance = long jump AND Competition = world indoor championships AND Position = 5th
|
Translate the following into a SQL query
|
What was the latest year in which she took 4th position in Budapest, Hungary?
|
SELECT MAX Year FROM table WHERE Position = 4th AND Venue = budapest, hungary
|
Translate the following into a SQL query
|
Which astronaut went on the Apollo 16 mission at the age of 36y 6m 18d to step on the moon?
|
SELECT Name FROM table WHERE Mission = apollo 16 AND Age at first step = 36y 6m 18d
|
Translate the following into a SQL query
|
David Scott went on which mission?
|
SELECT Mission FROM table WHERE Name = david scott
|
Translate the following into a SQL query
|
The astronaut who was 37y 8m 4d when making a first step on the moon was in which service?
|
SELECT Service FROM table WHERE Age at first step = 37y 8m 4d
|
Translate the following into a SQL query
|
Pete Conrad was on the Apollo 12 mission but also had what Lunar EVA dates?
|
SELECT Lunar EVA dates FROM table WHERE Mission = apollo 12 AND Name = pete conrad
|
Translate the following into a SQL query
|
The Apollo astronaut who was 38y 9m 7d when first stepping on the moon is who?
|
SELECT Born FROM table WHERE Age at first step = 38y 9m 7d
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.