instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What was the score when the visitor was toronto maple leafs on march 22?
SELECT Score FROM table WHERE Visitor = toronto maple leafs AND Date = march 22
Translate the following into a SQL query
What was the Visitor when the home was toronto maple leafs and the score was 4–1?
SELECT Visitor FROM table WHERE Home = toronto maple leafs AND Score = 4–1
Translate the following into a SQL query
What is the average GBP Price with an event in Monterey, a RM auction house, and a price of $154,000 later than 2003?
SELECT AVG GBP Price FROM table WHERE Event = monterey AND Auction House = rm AND Price = 154,000 AND Year > 2003
Translate the following into a SQL query
How many total episodes aired over all seasons with 7.79 million viewers?
SELECT COUNT Episode count FROM table WHERE Viewers (in millions) = 7.79
Translate the following into a SQL query
Was the semi-final round held at home or away?
SELECT H / A FROM table WHERE Round = semi-final
Translate the following into a SQL query
Which opponent made it to the final round?
SELECT Opponents FROM table WHERE Round = final
Translate the following into a SQL query
What was the result of the game played in hurst?
SELECT Result F – A FROM table WHERE H / A = hurst
Translate the following into a SQL query
When did the game in whalley range take place?
SELECT Date FROM table WHERE H / A = whalley range
Translate the following into a SQL query
Which ERP W is the lowest one that has a Frequency MHz of 91.3?
SELECT MIN ERP W FROM table WHERE Frequency MHz = 91.3
Translate the following into a SQL query
Which Class has a Frequency MHz of 107.5?
SELECT Class FROM table WHERE Frequency MHz = 107.5
Translate the following into a SQL query
Which Frequency MHz is the highest one that has a City of license of byron, ga?
SELECT MAX Frequency MHz FROM table WHERE City of license = byron, ga
Translate the following into a SQL query
Which FCC info has a Call sign of wsja?
SELECT FCC info FROM table WHERE Call sign = wsja
Translate the following into a SQL query
Which District has a Party of republican and a Result of lost re-election democratic gain?
SELECT District FROM table WHERE Party = republican AND Result = lost re-election democratic gain
Translate the following into a SQL query
What is First elected that has republican Party and a Result of retired democratic gain?
SELECT First elected FROM table WHERE Party = republican AND Result = retired democratic gain
Translate the following into a SQL query
What is the First elected of california 3?
SELECT First elected FROM table WHERE District = california 3
Translate the following into a SQL query
Which Incumbent has a Result of retired democratic gain?
SELECT Incumbent FROM table WHERE Result = retired democratic gain
Translate the following into a SQL query
Which First elected has a Incumbent of none (new seat)?
SELECT First elected FROM table WHERE Incumbent = none (new seat)
Translate the following into a SQL query
What is the First elected that has a republican party and california 4?
SELECT First elected FROM table WHERE Party = republican AND District = california 4
Translate the following into a SQL query
What was the result when Dundee was the opponent?
SELECT Result FROM table WHERE Opponent = dundee
Translate the following into a SQL query
Who entered on day 1 and exited on day 20?
SELECT Celebrity FROM table WHERE Entered = day 1 AND Exited = day 20
Translate the following into a SQL query
When did lucy benjamin exit?
SELECT Exited FROM table WHERE Celebrity = lucy benjamin
Translate the following into a SQL query
When did camilla dallerup finish?
SELECT Finished FROM table WHERE Celebrity = camilla dallerup
Translate the following into a SQL query
When did kim woodburn enter?
SELECT Entered FROM table WHERE Celebrity = kim woodburn
Translate the following into a SQL query
What was the score of the game with a record of 37–26–9?
SELECT Score FROM table WHERE Record = 37–26–9
Translate the following into a SQL query
What was the score of the game with a record of 33–25–9?
SELECT Score FROM table WHERE Record = 33–25–9
Translate the following into a SQL query
Loss of francis (4–9) has what highest attendance figure?
SELECT MAX Attendance FROM table WHERE Loss = francis (4–9)
Translate the following into a SQL query
Loss of de la rosa (8–8) has what average attendance?
SELECT AVG Attendance FROM table WHERE Loss = de la rosa (8–8)
Translate the following into a SQL query
Loss of francis (4–10) happened on what date?
SELECT Date FROM table WHERE Loss = francis (4–10)
Translate the following into a SQL query
What was the score on 8 September 1999?
SELECT Score FROM table WHERE Date = 8 september 1999
Translate the following into a SQL query
What was the result on 16 November 2003?
SELECT Result FROM table WHERE Date = 16 november 2003
Translate the following into a SQL query
Which Set 1 has a Set 2 of 26–24?
SELECT Set 1 FROM table WHERE Set 2 = 26–24
Translate the following into a SQL query
Which Set 2 has a Date of 25 may, and a Set 3 of 21–25?
SELECT Set 2 FROM table WHERE Date = 25 may AND Set 3 = 21–25
Translate the following into a SQL query
Which Date has a Set 3 of 21–25?
SELECT Date FROM table WHERE Set 3 = 21–25
Translate the following into a SQL query
Which Set 1 has a Date of 24 may, and a Total of 57–75?
SELECT Set 1 FROM table WHERE Date = 24 may AND Total = 57–75
Translate the following into a SQL query
Which Set 2 has a Set 1 of 25–15, and a Score of 3–0?
SELECT Set 2 FROM table WHERE Set 1 = 25–15 AND Score = 3–0
Translate the following into a SQL query
Which Total has a Set 1 of 25–22?
SELECT Total FROM table WHERE Set 1 = 25–22
Translate the following into a SQL query
What was the segment b for Netflix s01e21?
SELECT Segment B FROM table WHERE Netflix = s01e21
Translate the following into a SQL query
What segment d is associated with an episode number above 16 and a segment c of laser eye surgery?
SELECT Segment D FROM table WHERE Episode > 16 AND Segment C = laser eye surgery
Translate the following into a SQL query
What team had less than 291 total points whole having 76 bronze and over 21 gold?
SELECT SUM Silver FROM table WHERE Gold > 21 AND Bronze = 76 AND Total < 291
Translate the following into a SQL query
What was the average rank for team with more than 44 gold, more and 76 bronze and a higher total than 73?
SELECT AVG Rank FROM table WHERE Total > 73 AND Gold > 44 AND Bronze > 76
Translate the following into a SQL query
On what date was the team's record 61-66?
SELECT Date FROM table WHERE Record = 61-66
Translate the following into a SQL query
At what time was the game when they played the White Sox and had a record of 63-70?
SELECT Time FROM table WHERE Opponent = white sox AND Record = 63-70
Translate the following into a SQL query
What shows for gold when bronze is 1?
SELECT Gold FROM table WHERE Bronze = 1
Translate the following into a SQL query
What is the gold number when the total is less than 8, silver less than 1 and the rank is more than 7?
SELECT COUNT Gold FROM table WHERE Total < 8 AND Silver < 1 AND Rank > 7
Translate the following into a SQL query
What is the average Total for the Rank of 6, when Silver is smaller than 0?
SELECT AVG Total FROM table WHERE Rank = 6 AND Silver < 0
Translate the following into a SQL query
Which Team wins has an Individual winner smaller than 1 and Total win larger than 1?
SELECT SUM Team wins FROM table WHERE Individual winners < 1 AND Total wins > 1
Translate the following into a SQL query
Which Team Win is from sweden and has a Individual win smaller than 1
SELECT MAX Team wins FROM table WHERE Nation = sweden AND Individual wins < 1
Translate the following into a SQL query
Which channel did Going for Gold air on?
SELECT Original channel FROM table WHERE Programme = going for gold
Translate the following into a SQL query
What channel is Gladiators on?
SELECT New channel(s) FROM table WHERE Programme = gladiators
Translate the following into a SQL query
When did Going for Gold return in BBC One?
SELECT Date(s) of return FROM table WHERE Original channel = bbc one AND Programme = going for gold
Translate the following into a SQL query
Which faith has a name of Belswains?
SELECT Faith FROM table WHERE Name = belswains
Translate the following into a SQL query
Which school is a primary school with DCSF number 2045?
SELECT Name FROM table WHERE Type = primary AND DCSF number = 2045
Translate the following into a SQL query
Which position had fewer rounds than 3, and an overall of less than 48?
SELECT Position FROM table WHERE Round < 3 AND Overall < 48
Translate the following into a SQL query
Which highest pick number's name was Adam Podlesh, when the overall was less than 101?
SELECT MAX Pick # FROM table WHERE Name = adam podlesh AND Overall < 101
Translate the following into a SQL query
What is the IHSAA class in Batesville?
SELECT IHSAA Class FROM table WHERE City = batesville
Translate the following into a SQL query
Which city is Lawrenceburg school, with an IHSAA football class of aaa and less than 676 enrollments, located in?
SELECT City FROM table WHERE IHSAA Football Class = aaa AND Enrollment < 676 AND School = lawrenceburg
Translate the following into a SQL query
What school is in Brookville?
SELECT School FROM table WHERE City = brookville
Translate the following into a SQL query
Which Score has a Record of 36–61?
SELECT Score FROM table WHERE Record = 36–61
Translate the following into a SQL query
Which Attendance has a Record of 34–51?
SELECT MIN Attendance FROM table WHERE Record = 34–51
Translate the following into a SQL query
Which Loss has a Date of july 2?
SELECT Loss FROM table WHERE Date = july 2
Translate the following into a SQL query
Which tournament's 2001 and 2008 were a when 2010 was qf?
SELECT Tournament FROM table WHERE 2001 = a AND 2008 = a AND 2010 = qf
Translate the following into a SQL query
Which tournament's 2001 and 2006s were a?
SELECT Tournament FROM table WHERE 2001 = a AND 2006 = a
Translate the following into a SQL query
Which 2007 had a 2009 taht was qf when its 2000 was a?
SELECT 2007 FROM table WHERE 2009 = qf AND 2000 = a
Translate the following into a SQL query
Which 2008 had a 1998 and 2006 that were a when 2009 was sf?
SELECT 2008 FROM table WHERE 1998 = a AND 2009 = sf AND 2006 = a
Translate the following into a SQL query
What is the number of floors for the Citic Square?
SELECT AVG Floors FROM table WHERE Name = citic square
Translate the following into a SQL query
What is the height for the Shanghai World Plaza?
SELECT Height m / ft FROM table WHERE Name = shanghai world plaza
Translate the following into a SQL query
What week had a lower attendance than 51,423 but was still higher than the other weeks?
SELECT MAX Week FROM table WHERE Attendance < 51,423
Translate the following into a SQL query
Which Vertices have a Dual Archimedean solid of truncated dodecahedron?
SELECT MAX Vertices FROM table WHERE Dual Archimedean solid = truncated dodecahedron
Translate the following into a SQL query
Which Edges have a Dual Archimedean solid of truncated icosidodecahedron, and Vertices larger than 62?
SELECT MIN Edges FROM table WHERE Dual Archimedean solid = truncated icosidodecahedron AND Vertices > 62
Translate the following into a SQL query
Which Faces have a Dual Archimedean solid of truncated icosahedron, and Vertices larger than 32?
SELECT AVG Faces FROM table WHERE Dual Archimedean solid = truncated icosahedron AND Vertices > 32
Translate the following into a SQL query
Which Set 2 has a Set 3 of 20–25?
SELECT Set 2 FROM table WHERE Set 3 = 20–25
Translate the following into a SQL query
Which Total has a Set 2 of 20–25, and a Score of 1–3?
SELECT Total FROM table WHERE Set 2 = 20–25 AND Score = 1–3
Translate the following into a SQL query
Which Set 3 has a Score of 3–2, and a Set 2 of 25–23, and a Time of 19:00?
SELECT Set 3 FROM table WHERE Score = 3–2 AND Set 2 = 25–23 AND Time = 19:00
Translate the following into a SQL query
Which Total has a Score of 1–3, and a Set 1 of 29–31?
SELECT Total FROM table WHERE Score = 1–3 AND Set 1 = 29–31
Translate the following into a SQL query
Which Date has a Time of 11:00, and a Set 3 of 25–18?
SELECT Date FROM table WHERE Time = 11:00 AND Set 3 = 25–18
Translate the following into a SQL query
Which Total has a Set 3 of 13–25?
SELECT Total FROM table WHERE Set 3 = 13–25
Translate the following into a SQL query
What was the result for the best musical revival category?
SELECT Result FROM table WHERE Category = best musical revival
Translate the following into a SQL query
Name the area served for on-air ID of abc canberra
SELECT Area served FROM table WHERE On-air ID = abc canberra
Translate the following into a SQL query
Name the frequency with on-air ID of 1way fm
SELECT Frequency FROM table WHERE On-air ID = 1way fm
Translate the following into a SQL query
Name the purpose for on-air ID of 2xx
SELECT Purpose FROM table WHERE On-air ID = 2xx
Translate the following into a SQL query
Name the frequency for community purpose and callsign of 1vfm
SELECT Frequency FROM table WHERE Purpose = community AND Callsign = 1vfm
Translate the following into a SQL query
Name the band with frequency of 102.3
SELECT Band FROM table WHERE Frequency = 102.3
Translate the following into a SQL query
What was the loss of the game against with LA New Bears with a save of Mac Suzuki?
SELECT Loss FROM table WHERE Opponent = la new bears AND Save = mac suzuki
Translate the following into a SQL query
What was the date of the game with a save of ||3,073?
SELECT Date FROM table WHERE Save = ||3,073
Translate the following into a SQL query
Which 2004 has a Tournament of french open?
SELECT 2004 FROM table WHERE Tournament = french open
Translate the following into a SQL query
Which 2003 has a 2013 of 1r, and a 2007 of 2r?
SELECT 2003 FROM table WHERE 2013 = 1r AND 2007 = 2r
Translate the following into a SQL query
Which 2007 has a Tournament of grand slam sr?
SELECT 2007 FROM table WHERE Tournament = grand slam sr
Translate the following into a SQL query
Which 2008 has a Career Win-Loss of 25–40?
SELECT 2008 FROM table WHERE Career Win-Loss = 25–40
Translate the following into a SQL query
Which Career Win-Loss has a 2001 of 1–1?
SELECT Career Win-Loss FROM table WHERE 2001 = 1–1
Translate the following into a SQL query
Which 2012 has a 2007 of 1r, and a 2008 of 1r, and a 2013 of 2r?
SELECT 2012 FROM table WHERE 2007 = 1r AND 2008 = 1r AND 2013 = 2r
Translate the following into a SQL query
What college or club did the round 9 draft pick from Canada come from?
SELECT College/Junior/Club Team (League) FROM table WHERE Round = 9 AND Nationality = canada
Translate the following into a SQL query
Who is the player who was from Dynamo-2 moscow (rus) and was picked after round 5?
SELECT Player FROM table WHERE Round > 5 AND College/Junior/Club Team (League) = dynamo-2 moscow (rus)
Translate the following into a SQL query
What position does the draft pick from Finland play?
SELECT Position FROM table WHERE Nationality = finland
Translate the following into a SQL query
What is the lowest round number that Ian Forbes was picked in the draft?
SELECT MIN Round FROM table WHERE Player = ian forbes
Translate the following into a SQL query
Who was the coach in 1953?
SELECT Coach FROM table WHERE Year = 1953
Translate the following into a SQL query
What is the Time of the game at Arrowhead Stadium with an NFL Recap of recap?
SELECT Time FROM table WHERE NFL Recap = recap AND Game site = arrowhead stadium
Translate the following into a SQL query
What was the Opponent at Arrowhead Stadium?
SELECT Opponent FROM table WHERE Game site = arrowhead stadium
Translate the following into a SQL query
What was the Result of the game after Week 4 with a Time of 5:15 p.m. and a Record of 4–7?
SELECT Result FROM table WHERE Week > 4 AND Time = 5:15 p.m. AND Record = 4–7
Translate the following into a SQL query
When in November were they 11-7-3 with over 21 games?
SELECT MAX November FROM table WHERE Record = 11-7-3 AND Game > 21
Translate the following into a SQL query
Who was the opponent after week 9 with over 49,221 attending, and a Result of w 38-20?
SELECT Opponent FROM table WHERE Week > 9 AND Attendance > 49,221 AND Result = w 38-20