instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What is the earliest year the world junior championships has 1500 m notes?
|
SELECT MIN Year FROM table WHERE Notes = 1500 m AND Competition = world junior championships
|
Translate the following into a SQL query
|
Which venue had 5000 m notes in 2009 with a 1st position?
|
SELECT Venue FROM table WHERE Notes = 5000 m AND Year = 2009 AND Position = 1st
|
Translate the following into a SQL query
|
What is the average year with 7th (heats) position?
|
SELECT AVG Year FROM table WHERE Position = 7th (heats)
|
Translate the following into a SQL query
|
What Method was used with opponent Kenneth Allen?
|
SELECT Method FROM table WHERE Opponent = kenneth allen
|
Translate the following into a SQL query
|
What is the remark for Norway?
|
SELECT Remarks FROM table WHERE Country of origin = norway
|
Translate the following into a SQL query
|
How many people attended the game against the Kaizer Chiefs?
|
SELECT SUM Attendance FROM table WHERE Opponents = kaizer chiefs
|
Translate the following into a SQL query
|
What is the result F-A with an H/A of h and more than 31,727 attending?
|
SELECT Result F – A FROM table WHERE H / A = h AND Attendance > 31,727
|
Translate the following into a SQL query
|
What was the result F-A with more than 11,372 attending and an H/A of n?
|
SELECT Result F – A FROM table WHERE Attendance > 11,372 AND H / A = n
|
Translate the following into a SQL query
|
What is Player, when College/Junior/Club Team (League) is "Val d'Or Foreurs ( QMJHL )"?
|
SELECT Player FROM table WHERE College/junior/club team (league) = val d'or foreurs ( qmjhl )
|
Translate the following into a SQL query
|
What is the Position, when Player is "Magnus Nygren"?
|
SELECT Position FROM table WHERE Player = magnus nygren
|
Translate the following into a SQL query
|
What is Position, when Round is less than 5, when Nationality is "Canada", and when College/Junior/Club Team (League) is "Saint John Sea Dogs ( QMJHL )"?
|
SELECT Position FROM table WHERE Round < 5 AND Nationality = canada AND College/junior/club team (league) = saint john sea dogs ( qmjhl )
|
Translate the following into a SQL query
|
What is College/Junior/Club Team (League), when Position is "Defence", when Nationality is "Canada", when Round is less than 5, and when Player is "Josiah Didier"?
|
SELECT College/junior/club team (league) FROM table WHERE Position = defence AND Nationality = canada AND Round < 5 AND Player = josiah didier
|
Translate the following into a SQL query
|
count the the average Total of ian baker-finch?
|
SELECT AVG Total FROM table WHERE Player = ian baker-finch
|
Translate the following into a SQL query
|
Which Country has a Year(s) won of 1963?
|
SELECT Country FROM table WHERE Year(s) won = 1963
|
Translate the following into a SQL query
|
What is Greg Norman's score?
|
SELECT Score FROM table WHERE Player = greg norman
|
Translate the following into a SQL query
|
What place is John Cook in?
|
SELECT Place FROM table WHERE Player = john cook
|
Translate the following into a SQL query
|
What is the money for the player with a score of 68-69-67-73=277?
|
SELECT Money ( $ ) FROM table WHERE Score = 68-69-67-73=277
|
Translate the following into a SQL query
|
What is the to par of the player with a 72-71-65-69=277 score?
|
SELECT To par FROM table WHERE Score = 72-71-65-69=277
|
Translate the following into a SQL query
|
What is the country of the player with playoff money and a score of 66-67-70-67=270?
|
SELECT Country FROM table WHERE Money ( $ ) = playoff AND Score = 66-67-70-67=270
|
Translate the following into a SQL query
|
How much money does the player with a score of 76-70-65-68=279 have?
|
SELECT Money ( $ ) FROM table WHERE Score = 76-70-65-68=279
|
Translate the following into a SQL query
|
What is the score of player darren clarke, who has $112,500?
|
SELECT Score FROM table WHERE Money ( $ ) = 112,500 AND Player = darren clarke
|
Translate the following into a SQL query
|
What is the to par of player notah begay iii from the United States?
|
SELECT To par FROM table WHERE Country = united states AND Player = notah begay iii
|
Translate the following into a SQL query
|
What song has a draw more than 4 in 1st place?
|
SELECT Song FROM table WHERE Draw > 4 AND Place = 1st
|
Translate the following into a SQL query
|
What is the artist for the song "alt har en mening nå"?
|
SELECT Artist FROM table WHERE Song = "alt har en mening nå"
|
Translate the following into a SQL query
|
What is the result of the song "ride"?
|
SELECT Results FROM table WHERE Song = "ride"
|
Translate the following into a SQL query
|
Which 1st member has Thomas Grimsditch as a 2nd member?
|
SELECT 1st Member FROM table WHERE 2nd Member = thomas grimsditch
|
Translate the following into a SQL query
|
What is all the total election that has conservative as 2nd party?
|
SELECT SUM Election FROM table WHERE 2nd Party = conservative
|
Translate the following into a SQL query
|
Which 1st party has John Brocklehurst as 1st member, Edward Christopher Egerton 2nd memeber, and election smaller than 1880?
|
SELECT 1st Party FROM table WHERE Election < 1880 AND 1st Member = john brocklehurst AND 2nd Member = edward christopher egerton
|
Translate the following into a SQL query
|
Which 1st party has 2nd party conservative, election smaller than 1852, and Thomas Grimsditch as 2nd member?
|
SELECT 1st Party FROM table WHERE 2nd Party = conservative AND Election < 1852 AND 2nd Member = thomas grimsditch
|
Translate the following into a SQL query
|
Name the Weight of ádám steinmetz category:articles with hcards?
|
SELECT Weight FROM table WHERE Name = ádám steinmetz category:articles with hcards
|
Translate the following into a SQL query
|
Name the Weight which has a 2012 club of pro recco, and a Name of tamás kásás category:articles with hcards?
|
SELECT Weight FROM table WHERE 2012 club = pro recco AND Name = tamás kásás category:articles with hcards
|
Translate the following into a SQL query
|
Name the Weight which has a Name of balázs hárai category:articles with hcards?
|
SELECT Weight FROM table WHERE Name = balázs hárai category:articles with hcards
|
Translate the following into a SQL query
|
Name the 012 club which has of norbert hosnyánszky category:articles with hcards?
|
SELECT 2012 club FROM table WHERE Name = norbert hosnyánszky category:articles with hcards
|
Translate the following into a SQL query
|
What is the lowest Against, when Venue is "Twickenham , London", when Status is "Six Nations", and when Opposing Teams is "France"?
|
SELECT MIN Against FROM table WHERE Venue = twickenham , london AND Status = six nations AND Opposing Teams = france
|
Translate the following into a SQL query
|
What is the total number of Against, when Date is "27/02/2005"?
|
SELECT COUNT Against FROM table WHERE Date = 27/02/2005
|
Translate the following into a SQL query
|
What is the highest Against, when Date is "27/02/2005"?
|
SELECT MAX Against FROM table WHERE Date = 27/02/2005
|
Translate the following into a SQL query
|
What is Status, when Opposing Teams is "Italy"?
|
SELECT Status FROM table WHERE Opposing Teams = italy
|
Translate the following into a SQL query
|
Which Name has Apparent Magnitude smaller than 11.4, and R.A. (J2000) of 04h17m35.8s?
|
SELECT Name FROM table WHERE Apparent Magnitude < 11.4 AND R.A. ( J2000 ) = 04h17m35.8s
|
Translate the following into a SQL query
|
Which R.A. (J2000) has a Name of ngc 1543?
|
SELECT R.A. ( J2000 ) FROM table WHERE Name = ngc 1543
|
Translate the following into a SQL query
|
Which Dec. (J2000) has a Redshift (km/ s) of 1331 ± 3?
|
SELECT Dec. ( J2000 ) FROM table WHERE Redshift (km/ s ) = 1331 ± 3
|
Translate the following into a SQL query
|
Which R.A. (J2000) has a Name of ngc 1515?
|
SELECT R.A. ( J2000 ) FROM table WHERE Name = ngc 1515
|
Translate the following into a SQL query
|
Which R.A. (J2000) has Apparent Magnitude of 11.7, and Dec. (J2000) of °07′06″?
|
SELECT R.A. ( J2000 ) FROM table WHERE Apparent Magnitude = 11.7 AND Dec. ( J2000 ) = °07′06″
|
Translate the following into a SQL query
|
Which player had a To par of +11?
|
SELECT Player FROM table WHERE To par = +11
|
Translate the following into a SQL query
|
Who won in 1997 with a finish of t48?
|
SELECT Player FROM table WHERE Finish = t48 AND Year(s) won = 1997
|
Translate the following into a SQL query
|
What player from the United States had a total of 297?
|
SELECT Player FROM table WHERE Country = united states AND Total = 297
|
Translate the following into a SQL query
|
Which country won in 1988?
|
SELECT Country FROM table WHERE Year(s) won = 1988
|
Translate the following into a SQL query
|
Which party had a term start of 5 august 1999?
|
SELECT Party FROM table WHERE Term start = 5 august 1999
|
Translate the following into a SQL query
|
What term end had minister Danny Ayalon?
|
SELECT Term end FROM table WHERE Minister = danny ayalon
|
Translate the following into a SQL query
|
Which goverment had a party of yisrael beiteinu?
|
SELECT Governments FROM table WHERE Party = yisrael beiteinu
|
Translate the following into a SQL query
|
Who was the minister of the labor party and had 26 goverments?
|
SELECT Minister FROM table WHERE Party = labor party AND Governments = 26
|
Translate the following into a SQL query
|
What is the category that came before 2011?
|
SELECT Category FROM table WHERE Year < 2011
|
Translate the following into a SQL query
|
What is the year of the Premios Carlos Gardel 2009 award?
|
SELECT Year FROM table WHERE Award = premios carlos gardel 2009
|
Translate the following into a SQL query
|
What is Andrea Suarez Lazaro's height?
|
SELECT Height FROM table WHERE Contestant = andrea suarez lazaro
|
Translate the following into a SQL query
|
What is niurbi encarnación ynoa's height?
|
SELECT Height FROM table WHERE Contestant = niurbi encarnación ynoa
|
Translate the following into a SQL query
|
What is the province for Jamao Afuera?
|
SELECT Province, Community FROM table WHERE Hometown = jamao afuera
|
Translate the following into a SQL query
|
What is the hometown for Santiago?
|
SELECT Hometown FROM table WHERE Province, Community = santiago
|
Translate the following into a SQL query
|
What is the geographical region for hometown Imbert?
|
SELECT Geographical Regions FROM table WHERE Hometown = imbert
|
Translate the following into a SQL query
|
What is the Name of the Ship attacked on 20February1942?
|
SELECT Name of ship FROM table WHERE Date = 20february1942
|
Translate the following into a SQL query
|
Which ship was sunk at 01:00?
|
SELECT Name of ship FROM table WHERE Fate = sunk at AND Time = 01:00
|
Translate the following into a SQL query
|
What is the to par for the 68-72-73=213 score?
|
SELECT To par FROM table WHERE Score = 68-72-73=213
|
Translate the following into a SQL query
|
What is the to par for the 69-70-72=211 score?
|
SELECT To par FROM table WHERE Score = 69-70-72=211
|
Translate the following into a SQL query
|
What is the to par for the United States with a 67-71-73=211 score?
|
SELECT To par FROM table WHERE Country = united states AND Score = 67-71-73=211
|
Translate the following into a SQL query
|
What country has t4 place and a 67-71-73=211 score?
|
SELECT Country FROM table WHERE Place = t4 AND Score = 67-71-73=211
|
Translate the following into a SQL query
|
What is the to par for Australia and a 73-69-71=213 score?
|
SELECT To par FROM table WHERE Country = australia AND Score = 73-69-71=213
|
Translate the following into a SQL query
|
What Location has a Partner of app, a Population Served larger than 2000, and a Design flow (LPM) of 375?
|
SELECT Location FROM table WHERE Partner = app AND Population Served > 2000 AND Design flow (LPM) = 375
|
Translate the following into a SQL query
|
What Construction Start has an Inauguration Date of 2010 june?
|
SELECT Construction Start FROM table WHERE Inauguration Date = 2010 june
|
Translate the following into a SQL query
|
What Construction Start has a Design flow (LPM) of 1300?
|
SELECT Construction Start FROM table WHERE Design flow (LPM) = 1300
|
Translate the following into a SQL query
|
What Location has a Design flow (LPM) smaller than 1900, and a Construction Start of 2006 june?
|
SELECT Location FROM table WHERE Design flow (LPM) < 1900 AND Construction Start = 2006 june
|
Translate the following into a SQL query
|
What Partner has a Construction Start of 2008 january?
|
SELECT Partner FROM table WHERE Construction Start = 2008 january
|
Translate the following into a SQL query
|
What is the total Design flow (LPM) with a Partner of app, a Construction Start of 2008 january, and a Population Served larger than 3500?
|
SELECT SUM Design flow (LPM) FROM table WHERE Partner = app AND Construction Start = 2008 january AND Population Served > 3500
|
Translate the following into a SQL query
|
What is Sandy Lyle's To Par?
|
SELECT To par FROM table WHERE Player = sandy lyle
|
Translate the following into a SQL query
|
What is Australia's score where they were in place t1?
|
SELECT Score FROM table WHERE Country = australia AND Place = t1
|
Translate the following into a SQL query
|
What place has Wales as a country?
|
SELECT Place FROM table WHERE Country = wales
|
Translate the following into a SQL query
|
What is the To Par of Peter Senior from Australia?
|
SELECT To par FROM table WHERE Country = australia AND Player = peter senior
|
Translate the following into a SQL query
|
What is the score of Howard Clark from England with a To Par of +1?
|
SELECT Score FROM table WHERE To par = +1 AND Country = england AND Player = howard clark
|
Translate the following into a SQL query
|
What is the score of the player with a To Par of +1 from Spain?
|
SELECT Score FROM table WHERE To par = +1 AND Country = spain
|
Translate the following into a SQL query
|
Who won the event against U.S.A.?
|
SELECT Status FROM table WHERE Opposing Teams = u.s.a.
|
Translate the following into a SQL query
|
Where was the match on 10/11/2001 against 15?
|
SELECT Venue FROM table WHERE Against = 15 AND Date = 10/11/2001
|
Translate the following into a SQL query
|
What is the lowest against team in the Six Nations status in Lansdowne Road, Dublin?
|
SELECT MIN Against FROM table WHERE Status = six nations AND Venue = lansdowne road, dublin
|
Translate the following into a SQL query
|
What 2008 has 1r as a 2010, A as the 2007, and 1r as the 2009?
|
SELECT 2008 FROM table WHERE 2010 = 1r AND 2007 = a AND 2009 = 1r
|
Translate the following into a SQL query
|
What 2008 has A as the 2007, and 2r as the 2010?
|
SELECT 2008 FROM table WHERE 2007 = a AND 2010 = 2r
|
Translate the following into a SQL query
|
What 2009 has lq as the 2011?
|
SELECT 2009 FROM table WHERE 2011 = lq
|
Translate the following into a SQL query
|
What 2009 has 345 as the 2007?
|
SELECT 2009 FROM table WHERE 2007 = 345
|
Translate the following into a SQL query
|
What nation has a sport of weightlifting and a pinyin of kùkè qúndǎo?
|
SELECT Nation FROM table WHERE Sport = weightlifting AND Pinyin = kùkè qúndǎo
|
Translate the following into a SQL query
|
What day did Glentoran play at Windsor Park, Belfast?
|
SELECT Date FROM table WHERE Team = glentoran AND Venue = windsor park, belfast
|
Translate the following into a SQL query
|
What day was the score 1-0?
|
SELECT Date FROM table WHERE Score = 1-0
|
Translate the following into a SQL query
|
Which team scored 2-1?
|
SELECT Team FROM table WHERE Score = 2-1
|
Translate the following into a SQL query
|
What is the 1998 value with 2r in 2003?
|
SELECT 1998 FROM table WHERE 2003 = 2r
|
Translate the following into a SQL query
|
What is the 2004 value with 2r in 1994?
|
SELECT 2004 FROM table WHERE 1994 = 2r
|
Translate the following into a SQL query
|
What is the 2003 value for the french open, which has a 1r in 1994?
|
SELECT 2003 FROM table WHERE 1994 = 1r AND Tournament = french open
|
Translate the following into a SQL query
|
What is the 2003 value with a 1r in 1998, a 14 in 1994, and a 7-12 career?
|
SELECT 2003 FROM table WHERE 1998 = 1r AND 1994 = 1r AND Career = 7-12
|
Translate the following into a SQL query
|
Which driver finished in position 8?
|
SELECT Driver FROM table WHERE Fin. Pos = 8
|
Translate the following into a SQL query
|
How many laps have 16 points and With a Laps Led of greater than 0?
|
SELECT SUM Laps FROM table WHERE Points = 16 AND Laps Led > 0
|
Translate the following into a SQL query
|
What is the average grid for Marco Andretti with a finishing position higher than 19?
|
SELECT AVG Grid FROM table WHERE Driver = marco andretti AND Fin. Pos > 19
|
Translate the following into a SQL query
|
What is Car number 98's lowest grid?
|
SELECT MIN Grid FROM table WHERE Car No. = 98
|
Translate the following into a SQL query
|
What is the highest Laps Led with a grid of less than 4 and a finishing position of 15?
|
SELECT MAX Laps Led FROM table WHERE Grid < 4 AND Fin. Pos = 15
|
Translate the following into a SQL query
|
What is the average Qiangshu lower than rank 4 and less than 9.22 Jianshu?
|
SELECT AVG Qiangshu FROM table WHERE Rank > 4 AND Jianshu < 9.22
|
Translate the following into a SQL query
|
What is the average Jianshu higher than rank 2, with a Qiangshu smaller than 9.85?
|
SELECT AVG Jianshu FROM table WHERE Rank < 2 AND Qiangshu < 9.85
|
Translate the following into a SQL query
|
On what date did the woman married to Louis II become consort?
|
SELECT Became Consort FROM table WHERE Spouse = louis ii
|
Translate the following into a SQL query
|
What is the Date of the game when the Record is 32–31–6?
|
SELECT Date FROM table WHERE Record = 32–31–6
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.