instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Which class has a year prior to 2011 and audi r15 tdi as the chassis? | SELECT Class FROM table WHERE Year < 2011 AND Chassis = audi r15 tdi |
Translate the following into a SQL query | Which engine has a year later than 2006 and 60 as the points? | SELECT Engine FROM table WHERE Year > 2006 AND Points = 60 |
Translate the following into a SQL query | How many years has an engine of audi 3.6l turbo v8 and 1st as the rank with an audi r8r as the chassis? | SELECT COUNT Year FROM table WHERE Engine = audi 3.6l turbo v8 AND Rank = 1st AND Chassis = audi r8r |
Translate the following into a SQL query | Which entrant has 25th as the rank? | SELECT Entrant FROM table WHERE Rank = 25th |
Translate the following into a SQL query | What is the average year Rich Beem had a to par less than 17? | SELECT AVG Year won FROM table WHERE Player = rich beem AND To par < 17 |
Translate the following into a SQL query | What is the earliest year won with a total bigger than 156? | SELECT MIN Year won FROM table WHERE Total > 156 |
Translate the following into a SQL query | What is the total for Bob Tway for the year won before 2002 with a to par bigger than 7? | SELECT COUNT Total FROM table WHERE Year won < 2002 AND Player = bob tway AND To par > 7 |
Translate the following into a SQL query | What is the to par for Paul Azinger from the United States after 1986 for a total bigger than 145? | SELECT COUNT To par FROM table WHERE Country = united states AND Year won > 1986 AND Player = paul azinger AND Total > 145 |
Translate the following into a SQL query | What is the earliest year won Paul Azinger had with a to par higher than 5? | SELECT MIN Year won FROM table WHERE Player = paul azinger AND To par > 5 |
Translate the following into a SQL query | What is the year won by Australia with a to par bigger than 16? | SELECT COUNT Year won FROM table WHERE Country = australia AND To par > 16 |
Translate the following into a SQL query | What is the Lifespan when the Representative is Theodore F. Kluttz? | SELECT Lifespan FROM table WHERE Representative = theodore f. kluttz |
Translate the following into a SQL query | What week's game had a result of l 35β37? | SELECT Week FROM table WHERE Result = l 35β37 |
Translate the following into a SQL query | What year was trio brdeact wind allass the entrant? | SELECT Year FROM table WHERE Entrant = trio brdeact wind allass |
Translate the following into a SQL query | What is the year when kurtis kraft 500f was the chassis? | SELECT SUM Year FROM table WHERE Chassis = kurtis kraft 500f |
Translate the following into a SQL query | What is the earliest year when the points were more than 0? | SELECT MIN Year FROM table WHERE Points > 0 |
Translate the following into a SQL query | What's the school name in Balclutha that has a Decile of 7 and a roll larger than 186? | SELECT Name FROM table WHERE Area = balclutha AND Decile < 7 AND Roll > 186 |
Translate the following into a SQL query | Which school in Balclutha has a roll smaller than 55? | SELECT Name FROM table WHERE Area = balclutha AND Roll < 55 |
Translate the following into a SQL query | When has winnipeg jets with a Score of 4β6? | SELECT Date FROM table WHERE Home = winnipeg jets AND Score = 4β6 |
Translate the following into a SQL query | When is Edmonton Oilers in? | SELECT Date FROM table WHERE Home = edmonton oilers |
Translate the following into a SQL query | What is the Score that has a Winnipeg Jets as Visitor on april 7? | SELECT Score FROM table WHERE Visitor = winnipeg jets AND Date = april 7 |
Translate the following into a SQL query | What is the Score on April 6? | SELECT Score FROM table WHERE Date = april 6 |
Translate the following into a SQL query | When has a Record of 1β0? | SELECT Date FROM table WHERE Record = 1β0 |
Translate the following into a SQL query | What is the LLWS when the Year is 2003? | SELECT LLWS FROM table WHERE Year = 2003 |
Translate the following into a SQL query | What is the earliest Year when the City is Peabody? | SELECT MIN Year FROM table WHERE City = peabody |
Translate the following into a SQL query | What is the total number of Years when the LLWS is 4th place, and when the City is Westport? | SELECT COUNT Year FROM table WHERE LLWS = 4th place AND City = westport |
Translate the following into a SQL query | What team has Pony as the kit manufacturer and Gary Mabbutt as the captain? | SELECT Team FROM table WHERE Kit manufacturer = pony AND Captain = gary mabbutt |
Translate the following into a SQL query | Who is the manager 1 for Leeds United? | SELECT Manager 1 FROM table WHERE Team = leeds united |
Translate the following into a SQL query | What is the team with a Pony kit manufacturer and Julian Dicks as the captain? | SELECT Team FROM table WHERE Kit manufacturer = pony AND Captain = julian dicks |
Translate the following into a SQL query | What team has a kit manufacturer of Umbro and Eric Cantona as captain? | SELECT Team FROM table WHERE Kit manufacturer = umbro AND Captain = eric cantona |
Translate the following into a SQL query | Who is the manager 1 with Puma as the kit manufacturer and Puma as the shirt sponsor? | SELECT Manager 1 FROM table WHERE Kit manufacturer = puma AND Shirt sponsor = puma |
Translate the following into a SQL query | What is the kit manufacturer with Walkers as the shirt sponsor? | SELECT Kit manufacturer FROM table WHERE Shirt sponsor = walkers |
Translate the following into a SQL query | Name the average points for dallara 3087 lola t88/50 and year before 1988 | SELECT AVG Points FROM table WHERE Chassis = dallara 3087 lola t88/50 AND Year < 1988 |
Translate the following into a SQL query | Name the sum of points for 1992 | SELECT SUM Points FROM table WHERE Year = 1992 |
Translate the following into a SQL query | Name the points for year more than 1987 | SELECT Points FROM table WHERE Year > 1987 |
Translate the following into a SQL query | Name the year for points less than 20 and chassis of dallara 3087 | SELECT Year FROM table WHERE Points < 20 AND Chassis = dallara 3087 |
Translate the following into a SQL query | What is the most apps that a has a total season and 3 goals? | SELECT MAX Apps FROM table WHERE Season = total AND Goals > 3 |
Translate the following into a SQL query | What is the final number of apps with 2 goals? | SELECT COUNT Apps FROM table WHERE Goals = 2 |
Translate the following into a SQL query | What date did the episode with a weekly ranking of 14 air? | SELECT Airdate FROM table WHERE BBC One Weekly Ranking = 14 |
Translate the following into a SQL query | What is the total number of total viewers with a share of 18.8% and a weekly ranking under 16? | SELECT COUNT Total Viewers FROM table WHERE Share = 18.8% AND BBC One Weekly Ranking < 16 |
Translate the following into a SQL query | Who has 37 grids? | SELECT Rider FROM table WHERE Grid = 37 |
Translate the following into a SQL query | What is the average grid with more than 23 laps? | SELECT AVG Grid FROM table WHERE Laps > 23 |
Translate the following into a SQL query | What is the average grid with more than 23 laps? | SELECT AVG Grid FROM table WHERE Laps > 23 |
Translate the following into a SQL query | What is the average decile for te puru school? | SELECT AVG Decile FROM table WHERE Name = te puru school |
Translate the following into a SQL query | What is the total decile with an Area of whitianga, and a Roll smaller than 835? | SELECT SUM Decile FROM table WHERE Area = whitianga AND Roll < 835 |
Translate the following into a SQL query | Which name has an Area of kennedy bay? | SELECT Name FROM table WHERE Area = kennedy bay |
Translate the following into a SQL query | Which years have a Decile larger than 4, and an Area of thames? | SELECT Years FROM table WHERE Decile > 4 AND Area = thames |
Translate the following into a SQL query | Which Authority has a Decile smaller than 6, and an Area of opoutere? | SELECT Authority FROM table WHERE Decile < 6 AND Area = opoutere |
Translate the following into a SQL query | Which gender has Years of 1β8, an Authority of state, a Roll less than 184, and a Name of matatoki school? | SELECT Gender FROM table WHERE Years = 1β8 AND Authority = state AND Roll < 184 AND Name = matatoki school |
Translate the following into a SQL query | What was the tournament that resulted in a winning score of β4 (71-72-72-69=284)? | SELECT Tournament FROM table WHERE Winning score = β4 (71-72-72-69=284) |
Translate the following into a SQL query | What was the winning score of the event where Brian Kamm was the runner-up? | SELECT Winning score FROM table WHERE Runner(s)-up = brian kamm |
Translate the following into a SQL query | Who was the runner-up for the event that ended with a winning score of β15 (66-67-70-70=273)? | SELECT Runner(s)-up FROM table WHERE Winning score = β15 (66-67-70-70=273) |
Translate the following into a SQL query | On what date was the Nike Colorado Classic held? | SELECT Date FROM table WHERE Tournament = nike colorado classic |
Translate the following into a SQL query | What was the winning score of the Buy.com Siouxland Open? | SELECT Winning score FROM table WHERE Tournament = buy.com siouxland open |
Translate the following into a SQL query | What is the total with lower than rank 8, and higher than 27.6 score and 13.8 difficulty? | SELECT MIN Total FROM table WHERE Rank > 8 AND Routine score > 27.6 AND Difficulty score = 13.8 |
Translate the following into a SQL query | What is the average medal total of the country who had 0 silver medals and participated in less than 15 games? | SELECT AVG Total FROM table WHERE Games < 15 AND Silver < 0 |
Translate the following into a SQL query | What is the least Points with Chassis of forti fg01b forti fg03, and a year less than 1996? | SELECT MIN Points FROM table WHERE Chassis = forti fg01b forti fg03 AND Year < 1996 |
Translate the following into a SQL query | What is the lowest year for an engine of ford zetec-r v8, and points greater than 0? | SELECT MIN Year FROM table WHERE Engine = ford zetec-r v8 AND Points > 0 |
Translate the following into a SQL query | What are the average points for an engine of ford zetec-r v8? | SELECT AVG Points FROM table WHERE Engine = ford zetec-r v8 |
Translate the following into a SQL query | Name the years for elsthorpe school | SELECT Years FROM table WHERE Name = elsthorpe school |
Translate the following into a SQL query | Name the total number of roll for st joseph's school when decile is less than 5 | SELECT COUNT Roll FROM table WHERE Name = st joseph's school AND Decile < 5 |
Translate the following into a SQL query | Name the years for porangahau school | SELECT Years FROM table WHERE Area = porangahau AND Name = porangahau school |
Translate the following into a SQL query | Name the gender for elsthorpe school | SELECT Gender FROM table WHERE Name = elsthorpe school |
Translate the following into a SQL query | Name the drivers for chassis of season cancelled | SELECT Drivers FROM table WHERE Chassis = season cancelled |
Translate the following into a SQL query | Name the teams for third points of season cancelled | SELECT Teams FROM table WHERE Third (points) = season cancelled |
Translate the following into a SQL query | Name the engine with rounds of 11 and teams of 25 | SELECT Engine FROM table WHERE Rounds = 11 AND Teams = 25 |
Translate the following into a SQL query | What was the score for the loss of McDowell (12-7)? | SELECT Score FROM table WHERE Loss = mcdowell (12-7) |
Translate the following into a SQL query | What was the score for the game with an attendance greater than 33,658 and a record of 73-66? | SELECT Score FROM table WHERE Attendance > 33,658 AND Record = 73-66 |
Translate the following into a SQL query | What is the total laps for the year 2011? | SELECT SUM Laps FROM table WHERE Year = 2011 |
Translate the following into a SQL query | Which team is in 9th place? | SELECT Class Pos. FROM table WHERE Pos. = 9th |
Translate the following into a SQL query | What is the total of the Divison that is from the country Serbia and Montenegro with apps smaller than 12 with more goals than 0? | SELECT SUM Division FROM table WHERE Country = serbia and montenegro AND Apps < 12 AND Goals > 0 |
Translate the following into a SQL query | What is the total number of goals that the Partizan team from the country of serbia had that was larger than 1? | SELECT SUM Goals FROM table WHERE Team = partizan AND Country = serbia AND Division > 1 |
Translate the following into a SQL query | What year was the Honda ra168e 1.5 v6 t engine used? | SELECT Year FROM table WHERE Engine = honda ra168e 1.5 v6 t |
Translate the following into a SQL query | What tyres were used with the mp4/14 chassis? | SELECT Tyres FROM table WHERE Chassis = mp4/14 |
Translate the following into a SQL query | How many tickets were there sold/available in Barcelona? | SELECT Tickets Sold / Available FROM table WHERE City = barcelona |
Translate the following into a SQL query | How many tickets were sold/available when the gross revenue (2011) was $366,916? | SELECT Tickets Sold / Available FROM table WHERE Gross Revenue (2011) = $366,916 |
Translate the following into a SQL query | How many tickets were sold/available when the gross revenue (2011) was $5,948,390? | SELECT Tickets Sold / Available FROM table WHERE Gross Revenue (2011) = $5,948,390 |
Translate the following into a SQL query | What was the gross revenue (1986) when there were tickets sold/available of 24,000 / 24,000 (100%)? | SELECT Gross Revenue (1986) FROM table WHERE Tickets Sold / Available = 24,000 / 24,000 (100%) |
Translate the following into a SQL query | What was the score in the 1st leg when Stade d'Abidjan was Team 2? | SELECT 1st leg FROM table WHERE Team 2 = stade d'abidjan |
Translate the following into a SQL query | What was the aggregate score that had Union Douala as Team 1? | SELECT Agg. FROM table WHERE Team 1 = union douala |
Translate the following into a SQL query | What was the 2nd leg score of the aggregate score of 4-9? | SELECT 2nd leg FROM table WHERE Agg. = 4-9 |
Translate the following into a SQL query | Who was Team 2 when Stationery Stores was Team 1? | SELECT Team 2 FROM table WHERE Team 1 = stationery stores |
Translate the following into a SQL query | Which Team 1 has an aggregate score of 1-1 1? | SELECT Team 1 FROM table WHERE Agg. = 1-1 1 |
Translate the following into a SQL query | Can you tell me the Chassis that has the Year of 1977? | SELECT Chassis FROM table WHERE Year = 1977 |
Translate the following into a SQL query | Can you tell me the Entrant that has the Chassis of march 742, and the Year larger than 1974? | SELECT Entrant FROM table WHERE Chassis = march 742 AND Year > 1974 |
Translate the following into a SQL query | Can you tell me the Chassis that has the Entrant of trivellato racing team? | SELECT Chassis FROM table WHERE Entrant = trivellato racing team |
Translate the following into a SQL query | Can you tell me the Chassis that has the Points of 13, and the Year of 1975, and the Entrant of scuderia citta del mille? | SELECT Chassis FROM table WHERE Points = 13 AND Year = 1975 AND Entrant = scuderia citta del mille |
Translate the following into a SQL query | What is the lowest value of a team with revenue less than 374 and a debt of 84%? | SELECT MIN Value ($M) FROM table WHERE Revenue ($M) < 374 AND Debt as %of value = 84 |
Translate the following into a SQL query | What is the highest operating income that change by 2% and is less than $1,036m? | SELECT MAX Operating income($m) FROM table WHERE % change on year = 2 AND Value ($M) < 1,036 |
Translate the following into a SQL query | Which team did they play on September 19? | SELECT Opponent FROM table WHERE Date = september 19 |
Translate the following into a SQL query | What's the FCC info with a Frequency MHz thats smaller than 91.9 and has a CIty of license of Dansville, NY? | SELECT FCC info FROM table WHERE Frequency MHz < 91.9 AND City of license = dansville, ny |
Translate the following into a SQL query | What's the FCC info with a Frequency MHz thats smaller than 100.3 and a City of License as Lowville, NY? | SELECT FCC info FROM table WHERE Frequency MHz < 100.3 AND City of license = lowville, ny |
Translate the following into a SQL query | What's the Call sign with a Frequency MHz thats smaller than 95.9 and an ERP W of 10? | SELECT Call sign FROM table WHERE Frequency MHz < 95.9 AND ERP W = 10 |
Translate the following into a SQL query | What is listed as the highest ERP W with a Call sign of W262AC? | SELECT MAX ERP W FROM table WHERE Call sign = w262ac |
Translate the following into a SQL query | What's the sum of ERP W with a Frequency MHz that larger than 97.7? | SELECT COUNT ERP W FROM table WHERE Frequency MHz > 97.7 |
Translate the following into a SQL query | What was the score of the game played on September 9? | SELECT Score FROM table WHERE Date = september 9 |
Translate the following into a SQL query | Name the overall record for indian river | SELECT Overall Record FROM table WHERE School = indian river |
Translate the following into a SQL query | What was E.J. "Dutch" Harrison's lowest To Par? | SELECT MIN To par FROM table WHERE Player = e.j. "dutch" harrison |
Translate the following into a SQL query | How much money was won for the game with a score of 74-76-71-71=292? | SELECT Money ( $ ) FROM table WHERE Score = 74-76-71-71=292 |
Translate the following into a SQL query | What country was the player from with a score of 70-79-74-68=291? | SELECT Country FROM table WHERE Score = 70-79-74-68=291 |
Translate the following into a SQL query | When To par was less than 2, what was the score? | SELECT Score FROM table WHERE To par < 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.