instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Which Retitled as/Same has a Last Aired larger than 1982, and a Show of we got it made? | SELECT Retitled as/Same FROM table WHERE Last Aired > 1982 AND Show = we got it made |
Translate the following into a SQL query | Which New/Returning/Same Network has a Last Aired of 1982? | SELECT New/Returning/Same Network FROM table WHERE Last Aired = 1982 |
Translate the following into a SQL query | Which New/Returning/Same Network has a Previous Network of nbc, and a Show of blockbusters? | SELECT New/Returning/Same Network FROM table WHERE Previous Network = nbc AND Show = blockbusters |
Translate the following into a SQL query | Which New/Returning/Same Network has a Retitled as/Same of same, and a Last Aired larger than 1984? | SELECT New/Returning/Same Network FROM table WHERE Retitled as/Same = same AND Last Aired > 1984 |
Translate the following into a SQL query | Which Last Aired has a Retitled as/Same of classic concentration? | SELECT Last Aired FROM table WHERE Retitled as/Same = classic concentration |
Translate the following into a SQL query | How many rounds had a race name of anglia tv trophy? | SELECT COUNT Round FROM table WHERE Name = anglia tv trophy |
Translate the following into a SQL query | What circuit was the race named international trophy raced at by the winning driver eliseo salazar? | SELECT Circuit FROM table WHERE Winning driver = eliseo salazar AND Name = international trophy |
Translate the following into a SQL query | What circuit did emilio de villota win on at the pace petroleum trophy? | SELECT Circuit FROM table WHERE Winning driver = emilio de villota AND Name = pace petroleum trophy |
Translate the following into a SQL query | What is the to par of the player from the United States with a t6 place and a score of 70-73-68-73=284? | SELECT To par FROM table WHERE Country = united states AND Place = t6 AND Score = 70-73-68-73=284 |
Translate the following into a SQL query | Who is the player from Australia with a to par of +5? | SELECT Player FROM table WHERE To par = +5 AND Country = australia |
Translate the following into a SQL query | What is the highest amount of money a player with a score of 69-71-71-73=284 has? | SELECT MAX Money ( $ ) FROM table WHERE Score = 69-71-71-73=284 |
Translate the following into a SQL query | What is the time of the match with 3 rounds and a 9-3 record? | SELECT Time FROM table WHERE Round = 3 AND Record = 9-3 |
Translate the following into a SQL query | What is the method of the match with a win res., 1 round, and a 3-2 record? | SELECT Method FROM table WHERE Res. = win AND Round = 1 AND Record = 3-2 |
Translate the following into a SQL query | Who was the sports agent who finished 9th? | SELECT Name FROM table WHERE Finish = 9th AND Occupation = sports agent |
Translate the following into a SQL query | What is the lowest score that wes ellis got? | SELECT MIN Score FROM table WHERE Player = wes ellis |
Translate the following into a SQL query | What was the score for the player from the United states that was +1 to par? | SELECT Score FROM table WHERE To par = +1 AND Country = united states |
Translate the following into a SQL query | Who was the player who placed t10? | SELECT Player FROM table WHERE Place = t10 |
Translate the following into a SQL query | How far to par did ed furgol from the United States get when he scored less than 72 and was placed at t3? | SELECT To par FROM table WHERE Country = united states AND Score < 72 AND Place = t3 AND Player = ed furgol |
Translate the following into a SQL query | What game was played at Philadelphia? | SELECT AVG Game FROM table WHERE Team = philadelphia |
Translate the following into a SQL query | What is the sum of share with a rating larger than 1.2, a 3 rank timeslot, and 6.07 million viewers? | SELECT SUM Share FROM table WHERE Rating > 1.2 AND Rank (Timeslot) = 3 AND Viewers (millions) = 6.07 |
Translate the following into a SQL query | What is the average week rank with 1.2 ratings, less than 1.94 million viewers, and a night rank less than 11? | SELECT AVG Rank (Week) FROM table WHERE Rating = 1.2 AND Viewers (millions) < 1.94 AND Rank (Night) < 11 |
Translate the following into a SQL query | what is the round when the college is syracuse and the pick is less than 3? | SELECT AVG Round FROM table WHERE College = syracuse AND Pick < 3 |
Translate the following into a SQL query | what is the position when the pick is more than 2, the overall is more than 28 and the college is nebraska? | SELECT Position FROM table WHERE Pick > 2 AND Overall > 28 AND College = nebraska |
Translate the following into a SQL query | what is the pick when the college is arkansas and the overall is more than 316? | SELECT MAX Pick FROM table WHERE College = arkansas AND Overall > 316 |
Translate the following into a SQL query | what is the lowest overall when the pick is less than 2? | SELECT MIN Overall FROM table WHERE Pick < 2 |
Translate the following into a SQL query | what is the round when the college is north carolina and the overall is more than 124? | SELECT SUM Round FROM table WHERE College = north carolina AND Overall > 124 |
Translate the following into a SQL query | October 28, 2001 was what week of the season? | SELECT Week FROM table WHERE Date = october 28, 2001 |
Translate the following into a SQL query | What was the result of week 11? | SELECT Result FROM table WHERE Week = 11 |
Translate the following into a SQL query | What was the date of a week larger than 16? | SELECT Date FROM table WHERE Week > 16 |
Translate the following into a SQL query | November 25, 2001 was what week of the season? | SELECT COUNT Week FROM table WHERE Date = november 25, 2001 |
Translate the following into a SQL query | Which Wheels has Built smaller than 1958, a Location of york, and a Railway of nsr? | SELECT Wheels FROM table WHERE Built < 1958 AND Location = york AND Railway = nsr |
Translate the following into a SQL query | Which Built has a Builder of brel crewe? | SELECT AVG Built FROM table WHERE Builder = brel crewe |
Translate the following into a SQL query | Which Railway has a Location of shildon, and an ObjectNumber of 1978-7006? | SELECT Railway FROM table WHERE Location = shildon AND ObjectNumber = 1978-7006 |
Translate the following into a SQL query | Which Railway has a Location of shildon, and an ObjectNumber of 1975-7022? | SELECT Railway FROM table WHERE Location = shildon AND ObjectNumber = 1975-7022 |
Translate the following into a SQL query | Which Location has an ObjectNumber of 2005-7698? | SELECT Location FROM table WHERE ObjectNumber = 2005-7698 |
Translate the following into a SQL query | What is the Club during the Years 1995β1996? | SELECT Club FROM table WHERE Years = 1995β1996 |
Translate the following into a SQL query | In what Years was the Player in MF Position? | SELECT Years FROM table WHERE Position = mf |
Translate the following into a SQL query | What is the 2nd leg of the 1st team in the 2007 uefa intertoto cup? | SELECT 2nd leg FROM table WHERE Team #1 = 2007 uefa intertoto cup |
Translate the following into a SQL query | What is the 2nd leg of dinamo minsk team #2? | SELECT 2nd leg FROM table WHERE Team #2 = dinamo minsk |
Translate the following into a SQL query | What is the 2nd leg of the second team in the 2007 uefa intertoto cup? | SELECT 2nd leg FROM table WHERE Team #2 = 2007 uefa intertoto cup |
Translate the following into a SQL query | What is the status of the 10 against? | SELECT Status FROM table WHERE Against = 10 |
Translate the following into a SQL query | Who was the opposing team in the test match? | SELECT Opposing Team FROM table WHERE Status = test match |
Translate the following into a SQL query | Where was the 05/09/1973 venue? | SELECT Venue FROM table WHERE Date = 05/09/1973 |
Translate the following into a SQL query | Which Overall has a Position of te, and a Round larger than 5? | SELECT AVG Overall FROM table WHERE Position = te AND Round > 5 |
Translate the following into a SQL query | Which Position has a Round larger than 14, and an Overall smaller than 419? | SELECT Position FROM table WHERE Round > 14 AND Overall < 419 |
Translate the following into a SQL query | Which Overall has a Round smaller than 2? | SELECT Overall FROM table WHERE Round < 2 |
Translate the following into a SQL query | Which Name has a Round larger than 4, an Overall smaller than 338, a Pick smaller than 11, and a College of virginia tech? | SELECT Name FROM table WHERE Round > 4 AND Overall < 338 AND Pick < 11 AND College = virginia tech |
Translate the following into a SQL query | Who has the event of 36 arrow finals? | SELECT Name FROM table WHERE Event = 36 arrow finals |
Translate the following into a SQL query | What is the total score for the 36 arrow finals event? | SELECT COUNT Score FROM table WHERE Event = 36 arrow finals |
Translate the following into a SQL query | Who is moving with the nationality of Tri? | SELECT Moving to FROM table WHERE Nat. = tri |
Translate the following into a SQL query | What is the sSpec Number of the model with a 1ghz frequency? | SELECT sSpec Number FROM table WHERE Frequency = 1ghz |
Translate the following into a SQL query | What is the part number of the model that has a frequency of 933mhz? | SELECT Part Number(s) FROM table WHERE Frequency = 933mhz |
Translate the following into a SQL query | What date was part number rk80533pz933256 released? | SELECT Release Date FROM table WHERE Part Number(s) = rk80533pz933256 |
Translate the following into a SQL query | What is the frequency of the model with sSpec number sl5qj? | SELECT Frequency FROM table WHERE sSpec Number = sl5qj |
Translate the following into a SQL query | How many years does coach Jim Berryman have? | SELECT Years FROM table WHERE Coach = jim berryman |
Translate the following into a SQL query | Which Location has a Method of submission (rear naked choke), a Round of 1, and an Event of ufc 127? | SELECT Location FROM table WHERE Method = submission (rear naked choke) AND Round = 1 AND Event = ufc 127 |
Translate the following into a SQL query | Which Record has a Time of n/a? | SELECT Record FROM table WHERE Time = n/a |
Translate the following into a SQL query | Which Opponent has a Location of gold coast , australia, and a Method of submission (punches)? | SELECT Opponent FROM table WHERE Location = gold coast , australia AND Method = submission (punches) |
Translate the following into a SQL query | what is the location when the circuit is lowood circuit and the race is lowood trophy? | SELECT Location FROM table WHERE Circuit = lowood circuit AND Race = lowood trophy |
Translate the following into a SQL query | what is the race on 23 october? | SELECT Race FROM table WHERE Date = 23 october |
Translate the following into a SQL query | what is the circuit when the winner is stan jones and the race is phillip island trophy race? | SELECT Circuit FROM table WHERE Winner = stan jones AND Race = phillip island trophy race |
Translate the following into a SQL query | What is the displacement and configuration with a max speed of km/h (mph) and the car model Panamera 4s? | SELECT displacement & configuration FROM table WHERE max. speed = km/h (mph) AND car model = panamera 4s |
Translate the following into a SQL query | What is the displacement & configuration with CO2 of 204 g/km emissions? | SELECT displacement & configuration FROM table WHERE emissions CO2 = 204 g/km |
Translate the following into a SQL query | What displacement & configuration does the car model Panamera 4s have? | SELECT displacement & configuration FROM table WHERE car model = panamera 4s |
Translate the following into a SQL query | What is the emissions CO2 with a max speed of km/h (mph) of the car model Panamera 4s? | SELECT emissions CO2 FROM table WHERE max. speed = km/h (mph) AND car model = panamera 4s |
Translate the following into a SQL query | How many tickets were available at Halle Tony Garnier on June 15, 2009? | SELECT Tickets available since FROM table WHERE Venue = halle tony garnier AND Date = june 15, 2009 |
Translate the following into a SQL query | What city had tickets available since March 28, 2008 and went on sale on September 4, 2009? | SELECT City FROM table WHERE Tickets available since = march 28, 2008 AND Date = september 4, 2009 |
Translate the following into a SQL query | WHAT IS THE PICK FOR JOE DAY, ROUND LARGER THAN 1, AND OVERALL SMALLER THAN 150? | SELECT MIN Pick FROM table WHERE Round > 1 AND Name = joe day AND Overall < 150 |
Translate the following into a SQL query | WHAT IS THE SUM OF PICK WITH AN OVERALL LARGER THAN 250, AND FOR FLORIDA COLLEGE? | SELECT SUM Pick FROM table WHERE Overall > 250 AND College = florida |
Translate the following into a SQL query | What is the loan club with bbc sport as the start source and ended in 3 February? | SELECT Loan Club FROM table WHERE Start Source = bbc sport AND Ended = 3 february |
Translate the following into a SQL query | When did the enews start source start? | SELECT Started FROM table WHERE Start Source = enews |
Translate the following into a SQL query | What is the start source of the irl country, which ended on 13 April? | SELECT Start Source FROM table WHERE Country = irl AND Ended = 13 april |
Translate the following into a SQL query | What is the country named feeney with a bbc sport start source? | SELECT Country FROM table WHERE Start Source = bbc sport AND Name = feeney |
Translate the following into a SQL query | What is the loan club named dennehy? | SELECT Loan Club FROM table WHERE Name = dennehy |
Translate the following into a SQL query | What's the most races with less than 10 podiums and 1st position? | SELECT MAX Races FROM table WHERE Position = 1st AND Podiums < 10 |
Translate the following into a SQL query | How many runs did mahela jayawardene and thilan samaraweera have? | SELECT SUM Runs FROM table WHERE Batting partners = mahela jayawardene and thilan samaraweera |
Translate the following into a SQL query | What venue did mahela jayawardene and thilan samaraweera play at? | SELECT Venue FROM table WHERE Batting partners = mahela jayawardene and thilan samaraweera |
Translate the following into a SQL query | Who were the batting partners that played for India in 1997? | SELECT Batting partners FROM table WHERE Fielding team = india AND Season = 1997 |
Translate the following into a SQL query | What is the defending forces when Al-Murassas shows for name? | SELECT Defending forces FROM table WHERE Name = al-murassas |
Translate the following into a SQL query | What is the brigade Tall Al-Shawk shows for the name? | SELECT Brigade FROM table WHERE Name = tall al-shawk |
Translate the following into a SQL query | What is the brigade when Al-Bira is the name? | SELECT Brigade FROM table WHERE Name = al-bira |
Translate the following into a SQL query | What is the brigade when Al-Hamra ('arab al-hamra) shows for name? | SELECT Brigade FROM table WHERE Name = al-hamra ('arab al-hamra) |
Translate the following into a SQL query | What is the Defending forces when the population was 120? | SELECT Defending forces FROM table WHERE Population = 120 |
Translate the following into a SQL query | What was the rank of the park that had a value of 5,040,000 in 2010? | SELECT Rank FROM table WHERE 2010 = 5,040,000 |
Translate the following into a SQL query | What was the overall pick number of the player selected before round 3? | SELECT COUNT Overall Pick FROM table WHERE Round < 3 |
Translate the following into a SQL query | Which College/Junior/Club Team (League) did the player julien cayer who was selected before round 3 play for? | SELECT College/Junior/Club Team (League) FROM table WHERE Round > 3 AND Player = julien cayer |
Translate the following into a SQL query | what is the least bronze when the rank is 3 and silver is less than 2? | SELECT MIN Bronze FROM table WHERE Rank = 3 AND Silver < 2 |
Translate the following into a SQL query | what is the total when bronze is 0 and the nation is hungary? | SELECT MAX Total FROM table WHERE Bronze = 0 AND Nation = hungary |
Translate the following into a SQL query | what is the total when the rank is 7 and gold is more than 0? | SELECT AVG Total FROM table WHERE Rank = 7 AND Gold > 0 |
Translate the following into a SQL query | what is the highest gold when the nation is total and the total is less than 24? | SELECT MAX Gold FROM table WHERE Nation = total AND Total < 24 |
Translate the following into a SQL query | Looking only at matches occurring after Game 51, who was the opponent for the game that ended with a score of 99-129? | SELECT Opponent FROM table WHERE Game > 51 AND Score = 99-129 |
Translate the following into a SQL query | For the game against the Washington Bullets, what was the final score? | SELECT Score FROM table WHERE Opponent = washington bullets |
Translate the following into a SQL query | For the game where the opponent is listed as @ Indiana Pacers, what was the end record? | SELECT Record FROM table WHERE Opponent = @ indiana pacers |
Translate the following into a SQL query | Which game number was played at Chicago Stadium? | SELECT Game FROM table WHERE Location = chicago stadium |
Translate the following into a SQL query | What was the attendance of the match with motagua as the home team? | SELECT AVG Attendance FROM table WHERE Home = motagua |
Translate the following into a SQL query | What is the score of the game where real espana was the home team? | SELECT Score FROM table WHERE Home = real espana |
Translate the following into a SQL query | What team was the away team for the game with 916 in attendance? | SELECT Away FROM table WHERE Attendance = 916 |
Translate the following into a SQL query | What was the score of the game wehre the deportes savio were the home team? | SELECT Score FROM table WHERE Home = deportes savio |
Translate the following into a SQL query | In which championship did the winner have a score of β9 (66-69-73-71=279)? | SELECT Championship FROM table WHERE Winning score = β9 (66-69-73-71=279) |
Translate the following into a SQL query | During the championship where the winning score was β9 (66-69-73-71=279)?, who was the runner-up? | SELECT Runner(s)-up FROM table WHERE Winning score = β9 (66-69-73-71=279) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.