instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What are the draws of Cobden when there are more than 3 losses? | SELECT AVG Draws FROM table WHERE Losses > 3 AND Club = cobden |
Translate the following into a SQL query | What average bronze has 0 as the silver, 17 as the rank, and a gold less than 1? | SELECT AVG Bronze FROM table WHERE Silver = 0 AND Rank = 17 AND Gold < 1 |
Translate the following into a SQL query | What is the lowest silver that has 2 as the bronze, with a total greater than 4? | SELECT MIN Silver FROM table WHERE Bronze = 2 AND Total > 4 |
Translate the following into a SQL query | How many bronzes have a total less than 11, with 11 as the rank, and a gold less than 1? | SELECT COUNT Bronze FROM table WHERE Total < 11 AND Rank = 11 AND Gold < 1 |
Translate the following into a SQL query | What is the memory with a socket g1 and a 1/1/6/9 turbo? | SELECT Memory FROM table WHERE Socket = socket g1 AND Turbo = 1/1/6/9 |
Translate the following into a SQL query | What is the release date of the 6 mb L3 cache with the part number by80607005259aabx80607i7740qm? | SELECT Release date FROM table WHERE L3 cache = 6 mb AND Part number(s) = by80607005259aabx80607i7740qm |
Translate the following into a SQL query | What was the lowest draw for Beathoven when the place was smaller than 16? | SELECT MIN Draw FROM table WHERE Artist = beathoven AND Place < 16 |
Translate the following into a SQL query | What Luca Barbarossa song had a draw smaller than 20? | SELECT Song FROM table WHERE Draw < 20 AND Artist = luca barbarossa |
Translate the following into a SQL query | Who did they play at sec tournament? | SELECT Opponent FROM table WHERE Location = sec tournament |
Translate the following into a SQL query | Where was the game played when their record was 9-1-0? | SELECT Location FROM table WHERE Record = 9-1-0 |
Translate the following into a SQL query | Who is the writer of Children of Earth of "day four"? | SELECT Writer FROM table WHERE Children of Earth = "day four" |
Translate the following into a SQL query | How many viewers were there for Children of Earth of "day one"? | SELECT Viewers (including HD) in millions FROM table WHERE Children of Earth = "day one" |
Translate the following into a SQL query | Who was the director of Children of Earth of "day five"? | SELECT Director FROM table WHERE Children of Earth = "day five" |
Translate the following into a SQL query | Who was the director of the episode written by Russell T Davies and James Moran? | SELECT Director FROM table WHERE Writer = russell t davies and james moran |
Translate the following into a SQL query | Which Points have Drawn of 1, and a Played larger than 14? | SELECT MAX Points FROM table WHERE Drawn = 1 AND Played > 14 |
Translate the following into a SQL query | Which Position has Drawn larger than 1, and a Played smaller than 14? | SELECT MAX Position FROM table WHERE Drawn > 1 AND Played < 14 |
Translate the following into a SQL query | Which Lost has Drawn larger than 1, and a Played larger than 14? | SELECT MIN Lost FROM table WHERE Drawn > 1 AND Played > 14 |
Translate the following into a SQL query | How much Lost has Points larger than 15, and a Name of ev pegnitz? | SELECT COUNT Lost FROM table WHERE Points > 15 AND Name = ev pegnitz |
Translate the following into a SQL query | what is the english translation when the artist is ann christine? | SELECT English translation FROM table WHERE Artist = ann christine |
Translate the following into a SQL query | What player was picked earlier than 126 by the Houston Oilers? | SELECT Player FROM table WHERE Pick < 126 AND Team = houston oilers |
Translate the following into a SQL query | What college was picked later than 122 by the Boston Patriots? | SELECT College FROM table WHERE Pick > 122 AND Team = boston patriots |
Translate the following into a SQL query | what is the to par for geoff ogilvy? | SELECT To par FROM table WHERE Player = geoff ogilvy |
Translate the following into a SQL query | what is the country for geoff ogilvy? | SELECT Country FROM table WHERE Player = geoff ogilvy |
Translate the following into a SQL query | what is the to par for retief goosen? | SELECT To par FROM table WHERE Player = retief goosen |
Translate the following into a SQL query | how many times is the player jim furyk? | SELECT COUNT Total FROM table WHERE Player = jim furyk |
Translate the following into a SQL query | What is the lowest lane in which an athlete got a time larger than 20.75 and a react smaller than 0.166? | SELECT MIN Lane FROM table WHERE Time > 20.75 AND React < 0.166 |
Translate the following into a SQL query | What is Christian Malcolm´s highest react when his time was below 20.58? | SELECT MAX React FROM table WHERE Time < 20.58 AND Athlete = christian malcolm |
Translate the following into a SQL query | what is the position when the year [A} is after 2011 and the pick is 28? | SELECT Position FROM table WHERE Year [A ] > 2011 AND Pick = 28 |
Translate the following into a SQL query | Who is the player when the pick is 22 and the year [A] is after 1979? | SELECT Player name FROM table WHERE Pick = 22 AND Year [A ] > 1979 |
Translate the following into a SQL query | who is the player when the pick is 15 and the year [A] is 2000? | SELECT Player name FROM table WHERE Pick = 15 AND Year [A ] = 2000 |
Translate the following into a SQL query | Which country was the player from who scored 66-72-70=207? | SELECT Country FROM table WHERE Score = 66-72-70=207 |
Translate the following into a SQL query | What place was the player who scored 70-69-68=207? | SELECT Place FROM table WHERE Score = 70-69-68=207 |
Translate the following into a SQL query | What country was the player in t10 place with a score of 66-72-70=207? | SELECT Country FROM table WHERE Place = t10 AND Score = 66-72-70=207 |
Translate the following into a SQL query | What is the to par of United States' Cristie Kerr? | SELECT To par FROM table WHERE Country = united states AND Player = cristie kerr |
Translate the following into a SQL query | Who is the original artist of the 3:00 song? | SELECT Original artist FROM table WHERE Length = 3:00 |
Translate the following into a SQL query | How long is "Harvest"? | SELECT Length FROM table WHERE Song = "harvest" |
Translate the following into a SQL query | Which song lasts 3:34? | SELECT Song FROM table WHERE Length = 3:34 |
Translate the following into a SQL query | Who is the original artist of "Let's Dance"? | SELECT Original artist FROM table WHERE Song = "let's dance" |
Translate the following into a SQL query | Which song lasts 4:08? | SELECT Song FROM table WHERE Length = 4:08 |
Translate the following into a SQL query | How many bronze medals for Romania when the silver count is more than 1? | SELECT AVG Bronze FROM table WHERE Nation = romania AND Silver > 1 |
Translate the following into a SQL query | Which manager had less than 287 losses, less than 80 wins, a win percentage of 0.296, and was employed in 1904? | SELECT Manager FROM table WHERE Losses < 287 AND Wins < 80 AND Years = 1904 AND WPct = 0.296 |
Translate the following into a SQL query | Which U.S. Hot has 13 as the U.S. R&B? | SELECT U.S. Hot 100 FROM table WHERE U.S. R&B = 13 |
Translate the following into a SQL query | What U.S. Rap has life in the concrete jungle as the album? | SELECT U.S. Rap FROM table WHERE Album = life in the concrete jungle |
Translate the following into a SQL query | What Height has a 2008 Club of Itas Diatec? | SELECT Height FROM table WHERE 2008 club = itas diatec |
Translate the following into a SQL query | What Name has a 2008 Club of Sisley Treviso? | SELECT Name FROM table WHERE 2008 club = sisley treviso |
Translate the following into a SQL query | What Weight has a 2008 Club of Acqua Paradiso Gabeca? | SELECT Weight FROM table WHERE 2008 club = acqua paradiso gabeca |
Translate the following into a SQL query | What are the Notes of the Mill Built in the 19th Century? | SELECT Notes FROM table WHERE Built = 19th century |
Translate the following into a SQL query | What is the Type of Mill at Molen de Stud? | SELECT Type FROM table WHERE Name of mill = molen de stud |
Translate the following into a SQL query | What is the Name of the Mill Built in 1802? | SELECT Name of mill FROM table WHERE Built = 1802 |
Translate the following into a SQL query | What is the Location of the Mill Built in the Early 19th Century? | SELECT Location FROM table WHERE Built = early 19th century |
Translate the following into a SQL query | What was the record for the game played by the home team San Francisco 49ers and visitor Philadelphia Eagles? | SELECT Record FROM table WHERE Home = san francisco 49ers AND Visitor = philadelphia eagles |
Translate the following into a SQL query | What was the home team for the game with attendance larger than 59,064 and a record of 7-4-0? | SELECT Home FROM table WHERE Attendance > 59,064 AND Record = 7-4-0 |
Translate the following into a SQL query | What is the record for the game played on September 27? | SELECT Record FROM table WHERE Date = september 27 |
Translate the following into a SQL query | What is the highest place of a song by Henri Dès that has fewer than 8 points? | SELECT MAX Place FROM table WHERE Artist = henri dès AND Points < 8 |
Translate the following into a SQL query | What team was 2 on November 22, 2008 when the result was 1-0? | SELECT Team 2 FROM table WHERE Date = november 22, 2008 AND Result = 1-0 |
Translate the following into a SQL query | What team was 2 when Tatung was team 1 at National Pei Men Senior High School? | SELECT Team 2 FROM table WHERE Team 1 = tatung AND Ground = national pei men senior high school |
Translate the following into a SQL query | Where was the game played that has a result of 0-4? | SELECT Ground FROM table WHERE Result = 0-4 |
Translate the following into a SQL query | What team is 2 when 1 is Taipower and the result is 0-1? | SELECT Team 2 FROM table WHERE Team 1 = taipower AND Result = 0-1 |
Translate the following into a SQL query | What team is 2 when the game result is 0-4 at Pailing Sport Park? | SELECT Team 2 FROM table WHERE Ground = pailing sport park AND Result = 0-4 |
Translate the following into a SQL query | What is the total point value when there are less than 12 draws, the rank is less than 17, and Philipp Kirkorov is the artist? | SELECT COUNT Points FROM table WHERE Draw < 12 AND Artist = philipp kirkorov AND Place < 17 |
Translate the following into a SQL query | What is the total ranking when there are less than 16 draws, less than 1 point, and the English translation is in love with you? | SELECT SUM Place FROM table WHERE Draw < 16 AND English translation = in love with you AND Points < 1 |
Translate the following into a SQL query | What is the highest draw number when there are more than 31 points, a rank greater than 6, and the English translation is listen to me? | SELECT MAX Draw FROM table WHERE Points > 31 AND Place > 6 AND English translation = listen to me |
Translate the following into a SQL query | What was the population of Green County? | SELECT MIN Population FROM table WHERE County = green |
Translate the following into a SQL query | Which county had 6,807 households and a median family income of $49,865? | SELECT County FROM table WHERE Number of households > 6,807 AND Median family income = $49,865 |
Translate the following into a SQL query | What was the score of the game against Minnesota? | SELECT Score FROM table WHERE Opponent = minnesota |
Translate the following into a SQL query | What player had the high point on July 7? | SELECT High points FROM table WHERE Date = july 7 |
Translate the following into a SQL query | What's the format of the single, I Can't Stay? | SELECT Format FROM table WHERE Single = i can't stay |
Translate the following into a SQL query | What's the Backed after 2008 with a label of Wild World? | SELECT Backed with FROM table WHERE Record label = wild world AND Date > 2008 |
Translate the following into a SQL query | What's the date for Details of 1000 copies? | SELECT MIN Date FROM table WHERE Other details = 1000 copies |
Translate the following into a SQL query | What nation has paavo nurmi as the athlete, with a medal count less than 12? | SELECT Nation FROM table WHERE Athlete = paavo nurmi AND Medal count < 12 |
Translate the following into a SQL query | Which sport has 17 as the medal count? | SELECT Sport FROM table WHERE Medal count = 17 |
Translate the following into a SQL query | What record medal event has athletics as the sport, with robert garrett as the athlete, and a medal count less than 3? | SELECT Record medal event FROM table WHERE Sport = athletics AND Athlete = robert garrett AND Medal count < 3 |
Translate the following into a SQL query | What is the Opponent of the game in Week 3? | SELECT Opponent FROM table WHERE Week = 3 |
Translate the following into a SQL query | What is the Attendance of the game on December 12, 2004? | SELECT Attendance FROM table WHERE Date = december 12, 2004 |
Translate the following into a SQL query | What is the Attendance of the game against Jacksonville Jaguars? | SELECT Attendance FROM table WHERE Opponent = jacksonville jaguars |
Translate the following into a SQL query | Which Score has a Money ( £ ) of 90,400, and a Country of south africa, and a Player of thomas aiken? Question 1 | SELECT Score FROM table WHERE Money ( £ ) = 90,400 AND Country = south africa AND Player = thomas aiken |
Translate the following into a SQL query | How much Money( £ )australia has ? | SELECT Money ( £ ) FROM table WHERE Country = australia |
Translate the following into a SQL query | Count the Money ( £ ) of south africa with a To par of +1, and a Player of ernie els? | SELECT Money ( £ ) FROM table WHERE Country = south africa AND To par = +1 AND Player = ernie els |
Translate the following into a SQL query | Where has a Player of tom watson? | SELECT Place FROM table WHERE Player = tom watson |
Translate the following into a SQL query | Which Score has a To par of +1 in sweden? | SELECT Score FROM table WHERE To par = +1 AND Country = sweden |
Translate the following into a SQL query | Which To par is of thomas aiken? | SELECT To par FROM table WHERE Player = thomas aiken |
Translate the following into a SQL query | What is the average expenditures on R&D for Croatia after 2007? | SELECT AVG Expenditures on R&D (billions of US$ , PPP ) FROM table WHERE Country/Region = croatia AND Year > 2007 |
Translate the following into a SQL query | What is the lowest expenditures on R&D for Poland after 2011? | SELECT MIN Expenditures on R&D (billions of US$ , PPP ) FROM table WHERE Country/Region = poland AND Year > 2011 |
Translate the following into a SQL query | What is the Opposition in the First Round of the UEFA Cup with a Score of 3–1 (h), 2–0 (a)? | SELECT Opposition FROM table WHERE Round = first round AND Competition = uefa cup AND Score = 3–1 (h), 2–0 (a) |
Translate the following into a SQL query | What is the Season of the game with a Score of 0–2 (a), 3–1 (h)? | SELECT Season FROM table WHERE Score = 0–2 (a), 3–1 (h) |
Translate the following into a SQL query | Which Location has a Year Joined of 1966, and a Previous Conference of noble county, and a School of wawaka? | SELECT Location FROM table WHERE Year Joined = 1966 AND Previous Conference = noble county AND School = wawaka |
Translate the following into a SQL query | How much Year Left has a Location of howe? | SELECT SUM Year Left FROM table WHERE Location = howe |
Translate the following into a SQL query | Which School has a Year Left of 1966, and a Mascot of indians? | SELECT School FROM table WHERE Year Left = 1966 AND Mascot = indians |
Translate the following into a SQL query | Who was the Elevator of Giacomo Colonna? | SELECT Elevator FROM table WHERE Elector = giacomo colonna |
Translate the following into a SQL query | What is the date of elevation for the Cardinal elevated by Nicholas III to the title of Cardinal-Deacon of S. Eustachio? | SELECT Elevated FROM table WHERE Elevator = nicholas iii AND Cardinalatial order and title = cardinal-deacon of s. eustachio |
Translate the following into a SQL query | What was the date of elevation for the cardinal given the order and title of Cardinal-Priest of S. Pudenziana? | SELECT Elevated FROM table WHERE Cardinalatial order and title = cardinal-priest of s. pudenziana |
Translate the following into a SQL query | What are the games behind for the Oklahoma City Thunder division? | SELECT Games behind (GB) FROM table WHERE Division (Div.) = oklahoma city thunder |
Translate the following into a SQL query | What is the highest elevation of a place where the lowest point is the Allaine River, National border? | SELECT Highest elevation FROM table WHERE Lowest point = allaine river, national border |
Translate the following into a SQL query | What is the lowest elevation value whose highest point is Mont Raimeux? | SELECT Lowest elevation FROM table WHERE Highest point = mont raimeux |
Translate the following into a SQL query | What rank is Vaud with the lowest point is Lake Geneva? | SELECT SUM Rank FROM table WHERE Lowest point = lake geneva AND Canton = vaud |
Translate the following into a SQL query | Wich rank is given to the Canton of Schaffhausen? | SELECT SUM Rank FROM table WHERE Canton = schaffhausen |
Translate the following into a SQL query | What is the highest elevation for the highest point of Schnebelhorn? | SELECT Highest elevation FROM table WHERE Highest point = schnebelhorn |
Translate the following into a SQL query | What is the Canton of Vaud's highest point? | SELECT Highest point FROM table WHERE Canton = vaud |
Translate the following into a SQL query | What type of ship is a Kobben class vessel that has been in service longer than 2? | SELECT Type FROM table WHERE In service > 2 AND Vessel = kobben class |
Translate the following into a SQL query | What is the unit for a submarine type ship from Norway? | SELECT Unit FROM table WHERE Type = submarine AND Origin = norway |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.