instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What is the lowest points with 6 draws and lower than rank 10?
|
SELECT MIN Points FROM table WHERE Draw = 6 AND Rank > 10
|
Translate the following into a SQL query
|
What is the lowest draw with rank 4?
|
SELECT MIN Draw FROM table WHERE Rank = 4
|
Translate the following into a SQL query
|
How many draws has lower than rank 10 in rumba/cha-cha/jazz dance?
|
SELECT COUNT Draw FROM table WHERE Rank < 10 AND Dance styles = rumba/cha-cha/jazz dance
|
Translate the following into a SQL query
|
How many draws have rumba/tango dance styles?
|
SELECT COUNT Draw FROM table WHERE Dance styles = rumba/tango
|
Translate the following into a SQL query
|
What's the sum of the totals for Russia with more than 1 gold and less than 10 bronze?
|
SELECT SUM Total FROM table WHERE Gold > 1 AND Nation = russia AND Bronze < 10
|
Translate the following into a SQL query
|
what tournament happened on march 27, 2006?
|
SELECT Tournament FROM table WHERE Date = march 27, 2006
|
Translate the following into a SQL query
|
what was the score when scoville jenkins was the opponent?
|
SELECT Score FROM table WHERE Opponent = scoville jenkins
|
Translate the following into a SQL query
|
what was the opponent on november 14, 2005?
|
SELECT Opponent FROM table WHERE Date = november 14, 2005
|
Translate the following into a SQL query
|
what tournament happened on may 2, 2011?
|
SELECT Tournament FROM table WHERE Date = may 2, 2011
|
Translate the following into a SQL query
|
what tournament had sam querrey as the opponent?
|
SELECT Tournament FROM table WHERE Opponent = sam querrey
|
Translate the following into a SQL query
|
what tournament was on a hard surface and saw jacob adaktusson as the opponent?
|
SELECT Tournament FROM table WHERE Surface = hard AND Opponent = jacob adaktusson
|
Translate the following into a SQL query
|
Who was the opponent on September 17, 1995?
|
SELECT Opponent FROM table WHERE Date = september 17, 1995
|
Translate the following into a SQL query
|
Which week had an attendance of 51,265?
|
SELECT Week FROM table WHERE Attendance = 51,265
|
Translate the following into a SQL query
|
Who was the opponent on December 17, 1995?
|
SELECT Opponent FROM table WHERE Date = december 17, 1995
|
Translate the following into a SQL query
|
Which record has 4:14 as the time?
|
SELECT Record FROM table WHERE Time = 4:14
|
Translate the following into a SQL query
|
Which record has tko (strikes) as the method, and daan kooiman as the opponent?
|
SELECT Record FROM table WHERE Method = tko (strikes) AND Opponent = daan kooiman
|
Translate the following into a SQL query
|
Which round has pain and glory 2006 as the event?
|
SELECT Round FROM table WHERE Event = pain and glory 2006
|
Translate the following into a SQL query
|
Which record has john flemming as the opponent?
|
SELECT Record FROM table WHERE Opponent = john flemming
|
Translate the following into a SQL query
|
Which record has 5:00 as the time, jess liaudin as the opponent for the location of england?
|
SELECT Record FROM table WHERE Time = 5:00 AND Opponent = jess liaudin AND Location = england
|
Translate the following into a SQL query
|
Name the date with attendance more than 19,204 and result of l and visitor of san francisco 49ers and record of 2-8-0
|
SELECT Date FROM table WHERE Attendance > 19,204 AND Result = l AND Visitor = san francisco 49ers AND Record = 2-8-0
|
Translate the following into a SQL query
|
Name the score for home of green bay packers
|
SELECT Score FROM table WHERE Home = green bay packers
|
Translate the following into a SQL query
|
Name the home for 21-17
|
SELECT Home FROM table WHERE Score = 21-17
|
Translate the following into a SQL query
|
What engine did Scuderia Ambrosiana with fewer than 4 points have?
|
SELECT Engine FROM table WHERE Entrant = scuderia ambrosiana AND Points < 4
|
Translate the following into a SQL query
|
What chassis had fewer than 0 points in a year before 1954?
|
SELECT Chassis FROM table WHERE Year < 1954 AND Points = 0
|
Translate the following into a SQL query
|
What chassis had an entrant of G.A. Vandervell?
|
SELECT Chassis FROM table WHERE Entrant = g.a. vandervell
|
Translate the following into a SQL query
|
How many people were in attendance on may 2?
|
SELECT MIN Attendance FROM table WHERE Date = may 2
|
Translate the following into a SQL query
|
How many people were in attendance on may 17?
|
SELECT MIN Attendance FROM table WHERE Date = may 17
|
Translate the following into a SQL query
|
How many weeks did the single that entered the charts 14 september 2002 stay on the charts ?
|
SELECT COUNT Weeks on Chart (UK) FROM table WHERE Entered chart (UK) = 14 september 2002
|
Translate the following into a SQL query
|
Which single was on the Charts for 23 weeks ?
|
SELECT Title FROM table WHERE Weeks on Chart (UK) = 23
|
Translate the following into a SQL query
|
How many ECTS credit points occur with Master in Management?
|
SELECT COUNT ECTS Credit Points FROM table WHERE Program = master in management
|
Translate the following into a SQL query
|
What is the teaching language for Master of Quantitative Finance?
|
SELECT Teaching language FROM table WHERE Program = master of quantitative finance
|
Translate the following into a SQL query
|
Which program has 3.5 years?
|
SELECT Program FROM table WHERE Duration (years) = 3.5
|
Translate the following into a SQL query
|
What is the teaching language for a less than 2 year duration and less than 65 ECTS credit points?
|
SELECT Teaching language FROM table WHERE Duration (years) < 2 AND ECTS Credit Points < 65
|
Translate the following into a SQL query
|
What engine has more than 0 pts?
|
SELECT Engine FROM table WHERE Pts. > 0
|
Translate the following into a SQL query
|
What is the average pots of Alfa Romeo v12 after 1983?
|
SELECT AVG Pts. FROM table WHERE Engine = alfa romeo v12 AND Year > 1983
|
Translate the following into a SQL query
|
What year did dave f. mctaggart win the men's singles and robert b. williams ethel marshall win the mixed doubles?
|
SELECT MAX Year FROM table WHERE Men's singles = dave f. mctaggart AND Mixed doubles = robert b. williams ethel marshall
|
Translate the following into a SQL query
|
Who won the women's singles before 1958 when dave f. mctaggart won the men's singles?
|
SELECT Women's singles FROM table WHERE Men's singles = dave f. mctaggart AND Year < 1958
|
Translate the following into a SQL query
|
Who won the men's singles in 1958?
|
SELECT Men's singles FROM table WHERE Year = 1958
|
Translate the following into a SQL query
|
Who won the mixed doubles in 1957 when judy devlin won the women's singles?
|
SELECT Mixed doubles FROM table WHERE Women's singles = judy devlin AND Year = 1957
|
Translate the following into a SQL query
|
What was the total against in uefa champions league/european cup with more than 1 draw?
|
SELECT SUM Against FROM table WHERE Competition = uefa champions league/european cup AND Draw > 1
|
Translate the following into a SQL query
|
What is the total against with 1 draw and less than 8 played?
|
SELECT SUM Against FROM table WHERE Draw = 1 AND Played < 8
|
Translate the following into a SQL query
|
How many times did Super Nova Racing win with a zytek engine?
|
SELECT Wins FROM table WHERE Engine = zytek AND Racing team = super nova racing
|
Translate the following into a SQL query
|
How many main wins for France?
|
SELECT Main wins FROM table WHERE Team = france
|
Translate the following into a SQL query
|
How many poles does status grand prix have?
|
SELECT Poles FROM table WHERE Racing team = status grand prix
|
Translate the following into a SQL query
|
Question does not make sense since there was no record of 88-74
|
SELECT Date FROM table WHERE Record = 88-74
|
Translate the following into a SQL query
|
What is the award type for all Lowe awards?
|
SELECT Award FROM table WHERE Name = lowe
|
Translate the following into a SQL query
|
Which engine(s) has a year of 1966, and a point of 42.
|
SELECT Engine(s) FROM table WHERE Year = 1966 AND Points = 42
|
Translate the following into a SQL query
|
What was the score against hapoel tel aviv?
|
SELECT Score1 FROM table WHERE Opponent = hapoel tel aviv
|
Translate the following into a SQL query
|
What day did they play cambridge united?
|
SELECT Date FROM table WHERE Opponent = cambridge united
|
Translate the following into a SQL query
|
Where was match 8 played?
|
SELECT Ground FROM table WHERE Match = 8
|
Translate the following into a SQL query
|
What is the name of the person with a PWin% of .696?
|
SELECT Name [b ] FROM table WHERE PWin% = .696
|
Translate the following into a SQL query
|
What is the sum of the game with a PWin% of β, Term [c] of 1987β1988, and Win% less than 0.506?
|
SELECT SUM Games FROM table WHERE PWin% = β AND Term [c ] = 1987β1988 AND Win% < 0.506
|
Translate the following into a SQL query
|
What is the win% for the game 80 and a PWin% of β, and a Term [c ] of 1987β1988?
|
SELECT Win% FROM table WHERE Games = 80 AND PWin% = β AND Term [c ] = 1987β1988
|
Translate the following into a SQL query
|
What is the of games when for the term [c] of 1969 β 1973?
|
SELECT SUM Games FROM table WHERE Term [c ] = 1969 β 1973
|
Translate the following into a SQL query
|
What was the method of execution on September 24, 1830?
|
SELECT Method FROM table WHERE Date of Execution = september 24, 1830
|
Translate the following into a SQL query
|
How was the native american, Wau-Bau-Ne-Me-Mee, executed?
|
SELECT Method FROM table WHERE Race = native american AND Name = wau-bau-ne-me-mee
|
Translate the following into a SQL query
|
What was the race of the person executed on December 27, 1827?
|
SELECT Race FROM table WHERE Date of Execution = december 27, 1827
|
Translate the following into a SQL query
|
In what way was Kewaubis executed on December 27, 1827?
|
SELECT Method FROM table WHERE Date of Execution = december 27, 1827 AND Name = kewaubis
|
Translate the following into a SQL query
|
How was the native american executed in July 1836?
|
SELECT Method FROM table WHERE Race = native american AND Date of Execution = july 1836
|
Translate the following into a SQL query
|
How many draws have 1 win, 1 loss, and a Goal Differential of +1?
|
SELECT SUM Draws FROM table WHERE Wins = 1 AND Losses = 1 AND Goal Differential = +1
|
Translate the following into a SQL query
|
What genre is Led Zeppelin?
|
SELECT Genre FROM table WHERE Artist = led zeppelin
|
Translate the following into a SQL query
|
On what date was the Loss by Flanagan (6-7)?
|
SELECT Date FROM table WHERE Loss = flanagan (6-7)
|
Translate the following into a SQL query
|
During which loss was the record 48-50?
|
SELECT Loss FROM table WHERE Record = 48-50
|
Translate the following into a SQL query
|
What was the score that made the record 47-49?
|
SELECT Score FROM table WHERE Record = 47-49
|
Translate the following into a SQL query
|
Who was the Opponent on July 29?
|
SELECT Opponent FROM table WHERE Date = july 29
|
Translate the following into a SQL query
|
What was the record during the loss by key (7-11)?
|
SELECT Record FROM table WHERE Loss = key (7-11)
|
Translate the following into a SQL query
|
What is the total diagram for builder york?
|
SELECT SUM Diagram FROM table WHERE Builder = york
|
Translate the following into a SQL query
|
What fleet numbers have a diagram less than 99 and built in 1960?
|
SELECT Fleet numbers FROM table WHERE Diagram < 99 AND Built = 1960
|
Translate the following into a SQL query
|
What diagram built in 1962 has a lot number smaller than 30702?
|
SELECT MIN Diagram FROM table WHERE Built = 1962 AND Lot No. < 30702
|
Translate the following into a SQL query
|
What builder has lot number 30702?
|
SELECT Builder FROM table WHERE Lot No. = 30702
|
Translate the following into a SQL query
|
Which Genre has a Year before 2013, and a Name of kikumana?
|
SELECT Genre FROM table WHERE Year < 2013 AND Name = kikumana
|
Translate the following into a SQL query
|
In what year has a Post of designer?
|
SELECT SUM Year FROM table WHERE Post = designer
|
Translate the following into a SQL query
|
Who is listed as the Visitor that has a Home of Boston Bruins and a Date of November 15?
|
SELECT Visitor FROM table WHERE Home = boston bruins AND Date = november 15
|
Translate the following into a SQL query
|
Which Visitor is listed as having a Date of December 17?
|
SELECT Visitor FROM table WHERE Date = december 17
|
Translate the following into a SQL query
|
What's the Score with the Visitor of Montreal Maroons and has a Date of December 28?
|
SELECT Score FROM table WHERE Visitor = montreal maroons AND Date = december 28
|
Translate the following into a SQL query
|
What's the attendance of the san diego chargers game before week 6?
|
SELECT COUNT Attendance FROM table WHERE Week < 6 AND Opponent = san diego chargers
|
Translate the following into a SQL query
|
How many wins have a Top-25 of 1, Less than 2 cuts, and fewer than 5 events?
|
SELECT COUNT Wins FROM table WHERE Top-25 = 1 AND Cuts made < 2 AND Events < 5
|
Translate the following into a SQL query
|
How many events have a Top-25 of 1 and made less than 1 cut?
|
SELECT MAX Events FROM table WHERE Top-25 = 1 AND Cuts made < 1
|
Translate the following into a SQL query
|
During the PGA Championship, what's the lowest amount of events with wins greater than 0?
|
SELECT MIN Events FROM table WHERE Tournament = pga championship AND Wins > 0
|
Translate the following into a SQL query
|
What's the lowest number of cuts made while the win was less than 0?
|
SELECT MIN Cuts made FROM table WHERE Wins < 0
|
Translate the following into a SQL query
|
Which Reactortype has a gross capacity of 417 mw and an Electricity Grid of 27.12.1971?
|
SELECT Reactortype FROM table WHERE Gross capacity = 417 mw AND Electricity Grid = 27.12.1971
|
Translate the following into a SQL query
|
Which Unit's Construction started on 01.07.1967?
|
SELECT Unit FROM table WHERE Construction started = 01.07.1967
|
Translate the following into a SQL query
|
Which Commercial Operation has both a Gross Capacity of 417 mw and an Electricity Grid 27.12.1971?
|
SELECT Commercial Operation FROM table WHERE Gross capacity = 417 mw AND Electricity Grid = 27.12.1971
|
Translate the following into a SQL query
|
When did the Electricity Grid 28.12.1972 officially shutdown?
|
SELECT Shutdown FROM table WHERE Electricity Grid = 28.12.1972
|
Translate the following into a SQL query
|
Which Electricity Grid started its Commercial Operation of 24.03.1973?
|
SELECT Electricity Grid FROM table WHERE Commercial Operation = 24.03.1973
|
Translate the following into a SQL query
|
Tell what has the App(GS/Sub) of 14 (8/6)
|
SELECT Name FROM table WHERE App(GS/Sub) = 14 (8/6)
|
Translate the following into a SQL query
|
Name the goals with since less than 2007 and App(GS/Sub) of 97 (69/28)
|
SELECT Goals FROM table WHERE Since < 2007 AND App(GS/Sub) = 97 (69/28)
|
Translate the following into a SQL query
|
When is Cadott Rock Fest taken place?
|
SELECT Date FROM table WHERE Venue = cadott rock fest
|
Translate the following into a SQL query
|
Which City has mandalay bay resort
|
SELECT City FROM table WHERE Venue = mandalay bay resort
|
Translate the following into a SQL query
|
Which City has a Date on october 26, 2007
|
SELECT City FROM table WHERE Date = october 26, 2007
|
Translate the following into a SQL query
|
Which Attendance has Mandalay Bay Resort
|
SELECT Attendance FROM table WHERE Venue = mandalay bay resort
|
Translate the following into a SQL query
|
When is Country of united states, and a Venue of mandalay bay resort in?
|
SELECT Date FROM table WHERE Country = united states AND Venue = mandalay bay resort
|
Translate the following into a SQL query
|
When has a City of san jacinto, california?
|
SELECT Date FROM table WHERE City = san jacinto, california
|
Translate the following into a SQL query
|
Which Chassis has more than 0 points, an Entrant of Scuderia Ferrari, and was later than 1952?
|
SELECT Chassis FROM table WHERE Points > 0 AND Entrant = scuderia ferrari AND Year > 1952
|
Translate the following into a SQL query
|
Which Entrant has a vanwall straight-4 engine?
|
SELECT Entrant FROM table WHERE Engine = vanwall straight-4
|
Translate the following into a SQL query
|
Which region has a date of 1970?
|
SELECT Region FROM table WHERE Date = 1970
|
Translate the following into a SQL query
|
Which label has a date of 1987?
|
SELECT Label FROM table WHERE Date = 1987
|
Translate the following into a SQL query
|
Which catalogue has a formate of "CD Remastered with 3 bonus tracks"?
|
SELECT Catalogue FROM table WHERE Format = cd remastered with 3 bonus tracks
|
Translate the following into a SQL query
|
Which catalogue has a date of 1987?
|
SELECT Catalogue FROM table WHERE Date = 1987
|
Translate the following into a SQL query
|
What is the latest season where Al Ahly is the runners-up?
|
SELECT MAX Season FROM table WHERE Runners-up = al ahly
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.