instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Which average Long has a Gain smaller than 16, and a Loss smaller than 6?
SELECT AVG Long FROM table WHERE Gain < 16 AND Loss < 6
Translate the following into a SQL query
Which Gain is the lowest one that has a Loss larger than 2, and an Avg/G larger than -6, and a Name of sheehan, tyler, and a Long larger than 11?
SELECT MIN Gain FROM table WHERE Loss > 2 AND Avg/G > -6 AND Name = sheehan, tyler AND Long > 11
Translate the following into a SQL query
Which Avg/G is the lowest one that has a Long larger than 8, and a Loss smaller than 34, and a Gain larger than 16, and a Name of bullock, chris?
SELECT MIN Avg/G FROM table WHERE Long > 8 AND Loss < 34 AND Gain > 16 AND Name = bullock, chris
Translate the following into a SQL query
Which Loss has a Name of bullock, chris, and a Long smaller than 36?
SELECT SUM Loss FROM table WHERE Name = bullock, chris AND Long < 36
Translate the following into a SQL query
How much Long has a Loss larger than 2, and a Gain of 157, and an Avg/G smaller than 129?
SELECT SUM Long FROM table WHERE Loss > 2 AND Gain = 157 AND Avg/G < 129
Translate the following into a SQL query
What is the fewest number of places for a skater from Norway with fewer than 1524.9 points?
SELECT MIN Places FROM table WHERE Nation = norway AND Points < 1524.9
Translate the following into a SQL query
What home has Philadelphia as the visitor, and december 4 as the date?
SELECT Home FROM table WHERE Visitor = philadelphia AND Date = december 4
Translate the following into a SQL query
What record has a decision of parent, Philadelphia as the home, with december 12 as the date?
SELECT Record FROM table WHERE Decision = parent AND Home = philadelphia AND Date = december 12
Translate the following into a SQL query
Which Tournament has a Score of 6–4, 6–2?
SELECT Tournament FROM table WHERE Score = 6–4, 6–2
Translate the following into a SQL query
Which Score has an Opponent in the final of mehdi tahiri?
SELECT Score FROM table WHERE Opponent in the final = mehdi tahiri
Translate the following into a SQL query
Which Date has a Score of 6–3, 7–6?
SELECT SUM Date FROM table WHERE Score = 6–3, 7–6
Translate the following into a SQL query
Which Date has a Score of 7–6(3), 4–6, 6–2?
SELECT SUM Date FROM table WHERE Score = 7–6(3), 4–6, 6–2
Translate the following into a SQL query
Which Surface has a Tournament of olbia?
SELECT Surface FROM table WHERE Tournament = olbia
Translate the following into a SQL query
What was the attendance at the week 7 game?
SELECT Attendance FROM table WHERE Week = 7
Translate the following into a SQL query
What was the result of the game after week 3 against the New York Giants?
SELECT Result FROM table WHERE Week > 3 AND Opponent = new york giants
Translate the following into a SQL query
Who was the opponent at the week 6 game?
SELECT Opponent FROM table WHERE Week = 6
Translate the following into a SQL query
What is the lowest loss that Jarius Wright has had where he also has had a gain bigger than 1.
SELECT MIN Loss FROM table WHERE Name = jarius wright AND Gain > 1
Translate the following into a SQL query
How much was the first place prize for the American golf classic located in Ohio?
SELECT 1st prize ( $ ) FROM table WHERE Location = ohio AND Tournament = american golf classic
Translate the following into a SQL query
What date was the Monsanto open located in Florida?
SELECT Date FROM table WHERE Location = florida AND Tournament = monsanto open
Translate the following into a SQL query
What was the score of Johnny Miller (7)?
SELECT Score FROM table WHERE Winner = johnny miller (7)
Translate the following into a SQL query
What is the total number of years that have divisions greater than 4?
SELECT COUNT Year FROM table WHERE Division > 4
Translate the following into a SQL query
What is the highest division for years earlier than 2011?
SELECT MAX Division FROM table WHERE Year < 2011
Translate the following into a SQL query
In what Week were there less than 30,348 in Attendance with a Result of W 37-21?
SELECT SUM Week FROM table WHERE Attendance < 30,348 AND Result = w 37-21
Translate the following into a SQL query
What is the Week number on November 30, 1958 with more than 33,240 in Attendance?
SELECT COUNT Week FROM table WHERE Date = november 30, 1958 AND Attendance > 33,240
Translate the following into a SQL query
What was the Result on November 9, 1958?
SELECT Result FROM table WHERE Date = november 9, 1958
Translate the following into a SQL query
What was the Attendance on Week 8?
SELECT AVG Attendance FROM table WHERE Week = 8
Translate the following into a SQL query
Which season did not qualify for UEFA competitions?
SELECT Season FROM table WHERE Against = did not qualify for uefa competitions
Translate the following into a SQL query
How many games were lost that had goals against of 5?
SELECT Lost FROM table WHERE Goals against = 5
Translate the following into a SQL query
How many draws were there with goals against that did not qualify for UEFA competitions?
SELECT Drew FROM table WHERE Goals against = did not qualify for uefa competitions
Translate the following into a SQL query
Which competition did not qualify for UEFA competitions in the 1970-71 season?
SELECT Competition FROM table WHERE Lost = did not qualify for uefa competitions AND Season = 1970-71
Translate the following into a SQL query
What is the attendance in texas stadium?
SELECT SUM Attendance FROM table WHERE Venue = texas stadium
Translate the following into a SQL query
What is the home team score for the team that has a home field of the Telstra Dome?
SELECT Home team score FROM table WHERE Ground = telstra dome
Translate the following into a SQL query
What is the date for the home team score of 6.5 (41)?
SELECT Date FROM table WHERE Home team score = 6.5 (41)
Translate the following into a SQL query
Which home team had an away team of the Brisbane Lions?
SELECT Home team FROM table WHERE Away team = brisbane lions
Translate the following into a SQL query
What is the report for the team with a home ground of MCG and a home team score of 6.5 (41)?
SELECT Report FROM table WHERE Ground = mcg AND Home team score = 6.5 (41)
Translate the following into a SQL query
What was the sensor with a resolution of 355x288 for a Naturalpoint Trackir 3?
SELECT Sensor FROM table WHERE Sensor resolution = 355x288 AND Camera = naturalpoint trackir 3
Translate the following into a SQL query
What was the sensor resolution with a minimal CPU usage for a naturalpoint trackir 3 pro?
SELECT Sensor resolution FROM table WHERE CPU usage = minimal AND Camera = naturalpoint trackir 3 pro
Translate the following into a SQL query
What was the output with no IR LEDs?
SELECT Output FROM table WHERE IR LEDs = no
Translate the following into a SQL query
What sensor has a resolution of 640x480 with small CPU usage, jpeg compressed output and a camera of sony playstation eyetoy?
SELECT Sensor FROM table WHERE Sensor resolution = 640x480 AND CPU usage = small AND Output = jpeg compressed AND Camera = sony playstation eyetoy
Translate the following into a SQL query
What is the max speed of the unit with an 8+4 quantity built before 1971?
SELECT SUM Max Speed (km/h) FROM table WHERE Quantity built = 8+4 AND Year built < 1971
Translate the following into a SQL query
What is the numbers of the thn unit with a power greater than 220?
SELECT Numbers FROM table WHERE Power (horsepower) > 220 AND Type = thn
Translate the following into a SQL query
What is the power of the unit built after 1995?
SELECT SUM Power (horsepower) FROM table WHERE Year built > 1995
Translate the following into a SQL query
Week larger than 6, and a Date of november 22, 1959 had what result?
SELECT Result FROM table WHERE Week > 6 AND Date = november 22, 1959
Translate the following into a SQL query
Result of w 21–7 had what average week?
SELECT AVG Week FROM table WHERE Result = w 21–7
Translate the following into a SQL query
Date of november 29, 1959 had what lowest attendance?
SELECT MIN Attendance FROM table WHERE Date = november 29, 1959
Translate the following into a SQL query
Week that has a Date of december 5, 1959 had what week?
SELECT Week FROM table WHERE Date = december 5, 1959
Translate the following into a SQL query
Which Game has an Opponent of @ carolina hurricanes?
SELECT SUM Game FROM table WHERE Opponent = @ carolina hurricanes
Translate the following into a SQL query
How many games have a November of 10?
SELECT COUNT Game FROM table WHERE November = 10
Translate the following into a SQL query
Which Game has a November of 22?
SELECT SUM Game FROM table WHERE November = 22
Translate the following into a SQL query
What is the mean year of marriage when her age was more than 19 and his age was 30?
SELECT AVG Year of Marriage FROM table WHERE Her Age > 19 AND His Age = 30
Translate the following into a SQL query
What is the lowest figure for her age when the year of marriage is before 1853, the number of children is less than 8, and the bride was Eliza Maria Partridge?
SELECT MIN Her Age FROM table WHERE Year of Marriage < 1853 AND # of Children < 8 AND Name = eliza maria partridge
Translate the following into a SQL query
What is the total number of her age figures where his age is less than 33, the bride was diontha walker, and the number of children was less than 0?
SELECT SUM Her Age FROM table WHERE His Age < 33 AND Name = diontha walker AND # of Children < 0
Translate the following into a SQL query
How much Lost has an Against larger than 19, and a Drawn smaller than 1?
SELECT SUM Lost FROM table WHERE Against > 19 AND Drawn < 1
Translate the following into a SQL query
Which Played has a Lost of 3, and an Against of 23?
SELECT AVG Played FROM table WHERE Lost = 3 AND Against = 23
Translate the following into a SQL query
Which Played is the highest one that has an Against smaller than 18, and Points smaller than 10?
SELECT MAX Played FROM table WHERE Against < 18 AND Points < 10
Translate the following into a SQL query
Which Against is the highest one that has a Drawn larger than 1, and a Team of corinthians, and a Played smaller than 7?
SELECT MAX Against FROM table WHERE Drawn > 1 AND Team = corinthians AND Played < 7
Translate the following into a SQL query
What opponent has october less than 20, and 8 for points?
SELECT Opponent FROM table WHERE October < 20 AND Points = 8
Translate the following into a SQL query
What position does Drew Callander play?
SELECT Position FROM table WHERE Player = drew callander
Translate the following into a SQL query
What round did Ray Kurpis play?
SELECT Round FROM table WHERE Player = ray kurpis
Translate the following into a SQL query
Which Built by has a Name of northern jaeger?
SELECT Built by FROM table WHERE Name = northern jaeger
Translate the following into a SQL query
How many Horsepowers have a Year smaller than 1974, and a Tonnage of 4437?
SELECT SUM Horsepowers FROM table WHERE Year < 1974 AND Tonnage = 4437
Translate the following into a SQL query
When was the 2014 fifa world cup qualification?
SELECT Date FROM table WHERE Competition = 2014 fifa world cup qualification
Translate the following into a SQL query
When was the date of an event at Tokyo venue?
SELECT Date FROM table WHERE Venue = tokyo
Translate the following into a SQL query
What city did Yugoslavia play against Poland in?
SELECT City FROM table WHERE Opponent = poland
Translate the following into a SQL query
What day did Yugoslavia play Luxembourg?
SELECT Date FROM table WHERE Opponent = luxembourg
Translate the following into a SQL query
What type of game was played in Ljubljana?
SELECT Type of game FROM table WHERE City = ljubljana
Translate the following into a SQL query
What's the result of the game played in Belgrade?
SELECT ResultsΒΉ FROM table WHERE City = belgrade
Translate the following into a SQL query
What was the score on March 23?
SELECT Score FROM table WHERE Date = march 23
Translate the following into a SQL query
When the Vancouver Canucks were visiting, what was the record when the score was 4-2?
SELECT Record FROM table WHERE Score = 4-2 AND Visitor = vancouver canucks
Translate the following into a SQL query
Which Partner has a Score of 6–7, 7–6, 6–7?
SELECT Partner FROM table WHERE Score = 6–7, 7–6, 6–7
Translate the following into a SQL query
Which Score has a Date of 13 april 1997?
SELECT Score FROM table WHERE Date = 13 april 1997
Translate the following into a SQL query
Which Partner has a Score of 7–6, 6–3?
SELECT Partner FROM table WHERE Score = 7–6, 6–3
Translate the following into a SQL query
Which Date has a Tournament of bmw open?
SELECT Date FROM table WHERE Tournament = bmw open
Translate the following into a SQL query
Which Partner has a Tournament of catella swedish open?
SELECT Partner FROM table WHERE Tournament = catella swedish open
Translate the following into a SQL query
Which Date has a Surface of clay, and a Score of 6–3, 5–7, 2–6?
SELECT Date FROM table WHERE Surface = clay AND Score = 6–3, 5–7, 2–6
Translate the following into a SQL query
Who was the winner of the tre valli varesine race?
SELECT Winner FROM table WHERE Race Name = tre valli varesine
Translate the following into a SQL query
What is the date of the omloop van de vlaamse scheldeboorden race with a UCI rating of 1.1?
SELECT Date FROM table WHERE UCI Rating = 1.1 AND Race Name = omloop van de vlaamse scheldeboorden
Translate the following into a SQL query
What is the date of the gp cittΓ  di camaiore race?
SELECT Date FROM table WHERE Race Name = gp cittΓ  di camaiore
Translate the following into a SQL query
What is the UCI rating of the race in Italy with the progetto ciclismo alplast team?
SELECT UCI Rating FROM table WHERE Location = italy AND Team = progetto ciclismo alplast
Translate the following into a SQL query
What is the date of the game being played at Schaeffer Stadium?
SELECT Date FROM table WHERE Game Site = schaeffer stadium
Translate the following into a SQL query
Which Points have a Year larger than 1966, and Wins larger than 1?
SELECT AVG Points FROM table WHERE Year > 1966 AND Wins > 1
Translate the following into a SQL query
Which Year is the lowest one that has Wins smaller than 0?
SELECT MIN Year FROM table WHERE Wins < 0
Translate the following into a SQL query
Which Points have Wins larger than 1?
SELECT AVG Points FROM table WHERE Wins > 1
Translate the following into a SQL query
Which Wins have a Year of 1963, and a Class of 50cc?
SELECT AVG Wins FROM table WHERE Year = 1963 AND Class = 50cc
Translate the following into a SQL query
How many overall WC ponts (rank) did Anders Jacobsen get when his rank was smaller than 3?
SELECT Overall WC points (Rank) FROM table WHERE Rank < 3 AND Name = anders jacobsen
Translate the following into a SQL query
Who had the highest rank with a 1st (m) of 129 and less than 255.6 points?
SELECT MAX Rank FROM table WHERE 1st (m) = 129 AND Points < 255.6
Translate the following into a SQL query
Who had the lowest 1st (m), ranked lower than 8, with an overall WC points (rank) of 369 (16) with more than 258.2 points?
SELECT MIN 1st (m) FROM table WHERE Rank < 8 AND Overall WC points (Rank) = 369 (16) AND Points > 258.2
Translate the following into a SQL query
What is the player from Australia's rank with more than 16 wins?
SELECT COUNT Rank FROM table WHERE Wins > 16 AND Country = australia
Translate the following into a SQL query
What is the lowest rank of a player with earnings under $11,936,443 and more than 16 wins?
SELECT MIN Rank FROM table WHERE Earnings ( $ ) < 11,936,443 AND Wins > 16
Translate the following into a SQL query
What is the highest earnings of a player with more than 19 wins?
SELECT MAX Earnings ( $ ) FROM table WHERE Wins > 19
Translate the following into a SQL query
Which average Opened has a Manufacturer of vekoma?
SELECT AVG Opened FROM table WHERE Manufacturer = vekoma
Translate the following into a SQL query
Which Opened is the highest one that has a Themed Area of aerial park, and a Manufacturer of zamperla?
SELECT MAX Opened FROM table WHERE Themed Area = aerial park AND Manufacturer = zamperla
Translate the following into a SQL query
Which Themed Area has a Name of troublesome trucks runaway coaster?
SELECT Themed Area FROM table WHERE Name = troublesome trucks runaway coaster
Translate the following into a SQL query
Which Manufacturer has a Style of steel sit down, and an Opened larger than 2008?
SELECT Manufacturer FROM table WHERE Style = steel sit down AND Opened > 2008
Translate the following into a SQL query
What position has a pick less than 25 for the university of california?
SELECT Position FROM table WHERE Pick < 25 AND School = university of california
Translate the following into a SQL query
What is the pick number for tulane university?
SELECT SUM Pick FROM table WHERE School = tulane university
Translate the following into a SQL query
What is the pick number for the kansas city royals?
SELECT SUM Pick FROM table WHERE Team = kansas city royals
Translate the following into a SQL query
What is the average Pick for the Pasco, Wa school?
SELECT AVG Pick FROM table WHERE School = pasco, wa
Translate the following into a SQL query
What Label released a CD single in 1993?
SELECT Label FROM table WHERE Format = cd single AND Date = 1993
Translate the following into a SQL query
Where was home with a record of 7–5–2?
SELECT Home FROM table WHERE Record = 7–5–2