instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Which Operator has a Width of 2.65 m, and a Type designation of m5000? | SELECT Operator FROM table WHERE Width = 2.65 m AND Type designation = m5000 |
Translate the following into a SQL query | Which Width has a Number of vehicles larger than 15, and a Type designation of k5000? | SELECT Width FROM table WHERE Number of vehicles > 15 AND Type designation = k5000 |
Translate the following into a SQL query | Which Number of vehicles has a Type designation of u5-25 (bi-directional)? | SELECT Number of vehicles FROM table WHERE Type designation = u5-25 (bi-directional) |
Translate the following into a SQL query | Province of leinster, and a County of fingal has which irish name? | SELECT Irish name FROM table WHERE Province = leinster AND County = fingal |
Translate the following into a SQL query | Irish name of an dún (contae an dúin) has what county town? | SELECT County town FROM table WHERE Irish name = an dún (contae an dúin) |
Translate the following into a SQL query | Most populous city/town of clonmel, and a Irish name of tiobraid árann (contae thiobraid árann) is which region? | SELECT Region FROM table WHERE Most populous city/town = clonmel AND Irish name = tiobraid árann (contae thiobraid árann) |
Translate the following into a SQL query | County town of dún laoghaire has the most populous city/town? | SELECT Most populous city/town FROM table WHERE County town = dún laoghaire |
Translate the following into a SQL query | Irish name of dún na ngall (contae dhún na ngall) has the most populous city/town? | SELECT Most populous city/town FROM table WHERE Irish name = dún na ngall (contae dhún na ngall) |
Translate the following into a SQL query | County town of castlebar has the most populous city/town? | SELECT Most populous city/town FROM table WHERE County town = castlebar |
Translate the following into a SQL query | Name the games for rubén limardo | SELECT Games FROM table WHERE Name = rubén limardo |
Translate the following into a SQL query | Name the sport for men's light flyweight with medal of gold | SELECT Sport FROM table WHERE Medal = gold AND Event = men's light flyweight |
Translate the following into a SQL query | Tell me the name for men's featherweight and sport of weightlifting | SELECT Name FROM table WHERE Event = men's featherweight AND Sport = weightlifting |
Translate the following into a SQL query | Which details of journey had simon hoggart as a narrator? | SELECT Details of Journey FROM table WHERE Narrator = simon hoggart |
Translate the following into a SQL query | Which countries visited had an episode number of less than 7 when Ray Gosling was the writer? | SELECT Countries Visited FROM table WHERE Episode No. < 7 AND Writer = ray gosling |
Translate the following into a SQL query | How tall is Zipp Duncan? | SELECT Height FROM table WHERE Name = zipp duncan |
Translate the following into a SQL query | What is the average games of Tony Dixon? | SELECT AVG Games↑ FROM table WHERE Name = tony dixon |
Translate the following into a SQL query | What is the total of wins where the top 25 is 6, top 10 is more than 2, and the event number is less than 19? | SELECT SUM Wins FROM table WHERE Top-25 = 6 AND Top-10 > 2 AND Events < 19 |
Translate the following into a SQL query | What is the total of cuts made where the top 25 is less than 6 and the top-5 is more than 0? | SELECT SUM Cuts made FROM table WHERE Top-25 < 6 AND Top-5 > 0 |
Translate the following into a SQL query | How many top-10 numbers had a top 25 of more than 6 with less than 2 wins? | SELECT COUNT Top-10 FROM table WHERE Top-25 > 6 AND Wins < 2 |
Translate the following into a SQL query | Name the 2011 with 2010 of 1r and 2012 of sf | SELECT 2011 FROM table WHERE 2010 = 1r AND 2012 = sf |
Translate the following into a SQL query | Name the 2008 with 2012 of 2r and 2006 of 2r | SELECT 2008 FROM table WHERE 2012 = 2r AND 2006 = 2r |
Translate the following into a SQL query | Name the 2008 for 2012 of sf | SELECT 2008 FROM table WHERE 2012 = sf |
Translate the following into a SQL query | Name the 2013 for 2011 of 1r | SELECT 2013 FROM table WHERE 2011 = 1r |
Translate the following into a SQL query | Name the 2011 with 2006 of 2r and 2008 of 2r | SELECT 2011 FROM table WHERE 2006 = 2r AND 2008 = 2r |
Translate the following into a SQL query | Name the 2012 with 2013 of 2r and 2009 of 3r | SELECT 2012 FROM table WHERE 2013 = 2r AND 2009 = 3r |
Translate the following into a SQL query | How many Field goals have Points larger than 5, and Touchdowns larger than 2, and an Extra points smaller than 0? | SELECT COUNT Field goals FROM table WHERE Points > 5 AND Touchdowns > 2 AND Extra points < 0 |
Translate the following into a SQL query | How many Touchdowns have Extra points larger than 0, and Points of 48? | SELECT COUNT Touchdowns FROM table WHERE Extra points > 0 AND Points = 48 |
Translate the following into a SQL query | Which Touchdowns have an Extra points smaller than 5, and a Player of clark, and Field goals larger than 0? | SELECT AVG Touchdowns FROM table WHERE Extra points < 5 AND Player = clark AND Field goals > 0 |
Translate the following into a SQL query | Which Points have Touchdowns larger than 0, and an Extra points smaller than 0? | SELECT SUM Points FROM table WHERE Touchdowns > 0 AND Extra points < 0 |
Translate the following into a SQL query | Which Semifinalists has a Champions of michael chang 6-0 6-4? | SELECT Semifinalists FROM table WHERE Champions = michael chang 6-0 6-4 |
Translate the following into a SQL query | Whose Runner-up has a Semifinalist of guillermo pérez-roldán andrea gaudenzi? | SELECT Runners-up FROM table WHERE Semifinalists = guillermo pérez-roldán andrea gaudenzi |
Translate the following into a SQL query | Tell me the least season with level less than 1 | SELECT MIN Season FROM table WHERE Level < 1 |
Translate the following into a SQL query | Which 2007/ 08 has a 2010/ 11 of not held, and a 2011/ 12 of not held, and a 2008/ 09 of not held, and a 2006/ 07 of lq? | SELECT 2007/ 08 FROM table WHERE 2010/ 11 = not held AND 2011/ 12 = not held AND 2008/ 09 = not held AND 2006/ 07 = lq |
Translate the following into a SQL query | Which 2009/10 has a 2005/06 of not held, and a 2010/11 of not held? | SELECT 2009/ 10 FROM table WHERE 2005/ 06 = not held AND 2010/ 11 = not held |
Translate the following into a SQL query | Which 2011/ 12 has a 2006/ 07 of not held, and a 2008/ 09 of not held, and a 2012/ 13 of dnq? | SELECT 2011/ 12 FROM table WHERE 2006/ 07 = not held AND 2008/ 09 = not held AND 2012/ 13 = dnq |
Translate the following into a SQL query | Which 2011/ 12 has a 2010/ 11 of A, and a 2007/ 08 of not held, and a 2012/ 13 of lq? | SELECT 2011/ 12 FROM table WHERE 2010/ 11 = a AND 2007/ 08 = not held AND 2012/ 13 = lq |
Translate the following into a SQL query | Which 2007/ 08 has a 2005/ 06 of A, and a 2009/ 10 of A, and a 2012/ 13 of A? | SELECT 2007/ 08 FROM table WHERE 2005/ 06 = a AND 2009/ 10 = a AND 2012/ 13 = a |
Translate the following into a SQL query | Which 2007/ 08 has a 2011/ 12 of ur? | SELECT 2007/ 08 FROM table WHERE 2011/ 12 = ur |
Translate the following into a SQL query | What was the Attendance on September 11, 1983? | SELECT Attendance FROM table WHERE Date = september 11, 1983 |
Translate the following into a SQL query | What was the Opponent during the game with a Result of W 37-21? | SELECT Opponent FROM table WHERE Result = w 37-21 |
Translate the following into a SQL query | What was the Result on Week 8? | SELECT Result FROM table WHERE Week = 8 |
Translate the following into a SQL query | What is the lowest number of games with less than 1 loss? | SELECT MIN Games FROM table WHERE Lost < 1 |
Translate the following into a SQL query | What was the nationality of the skater with 108.8 points? | SELECT Nation FROM table WHERE Points = 108.8 |
Translate the following into a SQL query | How many points for the skater from club btsc? | SELECT COUNT Points FROM table WHERE Club = btsc |
Translate the following into a SQL query | Which Original title has a Year of 1983, and a Country of italy? | SELECT Original title FROM table WHERE Year = 1983 AND Country = italy |
Translate the following into a SQL query | How many years have an Original title of иваново детство? | SELECT COUNT Year FROM table WHERE Original title = иваново детство |
Translate the following into a SQL query | Which Length has a Country of soviet union, and a Year larger than 1975? | SELECT Length FROM table WHERE Country = soviet union AND Year > 1975 |
Translate the following into a SQL query | What is listed as the lowest Year with a Wins that's smaller than 0? | SELECT MIN Year FROM table WHERE Wins < 0 |
Translate the following into a SQL query | What is listed for the Wins with a Year of 1989? | SELECT Wins FROM table WHERE Year = 1989 |
Translate the following into a SQL query | What is listed for the Class that's got a Team of Cagiva and Points of 4? | SELECT Class FROM table WHERE Team = cagiva AND Points = 4 |
Translate the following into a SQL query | How many km2 has a Population 2001 Census larger than 274,095, and a District Headquarters of jharsuguda? | SELECT COUNT Area (km 2 .) FROM table WHERE Population 2001 Census > 274,095 AND District Headquarters = jharsuguda |
Translate the following into a SQL query | What is the number of Population 2001 Census that has 476,815 in Population 1991 Census? | SELECT SUM Population 2001 Census FROM table WHERE Population 1991 Census = 476,815 |
Translate the following into a SQL query | What is the number of Population 2001 Census that has jharsuguda District Headquarters with an Area smaller than 2,081? | SELECT COUNT Population 2001 Census FROM table WHERE District Headquarters = jharsuguda AND Area (km 2 .) < 2,081 |
Translate the following into a SQL query | What played has 3 as the losing bonus? | SELECT Played FROM table WHERE Losing bonus = 3 |
Translate the following into a SQL query | What is the try bonus that has llangefni rfc as the club? | SELECT Try bonus FROM table WHERE Club = llangefni rfc |
Translate the following into a SQL query | What played has 247 as the points? | SELECT Played FROM table WHERE Points for = 247 |
Translate the following into a SQL query | What try bonus has 19 as the tries against? | SELECT Try bonus FROM table WHERE Tries against = 19 |
Translate the following into a SQL query | What points has 18 for the played and bala rfc as the club? | SELECT Points for FROM table WHERE Played = 18 AND Club = bala rfc |
Translate the following into a SQL query | What try bonus has 18 as the played of and 204 as the points? | SELECT Try bonus FROM table WHERE Played = 18 AND Points for = 204 |
Translate the following into a SQL query | What record has montreal as the visitor, and february 2 as the date? | SELECT Record FROM table WHERE Visitor = montreal AND Date = february 2 |
Translate the following into a SQL query | What record has February 25 as the date? | SELECT Record FROM table WHERE Date = february 25 |
Translate the following into a SQL query | What date has boston as the visitor? | SELECT Date FROM table WHERE Visitor = boston |
Translate the following into a SQL query | What score has vancouver as the home, and february 16 as the date? | SELECT Score FROM table WHERE Home = vancouver AND Date = february 16 |
Translate the following into a SQL query | Team of corinthians, and a Lost larger than 15 has which highest drawn? | SELECT MAX Drawn FROM table WHERE Team = corinthians AND Lost > 15 |
Translate the following into a SQL query | Difference of - 20, and a Position smaller than 17 is the highest against? | SELECT MAX Against FROM table WHERE Difference = - 20 AND Position < 17 |
Translate the following into a SQL query | Against smaller than 53, and a Drawn smaller than 10, and a Played smaller than 38 has what average points? | SELECT AVG Points FROM table WHERE Against < 53 AND Drawn < 10 AND Played < 38 |
Translate the following into a SQL query | Which score was for Toronto Maple Leafs at home on November 12? | SELECT Score FROM table WHERE Home = toronto maple leafs AND Date = november 12 |
Translate the following into a SQL query | Which home team had a visitor of Chicago Black Hawks with a score of 2–3? | SELECT Home FROM table WHERE Visitor = chicago black hawks AND Score = 2–3 |
Translate the following into a SQL query | Who was home on November 26? | SELECT Home FROM table WHERE Date = november 26 |
Translate the following into a SQL query | What was the visitor with a record of 5–8–4? | SELECT Visitor FROM table WHERE Record = 5–8–4 |
Translate the following into a SQL query | What was the average rank of a player with more than 52 points, fewer than 10 draws, a goal loss under 44, and a loss under 15? | SELECT AVG Rank FROM table WHERE Point > 52 AND Draw < 10 AND Goal loss < 44 AND Lose < 15 |
Translate the following into a SQL query | What was the highest number of lose for a player named Santos with more than 45 points? | SELECT MAX Lose FROM table WHERE Name = santos AND Point > 45 |
Translate the following into a SQL query | What report has a score of 0-0 with Sydney FC? | SELECT Report FROM table WHERE Score = 0-0 AND Away team = sydney fc |
Translate the following into a SQL query | On what date was the score 0-0? | SELECT Date FROM table WHERE Score = 0-0 |
Translate the following into a SQL query | Which home team had the score 1-3? | SELECT Home team FROM table WHERE Score = 1-3 |
Translate the following into a SQL query | Where did the away team have round 2? | SELECT Venue FROM table WHERE Away team = round 2 |
Translate the following into a SQL query | When did the venue of round 3 happen? | SELECT Date FROM table WHERE Venue = round 3 |
Translate the following into a SQL query | What is the lowest density of a town with a 13,708 2011 population census ? | SELECT MIN Density FROM table WHERE Population 2011 census = 13,708 |
Translate the following into a SQL query | specific orbital energy of −29.8 mj/kg has what orbit? | SELECT orbit FROM table WHERE specific orbital energy = −29.8 mj/kg |
Translate the following into a SQL query | altitude above the Earth's surface of 500 to 39,900 km has what orbital period? | SELECT Orbital period FROM table WHERE altitude above the Earth's surface = 500 to 39,900 km |
Translate the following into a SQL query | specific orbital energy of −0.5 mj/kg is what altitude above the earth's surface? | SELECT altitude above the Earth's surface FROM table WHERE specific orbital energy = −0.5 mj/kg |
Translate the following into a SQL query | Earth's surface of 357,000 to 399,000 km has what orbit altitude above? | SELECT orbit FROM table WHERE altitude above the Earth's surface = 357,000 to 399,000 km |
Translate the following into a SQL query | Orbital period of 89 to 128 min has what specific orbital energy? | SELECT specific orbital energy FROM table WHERE Orbital period = 89 to 128 min |
Translate the following into a SQL query | center-to-center distance of 6,900 to 46,300 km involves which orbital period? | SELECT Orbital period FROM table WHERE center-to-center distance = 6,900 to 46,300 km |
Translate the following into a SQL query | What was the lowest FA Cup for a Malaysia Cup of 0? | SELECT MIN FA Cup FROM table WHERE Malaysia Cup < 0 |
Translate the following into a SQL query | What is Zamri Hassan's lowest Malaysia Cup when there were an FA Cup of 0? | SELECT MIN Malaysia Cup FROM table WHERE Player = zamri hassan AND FA Cup < 0 |
Translate the following into a SQL query | What is the lowest league for the Malaysia Cup when it was larger than 0? | SELECT MIN League FROM table WHERE Malaysia Cup > 0 |
Translate the following into a SQL query | How many Bronze medals did Switzerland with less than 3 Silver medals receive? | SELECT MIN Bronze FROM table WHERE Nation = switzerland AND Silver < 3 |
Translate the following into a SQL query | What is the least amount of Silver medals that have more than 3 Bronze? | SELECT MIN Silver FROM table WHERE Bronze > 3 |
Translate the following into a SQL query | What is the average game for March 8 with less than 84 points? | SELECT AVG Game FROM table WHERE Points < 84 AND March = 8 |
Translate the following into a SQL query | What is the latest in March when the record of 35–16–6–3? | SELECT MAX March FROM table WHERE Record = 35–16–6–3 |
Translate the following into a SQL query | Name the competition for score of 3-0 | SELECT Competition FROM table WHERE Score = 3-0 |
Translate the following into a SQL query | Name the competition for september 10, 2008 | SELECT Competition FROM table WHERE Date = september 10, 2008 |
Translate the following into a SQL query | Name the sscore for world cup qualifying october 15, 2008 | SELECT Score FROM table WHERE Competition = world cup qualifying AND Date = october 15, 2008 |
Translate the following into a SQL query | Name the competition for november 19, 2008 | SELECT Competition FROM table WHERE Date = november 19, 2008 |
Translate the following into a SQL query | Name the date for rio de janeiro | SELECT Date FROM table WHERE City = rio de janeiro |
Translate the following into a SQL query | What number is Fall 08 from the state with 57 in Fall 06 and 74 or less in Fall 05? | SELECT COUNT Fall 08 FROM table WHERE Fall 06 = 57 AND Fall 05 < 74 |
Translate the following into a SQL query | What number is Fall 06 from the state with 79 or less in Fall 08, 36 or greater in Fall 07 and greater than 74 in Fall 05? | SELECT AVG Fall 06 FROM table WHERE Fall 08 < 79 AND Fall 07 > 36 AND Fall 05 > 74 |
Translate the following into a SQL query | What number is Fall 06 from the state with 34 for Fall 09? | SELECT AVG Fall 06 FROM table WHERE Fall 09 = 34 |
Translate the following into a SQL query | What was the record when the visitor was toronto maple leafs and the score was 3–10? | SELECT Record FROM table WHERE Visitor = toronto maple leafs AND Score = 3–10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.