instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What was the Score of the 2008 Africa Cup of Nations Competition? | SELECT Score FROM table WHERE Competition = 2008 africa cup of nations |
Translate the following into a SQL query | Name the most goals with losses less than 15 and position more than 8 with points of 42+4 | SELECT MAX Goals for FROM table WHERE Losses < 15 AND Position > 8 AND Points = 42+4 |
Translate the following into a SQL query | Name the average goals against for draws of 8 and wins more than 22 with losses less than 12 | SELECT AVG Goals against FROM table WHERE Draws = 8 AND Losses < 12 AND Wins > 22 |
Translate the following into a SQL query | Name the least wins for goal difference being less than -20 with position less than 20 and goals for of 35 | SELECT MIN Wins FROM table WHERE Position < 20 AND Goals for = 35 AND Goal Difference < -20 |
Translate the following into a SQL query | Name the average losses for draws larger than 6 and played more than 38 | SELECT AVG Losses FROM table WHERE Draws > 6 AND Played > 38 |
Translate the following into a SQL query | Name the least goals against for played more than 38 | SELECT MIN Goals against FROM table WHERE Played > 38 |
Translate the following into a SQL query | After 1961, who as the Entrant when the engine was a Ferrari v8, and when the points were lower than 23? | SELECT Entrant FROM table WHERE Year > 1961 AND Engine = ferrari v8 AND Points < 23 |
Translate the following into a SQL query | What is was the Chassis in 1967? | SELECT Chassis FROM table WHERE Year = 1967 |
Translate the following into a SQL query | In 1962, what was the total number of points, when the Engine was Ferrari v6? | SELECT COUNT Points FROM table WHERE Engine = ferrari v6 AND Year = 1962 |
Translate the following into a SQL query | In 1961, what was the Chassis when the points were lower than 6? | SELECT Chassis FROM table WHERE Points < 6 AND Year = 1961 |
Translate the following into a SQL query | What was the sum of the years, when the entrant was Scuderia Ferrari, and when the Chassis was Ferrari 312/66? | SELECT SUM Year FROM table WHERE Entrant = scuderia ferrari AND Chassis = ferrari 312/66 |
Translate the following into a SQL query | What was the sum of the years, when the entrant was Scuderia Centro Sud, and when there were 6 points? | SELECT SUM Year FROM table WHERE Entrant = scuderia centro sud AND Points = 6 |
Translate the following into a SQL query | In the tkkm o manawatu coed school in kelvin grove, what is the Authority listed/ | SELECT Authority FROM table WHERE Gender = coed AND Area = kelvin grove AND Name = tkkm o manawatu |
Translate the following into a SQL query | which Authority has a coed school with a decile greater than 4, with a 150 roll? | SELECT Authority FROM table WHERE Gender = coed AND Decile > 4 AND Roll = 150 |
Translate the following into a SQL query | Name the language for trotta | SELECT Language FROM table WHERE Original title = trotta |
Translate the following into a SQL query | Name the original title directed by luis buñuel | SELECT Original title FROM table WHERE Director = luis buñuel |
Translate the following into a SQL query | Name the original title directed by sudhendu roy | SELECT Original title FROM table WHERE Director = sudhendu roy |
Translate the following into a SQL query | Name the film title that is spanish from peru | SELECT Film title used in nomination FROM table WHERE Language = spanish AND Country = peru |
Translate the following into a SQL query | Name the langauge for switzerland | SELECT Language FROM table WHERE Country = switzerland |
Translate the following into a SQL query | What is the Total with 0 Silver and Gold, 1 Bronze and Rank larger than 2? | SELECT MIN Total FROM table WHERE Rank > 2 AND Bronze = 1 AND Silver > 0 AND Gold < 0 |
Translate the following into a SQL query | How many Bronze medals were received by the nation that Ranked less than 5 and received more than 2 Gold medals, less than 4 Silver medals with a Total of 9 medals? | SELECT AVG Bronze FROM table WHERE Rank < 5 AND Gold > 2 AND Total = 9 AND Silver < 4 |
Translate the following into a SQL query | which order of bat belongs to the family of vespertilionidae and includes the northern long-eared myotis? | SELECT Order FROM table WHERE Family = vespertilionidae AND Name = northern long-eared myotis |
Translate the following into a SQL query | What year has WSC class? | SELECT Year FROM table WHERE Class = wsc |
Translate the following into a SQL query | Which race has D. Beadman for the jockey and a 4th place result? | SELECT Race FROM table WHERE Jockey = d. beadman AND Result = 4th |
Translate the following into a SQL query | What is the 1st party with Charles Isaac Elton as the 2nd member? | SELECT 1st Party FROM table WHERE 2nd Member = charles isaac elton |
Translate the following into a SQL query | Which election had Sir Alexander Fuller-Acland-Hood, bt as the 2nd member? | SELECT Election FROM table WHERE 2nd Member = sir alexander fuller-acland-hood, bt |
Translate the following into a SQL query | Who is the 2nd member of the conservative 1st party, which had Vaughan Lee as the 1st member, in the election of 1874? | SELECT 2nd Member FROM table WHERE 1st Party = conservative AND 1st Member = vaughan lee AND Election = 1874 |
Translate the following into a SQL query | What is the 2nd party for a conservative 1st party with a 1st member Charles Moody in the election of 1851 by-election? | SELECT 2nd Party FROM table WHERE 1st Party = conservative AND 1st Member = charles moody AND Election = 1851 by-election |
Translate the following into a SQL query | Who is the 1st member in the 1884 by-election? | SELECT 1st Member FROM table WHERE Election = 1884 by-election |
Translate the following into a SQL query | What is the 2nd party in the 1874 election? | SELECT 2nd Party FROM table WHERE Election = 1874 |
Translate the following into a SQL query | Which school had a player who played the C position? | SELECT School FROM table WHERE Position = c |
Translate the following into a SQL query | Which game is on the date October 16? | SELECT AVG Game FROM table WHERE Date = october 16 |
Translate the following into a SQL query | What is the 2009 value with a q1 in 2006 in the French Open? | SELECT 2009 FROM table WHERE 2006 = q1 AND Tournament = french open |
Translate the following into a SQL query | What is the 2010 value with a 2r in 2008 and A in 2013? | SELECT 2010 FROM table WHERE 2008 = 2r AND 2013 = a |
Translate the following into a SQL query | What is the 2007 value with 1r in 2009 in the US Open? | SELECT 2007 FROM table WHERE 2009 = 1r AND Tournament = us open |
Translate the following into a SQL query | What is the 2009 value in the 2011 Grand Slam Tournaments? | SELECT 2009 FROM table WHERE 2011 = grand slam tournaments |
Translate the following into a SQL query | What is the 2005 value with 1r in 2013 and q2 in 2011? | SELECT 2005 FROM table WHERE 2013 = 1r AND 2011 = q2 |
Translate the following into a SQL query | What is the 2010 value in the Australian Open? | SELECT 2010 FROM table WHERE Tournament = australian open |
Translate the following into a SQL query | what is the city of license for the station with the frequency mhz less than 102.3 abd erp w of 25? | SELECT City of license FROM table WHERE Frequency MHz < 102.3 AND ERP W = 25 |
Translate the following into a SQL query | \What is the class of the station with the call sign w254ah? | SELECT Class FROM table WHERE Call sign = w254ah |
Translate the following into a SQL query | what is the class of the station with erp w more than 30? | SELECT Class FROM table WHERE ERP W > 30 |
Translate the following into a SQL query | what is the highest frequency mhz with the call sign w292cu? | SELECT MAX Frequency MHz FROM table WHERE Call sign = w292cu |
Translate the following into a SQL query | Which constructor makes the ej15 ej15b chassis? | SELECT Constructor FROM table WHERE Chassis = ej15 ej15b |
Translate the following into a SQL query | Which tyre is on the car driven by Pedro de la Rosa? | SELECT Tyre FROM table WHERE Driver = pedro de la rosa |
Translate the following into a SQL query | Which constructor made the car with a rb1 chassis and which is driven by David Coulthard? | SELECT Constructor FROM table WHERE Chassis = rb1 AND Driver = david coulthard |
Translate the following into a SQL query | Which constructor manufactured the car with a c24 chassis and which is driven by Jacques Villeneuve? | SELECT Engine † FROM table WHERE Chassis = c24 AND Driver = jacques villeneuve |
Translate the following into a SQL query | What Region is the MHCL-20004 Catalog? | SELECT Region FROM table WHERE Catalog = mhcl-20004 |
Translate the following into a SQL query | What region is the ALCA-272 Catalog? | SELECT Region FROM table WHERE Catalog = alca-272 |
Translate the following into a SQL query | What label is the ALCA-9197 Catalog? | SELECT Label FROM table WHERE Catalog = alca-9197 |
Translate the following into a SQL query | What date is the MHCL-20004 Catalog? | SELECT Date FROM table WHERE Catalog = mhcl-20004 |
Translate the following into a SQL query | On what date was the Ed Remaster CD and TOCT-24365 Catalog released? | SELECT Date FROM table WHERE Format = ed remaster cd AND Catalog = toct-24365 |
Translate the following into a SQL query | What identities have more than 5 DVD volumes? | SELECT Identity(ies) FROM table WHERE DVD volume > 5 |
Translate the following into a SQL query | How many DVD volumes was identified by Skippy Johnson? | SELECT DVD volume FROM table WHERE Identity(ies) = skippy johnson |
Translate the following into a SQL query | What was the score when St. Louis was the visiting team? | SELECT Score FROM table WHERE Visitor = st. louis |
Translate the following into a SQL query | What was the decision when Chicago was the visiting team? | SELECT Decision FROM table WHERE Visitor = chicago |
Translate the following into a SQL query | What was the score on December 3 when Detroit was the home team and Legace took the decision? | SELECT Score FROM table WHERE Home = detroit AND Decision = legace AND Date = december 3 |
Translate the following into a SQL query | What was the record when Minnesota was the visiting team? | SELECT Record FROM table WHERE Visitor = minnesota |
Translate the following into a SQL query | On what date was the record with catalog ALCA-275 released? | SELECT Date FROM table WHERE Catalog = alca-275 |
Translate the following into a SQL query | What label released a record on March 25, 1984? | SELECT Label FROM table WHERE Date = march 25, 1984 |
Translate the following into a SQL query | What label released a record on December 19, 2001? | SELECT Label FROM table WHERE Date = december 19, 2001 |
Translate the following into a SQL query | What is the catalog of the record released on May 27, 2009? | SELECT Catalog FROM table WHERE Date = may 27, 2009 |
Translate the following into a SQL query | On what date was a record from Village Records with catalog VRCL-2205 released? | SELECT Date FROM table WHERE Label = village records AND Catalog = vrcl-2205 |
Translate the following into a SQL query | On what date was the record with catalog ALCA-275 released? | SELECT Date FROM table WHERE Catalog = alca-275 |
Translate the following into a SQL query | What was the earliest year that Yvette Alexander took office and was up for reelection after 2016? | SELECT MIN Took office FROM table WHERE Name = yvette alexander AND Up for reelection > 2016 |
Translate the following into a SQL query | What is the earliest year a Chairman who took office after 2011 is up for reelection? | SELECT MIN Up for reelection FROM table WHERE Took office > 2011 AND Position = chairman |
Translate the following into a SQL query | What year had less than 36 laps? | SELECT Year FROM table WHERE Laps < 36 |
Translate the following into a SQL query | What was the most laps with a finish of 10 and qualification of 106.185? | SELECT MAX Laps FROM table WHERE Finish = 10 AND Qual = 106.185 |
Translate the following into a SQL query | What is the most laps with a qualification of 106.185? | SELECT MAX Laps FROM table WHERE Qual = 106.185 |
Translate the following into a SQL query | In what year were laps less than 64 and the finish at 25? | SELECT Year FROM table WHERE Laps < 64 AND Finish = 25 |
Translate the following into a SQL query | What was the qualification in 1932? | SELECT Qual FROM table WHERE Year = 1932 |
Translate the following into a SQL query | What was the start with a rank of 3 in 1936? | SELECT Start FROM table WHERE Rank = 3 AND Year = 1936 |
Translate the following into a SQL query | Which 2nd leg came after a 1st leg of 0-3? | SELECT 2nd leg FROM table WHERE 1st leg = 0-3 |
Translate the following into a SQL query | For a Team 1 of Al-Merrikh, what was the aggregate? | SELECT Agg. FROM table WHERE Team 1 = al-merrikh |
Translate the following into a SQL query | Who was the Team 1 for a 2nd leg of 1-4? | SELECT Team 1 FROM table WHERE 2nd leg = 1-4 |
Translate the following into a SQL query | For an aggregate of 1-3, what was the 2nd leg? | SELECT 2nd leg FROM table WHERE Agg. = 1-3 |
Translate the following into a SQL query | For a team 2 of Al-Faisaly, what was the 2nd leg? | SELECT 2nd leg FROM table WHERE Team 2 = al-faisaly |
Translate the following into a SQL query | What years is the private school in upper hutt? | SELECT Years FROM table WHERE Area = upper hutt AND Authority = private |
Translate the following into a SQL query | What school with a decile of 7 is in upper hutt? | SELECT Name FROM table WHERE Decile = 7 AND Area = upper hutt |
Translate the following into a SQL query | What authority is the coed school in pinehaven? | SELECT Authority FROM table WHERE Gender = coed AND Area = pinehaven |
Translate the following into a SQL query | What years does plateau school serve? | SELECT Years FROM table WHERE Name = plateau school |
Translate the following into a SQL query | Is Upper valley middle school public or private? | SELECT Authority FROM table WHERE Name = upper valley middle school |
Translate the following into a SQL query | What is the record on June 13? | SELECT Record FROM table WHERE Date = june 13 |
Translate the following into a SQL query | Name the most lot number with notes of b4 bogies and diagram of 185 | SELECT MAX Lot No. FROM table WHERE Notes = b4 bogies AND Diagram = 185 |
Translate the following into a SQL query | Name the fleet numbers for diagram of 186 and lot number of 30798 | SELECT Fleet numbers FROM table WHERE Diagram = 186 AND Lot No. = 30798 |
Translate the following into a SQL query | What line is 24.7 km and head towards Toyohashi East? | SELECT Name FROM table WHERE Direction = toyohashi east AND Length (km) = 24.7 |
Translate the following into a SQL query | What is the record on November 18? | SELECT Record FROM table WHERE Date = november 18 |
Translate the following into a SQL query | What is the record when attendance is more than 19,658 and Los Angeles Rams are the visiting team? | SELECT Record FROM table WHERE Attendance > 19,658 AND Visitor = los angeles rams |
Translate the following into a SQL query | What was the average attendance when Chicago Bears were the home team? | SELECT AVG Attendance FROM table WHERE Home = chicago bears |
Translate the following into a SQL query | What is the score when the record is 5-4-1? | SELECT Score FROM table WHERE Record = 5-4-1 |
Translate the following into a SQL query | What is the largest number in attendance when the record is 1-1-0? | SELECT MAX Attendance FROM table WHERE Record = 1-1-0 |
Translate the following into a SQL query | What is the GDP of the nation with 56,210,000 people? | SELECT GDP per capita (US$) FROM table WHERE Population = 56,210,000 |
Translate the following into a SQL query | What is the area of the nation with GDP per capita (US$) of 11,929? | SELECT Area (km²) FROM table WHERE GDP per capita (US$) = 11,929 |
Translate the following into a SQL query | What is the population of the nation that has a GDP per capita (US$) of 11,929? | SELECT Population FROM table WHERE GDP per capita (US$) = 11,929 |
Translate the following into a SQL query | What is the Population of the nation that has an Area (km²) of 70,273? | SELECT Population FROM table WHERE Area (km²) = 70,273 |
Translate the following into a SQL query | What is the Population of the nation that has a Member countries consisting of existing members (1973)? | SELECT Population FROM table WHERE Member countries = existing members (1973) |
Translate the following into a SQL query | What television network, founded in 2002, has a community type of network? | SELECT Television Network FROM table WHERE Type of network = community AND Founded = 2002 |
Translate the following into a SQL query | At what stadium did the Green Bay Packers play an away game? | SELECT Stadium FROM table WHERE Visiting Team = green bay packers |
Translate the following into a SQL query | At what stadium was the final score 31-28? | SELECT Stadium FROM table WHERE Final Score = 31-28 |
Translate the following into a SQL query | Which team hosted the Kansas City Chiefs? | SELECT Host Team FROM table WHERE Visiting Team = kansas city chiefs |
Translate the following into a SQL query | What team hosted at Tampa Stadium? | SELECT Host Team FROM table WHERE Stadium = tampa stadium |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.