instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
How many values for a win by 2 or more goals correspond to a difference of 2, more than 9 points, and the America-RJ team when more than 7 are played?
SELECT COUNT Won by 2 or more goals difference FROM table WHERE Difference = 2 AND Points > 9 AND Team = america-rj AND Played > 7
Translate the following into a SQL query
What is the average total of the census after 1971 with 10,412 (32.88%) Serbs?
SELECT AVG total FROM table WHERE Year of census > 1971 AND Serbs = 10,412 (32.88%)
Translate the following into a SQL query
what is the school that hosts jim goodman
SELECT School/Club Team FROM table WHERE Player = jim goodman
Translate the following into a SQL query
Which Surface has a Date of january 2, 2006?
SELECT Surface FROM table WHERE Date = january 2, 2006
Translate the following into a SQL query
Which tournament happened on september 25, 2006?
SELECT Tournament FROM table WHERE Date = september 25, 2006
Translate the following into a SQL query
When did joão souza play?
SELECT Date FROM table WHERE Opponen = joão souza
Translate the following into a SQL query
Which Surface has a Score of 7–5, 6–4?
SELECT Surface FROM table WHERE Score = 7–5, 6–4
Translate the following into a SQL query
What is the highest NFL Draft that has jeff robinson as the player, with an overall pick less than 98?
SELECT MAX NFL Draft FROM table WHERE Player = jeff robinson AND Overall Pick < 98
Translate the following into a SQL query
What position has 1958 as the NFL Draft, and jerry kramer as the player?
SELECT Position FROM table WHERE NFL Draft = 1958 AND Player = jerry kramer
Translate the following into a SQL query
What is the highest overall pick that has c as the position, with an NFL Draft greater than 1977?
SELECT MAX Overall Pick FROM table WHERE Position = c AND NFL Draft > 1977
Translate the following into a SQL query
What was the score at Spartan Stadium when San Jose was the Home team?
SELECT Score FROM table WHERE Home Team = san jose AND Venue = spartan stadium
Translate the following into a SQL query
Where was the game on September 11, 2004?
SELECT Venue FROM table WHERE Date = september 11, 2004
Translate the following into a SQL query
Who was the home team on September 20, 1998 at Spartan Stadium?
SELECT Home Team FROM table WHERE Venue = spartan stadium AND Date = september 20, 1998
Translate the following into a SQL query
What method has a round less than 3, and 3:36 as the time?
SELECT Method FROM table WHERE Round < 3 AND Time = 3:36
Translate the following into a SQL query
What method has randy couture as the opponent?
SELECT Method FROM table WHERE Opponent = randy couture
Translate the following into a SQL query
What is the median household income where the per capita is $28,789?
SELECT Median household income FROM table WHERE Per capita income = $28,789
Translate the following into a SQL query
What is the median income for a family whose per capita income is $18,296?
SELECT Median family income FROM table WHERE Per capita income = $18,296
Translate the following into a SQL query
What is the resolution of the network Canal de las Estrellas?
SELECT Resolution FROM table WHERE Network = canal de las estrellas
Translate the following into a SQL query
What is the resolution of the network Carismatv?
SELECT Resolution FROM table WHERE Network = carismatv
Translate the following into a SQL query
Which dish belongs to the network that has the official website of ksat.com?
SELECT Dish FROM table WHERE Official Website = ksat.com
Translate the following into a SQL query
In which city is the network latv licensed?
SELECT City of License FROM table WHERE Network = latv
Translate the following into a SQL query
In which city is the network with the callsign kgns-dt3 licensed?
SELECT City of License FROM table WHERE Callsign = kgns-dt3
Translate the following into a SQL query
How many in the introduced section had Fokker as a manufacturer, a quantity of 5, and retired later than 1999?
SELECT SUM Introduced FROM table WHERE Manufacturer = fokker AND Quantity = 5 AND Retired > 1999
Translate the following into a SQL query
What is the total number of quantity when the introductory year was 1984?
SELECT SUM Quantity FROM table WHERE Introduced = 1984
Translate the following into a SQL query
How many in the introduced segment retired later than 1994 and had Fokker as a manufacturer?
SELECT COUNT Introduced FROM table WHERE Retired > 1994 AND Manufacturer = fokker
Translate the following into a SQL query
How many in the quantity section had Fokker as a manufacturer and retired later than 1999?
SELECT COUNT Quantity FROM table WHERE Manufacturer = fokker AND Retired > 1999
Translate the following into a SQL query
Which Championship has a Scoreboard that is 22-14?
SELECT Champion FROM table WHERE Scoreboard = 22-14
Translate the following into a SQL query
What year was the building with a top 3 rank and a height of 274 (84) ft (m) completed?
SELECT MAX Year Completed FROM table WHERE Rank < 3 AND Height ft (m) = 274 (84)
Translate the following into a SQL query
How many floors are in the 274 (84) ft (m) building that is ranked number 1?
SELECT AVG Floors (Stories) FROM table WHERE Height ft (m) = 274 (84) AND Rank > 1
Translate the following into a SQL query
Which is the highest ranked building with more than 15 floors?
SELECT MAX Rank FROM table WHERE Floors (Stories) > 15
Translate the following into a SQL query
What is the highest points scored for the team with a position larger than 5, who had less than 4 wins and more than 8 draws?
SELECT MAX Scored FROM table WHERE Position > 5 AND Wins < 4 AND Draws > 8
Translate the following into a SQL query
What is the average number conceded for hte team that had less than 19 points, played more than 18 games and had a position less than 10?
SELECT AVG Conceded FROM table WHERE Points < 19 AND Position < 10 AND Played > 18
Translate the following into a SQL query
What was the sum of the draws for the team that had 11 wins, less than 38 points, and a position smaller than 4?
SELECT SUM Draws FROM table WHERE Position < 4 AND Wins = 11 AND Points < 38
Translate the following into a SQL query
What was the lowest number of wins for the team that scored more than 14 points and had a position of 7?
SELECT MIN Wins FROM table WHERE Position = 7 AND Scored > 14
Translate the following into a SQL query
What is the total number scored for the team that had 19 points and a position larger than 4?
SELECT COUNT Scored FROM table WHERE Position > 4 AND Points = 19
Translate the following into a SQL query
What is the lowest number conceded for the team that had less than 8 wins, scored 21, and had less than 23 points?
SELECT MIN Conceded FROM table WHERE Wins < 8 AND Scored = 21 AND Points < 23
Translate the following into a SQL query
Which Date has a Result of l 14–13?
SELECT Date FROM table WHERE Result = l 14–13
Translate the following into a SQL query
Which Date has a Result of w 13–6?
SELECT Date FROM table WHERE Result = w 13–6
Translate the following into a SQL query
What is the Result of Week larger than 3 on 1971-11-07?
SELECT Result FROM table WHERE Week > 3 AND Date = 1971-11-07
Translate the following into a SQL query
What is the pos with more than 1 tier during Pokal Slovenije 1. round?
SELECT Pos. FROM table WHERE Tier > 1 AND Cup Competitions = pokal slovenije 1. round
Translate the following into a SQL query
What are the exact Cubic inches of the Metric value of 104.955 L?
SELECT Cubic inches (exact) FROM table WHERE Metric value = 104.955 l
Translate the following into a SQL query
What is the Translation of the US Customary value 0.263 pt?
SELECT Translation FROM table WHERE US Customary = 0.263 pt
Translate the following into a SQL query
What is the Metric value of Russian че́тверть?
SELECT Metric value FROM table WHERE Russian = че́тверть
Translate the following into a SQL query
What are the exact Cubic inches of the Unit of kruzhka?
SELECT Cubic inches (exact) FROM table WHERE Unit = kruzhka
Translate the following into a SQL query
Which Zero Fighter has a count of 10?
SELECT ID code of his Zero Fighter FROM table WHERE Count = 10
Translate the following into a SQL query
On which day were the subtotal hours 9:30?
SELECT Date FROM table WHERE Sub-total = 9:30
Translate the following into a SQL query
What is the count for the Zero Fighter with hours of 2:00?
SELECT Count FROM table WHERE Flight hours = 2:00
Translate the following into a SQL query
Which record has Katsuomi Inagaki as an opponent?
SELECT Record FROM table WHERE Opponent = katsuomi inagaki
Translate the following into a SQL query
Which method has a 1:46 time?
SELECT Method FROM table WHERE Time = 1:46
Translate the following into a SQL query
What is Henri Crockett's highest overall with more than 3 picks?
SELECT MAX Overall FROM table WHERE Pick # > 3 AND Name = henri crockett
Translate the following into a SQL query
Which college has fewer than 2 rounds?
SELECT College FROM table WHERE Round < 2
Translate the following into a SQL query
What are the total number of picks for a guard with fewer than 6 rounds?
SELECT COUNT Pick # FROM table WHERE Position = guard AND Round < 6
Translate the following into a SQL query
What is the lowest overall for a quarterback with fewer than 7 rounds?
SELECT MIN Overall FROM table WHERE Position = quarterback AND Round < 7
Translate the following into a SQL query
What Playoffs had an Open Cup of 3rd round?
SELECT Playoffs FROM table WHERE Open Cup = 3rd round
Translate the following into a SQL query
What was the D segment for episode 60?
SELECT Segment D FROM table WHERE Episode = 60
Translate the following into a SQL query
What was the B segmint for Netlix S03E01?
SELECT Segment B FROM table WHERE Netflix = s03e01
Translate the following into a SQL query
What was the D segment for episode 60?
SELECT Segment D FROM table WHERE Episode = 60
Translate the following into a SQL query
What racing club team made supercopa 1996?
SELECT Supercopa 1996 FROM table WHERE Team = racing club
Translate the following into a SQL query
Name the # country for new palestine
SELECT # / County FROM table WHERE School = new palestine
Translate the following into a SQL query
Name the number of enrollment for county of 48 madison
SELECT COUNT Enrollment FROM table WHERE # / County = 48 madison
Translate the following into a SQL query
Name the IHSAA class with county 18 delaware and tigers mascot
SELECT IHSAA Class FROM table WHERE # / County = 18 delaware AND Mascot = tigers
Translate the following into a SQL query
Name the mascot for shelbyville
SELECT Mascot FROM table WHERE School = shelbyville
Translate the following into a SQL query
What's the capacity that has the highest greater than 1,763 and is at Hampden Park?
SELECT MIN Capacity FROM table WHERE Stadium = hampden park AND Highest > 1,763
Translate the following into a SQL query
What's the highest with a capacity of greater than 4,000 and an average of 615?
SELECT MAX Highest FROM table WHERE Average = 615 AND Capacity > 4,000
Translate the following into a SQL query
At Balmoor Stadium, what's the total average having a greater than 400 lowest?
SELECT COUNT Average FROM table WHERE Stadium = balmoor AND Lowest > 400
Translate the following into a SQL query
What was the score of Tommy Aaron (2) when the tournament was in georgia?
SELECT Score FROM table WHERE Location = georgia AND Winner = tommy aaron (2)
Translate the following into a SQL query
What was the tournament that had a first prize of $12,600?
SELECT Tournament FROM table WHERE 1st prize ( $ ) = 12,600
Translate the following into a SQL query
What was the score of Ken Still (3) when he won first place?
SELECT Score FROM table WHERE Winner = ken still (3)
Translate the following into a SQL query
Who beat Chic by 8fm?
SELECT Beat by FROM table WHERE Distance = 8fm
Translate the following into a SQL query
What was the placing of the race in which Chic won by 8gf?
SELECT Placing FROM table WHERE Beat by = won AND Distance = 8gf
Translate the following into a SQL query
What was the date in which Chic won at CHS?
SELECT Date FROM table WHERE Beat by = won AND Location = chs
Translate the following into a SQL query
Who is the opponent of game 54, which was in Los Angeles and was before day 18?
SELECT Opponent FROM table WHERE Location/attendance = los angeles AND Date < 18 AND Game = 54
Translate the following into a SQL query
What is the earliest date of the game with a score of 2-2?
SELECT MIN Date FROM table WHERE Score = 2-2
Translate the following into a SQL query
What is the average date of the game with the Detroit Red Wings as the opponent?
SELECT AVG Date FROM table WHERE Opponent = detroit red wings
Translate the following into a SQL query
What is the date of the game with a score of 4-2?
SELECT Date FROM table WHERE Score = 4-2
Translate the following into a SQL query
What was the loss of the game that had a record of 3-3?
SELECT Loss FROM table WHERE Record = 3-3
Translate the following into a SQL query
What was the score of the game with a loss of Mercedes (0-1)?
SELECT Score FROM table WHERE Loss = mercedes (0-1)
Translate the following into a SQL query
Who was the opponent at the game with a loss of Weaver (1-2)?
SELECT Opponent FROM table WHERE Loss = weaver (1-2)
Translate the following into a SQL query
What's the Remixed by with a Version of Strings for Soul's Mix?
SELECT Remixed by FROM table WHERE Version = strings for soul's mix
Translate the following into a SQL query
What the highest Year with a Remixed by Laurent Boutonnat?
SELECT MAX Year FROM table WHERE Remixed by = laurent boutonnat
Translate the following into a SQL query
What's the total Year with a Length of 4:45 an has an Album of Les Mots?
SELECT SUM Year FROM table WHERE Length = 4:45 AND Album = les mots
Translate the following into a SQL query
What's the Length with the Version of Album Version?
SELECT Length FROM table WHERE Version = album version
Translate the following into a SQL query
What Album has a Year that's larger than 2001?
SELECT Album FROM table WHERE Year > 2001
Translate the following into a SQL query
What is the lowest position for bruce taylor?
SELECT MIN Position FROM table WHERE Pilot = bruce taylor
Translate the following into a SQL query
Which pilot has a position above 5 and a speed of 118.8km/h?
SELECT Pilot FROM table WHERE Position > 5 AND Speed = 118.8km/h
Translate the following into a SQL query
What is Erwin Sommer's average position?
SELECT AVG Position FROM table WHERE Pilot = erwin sommer
Translate the following into a SQL query
What is the highest rank of the day with a gross of $38,916 and more than 6 screens?
SELECT MAX Rank FROM table WHERE Gross = $38,916 AND Screens > 6
Translate the following into a SQL query
What is the gross in the United Kingdom?
SELECT Gross FROM table WHERE Territory = united kingdom
Translate the following into a SQL query
What is the territory with 17 screens?
SELECT Territory FROM table WHERE Screens = 17
Translate the following into a SQL query
What is the lowest number of Golds that has Participants smaller than 14, and Rank of 1, and Total larger than 1?
SELECT MIN Gold FROM table WHERE Participants < 14 AND Rank = 1 AND Total > 1
Translate the following into a SQL query
On what date was the record 39–54?
SELECT Date FROM table WHERE Record = 39–54
Translate the following into a SQL query
What was the record on July 1?
SELECT Record FROM table WHERE Date = july 1
Translate the following into a SQL query
How many total matches with less than 1 win and a position higher than 8?
SELECT SUM Matches FROM table WHERE Wins < 1 AND Pos. > 8
Translate the following into a SQL query
Which Liberal leader has Seats won smaller than 100, and Seats in House of 215, and a % of popular vote of 43.1%?
SELECT Liberal leader FROM table WHERE Seats won < 100 AND Seats in House = 215 AND % of popular vote = 43.1%
Translate the following into a SQL query
Which Popular vote has a Liberal leader of king, and Seats won larger than 116, and a Year of 1921?
SELECT AVG Popular vote FROM table WHERE Liberal leader = king AND Seats won > 116 AND Year = 1921
Translate the following into a SQL query
How many Liberal candidates have a Liberal leader of pearson, and a % of popular vote of 40.2%, and Seats won smaller than 131?
SELECT COUNT Liberal candidates FROM table WHERE Liberal leader = pearson AND % of popular vote = 40.2% AND Seats won < 131
Translate the following into a SQL query
Which % of popular vote has a Liberal leader of laurier, and a Popular vote larger than 521,041, and Liberal candidates of 213, and Seats in House smaller than 235?
SELECT % of popular vote FROM table WHERE Liberal leader = laurier AND Popular vote > 521,041 AND Liberal candidates = 213 AND Seats in House < 235
Translate the following into a SQL query
How many Liberal candidates have Seats in House smaller than 245, and a Popular vote larger than 350,512, and Seats won smaller than 139, and a Seat Change of +28?
SELECT COUNT Liberal candidates FROM table WHERE Seats in House < 245 AND Popular vote > 350,512 AND Seats won < 139 AND Seat Change = +28
Translate the following into a SQL query
What is the score during the 2006-2007 year?
SELECT Score FROM table WHERE Year = 2006-2007
Translate the following into a SQL query
Who were the winners in 2010-2011?
SELECT Winners FROM table WHERE Year = 2010-2011