instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What was the winning score when the margin of victory was 2 strokes and the runner-up was Pat Bradley? | SELECT Winning score FROM table WHERE Margin of victory = 2 strokes AND Runner(s)-up = pat bradley |
Translate the following into a SQL query | What was the margin of victory when the winning score was −5 (69-69-73=211)? | SELECT Margin of victory FROM table WHERE Winning score = −5 (69-69-73=211) |
Translate the following into a SQL query | Which tournament had a winning score of −5 (69-69-73=211)? | SELECT Tournament FROM table WHERE Winning score = −5 (69-69-73=211) |
Translate the following into a SQL query | When was the winning score −6 (69-69-73-71=282)? | SELECT Date FROM table WHERE Winning score = −6 (69-69-73-71=282) |
Translate the following into a SQL query | Who is the opponent of the game played on November 20, 1995? | SELECT Opponent FROM table WHERE Date = november 20, 1995 |
Translate the following into a SQL query | What is the highest Grid with a Name that is jamie whincup? | SELECT MAX Grid FROM table WHERE Name = jamie whincup |
Translate the following into a SQL query | What is the Team with a Lap that is 5? | SELECT Team FROM table WHERE Laps = 5 |
Translate the following into a SQL query | What's the lowest round Justin Forsett was drafted in, with a draft pick larger than 233? | SELECT MIN Round FROM table WHERE Name = justin forsett AND Pick > 233 |
Translate the following into a SQL query | What's the average round the position of RB was drafted? | SELECT AVG Round FROM table WHERE Position = rb |
Translate the following into a SQL query | What's the average round Red Bryant was drafted with a pick larger than 121? | SELECT AVG Round FROM table WHERE Name = red bryant AND Pick > 121 |
Translate the following into a SQL query | Can you tell me the Overall Record that has the Away Team of miami? | SELECT Overall Record FROM table WHERE Away Team = miami |
Translate the following into a SQL query | Can you tell me the Overall Record that has the Week of 3? | SELECT Overall Record FROM table WHERE Week = 3 |
Translate the following into a SQL query | Can you tell me the Divisional Record that has the Away Team of dallas? | SELECT Divisional Record FROM table WHERE Away Team = dallas |
Translate the following into a SQL query | Can you tell me the Overall Record that has the Week smaller than 16, and the Divisional Record of (1-0), and the Away Team of miami? | SELECT Overall Record FROM table WHERE Week < 16 AND Divisional Record = (1-0) AND Away Team = miami |
Translate the following into a SQL query | Can you tell me the Week that has the Home Team of detroit, and the Divisional Record of (3-0), and the Overall Record of (5-1), and the Away Team of minnesota? | SELECT Week FROM table WHERE Home Team = detroit AND Divisional Record = (3-0) AND Overall Record = (5-1) AND Away Team = minnesota |
Translate the following into a SQL query | Who is the choreographer with the style pas de deux? | SELECT Choreographer(s) FROM table WHERE Style = pas de deux |
Translate the following into a SQL query | What is the end of reign for Dimitar Stojkovski? | SELECT End of Reign FROM table WHERE Birth Name = dimitar stojkovski |
Translate the following into a SQL query | What is the title of the person who started their reign in 1999? | SELECT Title FROM table WHERE Start of Reign = 1999 |
Translate the following into a SQL query | What is the date of birth of the person who started their reign in 1986? | SELECT Birth Name FROM table WHERE Start of Reign = 1986 |
Translate the following into a SQL query | What is the average number for goals less than 73? | SELECT COUNT Average FROM table WHERE Goals < 73 |
Translate the following into a SQL query | What is the total average for 1990-1995, and goals less than 90? | SELECT COUNT Average FROM table WHERE Career = 1990-1995 AND Goals < 90 |
Translate the following into a SQL query | What was the lowest Position for a Team with fewer than 3 Lost, a Difference of 1, and more than 7 games Played? | SELECT MIN Position FROM table WHERE Lost < 3 AND Difference = 1 AND Played > 7 |
Translate the following into a SQL query | What is the sum of games Played by the Team Vasco Da Gama, with fewer than 12 Against? | SELECT SUM Played FROM table WHERE Team = vasco da gama AND Against < 12 |
Translate the following into a SQL query | What was the Difference of the Team that had a Position less than 2? | SELECT Difference FROM table WHERE Position < 2 |
Translate the following into a SQL query | Which attendance number was taken on november 21, 2004? | SELECT Attendance FROM table WHERE Date = november 21, 2004 |
Translate the following into a SQL query | Which attendance number was taken in a week less than 16 when the Washington Redskins were the opponents? | SELECT Attendance FROM table WHERE Week < 16 AND Opponent = washington redskins |
Translate the following into a SQL query | How many weeks had the Green Bay packers as opponents? | SELECT SUM Week FROM table WHERE Opponent = green bay packers |
Translate the following into a SQL query | What Country had a Score of 71-67=138? | SELECT Country FROM table WHERE Score = 71-67=138 |
Translate the following into a SQL query | What Country had a Score of 75-68=143? | SELECT Country FROM table WHERE Score = 75-68=143 |
Translate the following into a SQL query | How many total innings have an average under 6.33, strike rate under 71.43, balls faced over 36, and smaller than 19 runs scored? | SELECT SUM Innings FROM table WHERE Average < 6.33 AND S.R. < 71.43 AND Balls Faced > 36 AND Runs Scored < 19 |
Translate the following into a SQL query | What is the number of averages having a balls faced over 297 and more than 7 innings? | SELECT COUNT Average FROM table WHERE Balls Faced > 297 AND Innings > 7 |
Translate the following into a SQL query | What is the smallest number of innings with a strike rate of 72.05 and under 297 balls faced? | SELECT MIN Innings FROM table WHERE S.R. = 72.05 AND Balls Faced < 297 |
Translate the following into a SQL query | What is the sum of balls faced associated with a strike rate over 48.28, 3 innings, and an average under 5? | SELECT SUM Balls Faced FROM table WHERE S.R. > 48.28 AND Innings = 3 AND Average < 5 |
Translate the following into a SQL query | What is the Nation with a Date that is may 6, 1991? | SELECT Nation FROM table WHERE Date = may 6, 1991 |
Translate the following into a SQL query | What is the Record with a Date that is may 20, 1961? | SELECT Record FROM table WHERE Date = may 20, 1961 |
Translate the following into a SQL query | Who was the partner of the winner? | SELECT Partner FROM table WHERE Outcome = winner |
Translate the following into a SQL query | What is the Volume:Issue for the song " stars on 45 medley "? | SELECT Volume:Issue FROM table WHERE Song = " stars on 45 medley " |
Translate the following into a SQL query | What is the Issue with less than 6 weeks on top and for the song " the friends of mr. cairo "? | SELECT Issue Date(s) FROM table WHERE Weeks on Top < 6 AND Song = " the friends of mr. cairo " |
Translate the following into a SQL query | What is the sum of Weeks on Top for the Volume:Issue 34:9-12? | SELECT SUM Weeks on Top FROM table WHERE Volume:Issue = 34:9-12 |
Translate the following into a SQL query | How many Places (Posición) has a Draw (PE) larger than 2 and a Team (Equipo) of paraíso and a Won (PG) larger than 6? | SELECT COUNT Place (Posición) FROM table WHERE Draw (PE) > 2 AND Team (Equipo) = paraíso AND Won (PG) > 6 |
Translate the following into a SQL query | How many league cups have yeovil town as the club, with a league less than 16? | SELECT COUNT League Cup FROM table WHERE Club = yeovil town AND League < 16 |
Translate the following into a SQL query | What is the average FA Cup that has gary jones as the player, and an FA trophy greater than 5? | SELECT AVG FA Cup FROM table WHERE Player = gary jones AND FA Trophy > 5 |
Translate the following into a SQL query | What FA trophys have tony hemmings as the player, with a league greater than 15? | SELECT SUM FA Trophy FROM table WHERE Player = tony hemmings AND League > 15 |
Translate the following into a SQL query | What is the score where the country is Japan? | SELECT Score FROM table WHERE Country = japan |
Translate the following into a SQL query | What year has a winner's share smaller than 14,000? | SELECT AVG Year FROM table WHERE Winner's share ($) < 14,000 |
Translate the following into a SQL query | Which province has muju as the capital? | SELECT Province FROM table WHERE Capital = muju |
Translate the following into a SQL query | What is the modern equivalent of 良州 in Hanja? | SELECT Modern equivalent FROM table WHERE Hanja = 良州 |
Translate the following into a SQL query | What is the capital of the province with 양주 in Hangul? | SELECT Capital FROM table WHERE Hangul = 양주 |
Translate the following into a SQL query | What is the capital of the province with 漢州 in Hanja? | SELECT Capital FROM table WHERE Hanja = 漢州 |
Translate the following into a SQL query | What is the Hanja for the sakju province? | SELECT Hanja FROM table WHERE Province = sakju |
Translate the following into a SQL query | What is the fewest number of top-25s for events with more than 0 wins? | SELECT MIN Top-25 FROM table WHERE Wins > 0 |
Translate the following into a SQL query | What is the highest number of top-10s in events with more than 0 wins? | SELECT MAX Top-10 FROM table WHERE Wins > 0 |
Translate the following into a SQL query | What is the number of top-25s in events under 13, cuts made under 3, and 1 top-10? | SELECT Top-25 FROM table WHERE Events < 13 AND Cuts made < 3 AND Top-10 = 1 |
Translate the following into a SQL query | Which season had an average under 28, a rank under 10, and a partner of Janja Lesar? | SELECT Season FROM table WHERE Average < 28 AND Rank < 10 AND Professional Partner = janja lesar |
Translate the following into a SQL query | What is the highest season that had rank under 1? | SELECT MAX Season FROM table WHERE Rank < 1 |
Translate the following into a SQL query | Who was the professional partner in season 4? | SELECT Professional Partner FROM table WHERE Season = 4 |
Translate the following into a SQL query | Who had the highest rebounds against detroit? | SELECT High rebounds FROM table WHERE Team = detroit |
Translate the following into a SQL query | How much gold received by nation of uzbekistan (uzb)? | SELECT MAX Gold FROM table WHERE Nation = uzbekistan (uzb) |
Translate the following into a SQL query | Which team has the lowest gold and 0 silver? | SELECT MIN Gold FROM table WHERE Silver < 0 |
Translate the following into a SQL query | How much gold when silver, bronze and total is smaller than 1? | SELECT MAX Gold FROM table WHERE Silver < 1 AND Bronze = 1 AND Total < 1 |
Translate the following into a SQL query | What is the ICAO with commenced operations before 1989? | SELECT ICAO FROM table WHERE COMMENCED OPERATIONS < 1989 |
Translate the following into a SQL query | What is the lowest commenced operations that has a nouvelair callsign? | SELECT MIN COMMENCED OPERATIONS FROM table WHERE CALLSIGN = nouvelair |
Translate the following into a SQL query | What callsign has commenced operations in 2011? | SELECT CALLSIGN FROM table WHERE COMMENCED OPERATIONS = 2011 |
Translate the following into a SQL query | What language is used when the service is sky primafila 10 and the package/option is qualsiasi? | SELECT Language FROM table WHERE Package/Option = qualsiasi AND Television service = sky primafila 10 |
Translate the following into a SQL query | What is the content when the package/option is qualsiasi and sky primafila 14 is the television service? | SELECT Content FROM table WHERE Package/Option = qualsiasi AND Television service = sky primafila 14 |
Translate the following into a SQL query | What is the HDTV that has television service of tv 8 mont blanc and content is general television? | SELECT HDTV FROM table WHERE Content = general television AND Television service = tv 8 mont blanc |
Translate the following into a SQL query | Which city's IATA is nkg? | SELECT City FROM table WHERE IATA = nkg |
Translate the following into a SQL query | Which airport is in Xinjiang province in the city Kuqa? | SELECT Airport FROM table WHERE Province = xinjiang AND City = kuqa |
Translate the following into a SQL query | Which province's IATA is kix? | SELECT Province FROM table WHERE IATA = kix |
Translate the following into a SQL query | Which airport's IATA is pen? | SELECT Airport FROM table WHERE IATA = pen |
Translate the following into a SQL query | Which Event has a Record of 4:02.54? | SELECT Event FROM table WHERE Record = 4:02.54 |
Translate the following into a SQL query | Whcih Date has an Event of 3000 m? | SELECT Date FROM table WHERE Event = 3000 m |
Translate the following into a SQL query | Which Record has a Date of 23 february 1986? | SELECT Record FROM table WHERE Date = 23 february 1986 |
Translate the following into a SQL query | Which Date has a Record of 8:39.49? | SELECT Date FROM table WHERE Record = 8:39.49 |
Translate the following into a SQL query | Which Record has a Date of 3 march 2013? | SELECT Record FROM table WHERE Date = 3 march 2013 |
Translate the following into a SQL query | Which Nation has a Record of 15.16 m? | SELECT Nation FROM table WHERE Record = 15.16 m |
Translate the following into a SQL query | What is the Nationality of the Player with more than 8 Goals and Apps of 52? | SELECT Nationality FROM table WHERE Goals > 8 AND Apps = 52 |
Translate the following into a SQL query | How many Apps did Player Gilberto with more than 1 Goals have? | SELECT AVG Apps FROM table WHERE Player = gilberto AND Goals > 1 |
Translate the following into a SQL query | On what date was the 4th round, with home team Itabuna, played? | SELECT Date FROM table WHERE Round = 4th AND Home team = itabuna |
Translate the following into a SQL query | In the 6th round match with home team Bahia, who was the away team? | SELECT Away team FROM table WHERE Round = 6th AND Home team = bahia |
Translate the following into a SQL query | For the 5th round match with away team of Bahia, what was the final score? | SELECT Score FROM table WHERE Round = 5th AND Away team = bahia |
Translate the following into a SQL query | Which League has a Regular Season of 2nd, southeast? | SELECT League FROM table WHERE Regular Season = 2nd, southeast |
Translate the following into a SQL query | Who Playoffs has a Regular Season of on hiatus.? | SELECT Playoffs FROM table WHERE Regular Season = on hiatus. |
Translate the following into a SQL query | What is the population of Kragerø? | SELECT MIN Population FROM table WHERE City = kragerø |
Translate the following into a SQL query | What is the highest population of a city that has a town status of 2010? | SELECT MAX Population FROM table WHERE Town status = 2010 |
Translate the following into a SQL query | What is the highest population within the municipality of Porsgrunn? | SELECT MAX Population FROM table WHERE Municipality = porsgrunn |
Translate the following into a SQL query | What is the birthplace of the player who is 190 CM tall, plays the D position, and wears number 11? | SELECT Birthplace FROM table WHERE Position = d AND Height (cm) = 190 AND Jersey number = 11 |
Translate the following into a SQL query | What is the position of the player who played for the London Knights during 2009-2010? | SELECT Position FROM table WHERE 2009-10 team = london knights |
Translate the following into a SQL query | What's the total points that Scuderia Ferrari with a Ferrari V12 engine have before 1971? | SELECT SUM Points FROM table WHERE Year < 1971 AND Entrant = scuderia ferrari AND Engine = ferrari v12 |
Translate the following into a SQL query | What's the least amount of points that Walter Wolf Racing had after 1974? | SELECT MIN Points FROM table WHERE Year > 1974 AND Entrant = walter wolf racing |
Translate the following into a SQL query | What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games? | SELECT SUM Year FROM table WHERE Position = 6th AND Competition = commonwealth games |
Translate the following into a SQL query | What is the highest Year, when the Venue is Beijing, PR China? | SELECT MAX Year FROM table WHERE Venue = beijing, pr china |
Translate the following into a SQL query | What is the average Year, when Competition is Oceania Youth Championships? | SELECT AVG Year FROM table WHERE Competition = oceania youth championships |
Translate the following into a SQL query | What is Event, when Position is 4th? | SELECT Event FROM table WHERE Position = 4th |
Translate the following into a SQL query | What is the Date with a Format that is cd? | SELECT Date FROM table WHERE Format = cd |
Translate the following into a SQL query | What is the Catalog with a Date that is march 13, 2002? | SELECT Catalog FROM table WHERE Date = march 13, 2002 |
Translate the following into a SQL query | What is the Label with a Catalog that is mhcl-20017? | SELECT Label FROM table WHERE Catalog = mhcl-20017 |
Translate the following into a SQL query | What is the Catalog with a Date that is february 20, 2002? | SELECT Catalog FROM table WHERE Date = february 20, 2002 |
Translate the following into a SQL query | What is the lightest Weight (kg), when the Jersey # is greater than 22, when the Position is F, and when the Birthdate is March 19, 1980? | SELECT MIN Weight (kg) FROM table WHERE Jersey # > 22 AND Position = f AND Birthdate = march 19, 1980 |
Translate the following into a SQL query | What is the Position, when the Birthplace is Buffalo, New York? | SELECT Position FROM table WHERE Birthplace = buffalo, new york |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.