instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | what is the date of vacancy when the team is firpo and replaced by is oscar benitez? | SELECT Date of vacancy FROM table WHERE Team = firpo AND Replaced by = oscar benitez |
Translate the following into a SQL query | Which country was ranked 8 and noted as qs? | SELECT Country FROM table WHERE Notes = qs AND Rank = 8 |
Translate the following into a SQL query | What are the notes for the contestants that were ranked #1? | SELECT Notes FROM table WHERE Rank = 1 |
Translate the following into a SQL query | Who did the Hawks play on 12/21/1973? | SELECT Opponent FROM table WHERE Date = 12/21/1973 |
Translate the following into a SQL query | What rank does Tricia Flores have? | SELECT Rank FROM table WHERE Name = tricia flores |
Translate the following into a SQL query | Who is in group B and has a mark of 6.33? | SELECT Name FROM table WHERE Group = b AND Mark = 6.33 |
Translate the following into a SQL query | What is the mark for Grenada in group A? | SELECT Mark FROM table WHERE Group = a AND Nationality = grenada |
Translate the following into a SQL query | Who has a mark of 6.17 in group B? | SELECT Name FROM table WHERE Group = b AND Mark = 6.17 |
Translate the following into a SQL query | What rank does Tatyana Lebedeva have? | SELECT Rank FROM table WHERE Name = tatyana lebedeva |
Translate the following into a SQL query | What rank has a mark of NM and is from India? | SELECT Rank FROM table WHERE Mark = nm AND Nationality = india |
Translate the following into a SQL query | What is the sum of totals for ranks under 3 with tallies of 2-5? | SELECT SUM Total FROM table WHERE Rank < 3 AND Tally = 2-5 |
Translate the following into a SQL query | Which player had a rank of 8 and tally of 1-5? | SELECT Player FROM table WHERE Rank = 8 AND Tally = 1-5 |
Translate the following into a SQL query | What is the sum of the numbers in series written by sam meikle, which have 21 numbers in the season? | SELECT SUM No. in series FROM table WHERE Written by = sam meikle AND No. in season = 21 |
Translate the following into a SQL query | What was the score for the game played in Alexander Memorial Coliseum when the record was 0-1? | SELECT Score FROM table WHERE Location/Attendance = alexander memorial coliseum AND Record = 0-1 |
Translate the following into a SQL query | When was the game played that was at the Seattle Center Coliseum? | SELECT Date FROM table WHERE Location/Attendance = seattle center coliseum |
Translate the following into a SQL query | What is the least game that was played in Alexander Memorial Coliseum on October 16? | SELECT MIN Game FROM table WHERE Location/Attendance = alexander memorial coliseum AND Date = october 16 |
Translate the following into a SQL query | What average game was played on October 16? | SELECT AVG Game FROM table WHERE Date = october 16 |
Translate the following into a SQL query | On what day was game 2 played? | SELECT Date FROM table WHERE Game = 2 |
Translate the following into a SQL query | What is the average tourism receipts in millions of US dollars in 2011 with less than 1.141 million of 2011 tourist arrivals and more than 1,449 tourism receipts in 2011 US dollars per arrival? | SELECT AVG Tourism receipts (2011) (Millions of US$) FROM table WHERE Tourist arrivals (2011) (Millions) < 1.141 AND Tourism receipts (2011) (US$ per arrival) > 1,449 |
Translate the following into a SQL query | What is the tourism competitiveness in 2011 of venezuela? | SELECT Tourism competitiveness (2011) (TTCI) FROM table WHERE Country = venezuela |
Translate the following into a SQL query | What is the highest number of tourism receipts in 2011 US $ per capita with 19.4 % of GDP in 2003 tourism receipts and less than 655 US $ per arrival in 2011 tourism receipts? | SELECT MAX Tourism receipts (2011) (US$ per capita) FROM table WHERE Tourism receipts (2003) (as % of GDP) = 19.4 AND Tourism receipts (2011) (US$ per arrival) < 655 |
Translate the following into a SQL query | What is the lowest tourism arrivals in 2011 in millions with 507 US $ per arrival in 2011 tourism receipts and less than 11,869 million of US $ in 2011 tourism receipts? | SELECT MIN Tourist arrivals (2011) (Millions) FROM table WHERE Tourism receipts (2011) (US$ per arrival) = 507 AND Tourism receipts (2011) (Millions of US$) < 11,869 |
Translate the following into a SQL query | What is the highest tourism arrivals in 2011 in millions with a 3.82 tourism competitiveness in 2011 and more than 1,102 US$ per arrival in 2011 tourism receipts? | SELECT MAX Tourist arrivals (2011) (Millions) FROM table WHERE Tourism competitiveness (2011) (TTCI) = 3.82 AND Tourism receipts (2011) (US$ per arrival) > 1,102 |
Translate the following into a SQL query | In what year was Wisconsin the runner-up? | SELECT Year FROM table WHERE Runner-up = wisconsin |
Translate the following into a SQL query | In what arena was the North Dakota the runner-up? | SELECT Arena FROM table WHERE Runner-up = north dakota |
Translate the following into a SQL query | What was the score of the game at the Broadmoor Arena? | SELECT Score FROM table WHERE Arena = broadmoor arena |
Translate the following into a SQL query | Who was the runner-up at the Broadmoor Arena before 2008? | SELECT Runner-up FROM table WHERE Year < 2008 AND Arena = broadmoor arena |
Translate the following into a SQL query | In what year was the competition at the Pepsi Arena? | SELECT Year FROM table WHERE Arena = pepsi arena |
Translate the following into a SQL query | Which opponent has a 53-24 record? | SELECT Opponent FROM table WHERE Record = 53-24 |
Translate the following into a SQL query | Who was the opponent for game 73? | SELECT Opponent FROM table WHERE Game = 73 |
Translate the following into a SQL query | who is the replacement when the team is milton keynes dons? | SELECT Replaced by FROM table WHERE Team = milton keynes dons |
Translate the following into a SQL query | what is the team with the position in table of 24th and the date of appointment 15 september 2008? | SELECT Team FROM table WHERE Position in table = 24th AND Date of appointment = 15 september 2008 |
Translate the following into a SQL query | what is the position in table when the team is hartlepool united? | SELECT Position in table FROM table WHERE Team = hartlepool united |
Translate the following into a SQL query | what is the team geraint williams is the replacement? | SELECT Team FROM table WHERE Replaced by = geraint williams |
Translate the following into a SQL query | what is the date of vacancy when the position in table is 16th and the outgoing manager is russell slade? | SELECT Date of vacancy FROM table WHERE Position in table = 16th AND Outgoing manager = russell slade |
Translate the following into a SQL query | What years have 10 (0) in the finals? | SELECT Years FROM table WHERE Finals = 10 (0) |
Translate the following into a SQL query | What A-League has 6 (1) for the finals, and leigh broxham as the name? | SELECT A-League FROM table WHERE Finals = 6 (1) AND Name = leigh broxham |
Translate the following into a SQL query | What finals have grant brebner as the name? | SELECT Finals FROM table WHERE Name = grant brebner |
Translate the following into a SQL query | What years have 9 (0) as the finals and 133 (1) as the A-League? | SELECT Years FROM table WHERE Finals = 9 (0) AND A-League = 133 (1) |
Translate the following into a SQL query | What years have 9 (3) as the finals? | SELECT Years FROM table WHERE Finals = 9 (3) |
Translate the following into a SQL query | What years have 101 (16) as the total? | SELECT Years FROM table WHERE Total = 101 (16) |
Translate the following into a SQL query | Who has a time of 7:26.85 and notes of sc/d? | SELECT Athlete FROM table WHERE Notes = sc/d AND Time = 7:26.85 |
Translate the following into a SQL query | Ioannis Christou with a rank smaller than 6 has what notes? | SELECT Notes FROM table WHERE Rank < 6 AND Athlete = ioannis christou |
Translate the following into a SQL query | Which Notes have a Distance larger than 7, and a Location of aplin? | SELECT Notes FROM table WHERE Distance > 7 AND Location = aplin |
Translate the following into a SQL query | How much Distance has a County of faulkner, and a Total smaller than 1.5? | SELECT SUM Distance FROM table WHERE County = faulkner AND Total < 1.5 |
Translate the following into a SQL query | How much Distance has Notes of north end terminus of ar 155? | SELECT SUM Distance FROM table WHERE Notes = north end terminus of ar 155 |
Translate the following into a SQL query | How much Latitude has a Water (sqmi) smaller than 0? | SELECT COUNT Latitude FROM table WHERE Water (sqmi) < 0 |
Translate the following into a SQL query | Which Land (sqmi) has a GEO ID smaller than 3800587900? | SELECT MIN Land ( sqmi ) FROM table WHERE GEO ID < 3800587900 |
Translate the following into a SQL query | Which Water (sqmi) has a Township of yorktown, and a GEO ID smaller than 3802187940? | SELECT MIN Water (sqmi) FROM table WHERE Township = yorktown AND GEO ID < 3802187940 |
Translate the following into a SQL query | What school had Jeff Urban playing at the p position? | SELECT School FROM table WHERE Position = p AND Player = jeff urban |
Translate the following into a SQL query | What school has the Kansas City Royals for a team? | SELECT School FROM table WHERE Team = kansas city royals |
Translate the following into a SQL query | What is the date of the match where vampiro was the winner in Mexico City? | SELECT Date FROM table WHERE Location = mexico city AND Winner = vampiro |
Translate the following into a SQL query | What is the wager on August 23, 1992 where vampiro was the winner? | SELECT Wager FROM table WHERE Winner = vampiro AND Date = august 23, 1992 |
Translate the following into a SQL query | What is the location where shocker was the winner? | SELECT Location FROM table WHERE Winner = shocker |
Translate the following into a SQL query | What is the location where aaron grundy was the loser? | SELECT Location FROM table WHERE Loser = aaron grundy |
Translate the following into a SQL query | What is the 1994 when QF is 1999? | SELECT 1994 FROM table WHERE 1999 = qf |
Translate the following into a SQL query | What is the 1991 when 1997 is 18? | SELECT 1991 FROM table WHERE 1997 = 18 |
Translate the following into a SQL query | What's the 1991 when 1999 is 14? | SELECT 1991 FROM table WHERE 1999 = 14 |
Translate the following into a SQL query | What's the 1996 when 1997 is 3R? | SELECT 1996 FROM table WHERE 1997 = 3r |
Translate the following into a SQL query | What is 1994 when 1996 is 3R? | SELECT 1994 FROM table WHERE 1996 = 3r |
Translate the following into a SQL query | What is 1996 during the US Open? | SELECT 1996 FROM table WHERE Tournament = us open |
Translate the following into a SQL query | What's the standard name with an ADSL2 version and a 01.5 1.5 mbit/s downstream rate? | SELECT Standard name FROM table WHERE Version = adsl2 AND Downstream rate = 01.5 1.5 mbit/s |
Translate the following into a SQL query | What's the downstream rate for the Itu g.992.2 having a version of ADSL? | SELECT Downstream rate FROM table WHERE Version = adsl AND Standard name = itu g.992.2 |
Translate the following into a SQL query | What's the version of Itu g.992.3 Annex J? | SELECT Version FROM table WHERE Standard name = itu g.992.3 annex j |
Translate the following into a SQL query | What's the version that has a 20.0 mbit/s downstream rate? | SELECT Version FROM table WHERE Downstream rate = 20.0 mbit/s |
Translate the following into a SQL query | What's the standard name that has a common name of ADSL Over Pots and ADSL version? | SELECT Standard name FROM table WHERE Version = adsl AND Common name = adsl over pots |
Translate the following into a SQL query | What's the upstream rate for Itu g.992.2 with a version of ADSL? | SELECT Upstream rate FROM table WHERE Version = adsl AND Standard name = itu g.992.2 |
Translate the following into a SQL query | How many games does the player with 1 (0) finals and a w-league of 28 (1) have? | SELECT Games FROM table WHERE Finals = 1 (0) AND W-League = 28 (1) |
Translate the following into a SQL query | What year had more than 2 goals and 11 (2) games? | SELECT Years FROM table WHERE Goals > 2 AND Games = 11 (2) |
Translate the following into a SQL query | What is the lowest number of goals with 8 (2) w-leagues? | SELECT MIN Goals FROM table WHERE W-League = 8 (2) |
Translate the following into a SQL query | Which UEFA Champions League has a La Liga of 17, and a Copa del Rey larger than 0? | SELECT MIN UEFA Champions League FROM table WHERE La Liga = 17 AND Copa del Rey > 0 |
Translate the following into a SQL query | Which Copa del Rey has a Name of guti, and a FIFA Club World Championship smaller than 0? | SELECT SUM Copa del Rey FROM table WHERE Name = guti AND FIFA Club World Championship < 0 |
Translate the following into a SQL query | Which Copa del Rey has a La Liga smaller than 0? | SELECT SUM Copa del Rey FROM table WHERE La Liga < 0 |
Translate the following into a SQL query | Which FIFA Club World Championship has a UEFA Champions League of 0, and a Total smaller than 3, and a Name of geremi? | SELECT MIN FIFA Club World Championship FROM table WHERE UEFA Champions League = 0 AND Total < 3 AND Name = geremi |
Translate the following into a SQL query | What is the average rank for Hungary? | SELECT AVG Rank FROM table WHERE Country = hungary |
Translate the following into a SQL query | What country has a time of 3:19.167? | SELECT Country FROM table WHERE Time = 3:19.167 |
Translate the following into a SQL query | What are the notes for the time at 3:19.167? | SELECT Notes FROM table WHERE Time = 3:19.167 |
Translate the following into a SQL query | What was the album Closer: The Best of Sarah Mclachlan certified as? | SELECT Certification FROM table WHERE Album = closer: the best of sarah mclachlan |
Translate the following into a SQL query | What is the average Laps that have gregorio lavilla as the rider, with a grid greater than 13? | SELECT AVG Laps FROM table WHERE Rider = gregorio lavilla AND Grid > 13 |
Translate the following into a SQL query | What bike has 26 as the grid? | SELECT Bike FROM table WHERE Grid = 26 |
Translate the following into a SQL query | What is the highest grid that has +44.866 as the time, with laps greater than 25? | SELECT MAX Grid FROM table WHERE Time = +44.866 AND Laps > 25 |
Translate the following into a SQL query | who has the high points on june 16? | SELECT High points FROM table WHERE Date = june 16 |
Translate the following into a SQL query | What was the attendance on november 2, 2003? | SELECT Attendance FROM table WHERE Date = november 2, 2003 |
Translate the following into a SQL query | What is the 1.93 that is 2.05 in height? | SELECT 1.93 FROM table WHERE Height = 2.05 |
Translate the following into a SQL query | What is the 1.93 for Svetlana Shkolina? | SELECT 1.93 FROM table WHERE Name = svetlana shkolina |
Translate the following into a SQL query | What is the name for the play from the Ukraine, and a 1.93 xxo? | SELECT Name FROM table WHERE Nationality = ukraine AND 1.93 = xxo |
Translate the following into a SQL query | What country in Europe is ranked 4, with top goal scorer Karl-Heinz Rummenigge with 14 goals? | SELECT Europe FROM table WHERE Rank = 4 AND Top Goalscorer = karl-heinz rummenigge AND Goals = 14 |
Translate the following into a SQL query | Wha is the rank for 52 574 avg. att? | SELECT Rank FROM table WHERE Avg.Att. = 52 574 |
Translate the following into a SQL query | What european country had more than 14 goals, and 52 538 avg att? | SELECT Europe FROM table WHERE Goals > 14 AND Avg.Att. = 52 538 |
Translate the following into a SQL query | What's the least amount of wins for Germany in the 1999 season having 0 points? | SELECT MIN Wins FROM table WHERE Points = 0 AND Country = germany AND Seasons = 1999 |
Translate the following into a SQL query | How many wins when the points are 0 and podiums are less than 0? | SELECT SUM Wins FROM table WHERE Points = 0 AND Podiums < 0 |
Translate the following into a SQL query | What's the fastest laps during the 1995 season having poles & podiums at 0? | SELECT SUM Fastest Laps FROM table WHERE Poles = 0 AND Podiums = 0 AND Seasons = 1995 |
Translate the following into a SQL query | How many years have an Award of venice film festival, and a Title of lust, caution? | SELECT COUNT Year FROM table WHERE Award = venice film festival AND Title = lust, caution |
Translate the following into a SQL query | Which Category has a Year larger than 1996, and a Result of won, and a Title of brokeback mountain, and an Award of golden globe award? | SELECT Category FROM table WHERE Year > 1996 AND Result = won AND Title = brokeback mountain AND Award = golden globe award |
Translate the following into a SQL query | Which Title has a Year smaller than 2001, and an Award of independent spirit awards? | SELECT Title FROM table WHERE Year < 2001 AND Award = independent spirit awards |
Translate the following into a SQL query | Which chassis has 17 points? | SELECT Chassis FROM table WHERE Points = 17 |
Translate the following into a SQL query | What is the average draw for 186 games? | SELECT AVG Draw FROM table WHERE total games = 186 |
Translate the following into a SQL query | What is the number of games for less than 2 seasons and more than 7 draws? | SELECT SUM total games FROM table WHERE number of seasons < 2 AND Draw > 7 |
Translate the following into a SQL query | What is the total number of losses for less than 48 games, and less than 7 draws? | SELECT COUNT Loss FROM table WHERE total games < 48 AND Draw < 7 |
Translate the following into a SQL query | What is the total number of games with more than 18 loses, a Total League, and more than 317 draws? | SELECT COUNT total games FROM table WHERE Loss > 18 AND League = total AND Draw > 317 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.