instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Name the lowest points for officine alfieri maserati | SELECT MIN Points FROM table WHERE Entrant = officine alfieri maserati |
Translate the following into a SQL query | How tall is Ye Fei? | SELECT Height FROM table WHERE Players = ye fei |
Translate the following into a SQL query | What is the attendance of the game on July 26? | SELECT SUM Attendance FROM table WHERE Date = july 26 |
Translate the following into a SQL query | How many years did the team place 2nd in Antwerp, Belgium? | SELECT COUNT Year FROM table WHERE Venue = antwerp, belgium AND Result = 2nd |
Translate the following into a SQL query | What is the name of the venue that was used before 1991? | SELECT Venue FROM table WHERE Year < 1991 |
Translate the following into a SQL query | How many years did the team place 2nd in Auckland, New Zealand? | SELECT COUNT Year FROM table WHERE Result = 2nd AND Venue = auckland, new zealand |
Translate the following into a SQL query | What was the started round for the competition that had the last match on January 16, 2008? | SELECT Started Round FROM table WHERE Last Match = january 16, 2008 |
Translate the following into a SQL query | On what date was the first match for the competition that ended its last match on December 16, 2007? | SELECT First Match FROM table WHERE Last Match = december 16, 2007 |
Translate the following into a SQL query | What competition had a final round in the finals and the final position winners? | SELECT Competition FROM table WHERE Final Position = winners AND Final Round = finals |
Translate the following into a SQL query | On what date did the first match occur for the competition that ended with a final position of winners and the final round in the finals? | SELECT First Match FROM table WHERE Final Position = winners AND Final Round = finals |
Translate the following into a SQL query | What competition had its first match on December 20, 2007? | SELECT Competition FROM table WHERE First Match = december 20, 2007 |
Translate the following into a SQL query | What was the date of the first match of the Fifa Club World Cup that ended with the final position as winners? | SELECT First Match FROM table WHERE Final Position = winners AND Competition = fifa club world cup |
Translate the following into a SQL query | What was Len Sutton's total number of completed laps when his qualifying time was 142.653? | SELECT COUNT Laps FROM table WHERE Qual = 142.653 |
Translate the following into a SQL query | What call sign has a frequency of 91.3 MHz? | SELECT Call sign FROM table WHERE Frequency MHz = 91.3 |
Translate the following into a SQL query | What city of license has a value of k293bg for its call sign? | SELECT City of license FROM table WHERE Call sign = k293bg |
Translate the following into a SQL query | When the frequency is 103.7 MHz and the ERP W is more than 10, what is the call sign? | SELECT Call sign FROM table WHERE ERP W > 10 AND Frequency MHz = 103.7 |
Translate the following into a SQL query | In Los Banos, California, when the ERP W is than 10, what is the average Frequency MHz? | SELECT AVG Frequency MHz FROM table WHERE City of license = los banos, california AND ERP W < 10 |
Translate the following into a SQL query | What is the call sign when the frequency is less than 95.5 MHz, and a ERP W is higher than 10? | SELECT Call sign FROM table WHERE Frequency MHz < 95.5 AND ERP W > 10 |
Translate the following into a SQL query | Name the player with score of 73-69-74-71=287 | SELECT Player FROM table WHERE Score = 73-69-74-71=287 |
Translate the following into a SQL query | Name the sum To par for score of 71-74-71-72=288 | SELECT SUM To par FROM table WHERE Score = 71-74-71-72=288 |
Translate the following into a SQL query | Tell me the tournament for kathy horvath opponent | SELECT Tournament FROM table WHERE Opponent = kathy horvath |
Translate the following into a SQL query | Name the date for hard surface at maybelline classic with opponent of wendy turnbull | SELECT Date FROM table WHERE Surface = hard AND Tournament = maybelline classic AND Opponent = wendy turnbull |
Translate the following into a SQL query | Name the tournament for semifinal hard surface for opponent of pam casale | SELECT Tournament FROM table WHERE Round = semifinal AND Surface = hard AND Opponent = pam casale |
Translate the following into a SQL query | Name the date for grass surface for quarterfinal at the nsw building society open tournament | SELECT Date FROM table WHERE Surface = grass AND Round = quarterfinal AND Tournament = nsw building society open |
Translate the following into a SQL query | Name the surface for united airlines tournament of champions final round | SELECT Surface FROM table WHERE Tournament = united airlines tournament of champions AND Round = final |
Translate the following into a SQL query | Name the date for chris evert opponent and carpet surface | SELECT Date FROM table WHERE Opponent = chris evert AND Surface = carpet |
Translate the following into a SQL query | Name the venue for 25 may 2008 | SELECT Venue FROM table WHERE Date = 25 may 2008 |
Translate the following into a SQL query | Name the score for 2015 afc asian cup qualification | SELECT Score FROM table WHERE Competition = 2015 afc asian cup qualification |
Translate the following into a SQL query | Name the competition for 13 december 2012 | SELECT Competition FROM table WHERE Date = 13 december 2012 |
Translate the following into a SQL query | What was arrows racing team's highest points after 1982? | SELECT MAX Points FROM table WHERE Entrant = arrows racing team AND Year > 1982 |
Translate the following into a SQL query | How many years has 2 points? | SELECT SUM Year FROM table WHERE Points = 2 |
Translate the following into a SQL query | Name the catalogue with song title of love me tonight | SELECT Catalogue FROM table WHERE Song Title = love me tonight |
Translate the following into a SQL query | Name the song title with time of 1:51 | SELECT Song Title FROM table WHERE Time = 1:51 |
Translate the following into a SQL query | Name the least track with song of little sister | SELECT MIN Track FROM table WHERE Song Title = little sister |
Translate the following into a SQL query | What player has a score of 79? | SELECT Player FROM table WHERE Score = 79 |
Translate the following into a SQL query | Who played on waca ground and scored 79 points? | SELECT Opponent FROM table WHERE Ground = waca ground AND Score = 79 |
Translate the following into a SQL query | What player had 49 balls? | SELECT Player FROM table WHERE Balls = 49 |
Translate the following into a SQL query | What was the highest attendance of a game that had a score of 3-5? | SELECT MAX Attendance FROM table WHERE Score = 3-5 |
Translate the following into a SQL query | Who took the loss in the game that ended with a 54-61 record? | SELECT Loss FROM table WHERE Record = 54-61 |
Translate the following into a SQL query | Name the report with 125cc winner of simone corsi and circuit of valencia | SELECT Report FROM table WHERE 125cc winner = simone corsi AND Circuit = valencia |
Translate the following into a SQL query | Name the motogp winner with 125cc winner of gábor talmácsi and round of 13 | SELECT MotoGP winner FROM table WHERE 125cc winner = gábor talmácsi AND Round = 13 |
Translate the following into a SQL query | Name the 125cc winner with circuit of estoril | SELECT 125cc winner FROM table WHERE Circuit = estoril |
Translate the following into a SQL query | Name the date for motogp winner of casey stoner and grand prix of valencian grand prix | SELECT Date FROM table WHERE MotoGP winner = casey stoner AND Grand Prix = valencian grand prix |
Translate the following into a SQL query | Name the circuit for round 18 | SELECT Circuit FROM table WHERE Round = 18 |
Translate the following into a SQL query | Name the grand prix for casey stoner and circuit of losail | SELECT Grand Prix FROM table WHERE MotoGP winner = casey stoner AND Circuit = losail |
Translate the following into a SQL query | Where was the game held that was played on 2002-03-07? | SELECT Venue FROM table WHERE Date = 2002-03-07 |
Translate the following into a SQL query | What is the total gold from New zealand and a rank less than 14? | SELECT SUM Gold FROM table WHERE Nation = new zealand AND Rank < 14 |
Translate the following into a SQL query | What is the average of the silver that has less than 0 gold | SELECT AVG Silver FROM table WHERE Gold < 0 |
Translate the following into a SQL query | Which nation has 0 gold, 0 silver and 2 total? | SELECT Nation FROM table WHERE Gold = 0 AND Silver = 0 AND Total = 2 |
Translate the following into a SQL query | What is the total gold in Norway with more than 1 bronze? | SELECT SUM Gold FROM table WHERE Nation = norway AND Bronze > 1 |
Translate the following into a SQL query | What is the total bronze from Puerto Rico with a total of less than 1? | SELECT SUM Bronze FROM table WHERE Nation = puerto rico AND Total < 1 |
Translate the following into a SQL query | Which season has the Celtic club? | SELECT Season FROM table WHERE Club = celtic |
Translate the following into a SQL query | What was Parker Moloney's party affiliation when he was the Minister for Markets? | SELECT Party FROM table WHERE Minister = parker moloney AND Title = minister for markets |
Translate the following into a SQL query | What was the starting date for the Minister for agriculture, fisheries and forestry that is in order number 25?? | SELECT Term start FROM table WHERE Title = minister for agriculture, fisheries and forestry AND Order = 25 |
Translate the following into a SQL query | What was the score in the venue of Seoul that resulted in 8-0? | SELECT Score FROM table WHERE Venue = seoul AND Result = 8-0 |
Translate the following into a SQL query | What date had a result of 8-0? | SELECT Date FROM table WHERE Result = 8-0 |
Translate the following into a SQL query | On July 26, 1977, what competition played at the venue of Kuala Lumpur, resulted in 4-0? | SELECT Competition FROM table WHERE Venue = kuala lumpur AND Result = 4-0 AND Date = july 26, 1977 |
Translate the following into a SQL query | What venue were the 1986 Asian games resulting in 2-0 played at? | SELECT Venue FROM table WHERE Competition = 1986 asian games AND Result = 2-0 |
Translate the following into a SQL query | How many total League goals does Player John O'Flynn have? | SELECT SUM League goals FROM table WHERE Player = john o'flynn |
Translate the following into a SQL query | What is the earliest year that had a Lotus 49B chassis? | SELECT MIN Year FROM table WHERE Chassis = lotus 49b |
Translate the following into a SQL query | Name the least lane for lenny krayzelburg | SELECT MIN Lane FROM table WHERE Name = lenny krayzelburg |
Translate the following into a SQL query | Round of 9 involved what name? | SELECT Name FROM table WHERE Round = 9 |
Translate the following into a SQL query | Name of calvin o'neal, and a Round smaller than 6 had what number total overall? | SELECT COUNT Overall FROM table WHERE Name = calvin o'neal AND Round < 6 |
Translate the following into a SQL query | Name the work for years before 2007 that won blockbuster entertainment awards | SELECT Work FROM table WHERE Year < 2007 AND Award = blockbuster entertainment awards |
Translate the following into a SQL query | Name the Cole for years before 2009 where Dylan was nominated for big daddy at mtv movie awards | SELECT Cole FROM table WHERE Year < 2009 AND Dylan = nominated AND Work = big daddy AND Award = mtv movie awards |
Translate the following into a SQL query | Position of running back involves which college? | SELECT College FROM table WHERE Position = running back |
Translate the following into a SQL query | Round larger than 2, and a Position of guard involves what college? | SELECT College FROM table WHERE Round > 2 AND Position = guard |
Translate the following into a SQL query | Pick # smaller than 46, and a Round of 5, and a Position of defensive tackle involves which college? | SELECT College FROM table WHERE Pick # < 46 AND Round = 5 AND Position = defensive tackle |
Translate the following into a SQL query | What is the percentage who speak Russian? | SELECT percentage (%) FROM table WHERE Language = russian |
Translate the following into a SQL query | How many speak german? | SELECT Number FROM table WHERE Language = german |
Translate the following into a SQL query | What is the percentage where males equal 99? | SELECT percentage (%) FROM table WHERE males = 99 |
Translate the following into a SQL query | How many women speak German? | SELECT females FROM table WHERE Language = german |
Translate the following into a SQL query | Name the 3rd place with winners of weymouth wildcats and 4th place of boston barracudas | SELECT 3rd place FROM table WHERE Winners = weymouth wildcats AND 4th place = boston barracudas |
Translate the following into a SQL query | Name the 3rd place for 4th place of boston barracudas and 2nd place of oxford cheetahs | SELECT 3rd place FROM table WHERE 4th place = boston barracudas AND 2nd place = oxford cheetahs |
Translate the following into a SQL query | Name the winners when 3rd place is weymouth wildcats | SELECT Winners FROM table WHERE 3rd place = weymouth wildcats |
Translate the following into a SQL query | What is the lowest number of league cups associated with 0 FA cups? | SELECT MIN League Cup FROM table WHERE FA Cup < 0 |
Translate the following into a SQL query | How many FA cups for the player with under 5 champs, 0 league cups, and over 3 total? | SELECT SUM FA Cup FROM table WHERE Championship < 5 AND League Cup = 0 AND Total > 3 |
Translate the following into a SQL query | How many league cups associated with under 10 championships and a total of under 3? | SELECT SUM League Cup FROM table WHERE Championship < 10 AND Total < 3 |
Translate the following into a SQL query | Result F–A of 2–0 had what group position? | SELECT Group position FROM table WHERE Result F–A = 2–0 |
Translate the following into a SQL query | Result F–A of 5–0 had what group position? | SELECT Group position FROM table WHERE Result F–A = 5–0 |
Translate the following into a SQL query | Group position of 1st, and a Result F–A of 2–0 has what average attendance? | SELECT AVG Attendance FROM table WHERE Group position = 1st AND Result F–A = 2–0 |
Translate the following into a SQL query | Result F–A of 5–0 had what date? | SELECT Date FROM table WHERE Result F–A = 5–0 |
Translate the following into a SQL query | Date of 1 october 2003 had what attendance? | SELECT Attendance FROM table WHERE Date = 1 october 2003 |
Translate the following into a SQL query | what score is it with tathiana garbin as partner? | SELECT Score FROM table WHERE Partner = tathiana garbin |
Translate the following into a SQL query | what date was giulia casoni the partner? | SELECT Date FROM table WHERE Partner = giulia casoni |
Translate the following into a SQL query | for country of spain and iata of ibz, what's the city? | SELECT City FROM table WHERE Country = spain AND IATA = ibz |
Translate the following into a SQL query | for fiumicino airport what is the icao? | SELECT ICAO FROM table WHERE Airport = fiumicino airport |
Translate the following into a SQL query | for milan and the iata of lin what is the airport? | SELECT Airport FROM table WHERE City = milan AND IATA = lin |
Translate the following into a SQL query | what's the iata for the icao of eheh? | SELECT IATA FROM table WHERE ICAO = eheh |
Translate the following into a SQL query | which aiport is in the united kingdom and has iata of lcy? | SELECT Airport FROM table WHERE Country = united kingdom AND IATA = lcy |
Translate the following into a SQL query | Name the F. Goals for games of 22 22 and points of 012 12 | SELECT F. Goals FROM table WHERE Games = 22 22 AND Points = 012 12 |
Translate the following into a SQL query | Name the points for games of 16 16 | SELECT Points FROM table WHERE Games = 16 16 |
Translate the following into a SQL query | Name the tries that has a points of 008 8 and games of 27 27 | SELECT Tries FROM table WHERE Points = 008 8 AND Games = 27 27 |
Translate the following into a SQL query | Name the F. Goals with tries of 0 0 and games of 05 5 | SELECT F. Goals FROM table WHERE Tries = 0 0 AND Games = 05 5 |
Translate the following into a SQL query | Name the player with tries of 02 2 and points of 008 8 | SELECT Player FROM table WHERE Tries = 02 2 AND Points = 008 8 |
Translate the following into a SQL query | Which area has a Name of william colenso college? | SELECT Area FROM table WHERE Name = william colenso college |
Translate the following into a SQL query | Which authority has a Name of tamatea high school? | SELECT Authority FROM table WHERE Name = tamatea high school |
Translate the following into a SQL query | Which gender has a Decile of 8, an Area of taradale, and Years of 1–13? | SELECT Gender FROM table WHERE Decile = 8 AND Area = taradale AND Years = 1–13 |
Translate the following into a SQL query | Which Decile has Years of –, and a Gender of coed? | SELECT Decile FROM table WHERE Years = – AND Gender = coed |
Translate the following into a SQL query | Name the total number of division for apps more than 5 for greece | SELECT COUNT Division FROM table WHERE Apps > 5 AND Country = greece |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.