instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Which Airing date has a Number of episodes larger than 20, and a Genre of modern drama? | SELECT Airing date FROM table WHERE Number of episodes > 20 AND Genre = modern drama |
Translate the following into a SQL query | Which Genre has an English title (Chinese title) of the romance of the white hair maiden 白髮魔女傳? | SELECT Genre FROM table WHERE English title (Chinese title) = the romance of the white hair maiden 白髮魔女傳 |
Translate the following into a SQL query | who is the grand finalist when the grand finalists are jonathan loh, peterson poon, nathan santos? | SELECT Grand Finalist FROM table WHERE Grand Finalists = jonathan loh, peterson poon, nathan santos |
Translate the following into a SQL query | what is the earliest year when the champion team members are charisse borromeo, jennifer ong, larissa co? | SELECT MIN Year FROM table WHERE Champion Team Members = charisse borromeo, jennifer ong, larissa co |
Translate the following into a SQL query | what is the year when the champion team members are mikee de vega, jari monteagudo, crissy aquino? | SELECT Year FROM table WHERE Champion Team Members = mikee de vega, jari monteagudo, crissy aquino |
Translate the following into a SQL query | who are the grand finalists when the champion team members are miko biscocho, claude gomez, mikee victoriano? | SELECT Grand Finalists FROM table WHERE Champion Team Members = miko biscocho, claude gomez, mikee victoriano |
Translate the following into a SQL query | What is the highest total number of medals for a team ranked smaller than 1 and had 20 gold medals? | SELECT MAX Total FROM table WHERE Gold = 20 AND Rank < 1 |
Translate the following into a SQL query | What is the nation that had more than 1 gold medal and a total of 62 medals? | SELECT Nation FROM table WHERE Gold > 1 AND Total = 62 |
Translate the following into a SQL query | What is the highest total medals when there were 0 gold medals and 1 silver? | SELECT MAX Total FROM table WHERE Silver = 1 AND Gold < 0 |
Translate the following into a SQL query | What's the 123kg of the Total world record? | SELECT 123kg FROM table WHERE World record = total |
Translate the following into a SQL query | What's the world record when the 123kg was 275kg? | SELECT World record FROM table WHERE 123kg = 275kg |
Translate the following into a SQL query | What is the name for the assembly segment with a constituency number of 214? | SELECT Name FROM table WHERE Constituency number = 214 |
Translate the following into a SQL query | What district has an assembly segment named mahidpur? | SELECT District FROM table WHERE Name = mahidpur |
Translate the following into a SQL query | Who is Doug Basham's team? | SELECT Team FROM table WHERE Wrestler = doug basham |
Translate the following into a SQL query | What's Jorge Santana's elimination? | SELECT Elimination FROM table WHERE Wrestler = jorge santana |
Translate the following into a SQL query | Who's the wrestler with an elimination of 1? | SELECT Wrestler FROM table WHERE Elimination = 1 |
Translate the following into a SQL query | Who's the eliminated by when the elimination was 1? | SELECT Eliminated by FROM table WHERE Elimination = 1 |
Translate the following into a SQL query | What is the date where the result was L 27-10 in a week before week 9? | SELECT Date FROM table WHERE Week < 9 AND Result = l 27-10 |
Translate the following into a SQL query | What sum of draw had more than 22 in Jury and a Televote of 130? | SELECT SUM Draw FROM table WHERE Jury > 22 AND Televote = 130 |
Translate the following into a SQL query | What is the total of the jury that is 2nd place and the total is larger than 190? | SELECT SUM Jury FROM table WHERE Place = 2nd AND Total > 190 |
Translate the following into a SQL query | What's the average L/km combines when the L/100km Urban is 13.9, the mpg-UK combined is more than 28.5 and the mpg-UK extra urban is less than 38.7? | SELECT AVG L/100km Combined FROM table WHERE L/100km Urban (Cold) = 13.9 AND mpg-UK Combined > 28.5 AND mpg-UK Extra-Urban < 38.7 |
Translate the following into a SQL query | What's the least mpg-UK combined when the mpg-UK urban is 25.4, the L/100km extra urban is less than 6.9 and the L/100km urban is more than 11.1? | SELECT MIN mpg-UK Combined FROM table WHERE mpg-UK Urban (Cold) = 25.4 AND L/100km Extra-Urban < 6.9 AND L/100km Urban (Cold) > 11.1 |
Translate the following into a SQL query | What's the CO2 g/km of a Fiat running on diesel with the L/100km urban more than 6.3 and an mpg-UK combined of 43.5? | SELECT COUNT CO 2 g/km FROM table WHERE Fuel Type = diesel AND Manufacturer = fiat AND L/100km Urban (Cold) > 6.3 AND mpg-UK Combined = 43.5 |
Translate the following into a SQL query | What's the total L/100km extra urban fueled by diesel, when the mpg-UK combines is more than 19.2, mpg-US is less than 50 and the L/100m combined is less than 5.7? | SELECT COUNT L/100km Extra-Urban FROM table WHERE mpg-UK Combined > 19.2 AND L/100km Combined < 5.7 AND Fuel Type = diesel AND mpg-US Combined < 50 |
Translate the following into a SQL query | What's the engine capacity when the mpg-UK urban is less than 12.2, the mpg-UK extra urban is less than 18.8 and the mpg-US turban is less than 7.2? | SELECT SUM Engine Capacity FROM table WHERE mpg-UK Urban (Cold) < 12.2 AND mpg-UK Extra-Urban < 18.8 AND mpg-US Urban < 7.2 |
Translate the following into a SQL query | What's the mpg-US urban when the mpg-UK urban is 20 and the mpg-UK extra urban is less than 37.2? | SELECT SUM mpg-US Urban FROM table WHERE mpg-UK Urban (Cold) = 20 AND mpg-UK Extra-Urban < 37.2 |
Translate the following into a SQL query | What was the score on 2010-07-13 when Abby wambach had the assist/pass? | SELECT Score FROM table WHERE Assist/pass = abby wambach AND Date = 2010-07-13 |
Translate the following into a SQL query | What is the location on 2008-06-17 when the lineup was start? | SELECT Location FROM table WHERE Lineup = start AND Date = 2008-06-17 |
Translate the following into a SQL query | What is the assist/pass on 2008-01-16 when the score was 2-0? | SELECT Assist/pass FROM table WHERE Date = 2008-01-16 AND Score = 2-0 |
Translate the following into a SQL query | What is the result at match reports? | SELECT Result FROM table WHERE Location = match reports |
Translate the following into a SQL query | What's the points if the goals against were 222? | SELECT Points FROM table WHERE Goals against = 222 |
Translate the following into a SQL query | What are the points if the goals against were 260? | SELECT Points FROM table WHERE Goals against = 260 |
Translate the following into a SQL query | What are the games with an Involuntary suspension of Season (hurricane Rita)? | SELECT Games FROM table WHERE Standing = involuntary suspension of season (hurricane rita) |
Translate the following into a SQL query | What are the goals for a lost of Involuntary suspension of Season (hurricane Rita)? | SELECT Goals for FROM table WHERE Lost = involuntary suspension of season (hurricane rita) |
Translate the following into a SQL query | What's the season that had a lost of 9 with 72 games? | SELECT Season FROM table WHERE Games = 72 AND Lost = 9 |
Translate the following into a SQL query | What event did he compete in at Taipei? | SELECT Format FROM table WHERE Location = taipei |
Translate the following into a SQL query | In what season did he compete in the Grand Prix in Kuala Lumpur? | SELECT Season FROM table WHERE Event type = grand prix AND Location = kuala lumpur |
Translate the following into a SQL query | What is the position of the player with a pick less than 3 from team san diego? | SELECT Position FROM table WHERE Pick < 3 AND Team = san diego |
Translate the following into a SQL query | What location did david mccann receive a siver and morgan fox win the gold? | SELECT Location FROM table WHERE Silver = david mccann AND Gold = morgan fox |
Translate the following into a SQL query | Who received the bronze in 2011? | SELECT Bronze FROM table WHERE Year = 2011 |
Translate the following into a SQL query | Who received the silver in 2006? | SELECT Silver FROM table WHERE Year = 2006 |
Translate the following into a SQL query | What is the name for the club Liaoning in 2008? | SELECT Name FROM table WHERE 2008 club = liaoning |
Translate the following into a SQL query | What was the spike for the Army Club in 2008? | SELECT Spike FROM table WHERE 2008 club = army |
Translate the following into a SQL query | What was the weight for the player in Zhejiang in 2008? | SELECT Weight FROM table WHERE 2008 club = zhejiang |
Translate the following into a SQL query | What's the count for obese children and adolescents ranked 48? | SELECT Obese children and adolescents FROM table WHERE Obesity rank = 48 |
Translate the following into a SQL query | What's the rank when the obese children and adolescent count is 14.2%? | SELECT SUM Obesity rank FROM table WHERE Obese children and adolescents = 14.2% |
Translate the following into a SQL query | What's the rank in West Virginia when the overweight adult was 66.8%? | SELECT Obesity rank FROM table WHERE Overweight (incl. obese) adults = 66.8% AND State and District of Columbia = west virginia |
Translate the following into a SQL query | What is reserved for Jawad? | SELECT Reserved for ( SC / ST /None) FROM table WHERE Name = jawad |
Translate the following into a SQL query | What is reserved for the constituency of 228? | SELECT Reserved for ( SC / ST /None) FROM table WHERE Constituency number = 228 |
Translate the following into a SQL query | Which Mascot has a Location of evansville, and an Enrollment larger than 1,392, and a School of evansville harrison? | SELECT Mascot FROM table WHERE Location = evansville AND Enrollment > 1,392 AND School = evansville harrison |
Translate the following into a SQL query | Which County has an IHSAA Class of aaa, and an Enrollment smaller than 799? | SELECT County FROM table WHERE IHSAA Class = aaa AND Enrollment < 799 |
Translate the following into a SQL query | Which Location has a Mascot of tigers? | SELECT Location FROM table WHERE Mascot = tigers |
Translate the following into a SQL query | What's the least Expert's View when willing to take risks is more than 27, communication ability is 30, ability to compromise is less than 26, and imagination is more than 14? | SELECT MIN Expert's View FROM table WHERE Ability to Compromise < 26 AND Imagination > 14 AND Willing to take Risks > 27 AND Communication Ability < 30 |
Translate the following into a SQL query | What's the most overall when the executive appointments were 28 and the background was smaller than 37? | SELECT MAX Overall FROM table WHERE Executive Appointments = 28 AND Background < 37 |
Translate the following into a SQL query | What was the record at the game with a score of 21-16? | SELECT Record FROM table WHERE Score = 21-16 |
Translate the following into a SQL query | Who was the opponent at the game with a score of 42-28 after week 4? | SELECT Opponent FROM table WHERE Week > 4 AND Score = 42-28 |
Translate the following into a SQL query | Which Runs on POSIX style systems has a Developer of andéor? | SELECT Runs on POSIX style systems ? FROM table WHERE Developer = andéor |
Translate the following into a SQL query | Which User Interface Language(s) has Runs on POSIX style systems of no and sescoi? | SELECT User Interface Language(s) FROM table WHERE Runs on POSIX style systems ? = no AND Developer = sescoi |
Translate the following into a SQL query | what is the result when the opponent is at dallas cowboys? | SELECT Result FROM table WHERE Opponent = at dallas cowboys |
Translate the following into a SQL query | what is the enrollement for the year joined 1958 in clarksville? | SELECT SUM Enrollment FROM table WHERE Year Joined = 1958 AND Location = clarksville |
Translate the following into a SQL query | what is the #/county that is ihsaa class aaa, has enrollment higher than 611 and the dragons is the mascot? | SELECT # / County FROM table WHERE IHSAA Class = aaa AND Enrollment > 611 AND Mascot = dragons |
Translate the following into a SQL query | What's the Peaches: that was released in USA with 2 hot as a Title? | SELECT Peaches: FROM table WHERE Country of Release = usa AND Title = 2 hot |
Translate the following into a SQL query | What's the Peaches: for Sayin' Something? | SELECT Peaches: FROM table WHERE Title = sayin' something |
Translate the following into a SQL query | Where was the title released in 1977? | SELECT Country of Release FROM table WHERE Year of Release = 1977 |
Translate the following into a SQL query | What was the last year MCA had a Release? | SELECT MAX Year of Release FROM table WHERE Label = mca |
Translate the following into a SQL query | What is the lowest pick for the Buffalo Bills? | SELECT MIN Pick FROM table WHERE Team = buffalo bills |
Translate the following into a SQL query | Which player played for the Boston Patriots? | SELECT Player FROM table WHERE Team = boston patriots |
Translate the following into a SQL query | How much Attendance has a Result of 2–4, and a Visitor of brynäs if? | SELECT SUM Attendance FROM table WHERE Result = 2–4 AND Visitor = brynäs if |
Translate the following into a SQL query | Which Result has a Round larger than 17? | SELECT Result FROM table WHERE Round > 17 |
Translate the following into a SQL query | What is the smallest electorate for the Conservative party in South West Devon constituency, with over 2 conservatives and a name of Plymstock Radford? | SELECT MIN Electorate FROM table WHERE Political party = conservative AND Constituency = south west devon AND Conservative > 2 AND Name = plymstock radford |
Translate the following into a SQL query | In what Year of Census or Estimate is the Toronto Population larger than 1,556,396? | SELECT SUM Year of Census or Estimate FROM table WHERE Population > 1,556,396 AND City = toronto |
Translate the following into a SQL query | What event was in a year later than 2007 and in the 88th position? | SELECT Event FROM table WHERE Year > 2007 AND Position = 88th |
Translate the following into a SQL query | What are the notes for 2005? | SELECT Notes FROM table WHERE Year = 2005 |
Translate the following into a SQL query | Who is the owner of CKLF-FM? | SELECT Owner FROM table WHERE Call sign = cklf-fm |
Translate the following into a SQL query | What frequency is First Nations Community? | SELECT Frequency FROM table WHERE Format = first nations community |
Translate the following into a SQL query | What format is CBC Radio 2? | SELECT Format FROM table WHERE Branding = cbc radio 2 |
Translate the following into a SQL query | Who owns CKSB-8-FM? | SELECT Owner FROM table WHERE Call sign = cksb-8-fm |
Translate the following into a SQL query | What format is Première Chaîne? | SELECT Format FROM table WHERE Branding = première chaîne |
Translate the following into a SQL query | What year was olympics, Canada and the Men's Eight Event ended with a silver medal? | SELECT MAX Year FROM table WHERE Championship = olympics AND Event = men's eight AND Nation = canada AND Result = silver |
Translate the following into a SQL query | What event was in 2006? | SELECT Event FROM table WHERE Year = 2006 |
Translate the following into a SQL query | What championship was in the USA after 1994, and resulted in 5th place? | SELECT Championship FROM table WHERE Nation = usa AND Year > 1994 AND Result = 5th |
Translate the following into a SQL query | What year did Canada get a silver in the olympics in the Men's Coxless Pair event? | SELECT MIN Year FROM table WHERE Nation = canada AND Result = silver AND Championship = olympics AND Event = men's coxless pair |
Translate the following into a SQL query | Where is the lacrosse school located? | SELECT Location FROM table WHERE School = lacrosse |
Translate the following into a SQL query | Which IHSAA Class has a Mascot of tigers? | SELECT IHSAA Class FROM table WHERE Mascot = tigers |
Translate the following into a SQL query | Which Location has an Enrollment larger than 543? | SELECT Location FROM table WHERE Enrollment > 543 |
Translate the following into a SQL query | Which County has an Enrollment of 297? | SELECT County FROM table WHERE Enrollment = 297 |
Translate the following into a SQL query | Which School has an Enrollment larger than 264, and a County of 46 la porte? | SELECT School FROM table WHERE Enrollment > 264 AND County = 46 la porte |
Translate the following into a SQL query | What is the number of silver medals when there are more than 1 gold, and more than 6 bronze? | SELECT MIN Silver FROM table WHERE Gold > 1 AND Bronze > 6 |
Translate the following into a SQL query | What is the total when the Yugoslavia number of silver won is more than 1? | SELECT MAX Total FROM table WHERE Silver > 1 AND Nation = yugoslavia |
Translate the following into a SQL query | What is the total attendance before week 1? | SELECT SUM Attendance FROM table WHERE Week < 1 |
Translate the following into a SQL query | When was sniffles and the bookworm released? | SELECT Release date FROM table WHERE Title = sniffles and the bookworm |
Translate the following into a SQL query | When was land of the midnight fun in the mm series released? | SELECT Release date FROM table WHERE Series = mm AND Title = land of the midnight fun |
Translate the following into a SQL query | Which series had a release on 1939-07-15 with the 8863 production number? | SELECT Series FROM table WHERE Release date = 1939-07-15 AND Production Num. = 8863 |
Translate the following into a SQL query | Who directed hamateur night? | SELECT Director FROM table WHERE Title = hamateur night |
Translate the following into a SQL query | When was Production Number 9105 released? | SELECT Release date FROM table WHERE Production Num. = 9105 |
Translate the following into a SQL query | What Class has a Frequency of 90.1 FM? | SELECT Class FROM table WHERE Frequency = 90.1 fm |
Translate the following into a SQL query | What is listed for the RECNet that also has a Frequency of 91.1 FM? | SELECT RECNet FROM table WHERE Frequency = 91.1 fm |
Translate the following into a SQL query | What Class has the Identifier fo CBFX-FM-2? | SELECT Class FROM table WHERE Identifier = cbfx-fm-2 |
Translate the following into a SQL query | What is the RECNet with a Class of B and the City of License of Rouyn-Noranda? | SELECT RECNet FROM table WHERE Class = b AND City of license = rouyn-noranda |
Translate the following into a SQL query | What Class has the Identifier of CBFX-FM-6? | SELECT Class FROM table WHERE Identifier = cbfx-fm-6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.