instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the score for the away team Chelsea? | SELECT Score FROM table WHERE Away team = chelsea |
Translate the following into a SQL query | What is the away team for the tie no. 29? | SELECT Away team FROM table WHERE Tie no = 29 |
Translate the following into a SQL query | What is the coronie with a 0.7% nickerie? | SELECT Coronie FROM table WHERE Nickerie = 0.7% |
Translate the following into a SQL query | What is the marowijne with an 18.8% saramacca? | SELECT Marowijne FROM table WHERE Saramacca = 18.8% |
Translate the following into a SQL query | What is the para with a 0.1% sipaliwini? | SELECT Para FROM table WHERE Sipaliwini = 0.1% |
Translate the following into a SQL query | What religion has a para of 56.5%? | SELECT Religion FROM table WHERE Para = 56.5% |
Translate the following into a SQL query | What is the suriname with a 16.8% brokopondo? | SELECT Suriname FROM table WHERE Brokopondo = 16.8% |
Translate the following into a SQL query | What's the rank average when the gold medals are less than 0? | SELECT AVG Rank FROM table WHERE Gold < 0 |
Translate the following into a SQL query | What is the total rank of Hungary (HUN) when the bronze medals were less than 0? | SELECT SUM Rank FROM table WHERE Nation = hungary (hun) AND Bronze < 0 |
Translate the following into a SQL query | What is the sum of the total number of medals when silver is less than 0? | SELECT COUNT Total FROM table WHERE Silver < 0 |
Translate the following into a SQL query | What is Born-Died, when Term Start is 4 December 1941? | SELECT Born-Died FROM table WHERE Term start = 4 december 1941 |
Translate the following into a SQL query | What is Term Start, when Name is Prime Ministers 1939 - 1943? | SELECT Term start FROM table WHERE Name = prime ministers 1939 - 1943 |
Translate the following into a SQL query | What is Born-Died, when Name is Maliq Bushati? | SELECT Born-Died FROM table WHERE Name = maliq bushati |
Translate the following into a SQL query | What is Term End, when Political Party is Albanian Fascist Party, and when Term Start is 12 April 1939? | SELECT Term end FROM table WHERE Political Party = albanian fascist party AND Term start = 12 april 1939 |
Translate the following into a SQL query | What is Term Start, when Born-Died is Prime Ministers 1939 - 1943? | SELECT Term start FROM table WHERE Born-Died = prime ministers 1939 - 1943 |
Translate the following into a SQL query | What is Born-Died, when Term End is 19 January 1943? | SELECT Born-Died FROM table WHERE Term end = 19 january 1943 |
Translate the following into a SQL query | What is the Score of the game with a Record of 5–4–3? | SELECT Score FROM table WHERE Record = 5–4–3 |
Translate the following into a SQL query | What is the Score on January 23? | SELECT Score FROM table WHERE Date = january 23 |
Translate the following into a SQL query | What is the Visitor of the Montreal Canadiens Home game with a Record of 6–4–4? | SELECT Visitor FROM table WHERE Home = montreal canadiens AND Record = 6–4–4 |
Translate the following into a SQL query | What is the Date of the game with a Record of 12–7–6? | SELECT Date FROM table WHERE Record = 12–7–6 |
Translate the following into a SQL query | What is the Record of the Montreal Canadiens Home game on March 23? | SELECT Record FROM table WHERE Home = montreal canadiens AND Date = march 23 |
Translate the following into a SQL query | What tournament location has 1 stroke as the margin of victory, with 1,200,000 as the purse ($)? | SELECT Tournament location FROM table WHERE Margin of victory = 1 stroke AND Purse ( $ ) = 1,200,000 |
Translate the following into a SQL query | What tournament location has south korea as the country? | SELECT Tournament location FROM table WHERE Country = south korea |
Translate the following into a SQL query | What is the total population of American Samoa (US) that has less than 16,280 km² arable land, less than 240 km² land area, and has a population density of more than 291? | SELECT COUNT Population (July 2005 est.) FROM table WHERE Arable Land (km²) < 16,280 AND Land Area (km²) < 240 AND Country = american samoa (us) AND Population Density (pop per km²) > 291 |
Translate the following into a SQL query | What's the arable land for the population of 20,090,437? | SELECT MAX Arable Land (km²) FROM table WHERE Population (July 2005 est.) = 20,090,437 |
Translate the following into a SQL query | What is the land area of Switzerland with a population density fewer than 188 km²? | SELECT AVG Land Area (km²) FROM table WHERE Country = switzerland AND Population Density (pop per km²) < 188 |
Translate the following into a SQL query | What's the population density of the Democratic Republic of the Congo when the population is greater than 37,762,842, and the arable land is more than 200 km²? | SELECT Population Density (pop per km²) FROM table WHERE Population (July 2005 est.) > 37,762,842 AND Arable Land (km²) > 200 AND Country = democratic republic of the congo |
Translate the following into a SQL query | What lost has 86 points? | SELECT Lost FROM table WHERE Points = 86 |
Translate the following into a SQL query | With 37 tries against, what is the try bonus? | SELECT Try bonus FROM table WHERE Tries against = 37 |
Translate the following into a SQL query | How many points against when 41 is the tries for? | SELECT Points against FROM table WHERE Tries for = 41 |
Translate the following into a SQL query | With a lost of lost what was the losing bonus? | SELECT Losing bonus FROM table WHERE Lost = lost |
Translate the following into a SQL query | What points has points for as points for? | SELECT Points FROM table WHERE Points for = points for |
Translate the following into a SQL query | What is the points when the club is Barry RFC with a 5 as the try bonus? | SELECT Points FROM table WHERE Try bonus = 5 AND Club = barry rfc |
Translate the following into a SQL query | What is the sum of Gold, when Silver is greater than 6, when Rank is 1, and when Bronze is less than 61? | SELECT SUM Gold FROM table WHERE Silver > 6 AND Rank = 1 AND Bronze < 61 |
Translate the following into a SQL query | What is the lowest Silver, when Bronze is 1, and when Total is less than 3? | SELECT MIN Silver FROM table WHERE Bronze = 1 AND Total < 3 |
Translate the following into a SQL query | What is the average Gold, when Silver is less than 107, when Bronze is greater than 42, and when Rank is 3? | SELECT AVG Gold FROM table WHERE Silver < 107 AND Bronze > 42 AND Rank = 3 |
Translate the following into a SQL query | Which manufacturer has more than 28 laps and less than 9 grids with jeremy mcwilliams? | SELECT Manufacturer FROM table WHERE Laps < 28 AND Grid < 9 AND Rider = jeremy mcwilliams |
Translate the following into a SQL query | What is the grid average with a +1 lap time and more than 27 laps? | SELECT AVG Grid FROM table WHERE Time/Retired = +1 lap AND Laps > 27 |
Translate the following into a SQL query | Which lap has more than 17 grids with tetsuya harada? | SELECT Laps FROM table WHERE Grid > 17 AND Rider = tetsuya harada |
Translate the following into a SQL query | Prior to 1978, what is the Danish of the Film directed by Bent Christensen? | SELECT Danish title FROM table WHERE Year < 1978 AND Director = bent christensen |
Translate the following into a SQL query | Who is the Director of the Olsen Gang Sees Red? | SELECT Director FROM table WHERE English title = the olsen gang sees red |
Translate the following into a SQL query | What is the submission Year of the Film The Dark Side of the Moon directed by Erik Clausen? | SELECT SUM Year FROM table WHERE Director = erik clausen AND English title = the dark side of the moon |
Translate the following into a SQL query | What is the Year of submission of the Film The Art of Crying? | SELECT MIN Year FROM table WHERE English title = the art of crying |
Translate the following into a SQL query | Which Home Town had the weight of 201? | SELECT Home Town FROM table WHERE Weight = 201 |
Translate the following into a SQL query | What Position did the sophomore Darnell Jackson play? | SELECT Position FROM table WHERE Year = sophomore AND Name = darnell jackson |
Translate the following into a SQL query | what kind of 2007 has a 1999 of —, and a Model of seat mii? | SELECT 2007 FROM table WHERE 1999 = — AND Model = seat mii |
Translate the following into a SQL query | Which 2005 has a 2006 of 126,511? | SELECT 2005 FROM table WHERE 2006 = 126,511 |
Translate the following into a SQL query | Name the 2004 which has a 2003 of 36,026? | SELECT 2004 FROM table WHERE 2003 = 36,026 |
Translate the following into a SQL query | Name the 2007 which has a 2011 of 191,183? Question 4 | SELECT 2007 FROM table WHERE 2011 = 191,183 |
Translate the following into a SQL query | Name the 2011 which has a 2002 of —, and a Model of seat marbella? | SELECT 2011 FROM table WHERE 2002 = — AND Model = seat marbella |
Translate the following into a SQL query | Name the 2003 which has a 2000 of —, and a 2007 of —, and a 2010 of —? | SELECT 2003 FROM table WHERE 2000 = — AND 2007 = — AND 2010 = — |
Translate the following into a SQL query | Who is affiliated with the Dukes? | SELECT Affiliation FROM table WHERE Nickname = dukes |
Translate the following into a SQL query | What school is in Radford, Va? | SELECT School FROM table WHERE Location = radford, va |
Translate the following into a SQL query | What school has a public nickname, founded after 1838 in Harrisonburg, Va? | SELECT Nickname FROM table WHERE Affiliation = public AND Founded > 1838 AND Location = harrisonburg, va |
Translate the following into a SQL query | Lowest pick for mike flater? | SELECT MIN Pick FROM table WHERE Name = mike flater |
Translate the following into a SQL query | Who was the home team on January 2 with 23 points? | SELECT Home FROM table WHERE Points = 23 AND Date = january 2 |
Translate the following into a SQL query | What is the record when St. Louis is the visitor? | SELECT Record FROM table WHERE Visitor = st. louis |
Translate the following into a SQL query | What was the score for the game on November 1? | SELECT Score FROM table WHERE Date = november 1 |
Translate the following into a SQL query | What were the location and attendance for the game against New Jersey? | SELECT Location Attendance FROM table WHERE Team = new jersey |
Translate the following into a SQL query | Where were the 2009 and 2011 Grand Slam Tournaments? | SELECT 2011 FROM table WHERE 2009 = grand slam tournaments |
Translate the following into a SQL query | What is Second Vice President, when Third Vice President is "Gen. Juan Alonso", and when Inaugurated is "15 March 1940"? | SELECT Second Vice President FROM table WHERE Third Vice president = gen. juan alonso AND Inaugurated = 15 march 1940 |
Translate the following into a SQL query | What is Left Office, when Inaugurate is "15 March 1930"? | SELECT Left Office FROM table WHERE Inaugurated = 15 march 1930 |
Translate the following into a SQL query | What is Second Vice President, when Inaugurated is "26 March 1928"? | SELECT Second Vice President FROM table WHERE Inaugurated = 26 march 1928 |
Translate the following into a SQL query | What is Second Vice President, when Inaugurated is "15 March 1935"? | SELECT Second Vice President FROM table WHERE Inaugurated = 15 march 1935 |
Translate the following into a SQL query | What is Third Vice President, when Inaugurated is "15 March 1934"? | SELECT Third Vice president FROM table WHERE Inaugurated = 15 march 1934 |
Translate the following into a SQL query | What is Third Vice President, when Second Vice President is "Baudelio Palma"? | SELECT Third Vice president FROM table WHERE Second Vice President = baudelio palma |
Translate the following into a SQL query | What was the score of the game from July 18? | SELECT Score FROM table WHERE Date = july 18 |
Translate the following into a SQL query | What was the Attendance on Week 9? | SELECT MAX Attendance FROM table WHERE Week = 9 |
Translate the following into a SQL query | What is the Opponent of the game with a Result of w 13–0? | SELECT Opponent FROM table WHERE Result = w 13–0 |
Translate the following into a SQL query | What was the score in January that was less than 4? | SELECT Score FROM table WHERE January < 4 |
Translate the following into a SQL query | Which date was the event that Yani won in a playoff over Yueh-Chyn Huang? | SELECT Date FROM table WHERE Margin of victory = playoff AND Runner(s)-up = yueh-chyn huang |
Translate the following into a SQL query | What is the latitude of the point with a longitude of 147.1w? | SELECT Latitude FROM table WHERE Longitude = 147.1w |
Translate the following into a SQL query | What is ISBN UK, when Author is "Dave Martin", and when ISBN US is "N/A"? | SELECT ISBN UK FROM table WHERE Author = dave martin AND ISBN US = n/a |
Translate the following into a SQL query | What is ISBN US, when Title is "Crisis In Space"? | SELECT ISBN US FROM table WHERE Title = crisis in space |
Translate the following into a SQL query | What is Author, when TV Companions Featured is "Peri Brown", and when Title is "Race Against Time"? | SELECT Author FROM table WHERE TV companions featured = peri brown AND Title = race against time |
Translate the following into a SQL query | What is Title, when TV Companions Featured is "K-9"? | SELECT Title FROM table WHERE TV companions featured = k-9 |
Translate the following into a SQL query | What is ISBN US, when Title is "Mission To Venus"? | SELECT ISBN US FROM table WHERE Title = mission to venus |
Translate the following into a SQL query | What is TV Companions Featured, when Author is "William Emms"? | SELECT TV companions featured FROM table WHERE Author = william emms |
Translate the following into a SQL query | Which Date has a Result of 2–2, and a Venue of H? | SELECT Date FROM table WHERE Result = 2–2 AND Venue = h |
Translate the following into a SQL query | Which player had a to par score larger than 7 and a total score of 298? | SELECT Player FROM table WHERE To par > 7 AND Total = 298 |
Translate the following into a SQL query | In which location did he win the Superbrawl 16 event? | SELECT Location FROM table WHERE Res. = win AND Event = superbrawl 16 |
Translate the following into a SQL query | What was his record when the method was technical submission (forearm choke)? | SELECT Record FROM table WHERE Method = technical submission (forearm choke) |
Translate the following into a SQL query | Who was the opponent in round 2 of the UFC 49 event? | SELECT Opponent FROM table WHERE Round = 2 AND Event = ufc 49 |
Translate the following into a SQL query | What was the round when he fought Joe Stevenson? | SELECT Round FROM table WHERE Opponent = joe stevenson |
Translate the following into a SQL query | On which date was the score 94-74 w? | SELECT Date FROM table WHERE Score = 94-74 w |
Translate the following into a SQL query | When they played at Chicago Bulls, what was the Location/Attendance? | SELECT Location/Attendance FROM table WHERE Opponent = at chicago bulls |
Translate the following into a SQL query | Who was the opponent in Game 44? | SELECT Opponent FROM table WHERE Game = 44 |
Translate the following into a SQL query | Who was the opponent when they played at Delta Center with a record of 27-13? | SELECT Opponent FROM table WHERE Location/Attendance = delta center AND Record = 27-13 |
Translate the following into a SQL query | What was the date for Game 41? | SELECT Date FROM table WHERE Game = 41 |
Translate the following into a SQL query | Which Opposing Team has an Against of 3, and a Date of 11 february 1950? | SELECT Opposing Team FROM table WHERE Against = 3 AND Date = 11 february 1950 |
Translate the following into a SQL query | Which Venue has an Opposing Team of manchester united, and a Round of 5th round replay? | SELECT Venue FROM table WHERE Opposing Team = manchester united AND Round = 5th round replay |
Translate the following into a SQL query | Which Against has a Date of 28 january 1950? | SELECT AVG Against FROM table WHERE Date = 28 january 1950 |
Translate the following into a SQL query | What is the total number of years wehre anna thompson had a 3rd place result at edinburgh, scotland? | SELECT COUNT Year FROM table WHERE Result = 3rd AND Venue = edinburgh, scotland |
Translate the following into a SQL query | What year did anna thompson have a 7th place result? | SELECT Year FROM table WHERE Result = 7th |
Translate the following into a SQL query | What is the average year that anna thompson had an 8th place result in team competition at the world cross country championships in st etienne, france with | SELECT AVG Year FROM table WHERE Tournament = world cross country championships AND Venue = st etienne, france AND Extra = team competition AND Result = 8th |
Translate the following into a SQL query | What is the total matches in 2002 where points won is larger than 1.5 and the points % is smaller than 50? | SELECT MAX Total matches FROM table WHERE Points won > 1.5 AND Year = 2002 AND Points % < 50 |
Translate the following into a SQL query | WHAT IS THE LOSS WITH AN AVERAGE OF 89.9? | SELECT SUM Loss FROM table WHERE Avg/G = 89.9 |
Translate the following into a SQL query | WHAT IS THE NUMBER OF LOSSES WITH A LONG SMALLER THAN 24, AND GAIN BIGGER THAN 116? | SELECT COUNT Loss FROM table WHERE Long < 24 AND Gain > 116 |
Translate the following into a SQL query | How many rounds did Brett go against Kevin Asplund? | SELECT COUNT Round FROM table WHERE Opponent = kevin asplund |
Translate the following into a SQL query | How many rounds did Brett go for the Strikeforce: Shamrock vs. Diaz match? | SELECT Round FROM table WHERE Event = strikeforce: shamrock vs. diaz |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.