instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the 2004 value for the 2009 Grand slam tournaments? | SELECT 2004 FROM table WHERE 2009 = grand slam tournaments |
Translate the following into a SQL query | What tournament has a 2008 value of A, q1 in 2005, and 1r in 2004? | SELECT Tournament FROM table WHERE 2008 = a AND 2005 = q1 AND 2004 = 1r |
Translate the following into a SQL query | What is the 2005 value for the 2010 grand slam tournaments? | SELECT 2005 FROM table WHERE 2010 = grand slam tournaments |
Translate the following into a SQL query | What is the 2003 value for the 2008 grand slam tournaments? | SELECT 2003 FROM table WHERE 2008 = grand slam tournaments |
Translate the following into a SQL query | What is the 2005 value with a q2 in 2011, a q1 in 2012, and 1r in 2003? | SELECT 2005 FROM table WHERE 2011 = q2 AND 2012 = q1 AND 2003 = 1r |
Translate the following into a SQL query | What is the 2009 value for the 2003 grand slam tournaments? | SELECT 2009 FROM table WHERE 2003 = grand slam tournaments |
Translate the following into a SQL query | What was the high amount of assists before game 60? | SELECT High assists FROM table WHERE Game < 60 |
Translate the following into a SQL query | What date was match 5? | SELECT Date FROM table WHERE Match = 5 |
Translate the following into a SQL query | What was the game score on april 2, 2008? | SELECT Score FROM table WHERE Date = april 2, 2008 |
Translate the following into a SQL query | What is the average match when the singapore armed forces played away against perak fa (malaysia)? | SELECT AVG Match FROM table WHERE Home/Away = away AND Opponent team = perak fa (malaysia) |
Translate the following into a SQL query | What is the ICAO for Seewoosagur Ramgoolam airport? | SELECT ICAO FROM table WHERE Airport = seewoosagur ramgoolam airport |
Translate the following into a SQL query | What is the IATA for San Francisco airport? | SELECT IATA FROM table WHERE Airport = san francisco airport |
Translate the following into a SQL query | Which city has an ICAO of Oejn? | SELECT City FROM table WHERE ICAO = oejn |
Translate the following into a SQL query | What is the IATA for Gatwick airport? | SELECT IATA FROM table WHERE Airport = gatwick airport |
Translate the following into a SQL query | What is the ICAO in France with an IATA of Ory? | SELECT ICAO FROM table WHERE Country = france AND IATA = ory |
Translate the following into a SQL query | Which Location Attendance has a Game larger than 67, and a Team of @ charlotte? | SELECT Location Attendance FROM table WHERE Game > 67 AND Team = @ charlotte |
Translate the following into a SQL query | Which High rebounds have High points of chris bosh (18)? | SELECT High rebounds FROM table WHERE High points = chris bosh (18) |
Translate the following into a SQL query | Which High rebounds have High points of chris bosh (34)? | SELECT High rebounds FROM table WHERE High points = chris bosh (34) |
Translate the following into a SQL query | What are Utah's high points? | SELECT High points FROM table WHERE Team = utah |
Translate the following into a SQL query | What is Rinnal's title? | SELECT Title FROM table WHERE Name = rinnal |
Translate the following into a SQL query | What title was used in 1911 bc? | SELECT Title FROM table WHERE From = 1911 bc |
Translate the following into a SQL query | Which player from United States is in place of t6? | SELECT Player FROM table WHERE Country = united states AND Place = t6 |
Translate the following into a SQL query | Phil Mickelson has what To par? | SELECT To par FROM table WHERE Player = phil mickelson |
Translate the following into a SQL query | What high assists have a game greater than 46? | SELECT High assists FROM table WHERE Game > 46 |
Translate the following into a SQL query | What are the high points that have 42 as the game? | SELECT High points FROM table WHERE Game = 42 |
Translate the following into a SQL query | What record has 46 as the game? | SELECT Record FROM table WHERE Game = 46 |
Translate the following into a SQL query | WHAT IS THE PLACE WITH A SCORE OF 67-70=137? | SELECT Place FROM table WHERE Score = 67-70=137 |
Translate the following into a SQL query | WHAT PLAYER HAS A SCORE OF 66-73=139? | SELECT Player FROM table WHERE Score = 66-73=139 |
Translate the following into a SQL query | WHAT PLACE WAS A SCORE 67-70=137? | SELECT Place FROM table WHERE Score = 67-70=137 |
Translate the following into a SQL query | WHAT COUNTRY HAS A T7 PLACE, WITH IAN WOOSNAM? | SELECT Country FROM table WHERE Place = t7 AND Player = ian woosnam |
Translate the following into a SQL query | WHAT COUNTRY HAS A SCORE OF 68-70=138? | SELECT Country FROM table WHERE Score = 68-70=138 |
Translate the following into a SQL query | What was the earliest week when the New Orleans Saints were the opponents? | SELECT MIN Week FROM table WHERE Opponent = new orleans saints |
Translate the following into a SQL query | What was the name of the opponent that having a TV time of Bye? | SELECT Opponent FROM table WHERE TV Time = bye |
Translate the following into a SQL query | What is the Parameter that has the third phase of 0.50 m? | SELECT Parameter FROM table WHERE 3rd stage = 0.50 m |
Translate the following into a SQL query | What is the second stage that has the third phase of 20kn? | SELECT 2nd stage FROM table WHERE 3rd stage = 20kn |
Translate the following into a SQL query | What is the third stage that has the first phase of 5,443kg? | SELECT 3rd stage FROM table WHERE 1st stage = 5,443kg |
Translate the following into a SQL query | What is the Parameter that has the third phase of 20kn? | SELECT Parameter FROM table WHERE 3rd stage = 20kn |
Translate the following into a SQL query | What year did the Grizzlies play for the UNLV team? | SELECT Years for Grizzlies FROM table WHERE School/Club Team = unlv |
Translate the following into a SQL query | What nationality is the forward/center position? | SELECT Nationality FROM table WHERE Position = forward/center |
Translate the following into a SQL query | What team is from the United States and plays a guard position for the Grizzlies in 2012? | SELECT School/Club Team FROM table WHERE Nationality = united states AND Position = guard AND Years for Grizzlies = 2012 |
Translate the following into a SQL query | What position is the player from the United States play for the Grizzlies from 2000-2001? | SELECT Position FROM table WHERE Nationality = united states AND Years for Grizzlies = 2000-2001 |
Translate the following into a SQL query | What is the total number of Bronze, when Gold is greater than 0, when Rank is 4, and when Total is greater than 4? | SELECT COUNT Bronze FROM table WHERE Gold > 0 AND Rank = 4 AND Total > 4 |
Translate the following into a SQL query | What is the total number of Total, when Gold is less than 1, when Silver is greater than 0, when Rank is 14, and when Nation is Afghanistan? | SELECT COUNT Total FROM table WHERE Gold < 1 AND Silver > 0 AND Rank = 14 AND Nation = afghanistan |
Translate the following into a SQL query | What is the lowest Gold, when Silver is 0, and when Bronze is 2? | SELECT MIN Gold FROM table WHERE Silver = 0 AND Bronze = 2 |
Translate the following into a SQL query | What is the average Bronze, when Silver is 0, when Rank is 19, and when Total is greater than 2? | SELECT AVG Bronze FROM table WHERE Silver = 0 AND Rank = 19 AND Total > 2 |
Translate the following into a SQL query | What was the lowest number of pieces for a board released in 1984? | SELECT MIN Pieces FROM table WHERE Release = 1984 |
Translate the following into a SQL query | What is the dimensions in centimeters of a theater board who started in 1940, who was released after 2010? | SELECT Board (cm) FROM table WHERE Start = 1940 AND Type = theater AND Release > 2010 |
Translate the following into a SQL query | What is the average number of pieces for boards that started in 1941 and were released after 2001? | SELECT AVG Pieces FROM table WHERE Start = 1941 AND Release > 2001 |
Translate the following into a SQL query | What are the dimensions in inches of the board released before 2004, that started in 1941? | SELECT Board (inches) FROM table WHERE Release < 2004 AND Start = 1941 |
Translate the following into a SQL query | What is Venue, when Against is less than 30, and when Opposing Team is New South Wales? | SELECT Venue FROM table WHERE Against < 30 AND Opposing Team = new south wales |
Translate the following into a SQL query | What is Status, when Date is 10/05/1975? | SELECT Status FROM table WHERE Date = 10/05/1975 |
Translate the following into a SQL query | What is the lowest Against, when Opposing Team is Queensland? | SELECT MIN Against FROM table WHERE Opposing Team = queensland |
Translate the following into a SQL query | What is Date, when Status is Second Test? | SELECT Date FROM table WHERE Status = second test |
Translate the following into a SQL query | Who was born in Porsgrunn? | SELECT Name FROM table WHERE Place of Birth = porsgrunn |
Translate the following into a SQL query | Which Studio has a Rank smaller than 3, and a Director of adrian lyne? | SELECT Studio FROM table WHERE Rank < 3 AND Director = adrian lyne |
Translate the following into a SQL query | Which Rank is the lowest one that has a Gross of $54,215,416? | SELECT MIN Rank FROM table WHERE Gross = $54,215,416 |
Translate the following into a SQL query | What is the date of the match against John McEnroe with a Score of 3–6, 6–3, 2–6? | SELECT Date FROM table WHERE Opponent = john mcenroe AND Score = 3–6, 6–3, 2–6 |
Translate the following into a SQL query | What is the Opponent of the game in 1989? | SELECT Opponent FROM table WHERE Date = 1989 |
Translate the following into a SQL query | What is the highest pick of ron whaley? | SELECT MAX Pick FROM table WHERE Name = ron whaley |
Translate the following into a SQL query | What is the overall sum of the game with a pick less than 8 from the college of western michigan? | SELECT SUM Overall FROM table WHERE Pick < 8 AND College = western michigan |
Translate the following into a SQL query | What is the position of the player from the college of western michigan? | SELECT Position FROM table WHERE College = western michigan |
Translate the following into a SQL query | What is the lowest round of bob caldwell, who has a pick greater than 7 and an overall larger than 162? | SELECT MIN Round FROM table WHERE Pick > 7 AND Name = bob caldwell AND Overall > 162 |
Translate the following into a SQL query | What is the college of dave adams, who has a pick greater than 7? | SELECT College FROM table WHERE Pick > 7 AND Name = dave adams |
Translate the following into a SQL query | What game took place on April 28? | SELECT Game FROM table WHERE Date = april 28 |
Translate the following into a SQL query | What is the east with ev landsberg as the west? | SELECT East FROM table WHERE West = ev landsberg |
Translate the following into a SQL query | What is the north with sb rosenheim as the south? | SELECT North FROM table WHERE South = sb rosenheim |
Translate the following into a SQL query | What is the south with ev lindau as the west and svg burgkirchen as the east? | SELECT South FROM table WHERE West = ev lindau AND East = svg burgkirchen |
Translate the following into a SQL query | What season has esc holzkirchen south, esv buchloe west, and ehc bayreuth north? | SELECT Season FROM table WHERE South = esc holzkirchen AND West = esv buchloe AND North = ehc bayreuth |
Translate the following into a SQL query | What is south in the 2001-02 season, which had germering wanderers east? | SELECT South FROM table WHERE East = germering wanderers AND Season = 2001-02 |
Translate the following into a SQL query | What was west when ev fürstenfeldbruck was south? | SELECT West FROM table WHERE South = ev fürstenfeldbruck |
Translate the following into a SQL query | When revenue is smaller than 4,177 million in year 2008, what is the sum of earnings per share? | SELECT SUM Earnings per share (p) FROM table WHERE Year ended = 2008 AND Revenue (£million) < 4,177 |
Translate the following into a SQL query | What is the year 2007 earnings per share? | SELECT Earnings per share (p) FROM table WHERE Year ended = 2007 |
Translate the following into a SQL query | What is the total net profit when earnings per share is 27.4, and profit/loss befor tax was smaller than 194.6 million? | SELECT SUM Net profit (£m) FROM table WHERE Earnings per share (p) = 27.4 AND Profit/(loss) before tax (£m) < 194.6 |
Translate the following into a SQL query | In year 2011 what is sum of profit/loss before tax and net profit larger than 123.8 million? | SELECT COUNT Profit/(loss) before tax (£m) FROM table WHERE Year ended = 2011 AND Net profit (£m) > 123.8 |
Translate the following into a SQL query | What is the highest goals for less than 63 goals against, more than 65 points 1, and more than 10 losses? | SELECT MAX Goals For FROM table WHERE Goals Against < 63 AND Points 1 > 65 AND Lost > 10 |
Translate the following into a SQL query | What is the highest position for less than 42 played? | SELECT MAX Position FROM table WHERE Played < 42 |
Translate the following into a SQL query | What is the average day in December with a Record of 16-3-4 and a Game smaller than 23? | SELECT AVG December FROM table WHERE Record = 16-3-4 AND Game < 23 |
Translate the following into a SQL query | When the Runners-Up is larger than 0, what's the sum of winners? | SELECT SUM Winners FROM table WHERE Runners-Up > 0 |
Translate the following into a SQL query | When there are more than 1 winners and the team playing is pachuca, what's the lowest runners-up found? | SELECT MIN Runners-Up FROM table WHERE Team = pachuca AND Winners > 1 |
Translate the following into a SQL query | Can you tell me the Name that has the Assists of lake (154) lake (5.1 apg)? | SELECT Name FROM table WHERE Assists = lake (154) lake (5.1 apg) |
Translate the following into a SQL query | Can you tell me the Name that has the Place of 1? | SELECT Name FROM table WHERE Place = 1 |
Translate the following into a SQL query | Can you tell me the Rebounds that has the Name of pom baskets jena? | SELECT Rebounds FROM table WHERE Name = pom baskets jena |
Translate the following into a SQL query | Can you tell me the Steals that has the Place of 6? | SELECT Steals FROM table WHERE Place = 6 |
Translate the following into a SQL query | What is the Callsign in Brisbane with a Freq currently of 4rph? | SELECT Callsign FROM table WHERE Area served = brisbane AND Freq currently = 4rph |
Translate the following into a SQL query | What is the Freq currently of the 4GG Callsign? | SELECT Freq currently FROM table WHERE Callsign = 4gg |
Translate the following into a SQL query | What is the Community Band with a 4BCB Callsign? | SELECT Band FROM table WHERE Purpose = community AND Callsign = 4bcb |
Translate the following into a SQL query | What is the Purpose of the Callsign with a Freq currently of 4gld? | SELECT Purpose FROM table WHERE Freq currently = 4gld |
Translate the following into a SQL query | What is the Purpose of the Callsign with a Freq currently of 4rph? | SELECT Purpose FROM table WHERE Freq currently = 4rph |
Translate the following into a SQL query | What was the press like for the world olympic record holder Roger Francois and Jaan Kikkas? | SELECT Press FROM table WHERE World Record = olympic record AND Roger François = jaan kikkas |
Translate the following into a SQL query | What was the press like in Paris for Roger Francois, and Carlo Galimberti? | SELECT Paris ( FRA ) FROM table WHERE Press = press AND Roger François = carlo galimberti |
Translate the following into a SQL query | What is the total amount of world records for Roger Francois? | SELECT Roger François FROM table WHERE World Record = total |
Translate the following into a SQL query | What place had a score of 71-70-73-71=285? | SELECT Place FROM table WHERE Score = 71-70-73-71=285 |
Translate the following into a SQL query | How much money for 1st place with a to par less than 1? | SELECT COUNT Money ( $ ) FROM table WHERE Place = 1 AND To par < 1 |
Translate the following into a SQL query | What Player had a To par of +1? | SELECT Player FROM table WHERE To par = +1 |
Translate the following into a SQL query | What is the Country of the Player with a To par of +4 and Score of 73-71-73=217? | SELECT Country FROM table WHERE To par = +4 AND Score = 73-71-73=217 |
Translate the following into a SQL query | What is the Place of the Player with a To par of +3 and Score of 73-70-73=216? | SELECT Place FROM table WHERE To par = +3 AND Score = 73-70-73=216 |
Translate the following into a SQL query | What is the Place of the Player with a Score of 72-70-72=214? | SELECT Place FROM table WHERE Score = 72-70-72=214 |
Translate the following into a SQL query | Who is the kitmaker for the team whose team captain is Robert Enke? | SELECT Kitmaker FROM table WHERE Team Captain = robert enke |
Translate the following into a SQL query | Which team uses the kitmaker Saller and has Krombacher as their shirt sponsor? | SELECT Team FROM table WHERE Kitmaker = saller AND Shirt sponsor = krombacher |
Translate the following into a SQL query | For the team led by head coach Felix Magath, who is the team captain? | SELECT Team Captain FROM table WHERE Head Coach = felix magath |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.