instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Which Category in Brown has a Frequency of 0.08%?
SELECT Brown FROM table WHERE Frequency = 0.08%
Translate the following into a SQL query
Which Category in Black has a Brown of 6,54%?
SELECT Black FROM table WHERE Brown = 6,54%
Translate the following into a SQL query
What is the Capacity in use with an Annual change that is 21.8%?
SELECT Capacity in use FROM table WHERE Annual change = 21.8%
Translate the following into a SQL query
How many Tries has Points for smaller than 137, and Tries against larger than 12?
SELECT COUNT Tries for FROM table WHERE Points for < 137 AND Tries against > 12
Translate the following into a SQL query
WHich Team that has Points against of 43?
SELECT Team FROM table WHERE Points against = 43
Translate the following into a SQL query
WHich Tries has a Team of pau and Points against larger than 103?
SELECT MIN Tries for FROM table WHERE Team = pau AND Points against > 103
Translate the following into a SQL query
How many Points against has Tries for smaller than 14, and a Team of llanelli?
SELECT AVG Points against FROM table WHERE Tries for < 14 AND Team = llanelli
Translate the following into a SQL query
How many Tries against has a Try diff of –17 and Points for smaller than 80?
SELECT COUNT Tries against FROM table WHERE Try diff = –17 AND Points for < 80
Translate the following into a SQL query
Which player was the forward?
SELECT Player FROM table WHERE Position = forward
Translate the following into a SQL query
Which years in Orlando are featured with the center position?
SELECT Years in Orlando FROM table WHERE Position = center
Translate the following into a SQL query
Which position was in Orlando in 2000?
SELECT Position FROM table WHERE Years in Orlando = 2000
Translate the following into a SQL query
Who were the winners of the Women's Doubles in the years after 2009?
SELECT Women's doubles FROM table WHERE Year > 2009
Translate the following into a SQL query
Who were the Men's doubles of the years that had Kristína Ludíková as Women's singles after the year 2008?
SELECT Men's doubles FROM table WHERE Women's singles = kristína ludíková AND Year > 2008
Translate the following into a SQL query
What is the Name with Goals that are 135?
SELECT Name FROM table WHERE Goals = 135
Translate the following into a SQL query
Which American Labor candidate ran against Democratic candidate Robert F. Wagner?
SELECT American Labor ticket FROM table WHERE Democratic ticket = robert f. wagner
Translate the following into a SQL query
Which Socialist candidate ran against American Labor candidate Caroline O'Day?
SELECT Socialist ticket FROM table WHERE American Labor ticket = caroline o'day
Translate the following into a SQL query
Which Democrtic candidate ran against the Socialist candidate Edna Mitchell Blue?
SELECT Democratic ticket FROM table WHERE Socialist ticket = edna mitchell blue
Translate the following into a SQL query
Which American Labor candidate is running against the Socialist candidate Herman J. Hahn?
SELECT American Labor ticket FROM table WHERE Socialist ticket = herman j. hahn
Translate the following into a SQL query
Which Republican ran against the American Labor candidate Matthew J. Merritt?
SELECT Republican ticket FROM table WHERE American Labor ticket = matthew j. merritt
Translate the following into a SQL query
Which American Labor candidate ran against Republican Thomas E. Dewey?
SELECT American Labor ticket FROM table WHERE Republican ticket = thomas e. dewey
Translate the following into a SQL query
Who is the Opponent in the final after 1983 with an Outcome of runner-up?
SELECT Opponent in the final FROM table WHERE Outcome = runner-up AND Date > 1983
Translate the following into a SQL query
What Opponent in the final had a match with a Score in the final of 7–5, 6–2?
SELECT Opponent in the final FROM table WHERE Score in the final = 7–5, 6–2
Translate the following into a SQL query
What is the Championship with Vitas Gerulaitis as Opponent in the final in a match on Clay Surface?
SELECT Championship FROM table WHERE Surface = clay AND Opponent in the final = vitas gerulaitis
Translate the following into a SQL query
What is the sum of percentage of marine area with an area of territorial waters of 72,144 and exclusive economic zone area less than 996,439?
SELECT SUM Percentage of marine area (forEEZ) FROM table WHERE Area (km²) Territorial waters = 72,144 AND Area (km²) Exclusive Economic Zone < 996,439
Translate the following into a SQL query
What is the smallest percentage of marine area for Pacific Marine ecozone and percentage of total area greater than 3.1?
SELECT MIN Percentage of marine area (forEEZ) FROM table WHERE Ecozone = pacific marine AND Percentage of total area (forEEZ) > 3.1
Translate the following into a SQL query
How many values for percentage of marine area are for the Atlantic marine ecozone with an exclusive economic zone area less than 996,439?
SELECT COUNT Percentage of marine area (forEEZ) FROM table WHERE Ecozone = atlantic marine AND Area (km²) Exclusive Economic Zone < 996,439
Translate the following into a SQL query
What is the average percentage of total area when the percentage of marine area is more than 39.3 and territorial waters area is less than 2,788,349?
SELECT AVG Percentage of total area (forEEZ) FROM table WHERE Percentage of marine area (forEEZ) > 39.3 AND Area (km²) Territorial waters < 2,788,349
Translate the following into a SQL query
What is the smallest area of territorial waters with an exclusive economic zone area more than 704,849 and a percentage of total area greater than 6.8?
SELECT MIN Area (km²) Territorial waters FROM table WHERE Area (km²) Exclusive Economic Zone > 704,849 AND Percentage of total area (forEEZ) > 6.8
Translate the following into a SQL query
What is the team when alvin williams (6) has the high assists?
SELECT Team FROM table WHERE High assists = alvin williams (6)
Translate the following into a SQL query
What is the Record for a game less than 3 and the score was l 91–96 (ot)?
SELECT Record FROM table WHERE Game < 3 AND Score = l 91–96 (ot)
Translate the following into a SQL query
What is the Date when the high points went to Dell Curry (17)?
SELECT Date FROM table WHERE High points = dell curry (17)
Translate the following into a SQL query
What is the Team when antonio davis (8) had the high rebounds?
SELECT Team FROM table WHERE High rebounds = antonio davis (8)
Translate the following into a SQL query
What is the Tournament with a Date that is apr 16, 1967?
SELECT Tournament FROM table WHERE Date = apr 16, 1967
Translate the following into a SQL query
What is the Date with a Runner(s)-up that is jerry steelsmith?
SELECT Date FROM table WHERE Runner(s)-up = jerry steelsmith
Translate the following into a SQL query
What kind of Obama that has a Source of rasmussen reports?
SELECT Obama FROM table WHERE Source = rasmussen reports
Translate the following into a SQL query
Which Source has a Undecided of 2%?
SELECT Source FROM table WHERE Undecided = 2%
Translate the following into a SQL query
What kind of Obama has a Undecided of 1%?
SELECT Obama FROM table WHERE Undecided = 1%
Translate the following into a SQL query
When has a Source of surveyusa and a Obama of 54%?
SELECT Date FROM table WHERE Source = surveyusa AND Obama = 54%
Translate the following into a SQL query
When has a Source of rasmussen reports?
SELECT Date FROM table WHERE Source = rasmussen reports
Translate the following into a SQL query
Which Source has a Clinton of 39% and a Undecided of 7%?
SELECT Source FROM table WHERE Clinton = 39% AND Undecided = 7%
Translate the following into a SQL query
What is the Date of Birth with a Block that is larger than 342?
SELECT Date of Birth FROM table WHERE Block > 342
Translate the following into a SQL query
What is the number of positions that have 2012 ratings of 0.92?
SELECT COUNT Position FROM table WHERE 2012 = 0.92
Translate the following into a SQL query
What is the owner of the channel that has a 2012 rating of 5.42?
SELECT Owner FROM table WHERE 2012 = 5.42
Translate the following into a SQL query
What is the 2007 rating of the channel with a position of 6?
SELECT 2007 FROM table WHERE Position = 6
Translate the following into a SQL query
What is the channel with a 2011 rating of 8.5?
SELECT Channel FROM table WHERE 2011 = 8.5
Translate the following into a SQL query
What is ASTC Member, when State is Arkansas, when AAM Member is No, and when AAM Accredited is Yes?
SELECT ASTC Member FROM table WHERE State = arkansas AND AAM Member = no AND AAM Accredited = yes
Translate the following into a SQL query
What is City, when State is Florida, when AAM Member is No, and when AAM Accredited is No?
SELECT City FROM table WHERE State = florida AND AAM Member = no AND AAM Accredited = no
Translate the following into a SQL query
What is City, when ASTC Member is No, when State is California, and when AAM Member is Yes?
SELECT City FROM table WHERE ASTC Member = no AND State = california AND AAM Member = yes
Translate the following into a SQL query
What is State, when AAM Accredited is No, when ASTC Member is No, and when City is Tulsa?
SELECT State FROM table WHERE AAM Accredited = no AND ASTC Member = no AND City = tulsa
Translate the following into a SQL query
What is City, when State is California, when AAM Accredited is No, when ASTC Member is Yes, and when AAM Member is No?
SELECT City FROM table WHERE State = california AND AAM Accredited = no AND ASTC Member = yes AND AAM Member = no
Translate the following into a SQL query
What is AAM Member, when AAM Accredited is No, when State is California, when ASTC Member is Yes, and when City is Sacramento?
SELECT AAM Member FROM table WHERE AAM Accredited = no AND State = california AND ASTC Member = yes AND City = sacramento
Translate the following into a SQL query
Who were the runners-up when the individual winner was Tiger Woods?
SELECT Runners-up FROM table WHERE Individual = tiger woods
Translate the following into a SQL query
How many years was the individual winner from the United States was Tiger Woods?
SELECT COUNT Year FROM table WHERE Country = united states AND Individual = tiger woods
Translate the following into a SQL query
What is the earliest year that the tournament was played in Cape Town, South Africa?
SELECT MIN Year FROM table WHERE Location = cape town, south africa
Translate the following into a SQL query
What is the highest league for the league cup more than 1, and a FA cup of 1?
SELECT MAX League FROM table WHERE League Cup > 1 AND FA Cup = 1
Translate the following into a SQL query
Who is the Driver, when the Date is October 6?
SELECT Driver FROM table WHERE Date = october 6
Translate the following into a SQL query
What is the total number of Seasons, when the Engine is Cosworth, and when the Team is Kraco Racing?
SELECT COUNT Season FROM table WHERE Engine = cosworth AND Team = kraco racing
Translate the following into a SQL query
Who is the Driver, when the Engine is Chevrolet, and when the Date is October 3?
SELECT Driver FROM table WHERE Engine = chevrolet AND Date = october 3
Translate the following into a SQL query
What is the sum of Seasons, when the Team is Penske Racing, and when the Date is October 3?
SELECT SUM Season FROM table WHERE Team = penske racing AND Date = october 3
Translate the following into a SQL query
What was the Year to Open for the Dandeung Bridge?
SELECT COUNT Year to open FROM table WHERE Name = dandeung bridge
Translate the following into a SQL query
What is the Main span of the Qincaobei Bridge
SELECT Main span feet FROM table WHERE Name = qincaobei bridge
Translate the following into a SQL query
What is the Main span of the bridge from China with a Year to open of 2013 and Main span feet of 2,585?
SELECT Main span metres FROM table WHERE Year to open = 2013 AND Country = china AND Main span feet = 2,585
Translate the following into a SQL query
Which republican ticket has stanley h. fuld as the Democratic ticket?
SELECT Republican ticket FROM table WHERE Democratic ticket = stanley h. fuld
Translate the following into a SQL query
What is the liberal ticket that has judith white as the socialist workers?
SELECT Liberal ticket FROM table WHERE Socialist Workers ticket = judith white
Translate the following into a SQL query
What socialist workers ticket has malcolm wilson as the Republican ticket?
SELECT Socialist Workers ticket FROM table WHERE Republican ticket = malcolm wilson
Translate the following into a SQL query
Which office has kieran o'doherty as the conservative ticket?
SELECT Office FROM table WHERE Conservative ticket = kieran o'doherty
Translate the following into a SQL query
What office has (none) as the socialist labor ticket, and stanley h. fuld as the liberal ticket?
SELECT Office FROM table WHERE Socialist Labor ticket = (none) AND Liberal ticket = stanley h. fuld
Translate the following into a SQL query
If the call sign is w291ch what's the ERP W corresponding to that sign?
SELECT ERP W FROM table WHERE Call sign = w291ch
Translate the following into a SQL query
For the call sign w242at what's the city the license plate is registered to?
SELECT City of license FROM table WHERE Call sign = w242at
Translate the following into a SQL query
What's the Class for the city the license plate was issued in great barrington, massachusetts?
SELECT Class FROM table WHERE City of license = great barrington, massachusetts
Translate the following into a SQL query
How many gold have a bronze of 1, a rank smaller than 6, and a total less than 3?
SELECT SUM Gold FROM table WHERE Bronze = 1 AND Rank < 6 AND Total < 3
Translate the following into a SQL query
How many France bronze have a gold of more than 1 and a rank of 0?
SELECT SUM Bronze FROM table WHERE Gold > 1 AND Nation = france AND Rank < 1
Translate the following into a SQL query
How many gold have a silver of 1 and a bronze of 0?
SELECT SUM Gold FROM table WHERE Silver = 1 AND Bronze < 1
Translate the following into a SQL query
What is the Aircraft when Kabul was the location, unknown fatalities, and the tail number was ya-ban?
SELECT Aircraft FROM table WHERE Location = kabul AND Fatalities = unknown AND Tail number = ya-ban
Translate the following into a SQL query
What is the Fatalities when the tail number was unknown and in Kabul>
SELECT Fatalities FROM table WHERE Tail number = unknown AND Location = kabul
Translate the following into a SQL query
What is the location for the an-12b aircraft?
SELECT Location FROM table WHERE Aircraft = an-12b
Translate the following into a SQL query
What location had 25/25 fatalities?
SELECT Location FROM table WHERE Fatalities = 25/25
Translate the following into a SQL query
What tail number was on the an-26, with 25/25 fatalities?
SELECT Tail number FROM table WHERE Aircraft = an-26 AND Fatalities = 25/25
Translate the following into a SQL query
What type of aircraft was the plane with a tail number of ya-bao?
SELECT Aircraft FROM table WHERE Tail number = ya-bao
Translate the following into a SQL query
What is the total number of Points from a Match that is larger than 18?
SELECT COUNT Points FROM table WHERE Match > 18
Translate the following into a SQL query
In what Season was the Series Formula Renault 3.5 series with less than 7 Races?
SELECT SUM Season FROM table WHERE Series = formula renault 3.5 series AND Races < 7
Translate the following into a SQL query
What was the Series in 2009?
SELECT Series FROM table WHERE Season = 2009
Translate the following into a SQL query
How many Wins in the Year with more than 16 Races?
SELECT Wins FROM table WHERE Races > 16
Translate the following into a SQL query
In what Season were then less than 3 Races with less than 1 Win?
SELECT AVG Season FROM table WHERE Races < 3 AND Wins < 1
Translate the following into a SQL query
Which 1st leg has a Team #1 of ummc ekaterinburg?
SELECT 1st leg FROM table WHERE Team #1 = ummc ekaterinburg
Translate the following into a SQL query
Which Team #2 has a 2nd leg of 79 - 74 (ot)?
SELECT Team #2 FROM table WHERE 2nd leg = 79 - 74 (ot)
Translate the following into a SQL query
Which Team #2 has a 1st leg of 70 - 44?
SELECT Team #2 FROM table WHERE 1st leg = 70 - 44
Translate the following into a SQL query
Which Team #2 has a Team #1 of gambrinus sika brno?
SELECT Team #2 FROM table WHERE Team #1 = gambrinus sika brno
Translate the following into a SQL query
What is the Goal number in Råsunda, Stockholm with a Result of 2–2?
SELECT AVG Goal FROM table WHERE Result = 2–2 AND Venue = råsunda, stockholm
Translate the following into a SQL query
What is the Result of Goal number 3?
SELECT Result FROM table WHERE Goal = 3
Translate the following into a SQL query
On what day was a game played at Reese Smith Field, with a score of 4-3?
SELECT Date FROM table WHERE Score = 4-3 AND Site/Stadium = reese smith field
Translate the following into a SQL query
What was the score for the game played on May 10 at Alex Box Stadium?
SELECT Score FROM table WHERE Site/Stadium = alex box stadium AND Date = may 10
Translate the following into a SQL query
What was the score for the game played at Sarge Frye Field?
SELECT Score FROM table WHERE Site/Stadium = sarge frye field
Translate the following into a SQL query
On what date was a game played, which left the team with a record of 5-7?
SELECT Date FROM table WHERE Record = 5-7
Translate the following into a SQL query
What was the score of the game played at Harmon Stadium on February 24?
SELECT Score FROM table WHERE Site/Stadium = harmon stadium AND Date = february 24
Translate the following into a SQL query
Where was the game on May 9 played?
SELECT Site/Stadium FROM table WHERE Date = may 9
Translate the following into a SQL query
What is the greatest position when the points are less than 21, and the played greater than 14?
SELECT MAX Position FROM table WHERE Points < 21 AND Played > 14
Translate the following into a SQL query
What is the fewest lost with a difference of 9 and a less than 3 drawn?
SELECT MIN Lost FROM table WHERE Difference = 9 AND Drawn < 3
Translate the following into a SQL query
Team Estudantes Paulista with a position less than 4 has what average against?
SELECT AVG Against FROM table WHERE Team = estudantes paulista AND Position < 4
Translate the following into a SQL query
What was the margin of victory on Apr 8, 1979?
SELECT Margin of victory FROM table WHERE Date = apr 8, 1979