instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | what is the least tournaments played when the year is 1998? | SELECT MIN Tournaments played FROM table WHERE Year = 1998 |
Translate the following into a SQL query | what is the year when tournaments played is less than 2, cuts made is 1 and earnings ($) is less than 10,547? | SELECT SUM Year FROM table WHERE Tournaments played < 2 AND Cuts made = 1 AND Earnings ( $ ) < 10,547 |
Translate the following into a SQL query | what is the best finish when money list rank is n/a, earnings ($) is more than 0 and cuts made is more than 1? | SELECT Best finish FROM table WHERE Money list rank = n/a AND Earnings ( $ ) > 0 AND Cuts made > 1 |
Translate the following into a SQL query | how many times is the money list rank 221 and cuts more than 2? | SELECT COUNT Tournaments played FROM table WHERE Money list rank = 221 AND Cuts made > 2 |
Translate the following into a SQL query | what is the earliest year with the best finish t-65? | SELECT MIN Year FROM table WHERE Best finish = t-65 |
Translate the following into a SQL query | what is the average tournaments played when cuts made is 14? | SELECT AVG Tournaments played FROM table WHERE Cuts made = 14 |
Translate the following into a SQL query | What is the earliest date of taking office for district 22? | SELECT MIN Took Office FROM table WHERE District = 22 |
Translate the following into a SQL query | What district has a democratic leader from Roby? | SELECT SUM District FROM table WHERE Party = democratic AND Home Town = roby |
Translate the following into a SQL query | What is the district where Steve Carriker is the Democratic Senator and he took office later than 1988? | SELECT MAX District FROM table WHERE Party = democratic AND Senator = steve carriker AND Took Office > 1988 |
Translate the following into a SQL query | How many series originally aired before 1999 with more than 7 episodes and a DVD Region 1 release date of 16 april 2013? | SELECT COUNT Series Number FROM table WHERE Original Air Date < 1999 AND Number of Episodes > 7 AND DVD Region 1 release date = 16 april 2013 |
Translate the following into a SQL query | What's the latest original air date with more than 10 episodes and a DVD Region 2 release date of 23 april 2012? | SELECT MAX Original Air Date FROM table WHERE DVD Region 2 release date = 23 april 2012 AND Number of Episodes > 10 |
Translate the following into a SQL query | What was the original air date of series number 10? | SELECT AVG Original Air Date FROM table WHERE Series Number = 10 |
Translate the following into a SQL query | What's the sum of the number of episodes that originally aired after 1991 with a series number smaller than 21 and a DVD Region 2 release date of 26 march 2012? | SELECT SUM Number of Episodes FROM table WHERE Original Air Date > 1991 AND Series Number < 21 AND DVD Region 2 release date = 26 march 2012 |
Translate the following into a SQL query | What's the lowest series number that originally aired before 2009 with more than 7 episodes and had a DVD Region 2 release date of 26 july 2004? | SELECT MIN Series Number FROM table WHERE Original Air Date < 2009 AND DVD Region 2 release date = 26 july 2004 AND Number of Episodes > 7 |
Translate the following into a SQL query | What is the total of bronze that has more silvers than 2? | SELECT COUNT Bronze FROM table WHERE Silver > 2 |
Translate the following into a SQL query | What is the total of Golds with more bronzes than 1 and totaled larger than 4? | SELECT COUNT Gold FROM table WHERE Bronze > 1 AND Total > 4 |
Translate the following into a SQL query | What is the least total that had more Bronzes than 1 and more silvers than 2? | SELECT MIN Total FROM table WHERE Bronze > 1 AND Silver > 2 |
Translate the following into a SQL query | What is the least total that has fewer golds than 2, a higher rank than 4 and fewer bronzes than 1? | SELECT MIN Total FROM table WHERE Gold < 2 AND Rank = 4 AND Bronze < 1 |
Translate the following into a SQL query | What is the lest amount of bronzes that ranked 2 and has less silvers than 0? | SELECT MIN Bronze FROM table WHERE Rank = 2 AND Silver < 0 |
Translate the following into a SQL query | How many Total(s) are there, when the number of Bronze is greater than 13, when the Rank is 8, and when the number of Silver is less than 11? | SELECT COUNT Total FROM table WHERE Bronze > 13 AND Rank = 8 AND Silver < 11 |
Translate the following into a SQL query | What is the Nation, when the number of Bronze is less than 17, and when the number of Gold is less than 16? | SELECT Nation FROM table WHERE Bronze < 17 AND Gold < 16 |
Translate the following into a SQL query | What is the highest number of Silver, when the Nation is Japan (JPN), and when the Total is greater than 37? | SELECT MAX Silver FROM table WHERE Nation = japan (jpn) AND Total > 37 |
Translate the following into a SQL query | What is the lowest number of Gold, when the number of Bronze is less than 36, when the Rank is 2, and when Silver is less than 37? | SELECT MIN Gold FROM table WHERE Bronze < 36 AND Rank = 2 AND Silver < 37 |
Translate the following into a SQL query | What is Res., when Event is "FT 6 - Full Throttle 6"? | SELECT Res. FROM table WHERE Event = ft 6 - full throttle 6 |
Translate the following into a SQL query | What is Opponent, when Event is "ISCF - Southeast Championships"? | SELECT Opponent FROM table WHERE Event = iscf - southeast championships |
Translate the following into a SQL query | What is Event, when Record is "3-0"? | SELECT Event FROM table WHERE Record = 3-0 |
Translate the following into a SQL query | What is the date of the game against Chelsea when the league position is 14th? | SELECT Date FROM table WHERE Opponents = chelsea AND League position = 14th |
Translate the following into a SQL query | Which method had a time of 0:46? | SELECT Method FROM table WHERE Time = 0:46 |
Translate the following into a SQL query | In the fight against Brandon Bledsoe, how many rounds did the fight last? | SELECT Round FROM table WHERE Opponent = brandon bledsoe |
Translate the following into a SQL query | What methos did Keith Wisniewski use in the ufc fight night: teixeira vs. bader? | SELECT Method FROM table WHERE Event = ufc fight night: teixeira vs. bader |
Translate the following into a SQL query | What was the maximum speed of the car with 1.556 cc capacity? | SELECT Vmax FROM table WHERE Capacity = 1.556 cc |
Translate the following into a SQL query | What was the maximum speed for straight-4, 1.466 cc Type r 150? | SELECT Vmax FROM table WHERE Cylinder = straight-4 AND Capacity = 1.466 cc AND Type = r 150 |
Translate the following into a SQL query | What was the maximum speed for the P4-1 (24/36 ps)? | SELECT Vmax FROM table WHERE Type = p4-1 (24/36 ps) |
Translate the following into a SQL query | What country is Jack Nicklaus from? | SELECT Country FROM table WHERE Player = jack nicklaus |
Translate the following into a SQL query | What was the To par for bill britton when he placed t7? | SELECT To par FROM table WHERE Place = t7 AND Player = bill britton |
Translate the following into a SQL query | What was the To par of Jack Nicklaus? | SELECT To par FROM table WHERE Player = jack nicklaus |
Translate the following into a SQL query | What country was the golfer from who had a money amount of 45,000? | SELECT Country FROM table WHERE Money ( $ ) = 45,000 |
Translate the following into a SQL query | What was the To par for United States golfer fred couples? | SELECT To par FROM table WHERE Country = united states AND Player = fred couples |
Translate the following into a SQL query | what is the fate when the nationality is french and the ship is pierre lott? | SELECT Fate FROM table WHERE Nationality = french AND Ship = pierre lott |
Translate the following into a SQL query | what is the ship with the date of 28.1.1915? | SELECT Ship FROM table WHERE Date = 28.1.1915 |
Translate the following into a SQL query | what is the nationality when the ship is willerby? | SELECT Nationality FROM table WHERE Ship = willerby |
Translate the following into a SQL query | what is the least tonnage grt when the nationality is british and the ship is kidalton? | SELECT MIN Tonnage GRT FROM table WHERE Nationality = british AND Ship = kidalton |
Translate the following into a SQL query | Can you tell me the Season that has the Team 2 of hanoi acb? | SELECT Season FROM table WHERE Team 2 = hanoi acb |
Translate the following into a SQL query | Can you tell me the Team 2 that has the Venue of binh duong stadium, vietnam? | SELECT Team 2 FROM table WHERE Venue = binh duong stadium, vietnam |
Translate the following into a SQL query | Can you tell me the total number of Season that has the Team 2 of chonburi, and the Score of 0:1? | SELECT COUNT Season FROM table WHERE Team 2 = chonburi AND Score = 0:1 |
Translate the following into a SQL query | Which Score has a Place of t6, and a Player of raymond floyd? | SELECT Score FROM table WHERE Place = t6 AND Player = raymond floyd |
Translate the following into a SQL query | How much To par has a Place of t1, and a Score of 70-70-71-71=282? | SELECT COUNT To par FROM table WHERE Place = t1 AND Score = 70-70-71-71=282 |
Translate the following into a SQL query | What is tony lema's to par? | SELECT SUM To par FROM table WHERE Player = tony lema |
Translate the following into a SQL query | What was gary player's score? | SELECT Score FROM table WHERE Player = gary player |
Translate the following into a SQL query | What was the total number for the PIW Class' The Adventures Of... and had a score bigger than 94.6? | SELECT COUNT Year FROM table WHERE Class = piw AND Program Title = the adventures of... AND Score > 94.6 |
Translate the following into a SQL query | What class had a score of 95.1? | SELECT Class FROM table WHERE Score = 95.1 |
Translate the following into a SQL query | What is the lowest score for a year before 2008 and had 3rd place? | SELECT MIN Score FROM table WHERE Year < 2008 AND Placement = 3rd |
Translate the following into a SQL query | What was the latest year placement for Taboo with a score smaller than 96.125? | SELECT MAX Year FROM table WHERE Program Title = taboo AND Score < 96.125 |
Translate the following into a SQL query | What is the winning score before 1959, with runner-up Jackie Pung? | SELECT Winning score FROM table WHERE Year < 1959 AND Runner(s)-up = jackie pung |
Translate the following into a SQL query | Which Directed by has an Original air date of april 29, 2000? | SELECT Directed by FROM table WHERE Original air date = april 29, 2000 |
Translate the following into a SQL query | What was the result of the game from September 10, 2000? | SELECT Result FROM table WHERE Date = september 10, 2000 |
Translate the following into a SQL query | Which award ceremony took place on May 15, 1965? | SELECT Ceremony FROM table WHERE Date = may 15, 1965 |
Translate the following into a SQL query | Which movie was awarded Film of the Year on May 8, 1964? | SELECT Film of the Year FROM table WHERE Date = may 8, 1964 |
Translate the following into a SQL query | Can you tell me the highest DCSF number that has the Name of field, and the Ofsted number larger than 117160? | SELECT MAX DCSF number FROM table WHERE Name = field AND Ofsted number > 117160 |
Translate the following into a SQL query | Can you tell me the sum of Intake that has the Faith of rc, and the DCSF number larger than 2428? | SELECT SUM Intake FROM table WHERE Faith = rc AND DCSF number > 2428 |
Translate the following into a SQL query | Can you tell me the Name that has the DCSF number of 2117? | SELECT Name FROM table WHERE DCSF number = 2117 |
Translate the following into a SQL query | Can you tell me the highest Ofsted number that has the Type of infants, and the Intake larger than 60? | SELECT MAX Ofsted number FROM table WHERE Type = infants AND Intake > 60 |
Translate the following into a SQL query | What is the total number of Week, when Opponent is At Chicago Bears, and when Attendance is greater than 49,070? | SELECT COUNT Week FROM table WHERE Opponent = at chicago bears AND Attendance > 49,070 |
Translate the following into a SQL query | What is Date, when Week is 11? | SELECT Date FROM table WHERE Week = 11 |
Translate the following into a SQL query | What is the lowest Week, when Attendance is 38,624? | SELECT MIN Week FROM table WHERE Attendance = 38,624 |
Translate the following into a SQL query | How much international mail has a change of +35,7% later than 2008? | SELECT SUM International mail FROM table WHERE Change = +35,7% AND Year > 2008 |
Translate the following into a SQL query | How much international mail has 4,650 international freight and more than 0 domestic mail? | SELECT SUM International mail FROM table WHERE International freight = 4,650 AND Domestic mail > 0 |
Translate the following into a SQL query | What is the most domestic freight with a change of +9,8% and a total freight and mail of more than 3,278? | SELECT MAX Domestic freight FROM table WHERE Change = +9,8% AND Total freight and mail > 3,278 |
Translate the following into a SQL query | How much international freight has a change of +0,2% with more than 0 international mail? | SELECT COUNT International freight FROM table WHERE Change = +0,2% AND International mail > 0 |
Translate the following into a SQL query | What is the international mail with the highest number that has a change of +0,2% and less than 0 domestic mail? | SELECT MAX International mail FROM table WHERE Change = +0,2% AND Domestic mail < 0 |
Translate the following into a SQL query | What is the international mail with the lowest number to have less than 72 domestic freight, 0 domestic mail later than 2012 with total freight and mail more than 4,695? | SELECT MIN International mail FROM table WHERE Domestic freight < 72 AND Domestic mail = 0 AND Year < 2012 AND Total freight and mail > 4,695 |
Translate the following into a SQL query | what is the venue when the date is 16 january 1996? | SELECT Venue FROM table WHERE Date = 16 january 1996 |
Translate the following into a SQL query | what is the competition when the date is 16 january 1996? | SELECT Competition FROM table WHERE Date = 16 january 1996 |
Translate the following into a SQL query | WHAT IS THE RECORD FOR FEBRUARY 11? | SELECT Record FROM table WHERE Date = february 11 |
Translate the following into a SQL query | What was the award before 2001? | SELECT Award FROM table WHERE Year < 2001 |
Translate the following into a SQL query | What is the highest week for a game that was located at the Molson Stadium? | SELECT MAX Week FROM table WHERE Location = molson stadium |
Translate the following into a SQL query | What is the average week number for games that had 28,800 fans in attendance? | SELECT AVG Week FROM table WHERE Attendance = 28,800 |
Translate the following into a SQL query | Who did the argonauts play against during the game that had 19,423 fans in attendance? | SELECT Opponent FROM table WHERE Attendance = 19,423 |
Translate the following into a SQL query | What was Juli's winning margin on Aug 24, 1986? | SELECT Margin of victory FROM table WHERE Date = aug 24, 1986 |
Translate the following into a SQL query | What was the margin of victory at the LPGA Championship? | SELECT Margin of victory FROM table WHERE Tournament = lpga championship |
Translate the following into a SQL query | What is the highest value for Ties, when Losses is less than 8? | SELECT MAX Ties FROM table WHERE Losses < 8 |
Translate the following into a SQL query | What is the total number of Losses, when Ties is 2, and when Wins is greater than 8? | SELECT COUNT Losses FROM table WHERE Ties = 2 AND Wins > 8 |
Translate the following into a SQL query | What is the highest React that has a 7.61 Mark and a heat bigger than 1? | SELECT MAX React FROM table WHERE Mark = 7.61 AND Heat > 1 |
Translate the following into a SQL query | What is the Cause of death of the Officer with a Date of death of 1956-09-07? | SELECT Cause of death FROM table WHERE Date of death = 1956-09-07 |
Translate the following into a SQL query | What is the Tenure of the Officer who died in a helicopter accident with Badge/Serial Number 16805? | SELECT Tenure FROM table WHERE Cause of death = helicopter accident AND Badge/Serial Number = 16805 |
Translate the following into a SQL query | What is the Badge/Serial Number of the Policeman who died in Gunfire on 1919-02-18? | SELECT Badge/Serial Number FROM table WHERE Rank = policeman AND Cause of death = gunfire AND Date of death = 1919-02-18 |
Translate the following into a SQL query | What is the Rank of the Officer with Badge/Serial Number 11755 who died in Gunfire? | SELECT Rank FROM table WHERE Cause of death = gunfire AND Badge/Serial Number = 11755 |
Translate the following into a SQL query | What is Team, when Tries Against is 8? | SELECT Team FROM table WHERE Tries against = 8 |
Translate the following into a SQL query | What is Tries Against, when Tries For is 20? | SELECT Tries against FROM table WHERE Tries for = 20 |
Translate the following into a SQL query | What is Tries Against, when Points For is 98? | SELECT Tries against FROM table WHERE Points for = 98 |
Translate the following into a SQL query | What is Points Against, when Try Diff is +22? | SELECT Points against FROM table WHERE Try diff = +22 |
Translate the following into a SQL query | What is Record, when Event is "Independent Event", and when Method is "Submission (Peruvian Necktie)"? | SELECT Record FROM table WHERE Event = independent event AND Method = submission (peruvian necktie) |
Translate the following into a SQL query | What is Event, when Method is "Submission (Armbar)", and when Opponent is "Jason St. Louis"? | SELECT Event FROM table WHERE Method = submission (armbar) AND Opponent = jason st. louis |
Translate the following into a SQL query | What is Res., when Event is "KOTC 11 - Domination"? | SELECT Res. FROM table WHERE Event = kotc 11 - domination |
Translate the following into a SQL query | How many were in attendance with a Result of l 17β10? | SELECT Attendance FROM table WHERE Result = l 17β10 |
Translate the following into a SQL query | How many were in attendance in a week lower than 5 with a Bye result? | SELECT Attendance FROM table WHERE Week < 5 AND Result = bye |
Translate the following into a SQL query | On what date was the result w 26β20? | SELECT Date FROM table WHERE Result = w 26β20 |
Translate the following into a SQL query | Who was the opponent in a week below 14 on October 10, 1993? | SELECT Opponent FROM table WHERE Week < 14 AND Date = october 10, 1993 |
Translate the following into a SQL query | Name the average Top 5 which has a Position of 52nd with a Year smaller than 2000? | SELECT AVG Top 5 FROM table WHERE Position = 52nd AND Year < 2000 |
Translate the following into a SQL query | Name the average Wins which has a Top 10 smaller than 0? | SELECT AVG Wins FROM table WHERE Top 10 < 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.