instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the total number of bronze when gold is less than 1 and silver is more than 1? | SELECT SUM Bronze FROM table WHERE Gold < 1 AND Silver > 1 |
Translate the following into a SQL query | What is the total of rank when silver is more than 1, gold is 2, and total is more than 4? | SELECT SUM Rank FROM table WHERE Silver > 1 AND Gold = 2 AND Total > 4 |
Translate the following into a SQL query | What is the Wins with a Top-25 of 3, and a Top-5 larger than 1? | SELECT AVG Wins FROM table WHERE Top-25 = 3 AND Top-5 > 1 |
Translate the following into a SQL query | Which Cuts made has a Top-5 smaller than 3, and a Top-25 smaller than 6, and an Events of 10? | SELECT Cuts made FROM table WHERE Top-5 < 3 AND Top-25 < 6 AND Events = 10 |
Translate the following into a SQL query | Which Tournament has a Cuts made smaller than 9, and an Events of 10? | SELECT Tournament FROM table WHERE Cuts made < 9 AND Events = 10 |
Translate the following into a SQL query | What is the sum of Points for 250cc class, ranked 13th, later than 1955? | SELECT SUM Points FROM table WHERE Class = 250cc AND Rank = 13th AND Year > 1955 |
Translate the following into a SQL query | What is the Class for a year later than 1958, with 4 points? | SELECT Class FROM table WHERE Year > 1958 AND Points = 4 |
Translate the following into a SQL query | What is the average Year when there were more than 3 points, for MV Agusta and ranked 10th? | SELECT AVG Year FROM table WHERE Points > 3 AND Team = mv agusta AND Rank = 10th |
Translate the following into a SQL query | What Team has a Class of 350cc, with less than 13 points in 1959? | SELECT Team FROM table WHERE Class = 350cc AND Points < 13 AND Year = 1959 |
Translate the following into a SQL query | Which event was held at Manly Beach? | SELECT Event FROM table WHERE Location = manly beach |
Translate the following into a SQL query | What was the location of the Havaianas Beachley Classic, held in Australia? | SELECT Location FROM table WHERE Country = australia AND Event = havaianas beachley classic |
Translate the following into a SQL query | Which event was held in Brazil? | SELECT Event FROM table WHERE Country = brazil |
Translate the following into a SQL query | The University of Colorado hosted what region? | SELECT Region FROM table WHERE Host = university of colorado |
Translate the following into a SQL query | Peterson Gym is in what city? | SELECT City FROM table WHERE Venue = peterson gym |
Translate the following into a SQL query | Mideast region host University of Tennessee is in what state? | SELECT State FROM table WHERE Region = mideast AND Host = university of tennessee |
Translate the following into a SQL query | What city is east region venue University Hall (University of Virginia) in? | SELECT City FROM table WHERE Region = east AND Venue = university hall (university of virginia) |
Translate the following into a SQL query | What is the venue at Stanford University? | SELECT Venue FROM table WHERE Host = stanford university |
Translate the following into a SQL query | What is the venue in Seattle? | SELECT Venue FROM table WHERE City = seattle |
Translate the following into a SQL query | What team won the Tour de Santa Catarina? | SELECT Team FROM table WHERE Race Name = tour de santa catarina |
Translate the following into a SQL query | What is Relax-Gam's average UCI Rating? | SELECT AVG UCI Rating FROM table WHERE Team = relax-gam |
Translate the following into a SQL query | What is Vuelta a Ecuador's lowest UCI Rating? | SELECT MIN UCI Rating FROM table WHERE Race Name = vuelta a ecuador |
Translate the following into a SQL query | What was the result of the game attended by 54,110? | SELECT Result FROM table WHERE Attendance = 54,110 |
Translate the following into a SQL query | What was the date of the game attended by 45,122? | SELECT Date FROM table WHERE Attendance = 45,122 |
Translate the following into a SQL query | What is the earliest week with a game attended by 60,233? | SELECT MIN Week FROM table WHERE Attendance = 60,233 |
Translate the following into a SQL query | What is the latest week with a game with a result of l 12–7? | SELECT MAX Week FROM table WHERE Result = l 12–7 |
Translate the following into a SQL query | What is Runner(s)-up, when Tournament is MCI Classic? | SELECT Runner(s)-up FROM table WHERE Tournament = mci classic |
Translate the following into a SQL query | What is Winning Score, when Date is Jul 27, 1997? | SELECT Winning score FROM table WHERE Date = jul 27, 1997 |
Translate the following into a SQL query | What is Winning Score, when Runner(s)-up is Ted Purdy? | SELECT Winning score FROM table WHERE Runner(s)-up = ted purdy |
Translate the following into a SQL query | With 10,894 students enrolled, in what year was this private RU/VH institution located in Troy, New York founded? | SELECT AVG Founded FROM table WHERE Type = ru/vh AND Control = private AND Enrollment > 10,894 AND Location = troy, new york |
Translate the following into a SQL query | What is the enrollment number for the public institution in Golden, Colorado founded after 1874? | SELECT AVG Enrollment FROM table WHERE Control = public AND Location = golden, colorado AND Founded > 1874 |
Translate the following into a SQL query | Which Team has a Year smaller than 2007, and a Class of gts? | SELECT Team FROM table WHERE Year < 2007 AND Class = gts |
Translate the following into a SQL query | In what year Year has a Co-Drivers of jérôme policand christopher campbell? | SELECT SUM Year FROM table WHERE Co-Drivers = jérôme policand christopher campbell |
Translate the following into a SQL query | What is Language, when Content is Monoscopio? | SELECT Language FROM table WHERE Content = monoscopio |
Translate the following into a SQL query | What is Television Service, when Content is Presentazione? | SELECT Television service FROM table WHERE Content = presentazione |
Translate the following into a SQL query | What is Package/Option, when Television Service is Sky Inside? | SELECT Package/Option FROM table WHERE Television service = sky inside |
Translate the following into a SQL query | What is Package/Option, when Television Service is Sky Inside? | SELECT Package/Option FROM table WHERE Television service = sky inside |
Translate the following into a SQL query | What is the lowest Draw, when the Song is "The Innocent Days"? | SELECT MIN Draw FROM table WHERE Song = "the innocent days" |
Translate the following into a SQL query | What is the sum of Points, when the Performer is fe-mail? | SELECT SUM Points FROM table WHERE Performer = fe-mail |
Translate the following into a SQL query | What is the score for set 3 with a time at 15:04? | SELECT Set 3 FROM table WHERE Time = 15:04 |
Translate the following into a SQL query | What was the overall score when the score of set 3 was 29–27? | SELECT Score FROM table WHERE Set 3 = 29–27 |
Translate the following into a SQL query | What was the score for set 2 when set 3 was 25–22? | SELECT Set 2 FROM table WHERE Set 3 = 25–22 |
Translate the following into a SQL query | What was the overall score when set 1 was 23–25? | SELECT Score FROM table WHERE Set 1 = 23–25 |
Translate the following into a SQL query | What school/club team did Amal McCaskill play for? | SELECT School/Club Team FROM table WHERE Player = amal mccaskill |
Translate the following into a SQL query | Mike Miller played for what school/club team? | SELECT School/Club Team FROM table WHERE Player = mike miller |
Translate the following into a SQL query | Who is the player that played for the school/club team Maryland? | SELECT Player FROM table WHERE School/Club Team = maryland |
Translate the following into a SQL query | Cuttino Mobley is what nationality? | SELECT Nationality FROM table WHERE Player = cuttino mobley |
Translate the following into a SQL query | Corey Maggette from the United States plays what position? | SELECT Position FROM table WHERE Nationality = united states AND Player = corey maggette |
Translate the following into a SQL query | Amal McCaskill who plays forward-center played for what school/club team? | SELECT School/Club Team FROM table WHERE Position = forward-center AND Player = amal mccaskill |
Translate the following into a SQL query | Which Servedby has a Local authority [a ] of thurrock, and a Station of ockendon? | SELECT Servedby FROM table WHERE Local authority [a ] = thurrock AND Station = ockendon |
Translate the following into a SQL query | Which Station users 2005–06 has a Station users 2004–05 of 2,117,300? | SELECT MIN Station users 2005–06 FROM table WHERE Station users 2004–05 = 2,117,300 |
Translate the following into a SQL query | How many Station users 2005–06 that has a Station users 2004–05 of 1,455,700? | SELECT COUNT Station users 2005–06 FROM table WHERE Station users 2004–05 = 1,455,700 |
Translate the following into a SQL query | What is the Opponents from the final with a Tournament that is puebla? | SELECT Opponents in the final FROM table WHERE Tournament = puebla |
Translate the following into a SQL query | What was the date of the game held at the Al-Rashid Stadium, Dubai? | SELECT Date FROM table WHERE Venue = al-rashid stadium, dubai |
Translate the following into a SQL query | When the Track is ESO, the peak is smaller than 25, and the year is larger than 2004, what is the total number of Weeks on Chart? | SELECT COUNT Weeks on Chart FROM table WHERE Track = eso AND Peak < 25 AND Year > 2004 |
Translate the following into a SQL query | Which year has fewer Weeks on Chart than 17, a Peak of 23, and the track is regálame la silla donde te esperé? | SELECT Year FROM table WHERE Weeks on Chart < 17 AND Track = regálame la silla donde te esperé AND Peak = 23 |
Translate the following into a SQL query | What is the lowest Peak with fewer than 8 Weeks on Chart? | SELECT MIN Peak FROM table WHERE Weeks on Chart < 8 |
Translate the following into a SQL query | What is the Round of 16 value for the nation with a value of 5 for Ranking Round Rank? | SELECT Round of 16 FROM table WHERE Ranking Round Rank = 5 |
Translate the following into a SQL query | What Team had the first round of 1:00? | SELECT Team FROM table WHERE First round = 1:00 |
Translate the following into a SQL query | What City/State did the Atlanta Hawks (retired) team play for? | SELECT City/State FROM table WHERE Team = atlanta hawks (retired) |
Translate the following into a SQL query | What was the final round value for member Chris Webber? | SELECT Final round FROM table WHERE Members = chris webber |
Translate the following into a SQL query | What was the first round time for member Kenny Smith? | SELECT First round FROM table WHERE Members = kenny smith |
Translate the following into a SQL query | Which team was the opponent on December 30? | SELECT Team FROM table WHERE Date = december 30 |
Translate the following into a SQL query | What content is provided by the television service ewtn? | SELECT Content FROM table WHERE Television service = ewtn |
Translate the following into a SQL query | What is the content of the television service ewtn in the United Kingdom? | SELECT Content FROM table WHERE Country = united kingdom AND Television service = ewtn |
Translate the following into a SQL query | What is the package/option for Italy when the language is italian? | SELECT Package/Option FROM table WHERE Country = italy AND Language = italian |
Translate the following into a SQL query | What is the package/option in Italy when the content is religione? | SELECT Package/Option FROM table WHERE Content = religione AND Country = italy |
Translate the following into a SQL query | Which television service has italian for its language? | SELECT Television service FROM table WHERE Language = italian |
Translate the following into a SQL query | Does daystar television network provide HDTV? | SELECT HDTV FROM table WHERE Television service = daystar television network |
Translate the following into a SQL query | What was the Attendance when Oxford United was the Home team? | SELECT SUM Attendance FROM table WHERE Home team = oxford united |
Translate the following into a SQL query | What was the Home team when Farnborough Town was the Away team? | SELECT Home team FROM table WHERE Away team = farnborough town |
Translate the following into a SQL query | What was the Away Team of Blackpool's Home game? | SELECT Away team FROM table WHERE Home team = blackpool |
Translate the following into a SQL query | Which Bronze has a Rank of 9? | SELECT COUNT Bronze FROM table WHERE Rank = 9 |
Translate the following into a SQL query | Which Bronze has a Gold smaller than 1, and a Rank of 17, and a Nation of china? | SELECT MAX Bronze FROM table WHERE Gold < 1 AND Rank = 17 AND Nation = china |
Translate the following into a SQL query | Which Nation has a Bronze smaller than 1, and a Total larger than 1, and a Silver of 1? | SELECT Nation FROM table WHERE Bronze < 1 AND Total > 1 AND Silver = 1 |
Translate the following into a SQL query | Which Total has a Rank of 17, and a Gold larger than 0? | SELECT AVG Total FROM table WHERE Rank = 17 AND Gold > 0 |
Translate the following into a SQL query | Which Gold has a Rank of 15, and a Total smaller than 2? | SELECT AVG Gold FROM table WHERE Rank = 15 AND Total < 2 |
Translate the following into a SQL query | What is the number of games for the season with 10 ties? | SELECT Games FROM table WHERE Tied = 10 |
Translate the following into a SQL query | What was the surface where the opponent was Nathalie Dechy Meilen Tu? | SELECT Surface FROM table WHERE Opponent in the final = nathalie dechy meilen tu |
Translate the following into a SQL query | What is the Series leader with a Date that is may 31? | SELECT Series leader FROM table WHERE Date = may 31 |
Translate the following into a SQL query | What is the Series leader with a Date that is october 9? | SELECT Series leader FROM table WHERE Date = october 9 |
Translate the following into a SQL query | Which Tournament has a Date of january 10, 1994? | SELECT Tournament FROM table WHERE Date = january 10, 1994 |
Translate the following into a SQL query | Which Opponents in the final have a Date of june 10, 1996? | SELECT Opponents in the final FROM table WHERE Date = june 10, 1996 |
Translate the following into a SQL query | Who's the Opponents in the final with a Date of june 10, 1996? | SELECT Opponents in the final FROM table WHERE Date = june 10, 1996 |
Translate the following into a SQL query | Which Tournament has Opponents in the final of maria lindström maria strandlund? | SELECT Tournament FROM table WHERE Opponents in the final = maria lindström maria strandlund |
Translate the following into a SQL query | What country came in third when there were 13 teams in 1996? | SELECT Third FROM table WHERE Teams = 13 AND Season = 1996 |
Translate the following into a SQL query | What is the sum of season when the venue was donington park, and Brazil came in second? | SELECT SUM Season FROM table WHERE Venue = donington park AND Second = brazil |
Translate the following into a SQL query | What is the average Season when the venue was circuit de nevers magny-cours, and Drivers was more than 30? | SELECT AVG Season FROM table WHERE Venue = circuit de nevers magny-cours AND Drivers > 30 |
Translate the following into a SQL query | What is the total number of Losses when the percentage is 54.83, with more than 8 points? | SELECT COUNT Losses FROM table WHERE Percentage = 54.83 AND Points > 8 |
Translate the following into a SQL query | What is the average Points For when there are Points Against more than 780, and Points smaller than 0? | SELECT AVG Points For FROM table WHERE Points Against > 780 AND Points < 0 |
Translate the following into a SQL query | What is the average Points when the Points Against is 594, and Losses is more than 3? | SELECT AVG Points FROM table WHERE Points Against = 594 AND Losses > 3 |
Translate the following into a SQL query | What is the average Percentage when there are more than 0 wins, Points Against is more than 481, Losses of 8, and a Points For larger than 826? | SELECT AVG Percentage FROM table WHERE Wins > 0 AND Points Against > 481 AND Losses = 8 AND Points For > 826 |
Translate the following into a SQL query | What is the lowest Wins when the Club is broadview hawks, and Points Against is more than 594? | SELECT MIN Wins FROM table WHERE Club = broadview hawks AND Points Against > 594 |
Translate the following into a SQL query | What Goalkeeper has MINS less than 2160 | SELECT Goalkeeper FROM table WHERE MINS < 2160 |
Translate the following into a SQL query | What is the highest SHTS of Kasey Keller | SELECT MAX SHTS FROM table WHERE Goalkeeper = kasey keller |
Translate the following into a SQL query | What is the most number of Bronze medals won among the countries that have won more than 1 medal, more than 1 gold medal, and have a rank bigger than 1? | SELECT MAX Bronze FROM table WHERE Total > 1 AND Rank > 1 AND Gold > 1 |
Translate the following into a SQL query | What is the total number of Losses that Melton had when they had fewer Draws than 0? | SELECT SUM Losses FROM table WHERE Ballarat FL = melton AND Draws < 0 |
Translate the following into a SQL query | What is the lowest number of Against that Lake Wendouree had when they had more than 7 Losses? | SELECT MIN Against FROM table WHERE Ballarat FL = lake wendouree AND Losses > 7 |
Translate the following into a SQL query | What was the total number of Byes for the team that had 1136 Against and fewer than 0 Draws? | SELECT COUNT Byes FROM table WHERE Against = 1136 AND Draws < 0 |
Translate the following into a SQL query | What was the greatest number of Losses for the team that had 1427 Against and more than 5 Wins? | SELECT MAX Losses FROM table WHERE Against > 1427 AND Wins > 5 |
Translate the following into a SQL query | What is the average number of Byes for the team that had 15 Losses, and less than 1 Win? | SELECT AVG Byes FROM table WHERE Losses = 15 AND Wins < 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.