instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the Area of the Parish with a Population of 2,113? | SELECT COUNT Area km 2 FROM table WHERE Population = 2,113 |
Translate the following into a SQL query | What is the Population of the Parish with an Area km 2 of 236.76? | SELECT MIN Population FROM table WHERE Area km 2 = 236.76 |
Translate the following into a SQL query | What is the Area of the Parish with a Population of 71? | SELECT Area km 2 FROM table WHERE Population = 71 |
Translate the following into a SQL query | What is the elevation and height for Halfbeak? | SELECT Elevation + Height FROM table WHERE Name = halfbeak |
Translate the following into a SQL query | What is the purpose of Long Shot? | SELECT Purpose FROM table WHERE Name = long shot |
Translate the following into a SQL query | What is the yield in NTS Area U2R when the purpose is weapons development? | SELECT Yield FROM table WHERE Purpose = weapons development AND Location = nts area u2r |
Translate the following into a SQL query | What location was listed on 1977-09-15? | SELECT Location FROM table WHERE Listed = 1977-09-15 |
Translate the following into a SQL query | What is the Borough for the Seward listing on 1977-11-23? | SELECT Borough FROM table WHERE Location = seward AND Listed = 1977-11-23 |
Translate the following into a SQL query | What location was listed on 1977-11-23? | SELECT Location FROM table WHERE Listed = 1977-11-23 |
Translate the following into a SQL query | What are the listings in the Valdez-cordova (census area) Borough? | SELECT Listed FROM table WHERE Borough = valdez-cordova (census area) |
Translate the following into a SQL query | What is the name of the building listed on 1977-11-23? | SELECT Name FROM table WHERE Listed = 1977-11-23 |
Translate the following into a SQL query | What was the Maple Leafs' record on game 52? | SELECT Record FROM table WHERE Game = 52 |
Translate the following into a SQL query | What was Germany's lowest sales when the profit was smaller than 6.7 billion? | SELECT MIN Sales (billion $) FROM table WHERE Headquarters = germany AND Profits (billion $) < 6.7 |
Translate the following into a SQL query | For which industry was the profit smaller than 14.2 billion and the assets larger than 2,467.9 billion? | SELECT Industry FROM table WHERE Profits (billion $) < 14.2 AND Assets (billion $) > 2,467.9 |
Translate the following into a SQL query | For which industry is the assets smaller than 1,258.1 and the profit smaller than 11.6? | SELECT Industry FROM table WHERE Assets (billion $) < 1,258.1 AND Profits (billion $) < 11.6 |
Translate the following into a SQL query | What is the average rank for USA when the market value is 407.2 billion? | SELECT AVG Rank FROM table WHERE Headquarters = usa AND Market Value (billion $) > 407.2 |
Translate the following into a SQL query | What was date was the attendance larger than 875 against Platense? | SELECT Date FROM table WHERE Attendance > 875 AND Home = platense |
Translate the following into a SQL query | Who was the home team with 3305 in attendance? | SELECT Home FROM table WHERE Attendance = 3305 |
Translate the following into a SQL query | What was the highest attendance for the Hispano team? | SELECT MAX Attendance FROM table WHERE Home = hispano |
Translate the following into a SQL query | What country has the player Tiger Woods? | SELECT Country FROM table WHERE Player = tiger woods |
Translate the following into a SQL query | What is the Money ($) player Loren Roberts has made? | SELECT MAX Money ( $ ) FROM table WHERE Player = loren roberts |
Translate the following into a SQL query | What is the Pinnacle height for Metcalf, Georgia? | SELECT Pinnacle height FROM table WHERE Town = metcalf, georgia |
Translate the following into a SQL query | Who placed t7 with a score of 70-71=141? | SELECT Player FROM table WHERE Place = t7 AND Score = 70-71=141 |
Translate the following into a SQL query | What country scored 71-69=140? | SELECT Country FROM table WHERE Score = 71-69=140 |
Translate the following into a SQL query | What nation had more than 3 bronze, 0 gold, and a total of 9? | SELECT Nation FROM table WHERE Bronze > 3 AND Gold = 0 AND Total = 9 |
Translate the following into a SQL query | What's the earliest year the new york giants lost at new meadowlands stadium? | SELECT MIN Year FROM table WHERE Loser = new york giants AND Location = new meadowlands stadium |
Translate the following into a SQL query | How many years did the new york giants lose at metlife stadium? | SELECT COUNT Year FROM table WHERE Location = metlife stadium AND Loser = new york giants |
Translate the following into a SQL query | How many years did the new york giants win with a result of 15-7 at lincoln financial field? | SELECT COUNT Year FROM table WHERE Location = lincoln financial field AND Winner = new york giants AND Result = 15-7 |
Translate the following into a SQL query | Who lost when the philadelphia eagles won at lincoln financial field on september 30? | SELECT Loser FROM table WHERE Location = lincoln financial field AND Winner = philadelphia eagles AND Date = september 30 |
Translate the following into a SQL query | What date did the new york giants win after 2011? | SELECT Date FROM table WHERE Winner = new york giants AND Year > 2011 |
Translate the following into a SQL query | What is Official Name, when Census Ranking is 769 of 5,008? | SELECT Official Name FROM table WHERE Census Ranking = 769 of 5,008 |
Translate the following into a SQL query | What is Status, when Area km 2 is greater than 303.73? | SELECT Status FROM table WHERE Area km 2 > 303.73 |
Translate the following into a SQL query | What is Area km 2, when Population is greater than 1,395? | SELECT MIN Area km 2 FROM table WHERE Population > 1,395 |
Translate the following into a SQL query | What is the Place of the Player from Zimbabwe? | SELECT Place FROM table WHERE Country = zimbabwe |
Translate the following into a SQL query | What is the Place of the Player with a Score of 73-68-71=212? | SELECT Place FROM table WHERE Score = 73-68-71=212 |
Translate the following into a SQL query | What is the Place of the Player with a +3 To par? | SELECT Place FROM table WHERE To par = +3 |
Translate the following into a SQL query | What is the Score of Stewart Cink with a To par of +4? | SELECT Score FROM table WHERE To par = +4 AND Player = stewart cink |
Translate the following into a SQL query | What T10 Place Player has a Score of 74-73-68=215? | SELECT Player FROM table WHERE Place = t10 AND Score = 74-73-68=215 |
Translate the following into a SQL query | What is the maximum pick when WR was the position and Michigan the college, and the overall greater than 255? | SELECT MAX Pick FROM table WHERE Position = wr AND College = michigan AND Overall > 255 |
Translate the following into a SQL query | What is the total round when DB was the position, and the pick less than 21, and Jeff Welch as the name? | SELECT SUM Round FROM table WHERE Position = db AND Name = jeff welch AND Pick < 21 |
Translate the following into a SQL query | What is Player, when Year(s) Won is 1978 , 1985? | SELECT Player FROM table WHERE Year(s) won = 1978 , 1985 |
Translate the following into a SQL query | WHAT IS THE AVERAGE PICK FOR PURDUE, WITH A ROUND SMALLER THAN 5? | SELECT AVG Pick FROM table WHERE College = purdue AND Round < 5 |
Translate the following into a SQL query | WHAT IS THE HIGHEST PICK WITH A TE POSITION, AND ROUND SMALLER THAN 2? | SELECT MAX Pick FROM table WHERE Position = te AND Round < 2 |
Translate the following into a SQL query | WHAT IS THE AVERAGE OVERALL, FOR MARK FISCHER? | SELECT AVG Overall FROM table WHERE Name = mark fischer |
Translate the following into a SQL query | WHAT IS THE SUM OF PICK FOR DAVID TERRELL, WITH A ROUND SMALLER THAN 7? | SELECT SUM Pick FROM table WHERE Name = david terrell AND Round < 7 |
Translate the following into a SQL query | WHAT IS THE POSITION WITH A ROUND LARGER THAN 6, AND OVERALL OF 191? | SELECT Position FROM table WHERE Round > 6 AND Overall = 191 |
Translate the following into a SQL query | Who is the player with a score of 68-71=139? | SELECT Player FROM table WHERE Score = 68-71=139 |
Translate the following into a SQL query | What is the to par of player jerry pate, who has a 70-69=139 score? | SELECT To par FROM table WHERE Score = 70-69=139 AND Player = jerry pate |
Translate the following into a SQL query | What is the to par of the player with a t9 place and a score of 72-67=139? | SELECT To par FROM table WHERE Place = t9 AND Score = 72-67=139 |
Translate the following into a SQL query | What is the place of the player witha 69-69=138 score? | SELECT Place FROM table WHERE Score = 69-69=138 |
Translate the following into a SQL query | What team played the Jazz at game 68? | SELECT Team FROM table WHERE Game = 68 |
Translate the following into a SQL query | What date did mehmet okur (24) have the most points? | SELECT Date FROM table WHERE High points = mehmet okur (24) |
Translate the following into a SQL query | What week had attendance of 64,146? | SELECT MIN Week FROM table WHERE Attendance = 64,146 |
Translate the following into a SQL query | What is the attendance of week 12? | SELECT MIN Attendance FROM table WHERE Week = 12 |
Translate the following into a SQL query | What is the attendance from November 3, 1974? | SELECT Attendance FROM table WHERE Date = november 3, 1974 |
Translate the following into a SQL query | What is the attendance of week 8? | SELECT COUNT Attendance FROM table WHERE Week = 8 |
Translate the following into a SQL query | What is the date of the game on week 9 with attendance greater than 41,863? | SELECT Date FROM table WHERE Attendance > 41,863 AND Week = 9 |
Translate the following into a SQL query | Who was the loser against the New York Giants in 2001? | SELECT Loser FROM table WHERE Year = 2001 AND Winner = new york giants |
Translate the following into a SQL query | What was the location with the 24-21 result? | SELECT Location FROM table WHERE Result = 24-21 |
Translate the following into a SQL query | Who was the winner with the 24-21 result? | SELECT Winner FROM table WHERE Result = 24-21 |
Translate the following into a SQL query | What is the average To Par, when Place is "T3", and when Player is "Ben Hogan"? | SELECT AVG To par FROM table WHERE Place = t3 AND Player = ben hogan |
Translate the following into a SQL query | What is the average To Par, when Player is "Julius Boros"? | SELECT AVG To par FROM table WHERE Player = julius boros |
Translate the following into a SQL query | What is the highest To Par, when Score is "72-73=145"? | SELECT MAX To par FROM table WHERE Score = 72-73=145 |
Translate the following into a SQL query | What is Score, when Place is "T1"? | SELECT Score FROM table WHERE Place = t1 |
Translate the following into a SQL query | What is Place, when To Par is "5", and when Score is "72-73=145"? | SELECT Place FROM table WHERE To par = 5 AND Score = 72-73=145 |
Translate the following into a SQL query | What is the highest pick # after round 11? | SELECT MAX Pick # FROM table WHERE Round > 11 |
Translate the following into a SQL query | Which college has a pick # 84 in round 3? | SELECT College FROM table WHERE Round = 3 AND Pick # = 84 |
Translate the following into a SQL query | What was the pick # for round 11? | SELECT Pick # FROM table WHERE Round = 11 |
Translate the following into a SQL query | Which Pick has a Round larger than 8, a Name of kenny fells, and an Overall larger than 297? | SELECT SUM Pick FROM table WHERE Round > 8 AND Name = kenny fells AND Overall > 297 |
Translate the following into a SQL query | Which Position has a Round larger than 7, and a Name of wayne asberry? | SELECT Position FROM table WHERE Round > 7 AND Name = wayne asberry |
Translate the following into a SQL query | Which Overall has a Name of markus koch? | SELECT SUM Overall FROM table WHERE Name = markus koch |
Translate the following into a SQL query | Which Position has a Round smaller than 8, a Pick of 20, and an Overall smaller than 186? | SELECT Position FROM table WHERE Round < 8 AND Pick = 20 AND Overall < 186 |
Translate the following into a SQL query | What is the score when Fulham is the away team? | SELECT Score FROM table WHERE Away team = fulham |
Translate the following into a SQL query | Which away team has a tie number of 14? | SELECT Away team FROM table WHERE Tie no = 14 |
Translate the following into a SQL query | What is the tie number in the game on 5 January 1986 where Exeter City is the away team? | SELECT Tie no FROM table WHERE Date = 5 january 1986 AND Away team = exeter city |
Translate the following into a SQL query | What is the total average for McCain% of 55.0% and Obama# higher than 3,487? | SELECT AVG Total FROM table WHERE McCain% = 55.0% AND Obama# > 3,487 |
Translate the following into a SQL query | what is 2010 when 2009 is w and 2007 is qf? | SELECT 2010 FROM table WHERE 2009 = w AND 2007 = qf |
Translate the following into a SQL query | what is 2000 when 2012 is 4r? | SELECT 2000 FROM table WHERE 2012 = 4r |
Translate the following into a SQL query | what is 2000 when 2012 is w and 2011 is 4r? | SELECT 2000 FROM table WHERE 2012 = w AND 2011 = 4r |
Translate the following into a SQL query | what is 2010 when 2006 is 3r? | SELECT 2010 FROM table WHERE 2006 = 3r |
Translate the following into a SQL query | what is 2013 when 2001 is qf and 2011 is 4r? | SELECT 2013 FROM table WHERE 2001 = qf AND 2011 = 4r |
Translate the following into a SQL query | What is the average round for the record of 1-1? | SELECT AVG Round FROM table WHERE Record = 1-1 |
Translate the following into a SQL query | What method had a record 12-2-3? | SELECT Method FROM table WHERE Record = 12-2-3 |
Translate the following into a SQL query | What Hanyu Pinyin is in the Jinning Township? | SELECT Hanyu Pinyin FROM table WHERE Name = jinning township |
Translate the following into a SQL query | How many times did Sham Kwok Fai score in the game that was played on 22 February 2006? | SELECT SUM Scored FROM table WHERE Date = 22 february 2006 |
Translate the following into a SQL query | The home team york city has what score? | SELECT Score FROM table WHERE Home team = york city |
Translate the following into a SQL query | What is the total number of Week(s), when Attendance is 61,603? | SELECT COUNT Week FROM table WHERE Attendance = 61,603 |
Translate the following into a SQL query | What is Opponent, when Attendance is 62,170? | SELECT Opponent FROM table WHERE Attendance = 62,170 |
Translate the following into a SQL query | HOW MANY POINTS DOES ALEX SPERAFICO HAVE WITH A GRID LARGER THAN 17? | SELECT MIN Points FROM table WHERE Driver = alex sperafico AND Grid > 17 |
Translate the following into a SQL query | WHAT ARE THE LAPS WITH POINTS LARGER THAN 5, WITH FORSYTHE RACING, AND GRID 5? | SELECT MIN Laps FROM table WHERE Points > 5 AND Team = forsythe racing AND Grid = 5 |
Translate the following into a SQL query | WHAT IS THE SCORE WHEN THE COMPETITION WAS 1978 world cup qualification? | SELECT Score FROM table WHERE Competition = 1978 world cup qualification |
Translate the following into a SQL query | What is the average pick number for jerry hackenbruck who was overall pick less than 282? | SELECT AVG Pick FROM table WHERE Name = jerry hackenbruck AND Overall < 282 |
Translate the following into a SQL query | What is the lowest draft pick number for mark doak who had an overall pick smaller than 147? | SELECT MIN Pick FROM table WHERE Name = mark doak AND Overall < 147 |
Translate the following into a SQL query | What position did the player have who was from the college of california? | SELECT Position FROM table WHERE College = california |
Translate the following into a SQL query | What college did jerry hackenbruck come from who had an overall pick less than 344? | SELECT College FROM table WHERE Overall < 344 AND Name = jerry hackenbruck |
Translate the following into a SQL query | What team was the opponent on 03/18/08? | SELECT Opponent FROM table WHERE Date = 03/18/08 |
Translate the following into a SQL query | What is the site where the game was held in the city of Delaware? | SELECT Site FROM table WHERE City = delaware |
Translate the following into a SQL query | What city was the game held in when the opponent was Towson? | SELECT City FROM table WHERE Opponent = towson |
Translate the following into a SQL query | What team was opponen in baltimore, at 2:00pm, on 4/06/08? | SELECT Opponent FROM table WHERE City = baltimore AND Time = 2:00pm AND Date = 4/06/08 |
Translate the following into a SQL query | What date was the game held at UMBC Field? | SELECT Date FROM table WHERE Site = umbc field |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.