instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Which Arena has a Date of october 10? | SELECT Arena FROM table WHERE Date = october 10 |
Translate the following into a SQL query | Which Attendance has a Score of 4–3, and Points smaller than 5? | SELECT MAX Attendance FROM table WHERE Score = 4–3 AND Points < 5 |
Translate the following into a SQL query | Which Attendance has an Arena of arrowhead pond of anaheim, and Points smaller than 5? | SELECT Attendance FROM table WHERE Arena = arrowhead pond of anaheim AND Points < 5 |
Translate the following into a SQL query | How much Attendance has an Arena of arrowhead pond of anaheim, and Points of 5? | SELECT SUM Attendance FROM table WHERE Arena = arrowhead pond of anaheim AND Points = 5 |
Translate the following into a SQL query | How much 1969 has a 1967 smaller than 0.73, and a 1964 larger than 0.07? | SELECT COUNT 1969 FROM table WHERE 1967 < 0.73 AND 1964 > 0.07 |
Translate the following into a SQL query | Which 1964 has a Country of united states, and a 1969 smaller than 7.3? | SELECT MIN 1964 FROM table WHERE Country = united states AND 1969 < 7.3 |
Translate the following into a SQL query | Which 1965 has a 1962 of 0.35000000000000003, and a 1967 smaller than 0.53? | SELECT MIN 1965 FROM table WHERE 1962 = 0.35000000000000003 AND 1967 < 0.53 |
Translate the following into a SQL query | What is Bev Risman's Cross Code Debut? | SELECT Cross Code Debut FROM table WHERE Player = bev risman |
Translate the following into a SQL query | What is the Date of RL Test v Wales Int'l Debut? | SELECT Date FROM table WHERE Int'l Debut = rl test v wales |
Translate the following into a SQL query | What is the Player with a Cross Code Debut of RL Test GB v France? | SELECT Player FROM table WHERE Cross Code Debut = rl test gb v france |
Translate the following into a SQL query | In what Year is Keith Smith's Cross Code Debut RL Test v Wales? | SELECT Year FROM table WHERE Cross Code Debut = rl test v wales AND Player = keith smith |
Translate the following into a SQL query | What is the Date of the Int'l Debut of 1967? | SELECT Date FROM table WHERE Year = 1967 |
Translate the following into a SQL query | What is the Player in the Int'l Debut of 1974? | SELECT Player FROM table WHERE Year = 1974 |
Translate the following into a SQL query | What lane has a time of 24.83 and a heat less than 11? | SELECT SUM Lane FROM table WHERE Time = 24.83 AND Heat < 11 |
Translate the following into a SQL query | What is the total number of heat for Chinyere Pigot? | SELECT COUNT Heat FROM table WHERE Name = chinyere pigot |
Translate the following into a SQL query | What is the name for lane 1, from Mauritius? | SELECT Name FROM table WHERE Lane = 1 AND Nationality = mauritius |
Translate the following into a SQL query | Who won in 1988 with a total less than 287? | SELECT Player FROM table WHERE Total < 287 AND Year(s) won = 1988 |
Translate the following into a SQL query | What country is Larry Mize from? | SELECT Country FROM table WHERE Player = larry mize |
Translate the following into a SQL query | What is the lowest number of bronze medals for a nation with fewer than 1 total medal? | SELECT MIN Bronze FROM table WHERE Total < 1 |
Translate the following into a SQL query | What team is Frank Hulbert on? | SELECT Team FROM table WHERE Rider = frank hulbert |
Translate the following into a SQL query | What was Martin Geiger's rank? | SELECT Rank FROM table WHERE Rider = martin geiger |
Translate the following into a SQL query | What was Tom Silver's rank? | SELECT Rank FROM table WHERE Rider = tom silver |
Translate the following into a SQL query | Who was the player with a debut of age 18 v plymouth , 14 august 2012, and born in Portsmouth? | SELECT Player FROM table WHERE Debut = age 18 v plymouth , 14 august 2012 AND Born = portsmouth |
Translate the following into a SQL query | Where was the player whose Current Club Elfsborg born? | SELECT Born FROM table WHERE Current Club = elfsborg |
Translate the following into a SQL query | What is the debut for the person born in Poole? | SELECT Debut FROM table WHERE Born = poole |
Translate the following into a SQL query | What is the club for Sam Magri? | SELECT Current Club FROM table WHERE Player = sam magri |
Translate the following into a SQL query | What is the name of the manager of the Atlético Baleares? | SELECT Manager FROM table WHERE Current Club = atlético baleares |
Translate the following into a SQL query | Who was the best blocker for the year that has a League Champion of queens of pain, and a C.A.N.T.S.L.E.E.P. Award of chassis crass (brooklyn)? | SELECT Best Blocker FROM table WHERE League Champion = queens of pain AND C.A.N.T.S.L.E.E.P. Award = chassis crass (brooklyn) |
Translate the following into a SQL query | Who was the rookie of the year for the year that had the Brooklyn Bombshells as the league champion? | SELECT Rookie of the Year FROM table WHERE League Champion = brooklyn bombshells |
Translate the following into a SQL query | What was the latest year that has a Rookie of the Year of omg wtf (brooklyn) and League Champion of bronx gridlock? | SELECT MAX Year FROM table WHERE League Champion = bronx gridlock AND Rookie of the Year = omg wtf (brooklyn) |
Translate the following into a SQL query | Which Arena has Points larger than 28, and a Date of december 14? | SELECT Arena FROM table WHERE Points > 28 AND Date = december 14 |
Translate the following into a SQL query | How many Points have an Arena of bell centre? | SELECT COUNT Points FROM table WHERE Arena = bell centre |
Translate the following into a SQL query | How much Attendance has a Loss of divis (0–3–0), and Points smaller than 38? | SELECT SUM Attendance FROM table WHERE Loss = divis (0–3–0) AND Points < 38 |
Translate the following into a SQL query | With a 1st run of 53.300 (7), and greater than 21 total, what is the average rank? | SELECT AVG Rank FROM table WHERE 1st run = 53.300 (7) AND Total > 21 |
Translate the following into a SQL query | What 2nd run has a less than 6 rank, and 3 as the total? | SELECT 2nd run FROM table WHERE Rank < 6 AND Total = 3 |
Translate the following into a SQL query | When the 3rd run is 36.490 (3) what is the 2nd run? | SELECT 2nd run FROM table WHERE 3rd run = 36.490 (3) |
Translate the following into a SQL query | What is the sum number of year when Call of Duty 4: Modern Warfare was the game? | SELECT COUNT Year FROM table WHERE Game = call of duty 4: modern warfare |
Translate the following into a SQL query | What is the earliest year when action was the genre? | SELECT MIN Year FROM table WHERE Genre = action |
Translate the following into a SQL query | What is the smallest year when Ubisoft Montreal was the developer (s)? | SELECT MIN Year FROM table WHERE Developer(s) = ubisoft montreal |
Translate the following into a SQL query | What is the latest year when Call of Duty 4: Modern Warfare was the game? | SELECT MAX Year FROM table WHERE Game = call of duty 4: modern warfare |
Translate the following into a SQL query | Who was Lieutenant Governor to the governor that left office on January 14, 1929? | SELECT Lieutenant Governor FROM table WHERE Left office = january 14, 1929 |
Translate the following into a SQL query | Which governor took office on January 8, 1877? | SELECT Governor FROM table WHERE Took office = january 8, 1877 |
Translate the following into a SQL query | Who was lieutenant governor to the governor that left office on October 16, 2000? | SELECT Lieutenant Governor FROM table WHERE Left office = october 16, 2000 |
Translate the following into a SQL query | How many terms did the governor that left office on August 4, 1825 serve? | SELECT Terms FROM table WHERE Left office = august 4, 1825 |
Translate the following into a SQL query | On what date did the Democratic governor that had Wallace Crossley as lieutenant governor take office? | SELECT Took office FROM table WHERE Party = democratic AND Lieutenant Governor = wallace crossley |
Translate the following into a SQL query | Which governor had William Henry Ashley as lieutenant governor? | SELECT Governor FROM table WHERE Lieutenant Governor = william henry ashley |
Translate the following into a SQL query | Which IHSAA Class has a School of shakamak? | SELECT IHSAA Class FROM table WHERE School = shakamak |
Translate the following into a SQL query | Which County has a School of bloomfield? | SELECT County FROM table WHERE School = bloomfield |
Translate the following into a SQL query | How much Enrollment has a School of shakamak? | SELECT COUNT Enrollment FROM table WHERE School = shakamak |
Translate the following into a SQL query | Which IHSAA Class has a Mascot of bulldogs? | SELECT IHSAA Class FROM table WHERE Mascot = bulldogs |
Translate the following into a SQL query | What's the 1996 if 1986 has a 1R? | SELECT 1996 FROM table WHERE 1986 = 1r |
Translate the following into a SQL query | What's the 1986 if 1991 has a QF and 1998 has a 3R? | SELECT 1986 FROM table WHERE 1991 = qf AND 1998 = 3r |
Translate the following into a SQL query | What's the 1997 if 1993 has a 1R, 1995 has a 3R, and 1999 has a 1R? | SELECT 1997 FROM table WHERE 1999 = 1r AND 1995 = 3r AND 1993 = 1r |
Translate the following into a SQL query | What's the 1994 if 1995 has a 1R? | SELECT 1994 FROM table WHERE 1995 = 1r |
Translate the following into a SQL query | What's the tournament when 1992 is A? | SELECT Tournament FROM table WHERE 1992 = a |
Translate the following into a SQL query | What's the 1997 when 1992 is QF, 1995 is 1R, and 1999 is 1R? | SELECT 1997 FROM table WHERE 1999 = 1r AND 1992 = qf AND 1995 = 1r |
Translate the following into a SQL query | What's the most league cup apps for Jimmy Lawson having 0 league cup goals? | SELECT MAX League Cup Apps FROM table WHERE League Cup Goals = 0 AND Name = jimmy lawson |
Translate the following into a SQL query | What's the total goals for Alan Sweeney having 0 FA Cup goals and fewer than 0 League Cup apps? | SELECT AVG Total Goals FROM table WHERE FA Cup Goals = 0 AND Name = alan sweeney AND League Cup Apps < 0 |
Translate the following into a SQL query | What's the total number of league cup apps when the league goals were less than 0? | SELECT COUNT League Cup Apps FROM table WHERE League Goals < 0 |
Translate the following into a SQL query | Where was the September 3 game? | SELECT Location FROM table WHERE Date = september 3 |
Translate the following into a SQL query | Which game was on September 12? | SELECT Game FROM table WHERE Date = september 12 |
Translate the following into a SQL query | What is cork's rank? | SELECT Rank FROM table WHERE County = cork |
Translate the following into a SQL query | How many totals does cork have whose rank is larger than 2? | SELECT SUM Total FROM table WHERE County = cork AND Rank > 2 |
Translate the following into a SQL query | Which Matches have a Tally of 1-38? | SELECT Matches FROM table WHERE Tally = 1-38 |
Translate the following into a SQL query | How many silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals? | SELECT Silver FROM table WHERE Bronze > 0 AND Total < 54 AND Nation = spain |
Translate the following into a SQL query | What was the highest number of gold medals when there were 0 silver medals? | SELECT MAX Gold FROM table WHERE Silver < 0 |
Translate the following into a SQL query | What's Brazil's rank when it has notes of R? | SELECT COUNT Rank FROM table WHERE Notes = r AND Country = brazil |
Translate the following into a SQL query | What rank was the premier Sir John See? | SELECT COUNT Rank: FROM table WHERE Premier: = sir john see |
Translate the following into a SQL query | Which Peak Position has a Date of 10 june 1998? | SELECT Peak Position FROM table WHERE Date = 10 june 1998 |
Translate the following into a SQL query | What Report is on June 3, 2000? | SELECT Report FROM table WHERE Date = june 3, 2000 |
Translate the following into a SQL query | What is the Report on November 15, 2000? | SELECT Report FROM table WHERE Date = november 15, 2000 |
Translate the following into a SQL query | What is the Score on October 7, 2000? | SELECT Score FROM table WHERE Date = october 7, 2000 |
Translate the following into a SQL query | What is the figure for Santo Domingo, Dominican for the world record in the clean & jerk? | SELECT Santo Domingo , Dominican FROM table WHERE World record = clean & jerk |
Translate the following into a SQL query | What is the 98kg for Santo Domingo, Domincan on 1 October 2006? | SELECT 98kg FROM table WHERE Santo Domingo , Dominican = 1 october 2006 |
Translate the following into a SQL query | What is the FIPS code for the municipality that has an area of 114.76 sq mi (297.23 sq km) and had a 2010 population of less than 166,327? | SELECT AVG FIPS code FROM table WHERE Area = 114.76 sq mi (297.23 sq km) AND Population (2010) < 166,327 |
Translate the following into a SQL query | What is the FIPS code for the municipality that has an area of 58.60 sq mi (151.77 sq km) and had a 2010 population smaller than 166,327? | SELECT COUNT FIPS code FROM table WHERE Population (2010) < 166,327 AND Area = 58.60 sq mi (151.77 sq km) |
Translate the following into a SQL query | In what year was Yauco, which had over 42,043 people in 2010, founded? | SELECT AVG Founded FROM table WHERE Municipality = yauco AND Population (2010) > 42,043 |
Translate the following into a SQL query | Which Result has an Attendance larger than 38,354, and a Date of october 23, 1988? | SELECT Result FROM table WHERE Attendance > 38,354 AND Date = october 23, 1988 |
Translate the following into a SQL query | What is the attendance for a week smaller than 9 with a result of L 38-20? | SELECT MAX Attendance FROM table WHERE Result = l 38-20 AND Week < 9 |
Translate the following into a SQL query | Can you tell me the School that has the IHSAA Class of a, and the Enrollment 08-09 off 244? | SELECT School FROM table WHERE IHSAA Class = a AND Enrollment 08-09 = 244 |
Translate the following into a SQL query | Can you tell me the County that has the Location of shelbyville? | SELECT County FROM table WHERE Location = shelbyville |
Translate the following into a SQL query | How many Deaths have a Fate of damaged, and a Tonnage (GRT) smaller than 4,917? | SELECT COUNT Deaths FROM table WHERE Fate = damaged AND Tonnage ( GRT ) < 4,917 |
Translate the following into a SQL query | Which Tonnage has a Fate of sunk, and Deaths smaller than 17, and a Date of 16 november 1940? | SELECT Tonnage ( GRT ) FROM table WHERE Fate = sunk AND Deaths < 17 AND Date = 16 november 1940 |
Translate the following into a SQL query | How much tonnage has a Fate of sunk, and a Flag of great britain, and a Date of 26 september 1940, and Deaths of 2? | SELECT SUM Tonnage ( GRT ) FROM table WHERE Fate = sunk AND Flag = great britain AND Date = 26 september 1940 AND Deaths = 2 |
Translate the following into a SQL query | Which tonnage has a Date of 26 september 1940, and a Ship Name of ashantian? | SELECT MIN Tonnage ( GRT ) FROM table WHERE Date = 26 september 1940 AND Ship Name = ashantian |
Translate the following into a SQL query | What is the highest lane for Brazil, ranked less than 8? | SELECT MAX Lane FROM table WHERE Country = brazil AND Rank < 8 |
Translate the following into a SQL query | What is the total population with less than 789 males? | SELECT COUNT Total Population FROM table WHERE Male < 789 |
Translate the following into a SQL query | What is the lowest female number of the hiroo 1-chōme district, which has more than 1,666 households? | SELECT MIN Female FROM table WHERE District = hiroo 1-chōme AND Number of Households > 1,666 |
Translate the following into a SQL query | What is the highest number of males where there are 1,202 females and more than 1,127 households? | SELECT MAX Male FROM table WHERE Female = 1,202 AND Number of Households > 1,127 |
Translate the following into a SQL query | What is the total number of females where the total population is less than 2,195? | SELECT COUNT Female FROM table WHERE Total Population < 2,195 |
Translate the following into a SQL query | What was the outcome when the partner was Iryna Bremond? | SELECT Outcome FROM table WHERE Partner = iryna bremond |
Translate the following into a SQL query | What tournament had a Score of 6–3, 2–6, [10–8]? | SELECT Tournament FROM table WHERE Score = 6–3, 2–6, [10–8] |
Translate the following into a SQL query | Who was the partner when the surface was clay, and outcome was runner-up, with a score of 4–6, 1–6? | SELECT Partner FROM table WHERE Surface = clay AND Outcome = runner-up AND Score = 4–6, 1–6 |
Translate the following into a SQL query | What is the rank of Manuel Cortina Martínez? | SELECT Rank FROM table WHERE Athletes = manuel cortina martínez |
Translate the following into a SQL query | What is the rank if the person with a time of 1:40.626? | SELECT SUM Rank FROM table WHERE Time = 1:40.626 |
Translate the following into a SQL query | What is the rank of the person with a time of 1:44.757? | SELECT MAX Rank FROM table WHERE Time = 1:44.757 |
Translate the following into a SQL query | What is the rank of Israel? | SELECT MAX Rank FROM table WHERE Country = israel |
Translate the following into a SQL query | What is the name of the athlete from Myanmar? | SELECT Athletes FROM table WHERE Country = myanmar |
Translate the following into a SQL query | What are the notes for the person ranked larger than 2, and a time of 1:48.179? | SELECT Notes FROM table WHERE Rank > 2 AND Time = 1:48.179 |
Translate the following into a SQL query | What is the lowest Chorley with a 6 Preston and a 4 for West Lancashire? | SELECT MIN Chorley FROM table WHERE Preston = 6 AND West Lancashire < 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.