instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What was the theatre where Peter P. Peters is the role? | SELECT Theatre, Studio, or Network FROM table WHERE Role = peter p. peters |
Translate the following into a SQL query | Who are the Runner(s)-up with a Margin of 1 stroke? | SELECT Runner(s)-up FROM table WHERE Margin = 1 stroke |
Translate the following into a SQL query | Who are the Runner(s)-up with a Margin of 3 strokes? | SELECT Runner(s)-up FROM table WHERE Margin = 3 strokes |
Translate the following into a SQL query | What is the highest Year with of the open championship? | SELECT MAX Year FROM table WHERE Championship = the open championship |
Translate the following into a SQL query | What is the Winning score in 1956? | SELECT Winning score FROM table WHERE Year = 1956 |
Translate the following into a SQL query | What is the Winning score in 1965? | SELECT Winning score FROM table WHERE Year = 1965 |
Translate the following into a SQL query | What Year had a Runner(s)-up of flory van donck? | SELECT Year FROM table WHERE Runner(s)-up = flory van donck |
Translate the following into a SQL query | What is the release Date for the Region in New Zealand ? | SELECT Date FROM table WHERE Region = new zealand |
Translate the following into a SQL query | What is the release Date for the New Zealand Region? | SELECT Date FROM table WHERE Region = new zealand |
Translate the following into a SQL query | What is the Date of Catalogue number 602517739468? | SELECT Date FROM table WHERE Catalogue = 602517739468 |
Translate the following into a SQL query | In what Region was the Catalogue number 1785089 released? | SELECT Region FROM table WHERE Catalogue = 1785089 |
Translate the following into a SQL query | Which city of license has a frequency less than 100.1? | SELECT City of license FROM table WHERE Frequency MHz < 100.1 |
Translate the following into a SQL query | What is the ERP W with a call sign at w261cq? | SELECT ERP W FROM table WHERE Call sign = w261cq |
Translate the following into a SQL query | What is the average value for ERP W when frequency is more than 100.1? | SELECT AVG ERP W FROM table WHERE Frequency MHz > 100.1 |
Translate the following into a SQL query | What frequency has call sign w228bg? | SELECT Frequency MHz FROM table WHERE Call sign = w228bg |
Translate the following into a SQL query | What is the average value of ERP W in Beardstown, Illinois for a frequency greater than 93.5? | SELECT AVG ERP W FROM table WHERE City of license = beardstown, illinois AND Frequency MHz > 93.5 |
Translate the following into a SQL query | What was the sum of the winner's shares for US Senior Opens won by Brad Bryant before 2007? | SELECT SUM Winner's share ( $ ) FROM table WHERE Champion = brad bryant AND Year < 2007 |
Translate the following into a SQL query | What was the winning score in 2000? | SELECT Score FROM table WHERE Year = 2000 |
Translate the following into a SQL query | What is the average winner's share won by Billy Casper? | SELECT AVG Winner's share ( $ ) FROM table WHERE Champion = billy casper |
Translate the following into a SQL query | Name the weekly rank for sunday, june 14, 2009 | SELECT Weekly rank FROM table WHERE Airdate = sunday, june 14, 2009 |
Translate the following into a SQL query | Which Pick # is the highest one that has an Overall of 184, and a Round larger than 6? | SELECT MAX Pick # FROM table WHERE Overall = 184 AND Round > 6 |
Translate the following into a SQL query | How many picks have an Overall of 114? | SELECT COUNT Pick # FROM table WHERE Overall = 114 |
Translate the following into a SQL query | Which Overall is the highest one that has a Name of daimon shelton, and a Round larger than 6? | SELECT MAX Overall FROM table WHERE Name = daimon shelton AND Round > 6 |
Translate the following into a SQL query | Which Pick # is the highest one that has an Overall larger than 21, and a College of north carolina, and a Round smaller than 3? | SELECT MAX Pick # FROM table WHERE Overall > 21 AND College = north carolina AND Round < 3 |
Translate the following into a SQL query | Which Position has an Overall larger than 147, and a Pick # of 21? | SELECT Position FROM table WHERE Overall > 147 AND Pick # = 21 |
Translate the following into a SQL query | What is cornell's lowest pick number? | SELECT MIN Pick # FROM table WHERE College = cornell |
Translate the following into a SQL query | Which Eviction result has a Net vote of 31.86%? | SELECT Eviction result FROM table WHERE Net vote = 31.86% |
Translate the following into a SQL query | Which Nominee has a Vote to Save of 1.98%? | SELECT Nominee FROM table WHERE Vote to Save = 1.98% |
Translate the following into a SQL query | Which Vote to Evict has a Vote to Save of 21.22%? | SELECT Vote to Evict FROM table WHERE Vote to Save = 21.22% |
Translate the following into a SQL query | Which Vote to Save has an Eviction # smaller than 14, and a Vote to Evict of 5.42%? | SELECT Vote to Save FROM table WHERE Eviction No. < 14 AND Vote to Evict = 5.42% |
Translate the following into a SQL query | What is the average rank of a nation that had 219,721 in 2012? | SELECT AVG Rank FROM table WHERE 2012 = 219,721 |
Translate the following into a SQL query | In what Round was Pick 138? | SELECT SUM Round FROM table WHERE Pick = 138 |
Translate the following into a SQL query | What is John Crawford's Nationality? | SELECT Nationality FROM table WHERE Player = john crawford |
Translate the following into a SQL query | What is the ERP W for K236AM? | SELECT ERP W FROM table WHERE Call sign = k236am |
Translate the following into a SQL query | What is the average frequency in MHz for stations with an ERP W of 170? | SELECT AVG Frequency MHz FROM table WHERE ERP W = 170 |
Translate the following into a SQL query | What is K236AM's lowest frequency in MHz? | SELECT MIN Frequency MHz FROM table WHERE Call sign = k236am |
Translate the following into a SQL query | What class is assigned to frequencies lower than 90.5? | SELECT Class FROM table WHERE Frequency MHz < 90.5 |
Translate the following into a SQL query | What class is assigned to frequencies larger than 89.3 with an ERP W of 250? | SELECT Class FROM table WHERE Frequency MHz > 89.3 AND ERP W = 250 |
Translate the following into a SQL query | What did st. louis score at home? | SELECT Score FROM table WHERE Home = st. louis |
Translate the following into a SQL query | What was the result of the game on week 1? | SELECT Result FROM table WHERE Week = 1 |
Translate the following into a SQL query | What is the result of the game on October 25, 1959 with more than 26,198 fans in attendance? | SELECT Result FROM table WHERE Attendance > 26,198 AND Date = october 25, 1959 |
Translate the following into a SQL query | What is the record of the game on week 13? | SELECT Record FROM table WHERE Week = 13 |
Translate the following into a SQL query | Texas Rate smaller than 32.9, and a U.S. Rate larger than 5.6 is what highest killeen rate? | SELECT MAX Killeen Rate FROM table WHERE Texas Rate < 32.9 AND U.S. Rate > 5.6 |
Translate the following into a SQL query | Reported Offenses larger than 216, and a U.S. Rate smaller than 3274, and a Texas Rate smaller than 2688.9, and a Crime of violent crime has what killeen rate? | SELECT SUM Killeen Rate FROM table WHERE Reported Offenses > 216 AND U.S. Rate < 3274 AND Texas Rate < 2688.9 AND Crime = violent crime |
Translate the following into a SQL query | Killeen Rate of 511.6, and a Texas Rate smaller than 314.4 is the lowest reported offenses? | SELECT MIN Reported Offenses FROM table WHERE Killeen Rate = 511.6 AND Texas Rate < 314.4 |
Translate the following into a SQL query | Tell me the type for category of mouse and attribute of ondblclick | SELECT Type FROM table WHERE Category = mouse AND Attribute = ondblclick |
Translate the following into a SQL query | Name the type with cancelable of no and attribute of ondragend | SELECT Type FROM table WHERE Cancelable = no AND Attribute = ondragend |
Translate the following into a SQL query | Name the cancelable for onmouseover | SELECT Cancelable FROM table WHERE Attribute = onmouseover |
Translate the following into a SQL query | Name the bubbles for onscroll | SELECT Bubbles FROM table WHERE Attribute = onscroll |
Translate the following into a SQL query | Name the attribute for mutation and domcharacterdatamodified | SELECT Attribute FROM table WHERE Category = mutation AND Type = domcharacterdatamodified |
Translate the following into a SQL query | Who had high rebounds on May 1? | SELECT High rebounds FROM table WHERE Date = may 1 |
Translate the following into a SQL query | What location attendance had a score of l 92β116? | SELECT Location Attendance FROM table WHERE Score = l 92β116 |
Translate the following into a SQL query | Which name has a distance for 1st as 117.5? | SELECT Name FROM table WHERE 1st (m) = 117.5 |
Translate the following into a SQL query | What is the distance for Tom Hilde for 2nd when the 1st distance is more than 117.5? | SELECT 2nd (m) FROM table WHERE 1st (m) > 117.5 AND Name = tom hilde |
Translate the following into a SQL query | What are the most points for Thomas Morgenstern with a distance less than 123.5 in 2nd and rank over 4? | SELECT MAX Points FROM table WHERE 2nd (m) < 123.5 AND Name = thomas morgenstern AND Rank > 4 |
Translate the following into a SQL query | What is the sum of the distances in 2nd for ranks higher than 4 and distance for 1st less than 111.5? | SELECT SUM 2nd (m) FROM table WHERE Rank > 4 AND 1st (m) < 111.5 |
Translate the following into a SQL query | Who had more than 247.1 points and less than 125 meter distance for 1st? | SELECT Name FROM table WHERE Points > 247.1 AND 1st (m) < 125 |
Translate the following into a SQL query | What is the gold medal count that has a silver medal count less than 0? | SELECT MAX Gold FROM table WHERE Silver < 0 |
Translate the following into a SQL query | What is the average number of students for schools with a pupil to teacher ratio of 25.1? | SELECT AVG Students FROM table WHERE Pupil/Teacher Ratio = 25.1 |
Translate the following into a SQL query | What is the lowest pupil to teacher ratio for Saratoga schools with smaller than 1213 students? | SELECT MIN Pupil/Teacher Ratio FROM table WHERE City = saratoga AND Students < 1213 |
Translate the following into a SQL query | What is the highest number of students for schools in Campbell with pupil to teacher ratios over 25? | SELECT MAX Students FROM table WHERE City = campbell AND Pupil/Teacher Ratio > 25 |
Translate the following into a SQL query | Name the most rank for wins outdoor larger than 1 and wins indoor less than 0 | SELECT MAX Rank FROM table WHERE Wins (Outdoor) > 1 AND Wins (Indoor) < 0 |
Translate the following into a SQL query | Name the most rank for uk and wins more than 5 | SELECT MAX Rank FROM table WHERE Country = uk AND Wins (Indoor) > 5 |
Translate the following into a SQL query | Name the average wins outdoor with rank more than 4 and wins less than 3 with outdoor wins more than 0 | SELECT AVG Wins (Outdoor) FROM table WHERE Rank > 4 AND Wins (Total) < 3 AND Wins (Indoor) > 0 |
Translate the following into a SQL query | Name the most wins total with wins indoor of 0 and wins outdoor of 1 with rank less than 7 | SELECT MAX Wins (Total) FROM table WHERE Wins (Indoor) = 0 AND Wins (Outdoor) = 1 AND Rank < 7 |
Translate the following into a SQL query | What was the frame size in 08/87? | SELECT FRAMED SIZE FROM table WHERE DATE COMPLETED = 08/87 |
Translate the following into a SQL query | What was the print name in 07/87? | SELECT PRINT NAME FROM table WHERE DATE COMPLETED = 07/87 |
Translate the following into a SQL query | What is the frame size that was nicknamed Grand Central? | SELECT FRAMED SIZE FROM table WHERE NICKNAME = grand central |
Translate the following into a SQL query | When was the Little Tavern completed? | SELECT DATE COMPLETED FROM table WHERE NICKNAME = little tavern |
Translate the following into a SQL query | How much Average has a Team of san lorenzo, and a 1990-1991 smaller than 45? | SELECT COUNT Average FROM table WHERE Team = san lorenzo AND 1990-1991 < 45 |
Translate the following into a SQL query | Which Played is the lowest one that has a 1989-90 of 39, and a Team of gimnasia de la plata, and Points larger than 108? | SELECT MIN Played FROM table WHERE 1989-90 = 39 AND Team = gimnasia de la plata AND Points > 108 |
Translate the following into a SQL query | Which 1990-1991 is the average one that has Played of 38, and Points of 40? | SELECT AVG 1990-1991 FROM table WHERE Played = 38 AND Points = 40 |
Translate the following into a SQL query | Which College/Junior/Club Team has a Nationality of Canada and Jeff brown? | SELECT College/Junior/Club Team (League) FROM table WHERE Nationality = canada AND Player = jeff brown |
Translate the following into a SQL query | Which Player has a Hc Cska Moscow (Russia)? | SELECT Player FROM table WHERE College/Junior/Club Team (League) = hc cska moscow (russia) |
Translate the following into a SQL query | What is Nationality of daniel goneau? | SELECT Nationality FROM table WHERE Player = daniel goneau |
Translate the following into a SQL query | What points have 500cc as a class, and nsr500 as a machine? | SELECT Points FROM table WHERE Class = 500cc AND Machine = nsr500 |
Translate the following into a SQL query | How many years have 78 for points? | SELECT COUNT Year FROM table WHERE Points = 78 |
Translate the following into a SQL query | What class has nsr250 as the machine, with points greater than 97? | SELECT Class FROM table WHERE Machine = nsr250 AND Points > 97 |
Translate the following into a SQL query | What is the lowest year that have wins greater than 0? | SELECT MIN Year FROM table WHERE Wins > 0 |
Translate the following into a SQL query | What are the highest points that have a year less than 1992, with wins less than 0? | SELECT MAX Points FROM table WHERE Year < 1992 AND Wins < 0 |
Translate the following into a SQL query | What was the lowest attendance at a game against the St. Louis Cardinals? | SELECT MIN Attendance FROM table WHERE Opponent = st. louis cardinals |
Translate the following into a SQL query | What district is the parish Milburn in? | SELECT District FROM table WHERE Name = milburn |
Translate the following into a SQL query | What is the name of the parish that has a population larger than 2,156, a former local authority of Dalton in furness urban district, and a status of a civil parish? | SELECT Name FROM table WHERE Status = civil parish AND Population > 2,156 AND Former local authority = dalton in furness urban district |
Translate the following into a SQL query | What is the population of the Parish, Plumbland, that had a former local authority of Cockermouth Rural District? | SELECT COUNT Population FROM table WHERE Former local authority = cockermouth rural district AND Name = plumbland |
Translate the following into a SQL query | What is the district for the parish, Brough? | SELECT District FROM table WHERE Name = brough |
Translate the following into a SQL query | Who were the former local authority for the civil parish, Ennerdale and Kinniside in the copeland district, with less than 1,280 in population? | SELECT Former local authority FROM table WHERE Status = civil parish AND District = copeland AND Population < 1,280 AND Name = ennerdale and kinniside |
Translate the following into a SQL query | What year featured lola motorsport as an entrant with over 0 points? | SELECT AVG Year FROM table WHERE Entrant = lola motorsport AND Points > 0 |
Translate the following into a SQL query | When is the earliest year that there's a judd engine? | SELECT MIN Year FROM table WHERE Engine = judd |
Translate the following into a SQL query | What chassis is used in 1989 with a cosworth engine? | SELECT Chassis FROM table WHERE Year = 1989 AND Engine = cosworth |
Translate the following into a SQL query | Where was something built earlier than 1858? | SELECT Where Built FROM table WHERE Year Built < 1858 |
Translate the following into a SQL query | What was built in 1857? | SELECT Name FROM table WHERE Year Built = 1857 |
Translate the following into a SQL query | Who were the initial owners of Wasco in 1858? | SELECT Initial Owners FROM table WHERE Year Built = 1858 AND Name = wasco |
Translate the following into a SQL query | What was the type of boat built in Port Blakeley | SELECT Type FROM table WHERE Where Built = port blakeley |
Translate the following into a SQL query | What is the date of the game at Arrowhead Stadium? | SELECT Date FROM table WHERE Location = arrowhead stadium |
Translate the following into a SQL query | Who is the opponent of the game after week 4 on Sun. Nov. 17? | SELECT Opponent FROM table WHERE Week > 4 AND Date = sun. nov. 17 |
Translate the following into a SQL query | What's the median family income with a household income of $25,583? | SELECT Median family income FROM table WHERE Median household income = $25,583 |
Translate the following into a SQL query | What's the $51,914 median household income per capita? | SELECT Per capita income FROM table WHERE Median household income = $51,914 |
Translate the following into a SQL query | What was the winning score when Steve Stricker was runner-up? | SELECT Winning score FROM table WHERE Runner(s)-up = steve stricker |
Translate the following into a SQL query | What was the margin of victory when the winning score was β14 (63-67-73-67=270)? | SELECT Margin of victory FROM table WHERE Winning score = β14 (63-67-73-67=270) |
Translate the following into a SQL query | Who was the runnerup when the margin of victory was 1 stroke on jan 30, 2000? | SELECT Runner(s)-up FROM table WHERE Margin of victory = 1 stroke AND Date = jan 30, 2000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.