instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Can you tell me the lowest Year that has the Rank smaller the 132, and the Name of biodiversity richness? | SELECT MIN Year FROM table WHERE Rank < 132 AND Name = biodiversity richness |
Translate the following into a SQL query | Can you tell me the Source that has the Rank of 78? | SELECT Source FROM table WHERE Rank = 78 |
Translate the following into a SQL query | Can you tell me the Out of that has the Source of united nations, and the Rank larger than 47, and the Year smaller than 2003? | SELECT Out of FROM table WHERE Source = united nations AND Rank > 47 AND Year < 2003 |
Translate the following into a SQL query | Which Tournament has a 2004 of 1r? | SELECT Tournament FROM table WHERE 2004 = 1r |
Translate the following into a SQL query | What is the 2005 that has a grand slam tournaments in 2007? | SELECT 2005 FROM table WHERE 2007 = grand slam tournaments |
Translate the following into a SQL query | What is the 2006 that has a 2r in 2004, and a 2r in 2005? | SELECT 2006 FROM table WHERE 2004 = 2r AND 2005 = 2r |
Translate the following into a SQL query | What is the 2007 that has a grand slam tournaments in 2006. | SELECT 2007 FROM table WHERE 2006 = grand slam tournaments |
Translate the following into a SQL query | What is the 2004 that has a of grand slam tournaments in2006 ? | SELECT 2004 FROM table WHERE 2006 = grand slam tournaments |
Translate the following into a SQL query | What is 2006 has a 2007 of 3r? | SELECT 2006 FROM table WHERE 2007 = 3r |
Translate the following into a SQL query | What was the number of passengers going to MCO with a rank larger than 9? | SELECT COUNT Passengers FROM table WHERE Airport = mco AND Rank > 9 |
Translate the following into a SQL query | What was the airport with primary carrier of US Airways with a 2 ranking and more than 51,000 passengers? | SELECT Airport FROM table WHERE Passengers > 51,000 AND Carriers = us airways AND Rank = 2 |
Translate the following into a SQL query | What city had a rank before 3 and primary carrier JetBlue Airways? | SELECT City FROM table WHERE Rank < 3 AND Carriers = jetblue airways |
Translate the following into a SQL query | What was launched and laid down in February 1819? | SELECT Launched FROM table WHERE Laid down = february 1819 |
Translate the following into a SQL query | What is the total number of positions with less than 10 points, more than 7 qualifying, ret value in Race 1, and Jonathan Grant driving? | SELECT COUNT Pos. FROM table WHERE Points < 10 AND Qualifying > 7 AND Race 1 = ret AND Driver = jonathan grant |
Translate the following into a SQL query | What is Date, when Set 2 is 25-13? | SELECT Date FROM table WHERE Set 2 = 25-13 |
Translate the following into a SQL query | What is Total, when Set 5 is NA, and when Set 2 is 25-13? | SELECT Total FROM table WHERE Set 5 = na AND Set 2 = 25-13 |
Translate the following into a SQL query | What is Score, when Date is Jun 16, and when Set 4 is 25-20? | SELECT Score FROM table WHERE Date = jun 16 AND Set 4 = 25-20 |
Translate the following into a SQL query | What is Set 2, when Score is 3-0, when Date is May 11, and when Set 1 is 25-20? | SELECT Set 2 FROM table WHERE Score = 3-0 AND Date = may 11 AND Set 1 = 25-20 |
Translate the following into a SQL query | What is Set 4, when Set 1 is 25-18, and when Date is Jun 2? | SELECT Set 4 FROM table WHERE Set 1 = 25-18 AND Date = jun 2 |
Translate the following into a SQL query | What is the Team with a Score that is w 101–97 (2ot)? | SELECT Team FROM table WHERE Score = w 101–97 (2ot) |
Translate the following into a SQL query | What is the High points with a Score that is l 64–94 (ot)? | SELECT High points FROM table WHERE Score = l 64–94 (ot) |
Translate the following into a SQL query | What is the largest played when the drawn is less than 1? | SELECT MAX Played FROM table WHERE Drawn < 1 |
Translate the following into a SQL query | What points average has a played greater than 20? | SELECT AVG Points FROM table WHERE Played > 20 |
Translate the following into a SQL query | What is the smallest drawn with a position bigger than 10 and a played less than 20? | SELECT MIN Drawn FROM table WHERE Position > 10 AND Played < 20 |
Translate the following into a SQL query | At what average position is the drawn 9 and the points greater than 25? | SELECT AVG Position FROM table WHERE Drawn = 9 AND Points > 25 |
Translate the following into a SQL query | How many played has an against greater than 57 and a lost bigger than 14? | SELECT COUNT Played FROM table WHERE Against > 57 AND Lost > 14 |
Translate the following into a SQL query | The event rip curl pro mademoiselle is in which location? | SELECT Location FROM table WHERE Event = rip curl pro mademoiselle |
Translate the following into a SQL query | On the date november 24-december 6 what's the winner when the country is united states? | SELECT Winner FROM table WHERE Country = united states AND Date = november 24-december 6 |
Translate the following into a SQL query | Which year was the 100 m event played in Thessaloniki, Greece? | SELECT MIN Year FROM table WHERE Event = 100 m AND Venue = thessaloniki, greece |
Translate the following into a SQL query | Which position was the World Indoor Championships in a year later than 2008? | SELECT Position FROM table WHERE Competition = world indoor championships AND Year > 2008 |
Translate the following into a SQL query | What position was played at the World Athletics Final Competition in a year more recent than 2008? | SELECT Position FROM table WHERE Competition = world athletics final AND Year > 2008 |
Translate the following into a SQL query | What position was played at the World Athletics Final Competition in a year more recent than 2008? | SELECT Position FROM table WHERE Competition = world athletics final AND Year > 2008 |
Translate the following into a SQL query | What is the lowest Greater Doubles, when Doubles, I Class is 23, and when Doubles, II Class is less than 27? | SELECT MIN Greater Doubles FROM table WHERE Doubles, I Class = 23 AND Doubles, II Class < 27 |
Translate the following into a SQL query | What is the highest Doubles, II Class, when Doubles, I Class is less than 19? | SELECT MAX Doubles, II Class FROM table WHERE Doubles, I Class < 19 |
Translate the following into a SQL query | What is the lowest Semidoubles, when Doubles, II Class is 18, and when Total is less than 164? | SELECT MIN Semidoubles FROM table WHERE Doubles, II Class = 18 AND Total < 164 |
Translate the following into a SQL query | What is the lowest Date, when Doubles, II Class is 18, and when Total is less than 164? | SELECT MIN Date FROM table WHERE Doubles, II Class = 18 AND Total < 164 |
Translate the following into a SQL query | What are the goals of the assists of 5? | SELECT Goals FROM table WHERE Assists = 5 |
Translate the following into a SQL query | What is the assists for the year 1995? | SELECT Assists FROM table WHERE Year = 1995 |
Translate the following into a SQL query | What assists has the Team SMU and the total points of 85? | SELECT Assists FROM table WHERE Team = smu AND Total Points = 85 |
Translate the following into a SQL query | What year had 48 assists? | SELECT Year FROM table WHERE Assists = 48 |
Translate the following into a SQL query | What is the total points for GP/GS of 24/23? | SELECT Total Points FROM table WHERE GP/GS = 24/23 |
Translate the following into a SQL query | What is the assists for the Team of Florida and the total points of 75? | SELECT Assists FROM table WHERE Team = florida AND Total Points = 75 |
Translate the following into a SQL query | What is the attendance of the match with F.C. central chugoku as the home team? | SELECT Attendance FROM table WHERE Home Team = f.c. central chugoku |
Translate the following into a SQL query | What is the away team of match 9? | SELECT Away Team FROM table WHERE Match No. = 9 |
Translate the following into a SQL query | What is the score of match 15? | SELECT Score FROM table WHERE Match No. = 15 |
Translate the following into a SQL query | What is the attendance of the match with kochi university as the away team? | SELECT Attendance FROM table WHERE Away Team = kochi university |
Translate the following into a SQL query | What is the attendance of the match with rosso kumamoto as the away team? | SELECT Attendance FROM table WHERE Away Team = rosso kumamoto |
Translate the following into a SQL query | What year did the company have a balance sheet total of €125,359,000? | SELECT COUNT Year FROM table WHERE Balance sheet total = €125,359,000 |
Translate the following into a SQL query | What was the average Year of release for the Album, "Da Baddest Bitch"? | SELECT AVG Year FROM table WHERE Album = da baddest bitch |
Translate the following into a SQL query | After 2009, which Artist published the Song, "Party Like A DJ"? | SELECT Artist FROM table WHERE Year > 2009 AND Song = "party like a dj" |
Translate the following into a SQL query | What was the result of the game with a score of 3-2? | SELECT Result FROM table WHERE Score = 3-2 |
Translate the following into a SQL query | What was the score of the 2014 World Cup Qualification? | SELECT Score FROM table WHERE Competition = 2014 world cup qualification |
Translate the following into a SQL query | What was the result of the game with a score of 4-1? | SELECT Result FROM table WHERE Score = 4-1 |
Translate the following into a SQL query | What venue held with game with a score of 3-2? | SELECT Venue FROM table WHERE Score = 3-2 |
Translate the following into a SQL query | Which Cover model has a 20 Questions of christina applegate? | SELECT Cover model FROM table WHERE 20 Questions = christina applegate |
Translate the following into a SQL query | When has a Centerfold model of krista kelly? | SELECT Date FROM table WHERE Centerfold model = krista kelly |
Translate the following into a SQL query | Which 20 Questions has a Cover model of rena mero , torrie wilson (two alternative covers)? | SELECT 20 Questions FROM table WHERE Cover model = rena mero , torrie wilson (two alternative covers) |
Translate the following into a SQL query | When Centerfold model is on 3-04? | SELECT Centerfold model FROM table WHERE Date = 3-04 |
Translate the following into a SQL query | Which Cover model has a Centerfold model of scarlett keegan? | SELECT Cover model FROM table WHERE Centerfold model = scarlett keegan |
Translate the following into a SQL query | When has a Centerfold model of pilar lastra? | SELECT Date FROM table WHERE Centerfold model = pilar lastra |
Translate the following into a SQL query | What is the average share at 8:00 p.m., and an 18-49 of 1.3/4 with an air date of April 4, 2008? | SELECT AVG Share FROM table WHERE Timeslot = 8:00 p.m. AND 18-49 = 1.3/4 AND Air Date = april 4, 2008 |
Translate the following into a SQL query | What is the lowest share with an air date of March 21, 2008 and had viewers larger than 5.15? | SELECT MIN Share FROM table WHERE Air Date = march 21, 2008 AND Viewers > 5.15 |
Translate the following into a SQL query | What is the lowest team (s) that have tvmk as top scorer (s) and flora as the champion? | SELECT MIN Team(s) FROM table WHERE Top Goalscorer(s) = tvmk AND Champion = flora |
Translate the following into a SQL query | Which runner-up has narva trans as a 3rd position for the 2005 season? | SELECT Runner-Up FROM table WHERE 3rd Position = narva trans AND Season = 2005 |
Translate the following into a SQL query | Which season has flora as the runner-up, tvmk as the 3rd position, and narva trans as the top goalscorer (s)? | SELECT Season FROM table WHERE Runner-Up = flora AND 3rd Position = tvmk AND Top Goalscorer(s) = narva trans |
Translate the following into a SQL query | Which runner-up has levadia as the 3rd position for the team (s) 37? | SELECT Runner-Up FROM table WHERE 3rd Position = levadia AND Team(s) = 37 |
Translate the following into a SQL query | What round had the opponent Lyon? | SELECT Round FROM table WHERE Opposition = lyon |
Translate the following into a SQL query | Who has the first leg that has a round in the semi-final? | SELECT First leg FROM table WHERE Round = semi-final |
Translate the following into a SQL query | What is Most Laps Led, when Winning Team is Chip Ganassi Racing, and when Fastest Lap is Marco Andretti? | SELECT Most laps led FROM table WHERE Winning team = chip ganassi racing AND Fastest lap = marco andretti |
Translate the following into a SQL query | Who is the Winning Driver, when Most Laps Led is Dario Franchitti, and when Pole Position is Hélio Castroneves? | SELECT Winning driver FROM table WHERE Most laps led = dario franchitti AND Pole position = hélio castroneves |
Translate the following into a SQL query | What is Winning Team, when Most Laps Led is Alex Tagliani? | SELECT Winning team FROM table WHERE Most laps led = alex tagliani |
Translate the following into a SQL query | What is Winning Driver, when Fastest Lap is Ryan Hunter-Reay, and when Most Laps Led is Ryan Briscoe? | SELECT Winning driver FROM table WHERE Fastest lap = ryan hunter-reay AND Most laps led = ryan briscoe |
Translate the following into a SQL query | What is Race, when Winning Team is Chip Ganassi Racing, when Pole Position is Ryan Briscoe, and when Most Laps Led is Scott Dixon? | SELECT Race FROM table WHERE Winning team = chip ganassi racing AND Pole position = ryan briscoe AND Most laps led = scott dixon |
Translate the following into a SQL query | Who was the Winner when the Runner-up was Real Salt Lake? | SELECT Winner FROM table WHERE Runner-up = real salt lake |
Translate the following into a SQL query | During which Season was the tournament in progress? | SELECT Season FROM table WHERE Runner-up = tournament in progress |
Translate the following into a SQL query | What was the Score during the Season in which the Winner was C.F. Atlante? | SELECT Score FROM table WHERE Winner = c.f. atlante |
Translate the following into a SQL query | What was the Score when the Losing Semifinalists were Toluca Unam? | SELECT Score FROM table WHERE Losing Semifinalists = toluca unam |
Translate the following into a SQL query | What law has a penalty of — in Iraq? | SELECT Laws against homosexuality FROM table WHERE Penalty = — AND Country = iraq |
Translate the following into a SQL query | What are the laws against homosexuality in Malaysia? | SELECT Laws against homosexuality FROM table WHERE Country = malaysia |
Translate the following into a SQL query | What is the average Events when the top-25 is 12 and there are less than 0 wins? | SELECT AVG Events FROM table WHERE Top-25 = 12 AND Wins < 0 |
Translate the following into a SQL query | What is the sum of Events when the top-25 is more than 5, and the top-10 is less than 4, and wins is more than 2? | SELECT SUM Events FROM table WHERE Top-25 > 5 AND Top-10 < 4 AND Wins > 2 |
Translate the following into a SQL query | What is the average Top-10 when there were 17 cuts made with less than 0 wins? | SELECT AVG Top-10 FROM table WHERE Cuts made = 17 AND Wins < 0 |
Translate the following into a SQL query | What is the sum of Cuts made when there were more than 72 events? | SELECT SUM Cuts made FROM table WHERE Events > 72 |
Translate the following into a SQL query | What is the average Top-5 for the open championship, and a Top-10 smaller than 2? | SELECT AVG Top-5 FROM table WHERE Tournament = the open championship AND Top-10 < 2 |
Translate the following into a SQL query | What was the date of airing for episodes with ratings under 10.1 and production number of 96 5-09? | SELECT Original airing FROM table WHERE Rating < 10.1 AND Episode number Production number = 96 5-09 |
Translate the following into a SQL query | What was the fewest number of viewers for the episode production number of 109 5-22? | SELECT MIN Total viewers (in millions) FROM table WHERE Episode number Production number = 109 5-22 |
Translate the following into a SQL query | What is the First Aligned date in 1614? | SELECT First aligned day FROM table WHERE Date = 1614 |
Translate the following into a SQL query | How many Airlines have a total distance of 705 (km)? | SELECT COUNT # of Airlines FROM table WHERE Distance (km) = 705 |
Translate the following into a SQL query | What is the 1st leg result when team 1 is Gambia? | SELECT 1st leg FROM table WHERE Team 1 = gambia |
Translate the following into a SQL query | What is the 2nd leg result when team 2 is Morocco? | SELECT 2nd leg FROM table WHERE Team 2 = morocco |
Translate the following into a SQL query | Which Name was in the Year 2001? | SELECT Name FROM table WHERE Year = 2001 |
Translate the following into a SQL query | Which Name had a Rank of 18 Out of a number smaller than 149? | SELECT Name FROM table WHERE Out of < 149 AND Rank = 18 |
Translate the following into a SQL query | Which Name had the Rank, 15? | SELECT Name FROM table WHERE Rank = 15 |
Translate the following into a SQL query | What is the lowest Rank for the Name, "area of permanent crops", Out of a number smaller than 181? | SELECT MIN Rank FROM table WHERE Name = area of permanent crops AND Out of < 181 |
Translate the following into a SQL query | Which Name had the Source, World Bank, and a Rank smaller than 110, Out of a number smaller than 199? | SELECT Name FROM table WHERE Source = world bank AND Rank < 110 AND Out of < 199 |
Translate the following into a SQL query | Which Team has Manzoor Elahi as Coach and Taufeeq Umar as Captain? | SELECT Team FROM table WHERE Coach = manzoor elahi AND Captain = taufeeq umar |
Translate the following into a SQL query | Which City has the Bahawalpur Stags Team? | SELECT City FROM table WHERE Team = bahawalpur stags |
Translate the following into a SQL query | Who is the opponent of the December 18, 1994 game? | SELECT Opponent FROM table WHERE Date = december 18, 1994 |
Translate the following into a SQL query | What is the Artist with a Date that is june 1979? | SELECT Artist FROM table WHERE Date = june 1979 |
Translate the following into a SQL query | What is the Writer with an Actual Title that is mork & mindy? | SELECT Writer FROM table WHERE Actual Title = mork & mindy |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.