instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Which region had the date of November 18, 2002?
SELECT Region FROM table WHERE Date = november 18, 2002
Translate the following into a SQL query
Which label had a Japan region and a date of November 3, 2004?
SELECT Label FROM table WHERE Region = japan AND Date = november 3, 2004
Translate the following into a SQL query
Which label had a CD format and a date of June 25, 2002?
SELECT Label FROM table WHERE Format = cd AND Date = june 25, 2002
Translate the following into a SQL query
What award was nominated in 2007?
SELECT Award FROM table WHERE Result = nominated AND Year = 2007
Translate the following into a SQL query
What year did was the Inside Soap Awards won?
SELECT AVG Year FROM table WHERE Result = won AND Award = inside soap awards
Translate the following into a SQL query
What was the record for the game on April 9, 2008?
SELECT Record FROM table WHERE Date = april 9, 2008
Translate the following into a SQL query
Who was the leading scorer on April 9, 2008?
SELECT Leading scorer FROM table WHERE Date = april 9, 2008
Translate the following into a SQL query
in a game against st kilda, what was the away team's score?
SELECT Away team FROM table WHERE Home team = st kilda
Translate the following into a SQL query
In the match where geelong was the away team, who was the home team?
SELECT Home team FROM table WHERE Away team = geelong
Translate the following into a SQL query
What did the away team score when the home team scored 12.11 (83)?
SELECT Away team score FROM table WHERE Home team score = 12.11 (83)
Translate the following into a SQL query
Who was the home team in the game where the away team scored 14.19 (103)?
SELECT Home team FROM table WHERE Away team score = 14.19 (103)
Translate the following into a SQL query
What is the number of votes for the party which got more than 28 seats?
SELECT COUNT Votes FROM table WHERE Seats > 28
Translate the following into a SQL query
What is the number of votes for the Party of Labour?
SELECT MIN Votes FROM table WHERE Party = labour
Translate the following into a SQL query
What is the percentage of votes for the party that has Seats of 80?
SELECT Percentage FROM table WHERE Seats = 80
Translate the following into a SQL query
Who is the leader of the party which has Seats less than 28, a percentage of votes 54.03, and more votes than 120,801?
SELECT Leader FROM table WHERE Seats < 28 AND Percentage = 54.03 AND Votes > 120,801
Translate the following into a SQL query
Which highest number of Seats has votes of 244,867?
SELECT MAX Seats FROM table WHERE Votes = 244,867
Translate the following into a SQL query
What was the Away team score when the Home team had a score of 13.12 (90)?
SELECT Away team score FROM table WHERE Home team score = 13.12 (90)
Translate the following into a SQL query
What was the lowest Crowd of the game that had an Away team score of 13.17 (95)?
SELECT MIN Crowd FROM table WHERE Away team score = 13.17 (95)
Translate the following into a SQL query
What was the Date of the game of the Home team of melbourne?
SELECT Date FROM table WHERE Home team = melbourne
Translate the following into a SQL query
What was the score of the Home team in the game that had the Away team of south melbourne?
SELECT Home team score FROM table WHERE Away team = south melbourne
Translate the following into a SQL query
what was the away team for the north melbourne home team?
SELECT Away team FROM table WHERE Home team = north melbourne
Translate the following into a SQL query
what was the away team score in a game with north melbourne as home team?
SELECT Away team score FROM table WHERE Home team = melbourne
Translate the following into a SQL query
what was the away team with st kilda as the away team?
SELECT Away team score FROM table WHERE Away team = st kilda
Translate the following into a SQL query
How many yards for the player with 20 solo tackles and under 0 TDs?
SELECT SUM Yards FROM table WHERE Solo = 20 AND TD's < 0
Translate the following into a SQL query
How many yards for the player with 1 solo tackle and over 0 sacks?
SELECT MAX Yards FROM table WHERE Solo = 1 AND Sack > 0
Translate the following into a SQL query
What does a hand of Theoretical return have as a 3 credit?
SELECT 3 credits FROM table WHERE Hand = theoretical return
Translate the following into a SQL query
Which hand results in a 2 credits of 16?
SELECT Hand FROM table WHERE 2 credits = 16
Translate the following into a SQL query
What does full house have as a 5 credits?
SELECT 5 credits FROM table WHERE Hand = full house
Translate the following into a SQL query
What is the 2 credits of a hand that has a 3 credits of 180?
SELECT 2 credits FROM table WHERE 3 credits = 180
Translate the following into a SQL query
What would be the 4 credits result of a straight?
SELECT 4 credits FROM table WHERE Hand = straight
Translate the following into a SQL query
What team did the away team play against when they scored 11.9 (75)?
SELECT Home team FROM table WHERE Away team score = 11.9 (75)
Translate the following into a SQL query
Who was the home team at the game that had a score of 2 – 2?
SELECT Home FROM table WHERE Score = 2 – 2
Translate the following into a SQL query
What was the date of the game when Colorado was the visiting team and Chicago was the home team?
SELECT Date FROM table WHERE Visitor = colorado AND Home = chicago
Translate the following into a SQL query
What was the date of the game when the Avalanche had a record of 8–3–1?
SELECT Date FROM table WHERE Record = 8–3–1
Translate the following into a SQL query
Who was the opponents of the 5th Wicket Partnership?
SELECT Opponents FROM table WHERE Wicket Partnership = 5th
Translate the following into a SQL query
In which season was there a competition in the Champions League?
SELECT Season FROM table WHERE Competition = champions league
Translate the following into a SQL query
What scores did the RSC Anderlecht club have?
SELECT Score FROM table WHERE Club = rsc anderlecht
Translate the following into a SQL query
What is the average rank of the movie with an opening week net gross more than 81,77,00,000 after 2012?
SELECT AVG Rank FROM table WHERE Opening Week Nett Gross > 81,77,00,000 AND Year > 2012
Translate the following into a SQL query
What is the highest opening week net gross of the movie ranked higher than 5 from Reliance Entertainment?
SELECT MAX Opening Week Nett Gross FROM table WHERE Rank < 5 AND Studio(s) = reliance entertainment
Translate the following into a SQL query
What is the highest rank of Jab Tak Hai Jaan, which has an opening week net gross less than 99,00,00,000 and was after 2012?
SELECT MAX Rank FROM table WHERE Opening Week Nett Gross < 99,00,00,000 AND Movie = jab tak hai jaan AND Year > 2012
Translate the following into a SQL query
What is the highest rank of the movie with an opening week net gross less than 80,87,00,000 before 2011?
SELECT MAX Rank FROM table WHERE Year < 2011 AND Opening Week Nett Gross < 80,87,00,000
Translate the following into a SQL query
Tell me the total number of Grid for Bob Evans and Laps less than 68
SELECT COUNT Grid FROM table WHERE Driver = bob evans AND Laps < 68
Translate the following into a SQL query
Tell me constructor for Laps less than 17 and Grid more than 11 for alan jones
SELECT Constructor FROM table WHERE Laps < 17 AND Grid > 11 AND Driver = alan jones
Translate the following into a SQL query
I want the sum of Laps with Grid less than 11 for jean-pierre jarier
SELECT SUM Laps FROM table WHERE Grid < 11 AND Driver = jean-pierre jarier
Translate the following into a SQL query
I want the constructor for brakes and grid less than 14
SELECT Constructor FROM table WHERE Time/Retired = brakes AND Grid < 14
Translate the following into a SQL query
How may episodes did season 1 have?
SELECT COUNT Episodes FROM table WHERE Season No. = 1
Translate the following into a SQL query
Which chassis did Aguri Suzuki drive with an entrant of Larrousse F1?
SELECT Chassis FROM table WHERE Entrant = larrousse f1 AND Driver = aguri suzuki
Translate the following into a SQL query
What was the entrant in round 16 were Ferrari was the constructor?
SELECT Entrant FROM table WHERE Rounds = 16 AND Constructor = ferrari
Translate the following into a SQL query
Tell me the country with ICAO of zgha
SELECT Country FROM table WHERE ICAO = zgha
Translate the following into a SQL query
I want the ICAO for city of xi'an
SELECT ICAO FROM table WHERE City = xi'an
Translate the following into a SQL query
I want the IATA for ICAO of zgkl
SELECT IATA FROM table WHERE ICAO = zgkl
Translate the following into a SQL query
I want the region for ICAO of vmmc
SELECT Region FROM table WHERE ICAO = vmmc
Translate the following into a SQL query
What is the high grid number for a Time/Retired of + 3 laps, and a Laps smaller than 57?
SELECT MAX Grid FROM table WHERE Time/Retired = + 3 laps AND Laps < 57
Translate the following into a SQL query
Who built the car that has a Time/Retired of 1:36:38.887?
SELECT Constructor FROM table WHERE Time/Retired = 1:36:38.887
Translate the following into a SQL query
Who was the leading scorer on 9 January 2008?
SELECT Leading scorer FROM table WHERE Date = 9 january 2008
Translate the following into a SQL query
What is the number played for the Barcelona B club, with wins under 11?
SELECT SUM Played FROM table WHERE Club = barcelona b AND Wins < 11
Translate the following into a SQL query
What was the biggest draws, for wins under 4, and points of 20-18?
SELECT MAX Draws FROM table WHERE Points = 20-18 AND Wins < 4
Translate the following into a SQL query
What is the average of goals against, where overall goals are more than 35 and the goal difference is 20?
SELECT AVG Goals against FROM table WHERE Goals for > 35 AND Goal Difference = 20
Translate the following into a SQL query
What is the Crowd number for the Away team of Richmond?
SELECT SUM Crowd FROM table WHERE Away team = richmond
Translate the following into a SQL query
What is the Home team score for the Venue named Glenferrie Oval?
SELECT Home team score FROM table WHERE Venue = glenferrie oval
Translate the following into a SQL query
What is the smallest Crowd number for the Venue named Princes Park?
SELECT MIN Crowd FROM table WHERE Venue = princes park
Translate the following into a SQL query
Which Home team has an Away team score of 6.9 (45)?
SELECT Home team FROM table WHERE Away team score = 6.9 (45)
Translate the following into a SQL query
Tell me the notes with method of points and event of adcc 2001 absolute with result of loss
SELECT Notes FROM table WHERE Method = points AND Event = adcc 2001 absolute AND Result = loss
Translate the following into a SQL query
Tell me the lowest date for result of win and method of points with notes of opening round
SELECT MIN Date FROM table WHERE Result = win AND Method = points AND Notes = opening round
Translate the following into a SQL query
Name the result with notes of quarter-finals and event of adcc 2001 absolute
SELECT Result FROM table WHERE Notes = quarter-finals AND Event = adcc 2001 absolute
Translate the following into a SQL query
I want the event for method of points with notes of opening round
SELECT Event FROM table WHERE Method = points AND Notes = opening round
Translate the following into a SQL query
How many win total which has the rank smaller than 3 and events smaller than 22
SELECT COUNT Wins FROM table WHERE Events < 22 AND Rank < 3
Translate the following into a SQL query
What denomination is mt lawley?
SELECT Denomination FROM table WHERE Location = mt lawley
Translate the following into a SQL query
Is mt lawley day or boarding?
SELECT Day/Boarding FROM table WHERE Location = mt lawley
Translate the following into a SQL query
What is the average year founded for schools in claremont?
SELECT AVG Founded FROM table WHERE Location = claremont
Translate the following into a SQL query
When north melbourne was the home team who was the Away team?
SELECT Away team FROM table WHERE Home team = north melbourne
Translate the following into a SQL query
Which home team scored 19.18 (132)?
SELECT Home team FROM table WHERE Home team score = 19.18 (132)
Translate the following into a SQL query
When collingwood played as the home team who was the away team?
SELECT Away team FROM table WHERE Home team = collingwood
Translate the following into a SQL query
When the Away team was south melbourne what was the home team?
SELECT Home team FROM table WHERE Away team = south melbourne
Translate the following into a SQL query
What is the lowest attendance for a stadium that has an average smaller than 307?
SELECT AVG Lowest FROM table WHERE Average < 307
Translate the following into a SQL query
When the home team scored 17.13 (115), where was the venue?
SELECT Venue FROM table WHERE Home team score = 17.13 (115)
Translate the following into a SQL query
When the home team was South Melbourne, what did the away team score?
SELECT Away team score FROM table WHERE Home team = south melbourne
Translate the following into a SQL query
What is the average rank of a country with less than 13 bronze medals, a total of 11 medals, and more than 4 gold?
SELECT AVG Rank FROM table WHERE Bronze < 13 AND Total = 11 AND Gold > 4
Translate the following into a SQL query
What is the lowest bronze a team with 9 silvers, a total larger than 13, and more than 13 gold medals has?
SELECT MIN Bronze FROM table WHERE Silver = 9 AND Total > 13 AND Gold > 13
Translate the following into a SQL query
What is the highest number of silvers a team with more than 95 total medals has?
SELECT MAX Silver FROM table WHERE Total > 95
Translate the following into a SQL query
What is the highest total medals a team with less than 15 gold, less than 5 bronze, and a rank larger than 10 has?
SELECT MAX Total FROM table WHERE Gold < 15 AND Bronze < 5 AND Rank > 10
Translate the following into a SQL query
Who is the home team who plays at Glenferrie Oval?
SELECT Home team FROM table WHERE Venue = glenferrie oval
Translate the following into a SQL query
What did the away team Carlton score?
SELECT Away team score FROM table WHERE Away team = carlton
Translate the following into a SQL query
In the game where the home team scored 19.21 (135), who was the away team?
SELECT Away team FROM table WHERE Home team score = 19.21 (135)
Translate the following into a SQL query
Which away team scored 13.13 (91)?
SELECT Away team FROM table WHERE Away team score = 13.13 (91)
Translate the following into a SQL query
What position did Lee Gilmour play while having more than 4 Tries and 20 points?
SELECT Position FROM table WHERE Tries > 4 AND Points = 20 AND Player = lee gilmour
Translate the following into a SQL query
Who was the host that garnered ratings of 9.4/27?
SELECT Host FROM table WHERE Ratings = 9.4/27
Translate the following into a SQL query
Who was the lap-by-lap broadcaster before 1994 who garnered ratings of 8.0/21?
SELECT Lap-by-lap FROM table WHERE Year < 1994 AND Ratings = 8.0/21
Translate the following into a SQL query
Who was the host that garnered ratings of 9.6/26?
SELECT Host FROM table WHERE Ratings = 9.6/26
Translate the following into a SQL query
What were the ratings for host Chris Economaki who had 12.3 million viewers?
SELECT Ratings FROM table WHERE Host = chris economaki AND Viewers = 12.3 million
Translate the following into a SQL query
Who was the network who had Ken Squier as a host and 13.9 million viewers?
SELECT Network FROM table WHERE Host = ken squier AND Viewers = 13.9 million
Translate the following into a SQL query
What was the lowest Attendance for Games played on the Date of February 5?
SELECT MIN Attendance FROM table WHERE Date = february 5
Translate the following into a SQL query
What was the total Attendance for Games while Chicago was the visiting Team?
SELECT SUM Attendance FROM table WHERE Visitor = chicago
Translate the following into a SQL query
What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11?
SELECT Pole Position FROM table WHERE Fastest Lap = rubens barrichello AND Round > 11
Translate the following into a SQL query
Which Grand Prix did David Coulthard win with Michael Schumacher in the pole position before round 9?
SELECT Grand Prix FROM table WHERE Winning Driver = david coulthard AND Pole Position = michael schumacher AND Round < 9
Translate the following into a SQL query
Who had the fastest lap when David Coulthard had pole position and Michael Schumacher as a winning driver.
SELECT Fastest Lap FROM table WHERE Pole Position = david coulthard AND Winning Driver = michael schumacher
Translate the following into a SQL query
Who had the fastest lap at the Australian Grand Prix?
SELECT Fastest Lap FROM table WHERE Grand Prix = australian grand prix
Translate the following into a SQL query
Tell me the team 2 for team 1 being la nuova piovese (veneto a)
SELECT Team 2 FROM table WHERE Team 1 = la nuova piovese (veneto a)
Translate the following into a SQL query
Tell me the team 1 for team 2 being civitavecchiese (latium a)
SELECT Team 1 FROM table WHERE Team 2 = civitavecchiese (latium a)
Translate the following into a SQL query
Tell me the 1st leg for team being budoni (Sardinia)
SELECT 1st leg FROM table WHERE Team 1 = budoni (sardinia)