instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Who was the opposing team when the status is second test?
SELECT Opposing Teams FROM table WHERE Status = second test
Translate the following into a SQL query
What is the status when Wales is the opposing team and there are more than 13 against?
SELECT Status FROM table WHERE Against > 13 AND Opposing Teams = wales
Translate the following into a SQL query
What is the lowest number of households for the entry with a median income of $41,778 and a population greater than 38,319?
SELECT MIN Number of households FROM table WHERE Median family income = $41,778 AND Population > 38,319
Translate the following into a SQL query
Which Church has 27 stops?
SELECT church FROM table WHERE stops = 27
Translate the following into a SQL query
Who is the opponent(s) in round 6?
SELECT Opponents FROM table WHERE Round = round 6
Translate the following into a SQL query
In what year was the winner a soccer player from Virginia?
SELECT SUM Year FROM table WHERE Sport = soccer AND College = virginia
Translate the following into a SQL query
In what year did Morgan Brian win?
SELECT AVG Year FROM table WHERE Winner = morgan brian
Translate the following into a SQL query
Who is the winner who attended college at Connecticut and is from North Syracuse, NY?
SELECT Winner FROM table WHERE College = connecticut AND Hometown = north syracuse, ny
Translate the following into a SQL query
What is the hometown of the player who went to college at USC?
SELECT Hometown FROM table WHERE College = usc
Translate the following into a SQL query
What is the lowest Draws, when Against is "1547", and when Wins is greater than 3?
SELECT MIN Draws FROM table WHERE Against = 1547 AND Wins > 3
Translate the following into a SQL query
What is the total number of Wins, when Losses is "6", and when Draws is greater than "0"?
SELECT COUNT Wins FROM table WHERE Losses = 6 AND Draws > 0
Translate the following into a SQL query
What is the lowest Draws, when Byes is less than 2?
SELECT MIN Draws FROM table WHERE Byes < 2
Translate the following into a SQL query
What is the total number of Draws, when Against is "1134", and when Byes is less than 2?
SELECT COUNT Draws FROM table WHERE Against = 1134 AND Byes < 2
Translate the following into a SQL query
What is the sum of Wins, when Against is less than 1033, when Golden Rivers is "Nullawil", and when Byes is less than 2?
SELECT SUM Wins FROM table WHERE Against < 1033 AND Golden Rivers = nullawil AND Byes < 2
Translate the following into a SQL query
What is 7:00 am, when 7:30 am is "Good Morning America"?
SELECT 7:00 am FROM table WHERE 7:30 am = good morning america
Translate the following into a SQL query
What is 1:30 pm, when 7:00 am is "Tiny Toon Adventures"?
SELECT 1:30 pm FROM table WHERE 7:00 am = tiny toon adventures
Translate the following into a SQL query
What is 8:00 am, when 11:00 am is "Local Programs"?
SELECT 8:00 am FROM table WHERE 11:00 am = local programs
Translate the following into a SQL query
What is 1:30 pm, when 3:30 pm is "Young Hercules"?
SELECT 1:30 pm FROM table WHERE 3:30 pm = young hercules
Translate the following into a SQL query
What is 4:30 pm, when Noon is "Local Programs", and when 11:00 am is "Local Programs"?
SELECT 4:30 pm FROM table WHERE noon = local programs AND 11:00 am = local programs
Translate the following into a SQL query
Which Year has a Competition of european championships, and Notes of 66.81 m?
SELECT SUM Year FROM table WHERE Competition = european championships AND Notes = 66.81 m
Translate the following into a SQL query
Which Position has a Venue of berlin, germany?
SELECT Position FROM table WHERE Venue = berlin, germany
Translate the following into a SQL query
Which competition was held in Arles, France?
SELECT Competition FROM table WHERE Venue = arles, france
Translate the following into a SQL query
What is the M1A1 when the M60A3 was T (Short Tons)?
SELECT M1A1 Abrams FROM table WHERE M60A3 Patton = t (short tons)
Translate the following into a SQL query
What is the M60A3 when the M1A1 is T (Short Tons)?
SELECT M60A3 Patton FROM table WHERE M1A1 Abrams = t (short tons)
Translate the following into a SQL query
What is the M60A3 that has an M1A1 of Km (mi)?
SELECT M60A3 Patton FROM table WHERE M1A1 Abrams = km (mi)
Translate the following into a SQL query
What is the M60A3 that has 40 rounds as Leclerc?
SELECT M60A3 Patton FROM table WHERE Leclerc = 40 rounds
Translate the following into a SQL query
What's the lince when Leclerc was Hp (kw)?
SELECT Lince FROM table WHERE Leclerc = hp (kw)
Translate the following into a SQL query
What is the M1A1 when the Lince was T (Short Tons)?
SELECT M1A1 Abrams FROM table WHERE Lince = t (short tons)
Translate the following into a SQL query
Which Distance has a Time of 2:20.00?
SELECT Distance FROM table WHERE Time = 2:20.00
Translate the following into a SQL query
Which Distance has an Event of breaststroke, and a Location of beijing, chn?
SELECT Distance FROM table WHERE Event = breaststroke AND Location = beijing, chn
Translate the following into a SQL query
What Meet has a Time of 1:04.84?
SELECT Meet FROM table WHERE Time = 1:04.84
Translate the following into a SQL query
What season had a viewer rank of #4?
SELECT COUNT Season FROM table WHERE Viewer rank (#) = #4
Translate the following into a SQL query
Which season had less than 25.4 viewers and had a viewer rank of #6?
SELECT MIN Season FROM table WHERE Households/Viewers (in millions) < 25.4 AND Viewer rank (#) = #6
Translate the following into a SQL query
When did the season premiere that had a viewer rank of #6?
SELECT Season premiere FROM table WHERE Viewer rank (#) = #6
Translate the following into a SQL query
What is the total number of gold medals of the ranked 2nd nation, which has less than 2 silvers?
SELECT COUNT Gold FROM table WHERE Rank = 2 AND Silver < 2
Translate the following into a SQL query
What is the total number of gold medals of the nation with 0 silver and more than 1 bronze?
SELECT COUNT Gold FROM table WHERE Silver = 0 AND Bronze > 1
Translate the following into a SQL query
What is the lowest number of bronze of the nation with more than 13 total medals, more than 10 gold medals, and less than 22 silvers?
SELECT MIN Bronze FROM table WHERE Total > 13 AND Gold > 10 AND Silver < 22
Translate the following into a SQL query
What was the main date of the round with 20 fixtures?
SELECT Main date FROM table WHERE Number of fixtures = 20
Translate the following into a SQL query
What were the new entries for the Semi-Finals round with fewer than 8 fixtures?
SELECT New entries this round FROM table WHERE Number of fixtures < 8 AND Round = semi-finals
Translate the following into a SQL query
What was the club when home ground was Central Reserve?
SELECT Club FROM table WHERE Home Ground = central reserve
Translate the following into a SQL query
What's the GFL Premiership when the home ground was Leopold Memorial Park?
SELECT GFL Premierships FROM table WHERE Home Ground = leopold memorial park
Translate the following into a SQL query
What's the location where the Years in GFL was 1988-?
SELECT Location FROM table WHERE Years in GFL = 1988-
Translate the following into a SQL query
What's the home ground of the Lions?
SELECT Home Ground FROM table WHERE Nickname = lions
Translate the following into a SQL query
What is the location of the Saints having 1979- as Years in GFL?
SELECT Location FROM table WHERE Years in GFL = 1979- AND Nickname = saints
Translate the following into a SQL query
What is the type of the player who ended in 2013, had a summer transfer window, and moved from kalmar ff?
SELECT Type FROM table WHERE Ends = 2013 AND Transfer window = summer AND Moving from = kalmar ff
Translate the following into a SQL query
Where did the player with a transfer type, a summer transfer window, and ended before 2013 move from?
SELECT Moving from FROM table WHERE Type = transfer AND Transfer window = summer AND Ends < 2013
Translate the following into a SQL query
What is the transfer window for larsson?
SELECT Transfer window FROM table WHERE Name = larsson
Translate the following into a SQL query
What is the average end year of the player from swe and a summer transfer window?
SELECT AVG Ends FROM table WHERE Nat. = swe AND Transfer window = summer
Translate the following into a SQL query
What was the outcome on 2 December 2012?
SELECT Outcome FROM table WHERE Date = 2 december 2012
Translate the following into a SQL query
What is the score of the final in $10,000 – tarakan , indonesia f2?
SELECT Score in Final FROM table WHERE Tournament = $10,000 – tarakan , indonesia f2
Translate the following into a SQL query
What was the place for the score 70-72-69=211?
SELECT Place FROM table WHERE Score = 70-72-69=211
Translate the following into a SQL query
What was the player for t9 and a score of 73-69-74=216?
SELECT Player FROM table WHERE Place = t9 AND Score = 73-69-74=216
Translate the following into a SQL query
What was Stacy Lewis' place?
SELECT Place FROM table WHERE Player = stacy lewis
Translate the following into a SQL query
What was the score when the tie no was 13?
SELECT Score FROM table WHERE Tie no = 13
Translate the following into a SQL query
What was the score when Burnley was the away team?
SELECT Score FROM table WHERE Away team = burnley
Translate the following into a SQL query
What is the To par when the finish is 66?
SELECT To par FROM table WHERE Finish = 66
Translate the following into a SQL query
When the year won is 1981, 1987, and the finish is t46, what is the lowest total?
SELECT MIN Total FROM table WHERE Finish = t46 AND Year(s) won = 1981, 1987
Translate the following into a SQL query
Which year was won with a finish of 68
SELECT Year(s) won FROM table WHERE Finish = 68
Translate the following into a SQL query
WHTA IS THE SNATCH WITH A TOTAL OF LARGER THAN 318 KG AND BODY WEIGHT OF 84.15?
SELECT AVG Snatch FROM table WHERE Total (kg) > 318 AND Bodyweight = 84.15
Translate the following into a SQL query
WHAT IS THE SNATCH WITH TOTAL KG SMALLER THAN 318, AND CLEAN JERK LARGER THAN 175?
SELECT MIN Snatch FROM table WHERE Total (kg) < 318 AND Clean & Jerk > 175
Translate the following into a SQL query
What date has 2 for killed, and jaffa as the location?
SELECT Date FROM table WHERE Killed = 2 AND Location = jaffa
Translate the following into a SQL query
What is the injured that has skierlik as the location?
SELECT Injured FROM table WHERE Location = skierlik
Translate the following into a SQL query
What shows at 1:00 pm when 4:00 pm shows local programs, and 8:00 am is The Early Show?
SELECT 1:00 pm FROM table WHERE 4:00 pm = local programs AND 8:00 am = the early show
Translate the following into a SQL query
What shows at 7:30 am when 3:30 pm is Big Guy and Rusty the Boy Robot?
SELECT 7:30 am FROM table WHERE 3:30 pm = big guy and rusty the boy robot
Translate the following into a SQL query
What shows at 9:00 am that has a 3:30 pm of passions?
SELECT 9:00 am FROM table WHERE 3:30 pm = passions
Translate the following into a SQL query
What shows at 4:30 pm when 4:00 pm is PokΓ©mon?
SELECT 4:30 pm FROM table WHERE 4:00 pm = pokΓ©mon
Translate the following into a SQL query
What shows at 12:30 pm when 1:30 pm is All My Children?
SELECT 12:30 pm FROM table WHERE 1:30 pm = all my children
Translate the following into a SQL query
What is the 2nd leg that Team 1 is Union Berlin?
SELECT 2nd leg FROM table WHERE Team 1 = union berlin
Translate the following into a SQL query
What is the Apps for the player with 150 Goals and a Ratio of 0.52?
SELECT Apps FROM table WHERE Ratio = 0.52 AND Goals = 150
Translate the following into a SQL query
What is on at 3pm on the channel that shows Local Programs at non?
SELECT 3:00 pm FROM table WHERE noon = local programs
Translate the following into a SQL query
What is the noon show on the channel that shows General Hospital at 3pm?
SELECT noon FROM table WHERE 3:00 pm = general hospital
Translate the following into a SQL query
What is the 5pm show where CBS This Morning is on at 7am?
SELECT 5:00 pm FROM table WHERE 7:00 am = cbs this morning
Translate the following into a SQL query
What is on at 12:30pm where Local Programs are on at 1:30pm and Power Rangers Lost Galaxy is on at 3:30pm?
SELECT 12:30 pm FROM table WHERE 1:30 pm = local programs AND 3:30 pm = power rangers lost galaxy
Translate the following into a SQL query
What is on at 5pm on the channel where As the World Turns is on at 2pm?
SELECT 5:00 pm FROM table WHERE 2:00 pm = as the world turns
Translate the following into a SQL query
Which team won at the symmons plains raceway?
SELECT Team FROM table WHERE Circuit = symmons plains raceway
Translate the following into a SQL query
Which team won at winton motor raceway?
SELECT Team FROM table WHERE Circuit = winton motor raceway
Translate the following into a SQL query
Which circuit was the atcc round 7 at?
SELECT Circuit FROM table WHERE Series = atcc round 7
Translate the following into a SQL query
Which circuit did winfield team nissan win for the tooheys 1000?
SELECT Circuit FROM table WHERE Team = winfield team nissan AND Series = tooheys 1000
Translate the following into a SQL query
What is the date for the tooheys 1000?
SELECT Date FROM table WHERE Series = tooheys 1000
Translate the following into a SQL query
what series was in sydney, new south wales?
SELECT Series FROM table WHERE City / State = sydney, new south wales
Translate the following into a SQL query
What was the rank for 1.26 Ø-Pts in game 1458?
SELECT COUNT Rank FROM table WHERE Ø-Pts > 1.26 AND Games = 1458
Translate the following into a SQL query
What is the Outcome of the match with Partner Marcella Mesker and a Score of 6–4, 4–6, 4–6?
SELECT Outcome FROM table WHERE Partner = marcella mesker AND Score = 6–4, 4–6, 4–6
Translate the following into a SQL query
What is the Surface of the match with a Score of 2–6, 6–4, 7–6?
SELECT Surface FROM table WHERE Score = 2–6, 6–4, 7–6
Translate the following into a SQL query
What is the Surface of the match played on October 5, 1987?
SELECT Surface FROM table WHERE Date = october 5, 1987
Translate the following into a SQL query
What is the Date of the match with a Score of 0–6, 2–6 with Partner Marcella Mesker?
SELECT Date FROM table WHERE Partner = marcella mesker AND Score = 0–6, 2–6
Translate the following into a SQL query
Who is the Opponents on May 3, 1982?
SELECT Opponents FROM table WHERE Date = may 3, 1982
Translate the following into a SQL query
What is the Score of the match on May 21, 1984 with Outcome of runner-up?
SELECT Score FROM table WHERE Outcome = runner-up AND Date = may 21, 1984
Translate the following into a SQL query
What is the date of the 200m individual medley?
SELECT Date FROM table WHERE Event = 200m individual medley
Translate the following into a SQL query
Which team was team 1 in the match where team 2 was olympique lyonnais (d2)?
SELECT Team 1 FROM table WHERE Team 2 = olympique lyonnais (d2)
Translate the following into a SQL query
What was the score of the match where paris sg (d1) was team 1?
SELECT Score FROM table WHERE Team 1 = paris sg (d1)
Translate the following into a SQL query
Which Week has a Result of w 23–22?
SELECT Week FROM table WHERE Result = w 23–22
Translate the following into a SQL query
When was there a bye result?
SELECT Date FROM table WHERE Result = bye
Translate the following into a SQL query
When was the attendance 65,806?
SELECT Date FROM table WHERE Attendance = 65,806
Translate the following into a SQL query
Who was the opponent after week 16?
SELECT Opponent FROM table WHERE Week > 16
Translate the following into a SQL query
What is Commissioned, when Laid Down is "6 September 2003"?
SELECT Commissioned FROM table WHERE Laid down = 6 september 2003
Translate the following into a SQL query
What is Launched, when Laid Down is "31 October 1981"?
SELECT Launched FROM table WHERE Laid down = 31 october 1981
Translate the following into a SQL query
What is Ship, when Commissioned is "13 March 1982"?
SELECT Ship FROM table WHERE Commissioned = 13 march 1982
Translate the following into a SQL query
What is Launched, when Commissioned is "25 July 1998"?
SELECT Launched FROM table WHERE Commissioned = 25 july 1998
Translate the following into a SQL query
What is Laid Down, when Hull Number is "CVN-69"?
SELECT Laid down FROM table WHERE Hull Number = cvn-69
Translate the following into a SQL query
What is Laid Down, when Commissioned is "11 November 1989"?
SELECT Laid down FROM table WHERE Commissioned = 11 november 1989