instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | In the United Kingdom, what company has an unknown date and is an energy business? | SELECT Company FROM table WHERE Business = energy AND Date = unknown AND Country = united kingdom |
Translate the following into a SQL query | For the United Kingdom, what's the date? | SELECT Date FROM table WHERE Country = united kingdom |
Translate the following into a SQL query | For the Enernoc Australia Pty Ltd, what's the country with an unknown date? | SELECT Country FROM table WHERE Date = unknown AND Company = enernoc australia pty ltd |
Translate the following into a SQL query | Which date is associated with a venue of Luxembourg? | SELECT Date FROM table WHERE Venue = luxembourg |
Translate the following into a SQL query | What is the year with a Kurtis Kraft 500a chassis, and less than 1.5 points? | SELECT SUM Year FROM table WHERE Chassis = kurtis kraft 500a AND Points < 1.5 |
Translate the following into a SQL query | What is the year with a kurtis kraft 500a chassis? | SELECT SUM Year FROM table WHERE Chassis = kurtis kraft 500a |
Translate the following into a SQL query | What is the lowest Pick # of Saint Vincent College? | SELECT MIN Pick # FROM table WHERE College = saint vincent college |
Translate the following into a SQL query | What is the Overall for Pick # less than 5 Jack Harmon? | SELECT MIN Overall FROM table WHERE Name = jack harmon AND Pick # < 5 |
Translate the following into a SQL query | Which rank has a Total GDP (€ bn) of €11.243?? | SELECT Rank FROM table WHERE Total GDP (€ bn ) = €11.243 |
Translate the following into a SQL query | What is the Region that has a Total GDP (€ bn ) of €11,745.353? | SELECT Region FROM table WHERE Total GDP (€ bn ) = €11,745.353 |
Translate the following into a SQL query | Which Region that has a growth of −3.6%? | SELECT Region FROM table WHERE % growth = −3.6 |
Translate the following into a SQL query | What is the per capita of Greece? | SELECT Per capita FROM table WHERE Region = greece |
Translate the following into a SQL query | What is the fewest number of silver medals received by a nation who received 40 bronze medals and more than 42 gold medals? | SELECT MIN Silver FROM table WHERE Bronze = 40 AND Gold > 42 |
Translate the following into a SQL query | What is the lowest number of silver medals received by Austria when they receive more than 3 total medals, more than 22 bronze medals, and fewer than 395 gold medals? | SELECT MIN Silver FROM table WHERE Total > 3 AND Bronze > 22 AND Gold < 395 AND Nation = austria |
Translate the following into a SQL query | What is the average number of silver medals with more than 6 gold meals and less than 5 bronze medals? | SELECT AVG Silver FROM table WHERE Gold > 6 AND Bronze < 5 |
Translate the following into a SQL query | How many ranks are for Switzerland with more than 2 total medals? | SELECT COUNT Rank FROM table WHERE Nation = switzerland AND Total > 2 |
Translate the following into a SQL query | What is the event of the match with a round larger than 2 and ended with a method of ko (kick)? | SELECT Event FROM table WHERE Round > 2 AND Method = ko (kick) |
Translate the following into a SQL query | What is the method of the match after round 1 in the k-1 andy memorial 2001 japan gp final? | SELECT Method FROM table WHERE Round > 1 AND Event = k-1 andy memorial 2001 japan gp final |
Translate the following into a SQL query | What is the highest round of the match with Rene Rooze as the opponent in Saitama, Japan? | SELECT MAX Round FROM table WHERE Opponent = rene rooze AND Location = saitama, japan |
Translate the following into a SQL query | What is the highest round of the match with a time of 0:57? | SELECT MAX Round FROM table WHERE Time = 0:57 |
Translate the following into a SQL query | How many points did the Club score that has a try bonus of 7 and 52 tries for ? | SELECT Points for FROM table WHERE Tries for = 52 AND Try bonus = 7 |
Translate the following into a SQL query | What is the Losing bonus of the club that has 80 tries against ? | SELECT Losing bonus FROM table WHERE Tries against = 80 |
Translate the following into a SQL query | How many tries for does waunarlwydd rfc have ? | SELECT Tries for FROM table WHERE Club = waunarlwydd rfc |
Translate the following into a SQL query | How many losses did the club with 47 points have ? | SELECT Lost FROM table WHERE Points = 47 |
Translate the following into a SQL query | How many points against does the club that has a try bonus of 6 and tries against of 54 have ? | SELECT Points against FROM table WHERE Try bonus = 6 AND Tries against = 54 |
Translate the following into a SQL query | Who were the co-drivers in 2008? | SELECT Co-Drivers FROM table WHERE Year = 2008 |
Translate the following into a SQL query | What was the position in 2006? | SELECT Pos. FROM table WHERE Year = 2006 |
Translate the following into a SQL query | What was the class when there were 325 laps? | SELECT Class FROM table WHERE Laps = 325 |
Translate the following into a SQL query | What was the position in a year after 2005 with a class position of 5th? | SELECT Pos. FROM table WHERE Year > 2005 AND Class Pos. = 5th |
Translate the following into a SQL query | What is the English title of the film from 2001? | SELECT English title FROM table WHERE Year = 2001 |
Translate the following into a SQL query | What is the original title of the film from Japan/Taiwan before 2003? | SELECT Original title FROM table WHERE Year < 2003 AND Country = japan/taiwan |
Translate the following into a SQL query | What is the English title of the film directed by Fernando Meirelles? | SELECT English title FROM table WHERE Director(s) = fernando meirelles |
Translate the following into a SQL query | What is the country of the original title Cidade de deus? | SELECT Country FROM table WHERE Original title = cidade de deus |
Translate the following into a SQL query | What is the earliest year of a film from Mexico? | SELECT MIN Year FROM table WHERE Country = mexico |
Translate the following into a SQL query | What is the average year of the film from France/Hong Kong? | SELECT AVG Year FROM table WHERE Country = france/hong kong |
Translate the following into a SQL query | Name the country for t3 place | SELECT Country FROM table WHERE Place = t3 |
Translate the following into a SQL query | Name the country with +2 to par | SELECT Country FROM table WHERE To par = +2 |
Translate the following into a SQL query | Name the to par for colin montgomerie | SELECT To par FROM table WHERE Player = colin montgomerie |
Translate the following into a SQL query | Name the score for scotland | SELECT Score FROM table WHERE Country = scotland |
Translate the following into a SQL query | What island has a population over 76, a height over 210, and an area larger than 12068? | SELECT Island FROM table WHERE Population > 76 AND Height (m) > 210 AND Area ( ha ) > 12068 |
Translate the following into a SQL query | What is the highest population of Trondra Island in the Scalloway Islands? | SELECT MAX Population FROM table WHERE Location = scalloway islands AND Island = trondra |
Translate the following into a SQL query | How many matches were drawn associated with a percentage of 7.14% and more than 12 losses? | SELECT COUNT Drawn FROM table WHERE Percentage = 7.14% AND Lost > 12 |
Translate the following into a SQL query | Which percentage has a first game before 1997, fewer than 2 losses, and fewer than 5 matches played? | SELECT Percentage FROM table WHERE First game < 1997 AND Lost < 2 AND Played < 5 |
Translate the following into a SQL query | What is the total number of drawn matches from first game years before 2006 and fewer than 2 matches played? | SELECT SUM Drawn FROM table WHERE First game < 2006 AND Played < 2 |
Translate the following into a SQL query | What is the highest number of losses associated with 2 matches played, a first game after 1997, and more than 0 draws? | SELECT MAX Lost FROM table WHERE Played = 2 AND First game > 1997 AND Drawn > 0 |
Translate the following into a SQL query | What is the Result of the Test match at the Edgbaston Venue on 5,6,7,8 June 1997? | SELECT Result FROM table WHERE Date = 5,6,7,8 june 1997 |
Translate the following into a SQL query | What is the Date of the Test match of Australia in England at The Oval Venue? | SELECT Date FROM table WHERE Venue = the oval |
Translate the following into a SQL query | Who was the Away captain for the Test match of Australia in England where the Result was AUS by 264 runs? | SELECT Away captain FROM table WHERE Result = aus by 264 runs |
Translate the following into a SQL query | Who was the Home captain for the Test match of Australia in England at the Edgbaston Venue? | SELECT Home captain FROM table WHERE Venue = edgbaston |
Translate the following into a SQL query | what is the name of the role that has co-protagonist in the notes field and the years of 2008-2009? | SELECT Role FROM table WHERE Notes = co-protagonist AND Year = 2008-2009 |
Translate the following into a SQL query | What is the name of the role that has a Title of Olvidarte Jamas? | SELECT Role FROM table WHERE Title = olvidarte jamas |
Translate the following into a SQL query | Which production company has the year of 2005 listed? | SELECT Production Company FROM table WHERE Year = 2005 |
Translate the following into a SQL query | What is the name of the role that has a Title of Salud, Dinero y Amor and antagonist in the notes field? | SELECT Role FROM table WHERE Notes = antagonist AND Title = salud, dinero y amor |
Translate the following into a SQL query | What is the name of the production company that has a year of 2008-2009? | SELECT Production Company FROM table WHERE Year = 2008-2009 |
Translate the following into a SQL query | What is the Authority for Kuranui Primary School that is located in the Area of Tirau? | SELECT Authority FROM table WHERE Area = tirau AND Name = kuranui primary school |
Translate the following into a SQL query | Which Names have Deciles larger than 7? | SELECT Name FROM table WHERE Decile > 7 |
Translate the following into a SQL query | What Gender are the schools that have a Roll of 135? | SELECT Gender FROM table WHERE Roll = 135 |
Translate the following into a SQL query | What is the Name of a state Authority that has a Roll of 72? | SELECT Name FROM table WHERE Authority = state AND Roll = 72 |
Translate the following into a SQL query | Which friendly competition took place on 19 April 1979? | SELECT Score FROM table WHERE Competition = friendly AND Date = 19 april 1979 |
Translate the following into a SQL query | Which Team 1 has a first leg of 1-0 and a second leg of 0-2? | SELECT Team 1 FROM table WHERE 1st leg = 1-0 AND 2nd leg = 0-2 |
Translate the following into a SQL query | Which Team 1 faced Dynamos FC? | SELECT Team 1 FROM table WHERE Team 2 = dynamos fc |
Translate the following into a SQL query | What is Team 1 Al-Hilal's Agg.? | SELECT Agg. FROM table WHERE Team 1 = al-hilal |
Translate the following into a SQL query | What Team 2 has a second leg of 1-0? | SELECT Team 2 FROM table WHERE 2nd leg = 1-0 |
Translate the following into a SQL query | What Team 2 has a second leg of 3-1? | SELECT Team 2 FROM table WHERE 2nd leg = 3-1 |
Translate the following into a SQL query | Which record happened on the date of May 7? | SELECT Record FROM table WHERE Date = may 7 |
Translate the following into a SQL query | Which tournament had Lubomira Bacheva as the opponent in the final? | SELECT Tournament FROM table WHERE Opponent in the final = lubomira bacheva |
Translate the following into a SQL query | Who was the opponent in the final on 5 July 1992? | SELECT Opponent in the final FROM table WHERE Date = 5 july 1992 |
Translate the following into a SQL query | What is the date of the tournament where Kyoko Nagatsuka was the opponent in the final? | SELECT Date FROM table WHERE Opponent in the final = kyoko nagatsuka |
Translate the following into a SQL query | What is the surface at the tournament of Vaihingen? | SELECT Surface FROM table WHERE Tournament = vaihingen |
Translate the following into a SQL query | What was the surface of the tournament where Anna Benzon was the opponent in the final? | SELECT Surface FROM table WHERE Opponent in the final = anna benzon |
Translate the following into a SQL query | What is the average position of Eesti Põlevkivi Jõhvi when they had less than 13 points and worse than a -12 goal differential? | SELECT AVG Position FROM table WHERE Points < 13 AND Goals +/- > -12 |
Translate the following into a SQL query | What is the to par for the player who had a score of 70-72-70-69=281? | SELECT To par FROM table WHERE Score = 70-72-70-69=281 |
Translate the following into a SQL query | What year had the qual of totals | SELECT Year FROM table WHERE Qual = totals |
Translate the following into a SQL query | What qual had a finish of 16 in 1968? | SELECT Qual FROM table WHERE Finish = 16 AND Year = 1968 |
Translate the following into a SQL query | What was the finish with the start of 25 and a lap larger than 46? | SELECT Finish FROM table WHERE Start = 25 AND Laps > 46 |
Translate the following into a SQL query | What was the lowest lap with the ranking of 19? | SELECT MIN Laps FROM table WHERE Start = 19 |
Translate the following into a SQL query | Name the least ovrs for wkts of 0 | SELECT MIN Ovrs FROM table WHERE Wkts = 0 |
Translate the following into a SQL query | Name the average econ for runs more than 703 and ovrs more than 25.5 | SELECT AVG Econ FROM table WHERE Ovrs > 25.5 AND Runs > 703 |
Translate the following into a SQL query | What is the average year that has a car that won 0 stages with a position of DNF? | SELECT AVG Year FROM table WHERE Class = car AND Stages won = 0 AND Position = dnf |
Translate the following into a SQL query | What is the class that that won 2 stages and has a position of DNF? | SELECT Class FROM table WHERE Stages won = 2 AND Position = dnf |
Translate the following into a SQL query | What position did the BMW vehicle made in 2006 hold? | SELECT Position FROM table WHERE Vehicle = bmw AND Year = 2006 |
Translate the following into a SQL query | Which builder has a Fuel Propulsion of diesel, a Model of d40lf, and an Order Year of 2005? | SELECT Builder FROM table WHERE Fuel Propulsion = diesel AND Model = d40lf AND Order Year = 2005 |
Translate the following into a SQL query | Which model has a Fleet Series (Quantity) of 11081-11092 (12)? | SELECT Model FROM table WHERE Fleet Series (Quantity) = 11081-11092 (12) |
Translate the following into a SQL query | Which order year has a Fleet Series (Quantity) of 12081-12090 (10)? | SELECT Order Year FROM table WHERE Fleet Series (Quantity) = 12081-12090 (10) |
Translate the following into a SQL query | Which Fleet Series (Quantity) that has a Builder of mci, and an Order Year of 2002? | SELECT Fleet Series (Quantity) FROM table WHERE Builder = mci AND Order Year = 2002 |
Translate the following into a SQL query | Which Fleet Series (Quantity) has an Order Year of 2010, and a Model of de40lfr? | SELECT Fleet Series (Quantity) FROM table WHERE Order Year = 2010 AND Model = de40lfr |
Translate the following into a SQL query | Which Fuel Propulsion has a Fleet Series (Quantity) of 04001-04125 (125)? | SELECT Fuel Propulsion FROM table WHERE Fleet Series (Quantity) = 04001-04125 (125) |
Translate the following into a SQL query | Name the sum of roll for morrinsville school | SELECT SUM Roll FROM table WHERE Name = morrinsville school |
Translate the following into a SQL query | Name the authority for morrinsville college | SELECT Authority FROM table WHERE Name = morrinsville college |
Translate the following into a SQL query | Name the years when decile was less than 7 for waitoa school | SELECT Years FROM table WHERE Decile < 7 AND Name = waitoa school |
Translate the following into a SQL query | Name the total number of roll for state authority and stanley avenue school with decile more than 5 | SELECT COUNT Roll FROM table WHERE Authority = state AND Name = stanley avenue school AND Decile > 5 |
Translate the following into a SQL query | What was the Blue Jays' record when they played the Royals with an attendance larger than 50,522? | SELECT Record FROM table WHERE Attendance > 50,522 AND Opponent = royals |
Translate the following into a SQL query | What year had a population region total of 63,073 and a population maroochy smaller than 35,266? | SELECT MAX Year FROM table WHERE Population (Region total) = 63,073 AND Population (Maroochy) < 35,266 |
Translate the following into a SQL query | What is the grid total associated with 18 laps? | SELECT COUNT Grid FROM table WHERE Laps = 18 |
Translate the following into a SQL query | What rider is on an aprilia that went under 18 laps with a grid total of 17? | SELECT Rider FROM table WHERE Manufacturer = aprilia AND Laps < 18 AND Grid = 17 |
Translate the following into a SQL query | What is the Manufacturer for simone corsi? | SELECT Manufacturer FROM table WHERE Rider = simone corsi |
Translate the following into a SQL query | What is the grid total associated with a Time/Retired of +33.634, and a Laps smaller than 19? | SELECT MIN Grid FROM table WHERE Time/Retired = +33.634 AND Laps < 19 |
Translate the following into a SQL query | Tell me the power when the torque is n·m (lb·ft)/*n·m (lb·ft) @1750 | SELECT Power/rpm FROM table WHERE Torque (Nm)/rpm = n·m (lb·ft)/*n·m (lb·ft) @1750 |
Translate the following into a SQL query | Name the capacity for the engine of 2.0 duratorq | SELECT Capacity FROM table WHERE Model/Engine = 2.0 duratorq |
Translate the following into a SQL query | Name the capacity for the torque of n·m (lb·ft) @4150 | SELECT Capacity FROM table WHERE Torque (Nm)/rpm = n·m (lb·ft) @4150 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.