instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | How many teams participated (maximum) when Cornish All Blacks Pertemps Bees were relegated to the league? | SELECT MAX Teams FROM table WHERE Relegated to league = Cornish All Blacks Pertemps Bees |
Translate the following into a SQL query | Who was promoted to the league when Coventry was relegated to the league? | SELECT Promoted to league FROM table WHERE Relegated to league = Coventry |
Translate the following into a SQL query | How many were promoted from the league when Esher was relegated to the league? | SELECT COUNT Promoted from league FROM table WHERE Relegated to league = Esher |
Translate the following into a SQL query | What is the smallest 08-09 GP/JGP 2nd value when WS points equals 3197? | SELECT MIN 08-09 GP/JGP 2nd FROM table WHERE WS Points = 3197 |
Translate the following into a SQL query | What is the number of 07-08 oi best values associated with 08-09 i/o bests of exactly 202? | SELECT COUNT 07-08 OI best FROM table WHERE 08-09 I/O best = 202 |
Translate the following into a SQL query | What is the smallest 07-08 oi best value? | SELECT MIN 07-08 OI best FROM table |
Translate the following into a SQL query | Name the number of partners for 5-7, 6-7 (5-7) | SELECT COUNT Partner FROM table WHERE Score = 5-7, 6-7 (5-7) |
Translate the following into a SQL query | Name the surface for cara black rennae stubbs | SELECT Surface FROM table WHERE Opponents = Cara Black Rennae Stubbs |
Translate the following into a SQL query | Name the score for san diego | SELECT Score FROM table WHERE Championship = San Diego |
Translate the following into a SQL query | Name the outcome for zurich | SELECT Outcome FROM table WHERE Championship = Zurich |
Translate the following into a SQL query | Name the number of surfaces for 4-6, 2-6 | SELECT COUNT Surface FROM table WHERE Score = 4-6, 2-6 |
Translate the following into a SQL query | What is the least 08-09 gp/jgp 2nd was when the 07-08 gp/jgp best is 223? | SELECT MIN 08-09 GP/JGP 2nd FROM table WHERE 07-08 GP/JGP best = 223 |
Translate the following into a SQL query | What is the least 08-09 i/o best? | SELECT MIN 08-09 I/O best FROM table |
Translate the following into a SQL query | How many times is keauna mclaughlin / rockne brubaker ranked? | SELECT COUNT Rank FROM table WHERE Name = Keauna McLaughlin / Rockne Brubaker |
Translate the following into a SQL query | Name the sprint classification for michael barry | SELECT Sprint Classification FROM table WHERE Aggressive Rider = Michael Barry |
Translate the following into a SQL query | Name the youth classification for michael barry | SELECT Youth Classification FROM table WHERE Aggressive Rider = Michael Barry |
Translate the following into a SQL query | Name the mountains classification for bradley white | SELECT Mountains Classification FROM table WHERE Aggressive Rider = Bradley White |
Translate the following into a SQL query | List all mbit/s with profiles of 8b. | SELECT Max. downstream throughput ( Mbit/s ) FROM table WHERE Profile = 8b |
Translate the following into a SQL query | What are the mhz when the profile is 8b? | SELECT Bandwidth ( MHz ) FROM table WHERE Profile = 8b |
Translate the following into a SQL query | What are the highest mbit/s when the dbm is +17.5? | SELECT Max. downstream throughput ( Mbit/s ) FROM table WHERE Power ( dBm ) = +17.5 |
Translate the following into a SQL query | List all dbm's when profiles are 8a. | SELECT Power ( dBm ) FROM table WHERE Profile = 8a |
Translate the following into a SQL query | What is the lowest number of carriers? | SELECT MIN Number of carriers FROM table |
Translate the following into a SQL query | Who directed episode 21? | SELECT Directed by FROM table WHERE No. by season = 21 |
Translate the following into a SQL query | What is the series number of the episode "Pandora"? | SELECT No. by series FROM table WHERE Title = "Pandora" |
Translate the following into a SQL query | What episode was watched by 10.81 million US viewers? | SELECT MIN No. by season FROM table WHERE U.S. viewers (in millions) = 10.81 |
Translate the following into a SQL query | How many episodes are titled "Cops & Robbers"? | SELECT COUNT No. by season FROM table WHERE Title = "Cops & Robbers" |
Translate the following into a SQL query | What episode is directed by Bryan Spicer and written by Terence Paul Winter? | SELECT Title FROM table WHERE Directed by = Bryan Spicer AND Written by = Terence Paul Winter |
Translate the following into a SQL query | Name the number of series for 19 | SELECT No. by series FROM table WHERE No. by season = 19 |
Translate the following into a SQL query | Name the viewers for 520 | SELECT U.S. viewers (in millions) FROM table WHERE Production number = 520 |
Translate the following into a SQL query | How many different writers have written the episode with series number 8? | SELECT COUNT Written by FROM table WHERE No. by series = 8 |
Translate the following into a SQL query | Who is the director of the episode titled "Hell hath no fury"? | SELECT Directed by FROM table WHERE Title = "Hell Hath No Fury" |
Translate the following into a SQL query | Who directed the episode titled "Ghosts"? | SELECT Directed by FROM table WHERE Title = "Ghosts" |
Translate the following into a SQL query | What's the title of the episode with production number 103? | SELECT Title FROM table WHERE Production number = 103 |
Translate the following into a SQL query | When did the episode titled "Hell hath no fury" air for the first time? | SELECT Original air date FROM table WHERE Title = "Hell Hath No Fury" |
Translate the following into a SQL query | who has the 1 goal and the position is fw? | SELECT Name FROM table WHERE Goals = 1 AND Position = FW |
Translate the following into a SQL query | How many release dates are there for year of 1988 and additional rock band 3 features is none? | SELECT COUNT Release date FROM table WHERE Year = 1988 AND Additional Rock Band 3 Features = None |
Translate the following into a SQL query | Who is the artist for the song title of " ...and justice for all "? | SELECT Artist FROM table WHERE Song title = " ...And Justice for All " |
Translate the following into a SQL query | What is the year for the song title of " little sister "? | SELECT Year FROM table WHERE Song title = " Little Sister " |
Translate the following into a SQL query | How many single / pack names are there for the song title of " rockaway beach "? | SELECT COUNT Single / Pack name FROM table WHERE Song title = " Rockaway Beach " |
Translate the following into a SQL query | What is the year for the genre of emo and artist is all-american rejects and song title is " move along "? | SELECT MAX Year FROM table WHERE Genre = Emo AND Artist = All-American Rejects AND Song title = " Move Along " |
Translate the following into a SQL query | What is the nationality associated with 0 minutes, position of MF, and an Athletica career of 2009? | SELECT Nationality FROM table WHERE Minutes = 0 AND Position = MF AND Athletica career = 2009 |
Translate the following into a SQL query | What is the position of the player who is from the United States and has 30 minutes? | SELECT Position FROM table WHERE Nationality = United States AND Minutes = 30 |
Translate the following into a SQL query | What is the most amount of goals any of the players had? | SELECT MAX Goals FROM table |
Translate the following into a SQL query | What year did the song "Red Tandy" come out? | SELECT Year FROM table WHERE Song title = "Red Tandy" |
Translate the following into a SQL query | What is the song for Dixie Chicks? | SELECT Song title FROM table WHERE Artist = Dixie Chicks |
Translate the following into a SQL query | What is the episode title for number 7 in the season? | SELECT Title FROM table WHERE No. in season = 7 |
Translate the following into a SQL query | What is the special when the challenger is dominique bouchet? | SELECT Special FROM table WHERE Challenger = Dominique Bouchet |
Translate the following into a SQL query | Who was the winner when the iron chef is hiroyuki sakai? | SELECT Winner FROM table WHERE Iron Chef = Hiroyuki Sakai |
Translate the following into a SQL query | Who was the challenger when winner was kimio nonaga? | SELECT Challenger FROM table WHERE Winner = Kimio Nonaga |
Translate the following into a SQL query | Who was the winner for the original airdate is january 5, 2000 and challenger specialty is french? | SELECT Winner FROM table WHERE Original airdate = January 5, 2000 AND Challenger Specialty = French |
Translate the following into a SQL query | How many episodes had Yutaka Ishinabe as the iron chef specializing in french cousin? | SELECT COUNT Overall Episode # FROM table WHERE Iron Chef = Yutaka Ishinabe AND Challenger Specialty = French |
Translate the following into a SQL query | What episode number originally aired on November 21, 1993? | SELECT MAX Overall Episode # FROM table WHERE Original airdate = November 21, 1993 |
Translate the following into a SQL query | Who was the challenger on Episode 5? | SELECT Challenger FROM table WHERE Overall Episode # = 5 |
Translate the following into a SQL query | How many iron chefs were there when the challenge specialty was Japanese cuisine? | SELECT COUNT Iron Chef FROM table WHERE Challenger Specialty = Japanese |
Translate the following into a SQL query | What is the qualifying end date when the qualifying start date is qualifying start date? | SELECT Qualifying end date FROM table WHERE Qualifying start date = Qualifying start date |
Translate the following into a SQL query | How many teams can still qualify when there are 0 teams that have secured qualification and 52 teams started? | SELECT Teams that can still qualify FROM table WHERE Teams that have secured qualification = 0 AND Teams started = 52 |
Translate the following into a SQL query | How many teams eliminated when 11 teams started? | SELECT Teams that have been eliminated FROM table WHERE Teams started = 11 |
Translate the following into a SQL query | What is the confederation when there are 4 places remaining in the finals? | SELECT Confederation FROM table WHERE Remaining places in finals = 4 |
Translate the following into a SQL query | How many qualifying start dates for the Concacaf confederation? | SELECT COUNT Qualifying start date FROM table WHERE Confederation = CONCACAF |
Translate the following into a SQL query | How many remaining places in finals when 1 team can still qualify and 0 teams have secured qualification? | SELECT Remaining places in finals FROM table WHERE Teams that can still qualify = 1 AND Teams that have secured qualification = 0 |
Translate the following into a SQL query | What is the world record when 14 July 1998 is 13 August 1997? | SELECT World record FROM table WHERE 14 July 1998 = 13 August 1997 |
Translate the following into a SQL query | How many of 3:26.00 have a championship record? | SELECT COUNT 3:26.00 FROM table WHERE World record = Championship record |
Translate the following into a SQL query | How many of 3:26.00 when hicham el guerrouj ( mar ) is hudson de souza ( bra )? | SELECT COUNT 3:26.00 FROM table WHERE Hicham El Guerrouj ( MAR ) = Hudson de Souza ( BRA ) |
Translate the following into a SQL query | When saif saaeed shaheen (qat) is the saif saaeed shaheen ( qat ) what is the world record? | SELECT World record FROM table WHERE Saif Saaeed Shaheen ( QAT ) = Saif Saaeed Shaheen ( QAT ) |
Translate the following into a SQL query | When daniel lincoln ( usa ) is the saif saaeed shaheen ( qat ) What is the date for September 3rd, 2004? | SELECT 3 September 2004 FROM table WHERE Saif Saaeed Shaheen ( QAT ) = Daniel Lincoln ( USA ) |
Translate the following into a SQL query | When saif saaeed shaheen ( qat ) is the saif saaeed shaheen ( qat ) what is the date on September 3rd, 2004? | SELECT 3 September 2004 FROM table WHERE Saif Saaeed Shaheen ( QAT ) = Saif Saaeed Shaheen ( QAT ) |
Translate the following into a SQL query | What is the 26 July 1983 total number if Munich, West Germany is Beijing, China? | SELECT COUNT 26 July 1983 FROM table WHERE Munich , West Germany = Beijing, China |
Translate the following into a SQL query | If the world record is the African record, what is the 1:53.28 total number? | SELECT COUNT 1:53.28 FROM table WHERE World record = African record |
Translate the following into a SQL query | If 1:53.28 is 1:54.01, what is the world record? | SELECT World record FROM table WHERE 1:53.28 = 1:54.01 |
Translate the following into a SQL query | How many episodes have the title "a perfect crime"? | SELECT COUNT Episode # FROM table WHERE Title = "A Perfect Crime" |
Translate the following into a SQL query | Who directed the epsiode with production number 109? | SELECT Directed by FROM table WHERE Prod # = 109 |
Translate the following into a SQL query | Name the least finish for larry dickson | SELECT MIN Finish FROM table WHERE Driver = Larry Dickson |
Translate the following into a SQL query | Name the 1:25 for 7 august 2005 being 19 november 2001 | SELECT 1:25:41 FROM table WHERE 7 August 2005 = 19 November 2001 |
Translate the following into a SQL query | Name the 26 august 2005 asian record | SELECT 26 August 2005 FROM table WHERE World record = Asian record |
Translate the following into a SQL query | Name the belgium for 26 august 2005 being 24 august 2003 | SELECT Bruxelles , Belgium FROM table WHERE 26 August 2005 = 24 August 2003 |
Translate the following into a SQL query | Name the total number of kenesia for african record | SELECT COUNT Kenenisa Bekele ( ETH ) FROM table WHERE World record = African record |
Translate the following into a SQL query | List the number of runners up when albertina fransisca mailoa won the putri pariwisata contest? | SELECT COUNT 3rd Runner Up FROM table WHERE Putri Pariwisata Indonesia = Albertina Fransisca Mailoa |
Translate the following into a SQL query | Who won 2nd place when ratna mariana won 3rd place? | SELECT 1st Runner Up FROM table WHERE 2nd Runner Up = Ratna Mariana |
Translate the following into a SQL query | Who won 5th place when jean liatri augustine girsang won 4th place? | SELECT 4th Runner Up FROM table WHERE 3rd Runner Up = Jean Liatri Augustine Girsang |
Translate the following into a SQL query | Who won 2nd place when albertina fransisca mailoa was the winner of the putri pariwisata contest? | SELECT 1st Runner Up FROM table WHERE Putri Pariwisata Indonesia = Albertina Fransisca Mailoa |
Translate the following into a SQL query | Who won 4th place when audrie adriana sanova won 3rd place? | SELECT 3rd Runner Up FROM table WHERE 2nd Runner Up = Audrie Adriana Sanova |
Translate the following into a SQL query | Who won 5th place with olivia franciska won 4th place? | SELECT 4th Runner Up FROM table WHERE 3rd Runner Up = Olivia Franciska |
Translate the following into a SQL query | what is the original air date for production code 216? | SELECT Original air date FROM table WHERE Production code = 216 |
Translate the following into a SQL query | what is writtenand directed by shannon flynn? | SELECT Written by FROM table WHERE Directed by = Shannon Flynn |
Translate the following into a SQL query | what number is us viewers in season 12? | SELECT U.S. viewers (millions) FROM table WHERE No. in season = 12 |
Translate the following into a SQL query | What was the population density in km2 for 2011 in the division where area in km2 was 684.37 in 2011? | SELECT Population density (/km² 2011) FROM table WHERE Area (km²) 2011** = 684.37 |
Translate the following into a SQL query | What division had a population density of 8,552.4 km2 in 2011? | SELECT Administrative division FROM table WHERE Population density (/km² 2011) = 8,552.4 |
Translate the following into a SQL query | What was the area in km2 in 2011 for the Narsingdi District? | SELECT Area (km²) 2011** FROM table WHERE Administrative division = Narsingdi District |
Translate the following into a SQL query | In what division was there a population density in km2 of 1,604.3 in 2011? | SELECT Administrative division FROM table WHERE Population density (/km² 2011) = 1,604.3 |
Translate the following into a SQL query | In what division was there a population density in km2 of 4,491.8 in 2011? | SELECT Administrative division FROM table WHERE Population density (/km² 2011) = 4,491.8 |
Translate the following into a SQL query | What's the area coordinator for the municipality with 1715 people living in it in 2010? | SELECT Area Coordinator FROM table WHERE Population (2010) = 1715 |
Translate the following into a SQL query | How many different counts of tue number of Barangays are there for the municipality with 13824 citizens in 2010? | SELECT COUNT No. of Barangays FROM table WHERE Population (2010) = 13824 |
Translate the following into a SQL query | How many Barangays lived in the municipality with area coordinator of 110.95? | SELECT No. of Barangays FROM table WHERE Area Coordinator = 110.95 |
Translate the following into a SQL query | What circuit had rnd 3? | SELECT Circuit FROM table WHERE Rnd = 3 |
Translate the following into a SQL query | How many circuits had a winning team of #1 patrón highcroft racing ang gtc winning team #81 alex job racing ? | SELECT COUNT Circuit FROM table WHERE LMP Winning Team = #1 Patrón Highcroft Racing AND GTC Winning Team = #81 Alex Job Racing |
Translate the following into a SQL query | What was the winning team lmpc in rnd 3? | SELECT LMPC Winning Team FROM table WHERE Rnd = 3 |
Translate the following into a SQL query | What was the gtc winning team when lmp winning team was #8 drayson racing? | SELECT GTC Winning Team FROM table WHERE LMP Winning Team = #8 Drayson Racing |
Translate the following into a SQL query | Who is the captain in Chaguaramas? | SELECT Captain FROM table WHERE Location = Chaguaramas |
Translate the following into a SQL query | What is the minimum capacity for Sangre Grande Ground? | SELECT MIN Capacity FROM table WHERE Stadium = Sangre Grande Ground |
Translate the following into a SQL query | What is the capacity for Sangre Grande Ground, home of the North East Stars? | SELECT COUNT Capacity FROM table WHERE Team = North East Stars |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.