instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What Money (£) has a Country of ireland?
|
SELECT Money ( £ ) FROM table WHERE Country = ireland
|
Translate the following into a SQL query
|
What Player has a Place of t10?
|
SELECT Player FROM table WHERE Place = t10
|
Translate the following into a SQL query
|
What To par has a Score of 71-73-71-71=286?
|
SELECT To par FROM table WHERE Score = 71-73-71-71=286
|
Translate the following into a SQL query
|
What Place has a To par of –4?
|
SELECT Place FROM table WHERE To par = –4
|
Translate the following into a SQL query
|
What Score has a Place of t8, and a Country of scotland?
|
SELECT Score FROM table WHERE Place = t8 AND Country = scotland
|
Translate the following into a SQL query
|
What To par has a Country of united states, and a Score of 67-66-78-77=288?
|
SELECT To par FROM table WHERE Country = united states AND Score = 67-66-78-77=288
|
Translate the following into a SQL query
|
What is the average Money ( $ ), when Country is "United States", and when To par is "+3"?
|
SELECT AVG Money ( $ ) FROM table WHERE Country = united states AND To par = +3
|
Translate the following into a SQL query
|
What is Money ( $ ), when Player is "Morgan Pressel"?
|
SELECT Money ( $ ) FROM table WHERE Player = morgan pressel
|
Translate the following into a SQL query
|
What is Place, when Player is "Mi Hyun Kim"?
|
SELECT Place FROM table WHERE Player = mi hyun kim
|
Translate the following into a SQL query
|
What was the tonnage on 30 march 1943?
|
SELECT AVG Tonnage FROM table WHERE Date = 30 march 1943
|
Translate the following into a SQL query
|
What was the fate on 27 june 1942?
|
SELECT Fate FROM table WHERE Date = 27 june 1942
|
Translate the following into a SQL query
|
What was the tonnage on 12 september 1942?
|
SELECT Tonnage FROM table WHERE Date = 12 september 1942
|
Translate the following into a SQL query
|
What was Yugoslavia's fate?
|
SELECT Fate FROM table WHERE Nationality = yugoslavia
|
Translate the following into a SQL query
|
What is the status of the ship INS Ranvir?
|
SELECT Status FROM table WHERE Name = ins ranvir
|
Translate the following into a SQL query
|
Who was the builder of the ship INS Rana?
|
SELECT Builder FROM table WHERE Name = ins rana
|
Translate the following into a SQL query
|
What is the place in 2007 for the song " work your magic "?
|
SELECT Place FROM table WHERE Year = 2007 AND Song = " work your magic "
|
Translate the following into a SQL query
|
Who is the Composer of " peace will come "?
|
SELECT Composer FROM table WHERE Song = " peace will come "
|
Translate the following into a SQL query
|
What year shows 248 (sf: 217) points?
|
SELECT COUNT Year FROM table WHERE Points = 248 (sf: 217)
|
Translate the following into a SQL query
|
What is the place later than 2007, with 141 (sf:83) points?
|
SELECT Place FROM table WHERE Year > 2007 AND Points = 141 (sf:83)
|
Translate the following into a SQL query
|
What artist shows 2007 and composer of Hayko?
|
SELECT Artist FROM table WHERE Year = 2007 AND Composer = hayko
|
Translate the following into a SQL query
|
What place is Corey Pavin in?
|
SELECT Place FROM table WHERE Player = corey pavin
|
Translate the following into a SQL query
|
Which 1991-92 has a 1993-94 smaller than 34, and a Team of argentinos juniors?
|
SELECT 1991-92 FROM table WHERE 1993-94 < 34 AND Team = argentinos juniors
|
Translate the following into a SQL query
|
How many Points have an Average smaller than 1, a Played larger than 38, and a Team of gimnasia de la plata?
|
SELECT SUM Points FROM table WHERE Average < 1 AND Played > 38 AND Team = gimnasia de la plata
|
Translate the following into a SQL query
|
Which 1992-93 has Played of 114, and a 1991-92 of 48?
|
SELECT 1992-93 FROM table WHERE Played = 114 AND 1991-92 = 48
|
Translate the following into a SQL query
|
Which 1991-92 has a 1993-94 of 43?
|
SELECT 1991-92 FROM table WHERE 1993-94 = 43
|
Translate the following into a SQL query
|
Which 1992-93 has a 1993-94 of 43?
|
SELECT 1992-93 FROM table WHERE 1993-94 = 43
|
Translate the following into a SQL query
|
Which Atomic property has Helium of 4.16?
|
SELECT Atomic property FROM table WHERE Helium = 4.16
|
Translate the following into a SQL query
|
Which Krypton has Neon of 10?
|
SELECT Krypton FROM table WHERE Neon = 10
|
Translate the following into a SQL query
|
Which Radon has Neon of 4.79?
|
SELECT Radon FROM table WHERE Neon = 4.79
|
Translate the following into a SQL query
|
Which Neon has Atomic property of average valence electron energy (avee)?
|
SELECT Neon FROM table WHERE Atomic property = average valence electron energy (avee)
|
Translate the following into a SQL query
|
Which Radon has Atomic property of outer shell electron configuration?
|
SELECT Radon FROM table WHERE Atomic property = outer shell electron configuration
|
Translate the following into a SQL query
|
Which Xenon has Neon of 20.1797(6)?
|
SELECT Xenon FROM table WHERE Neon = 20.1797(6)
|
Translate the following into a SQL query
|
What is the highest attendance of the game with eastwood town as the away team?
|
SELECT MAX Attendance FROM table WHERE Away team = eastwood town
|
Translate the following into a SQL query
|
What place is Scott McCarron in?
|
SELECT Place FROM table WHERE Player = scott mccarron
|
Translate the following into a SQL query
|
What is Alexandr Elke's Weight?
|
SELECT Weight FROM table WHERE Name = alexandr elke
|
Translate the following into a SQL query
|
What is the Name of the D Player from the Dinamo Moscow Club?
|
SELECT Name FROM table WHERE Club = dinamo moscow AND Pos. = d
|
Translate the following into a SQL query
|
What is the Date of Birth of the Player from the CSK VMF Moscow Club?
|
SELECT Date of Birth FROM table WHERE Club = csk vmf moscow
|
Translate the following into a SQL query
|
What is the Weight of the Player from DSHNK Almaty Club with a Height of m (ft 6in)?
|
SELECT Weight FROM table WHERE Club = dshnk almaty AND Height = m (ft 6in)
|
Translate the following into a SQL query
|
Which Position has Goals against smaller than 43, and Wins larger than 14, and Played larger than 38?
|
SELECT SUM Position FROM table WHERE Goals against < 43 AND Wins > 14 AND Played > 38
|
Translate the following into a SQL query
|
Which Goals for has a Position smaller than 16, and Wins smaller than 19, and Goals against smaller than 32?
|
SELECT MIN Goals for FROM table WHERE Position < 16 AND Wins < 19 AND Goals against < 32
|
Translate the following into a SQL query
|
Which Points have Goals against of 32, and Played larger than 38?
|
SELECT MAX Points FROM table WHERE Goals against = 32 AND Played > 38
|
Translate the following into a SQL query
|
Which Position has Goals against smaller than 59, and Goals for larger than 32, and Draws larger than 9, and Points larger than 35?
|
SELECT AVG Position FROM table WHERE Goals against < 59 AND Goals for > 32 AND Draws > 9 AND Points > 35
|
Translate the following into a SQL query
|
What district re-elected a Republican?
|
SELECT District FROM table WHERE Party = republican AND Results = re-elected
|
Translate the following into a SQL query
|
Which incumbent was first elected in 1987?
|
SELECT Incumbent FROM table WHERE First elected = 1987
|
Translate the following into a SQL query
|
From which country is the player who made less than $216?
|
SELECT Country FROM table WHERE Money ( $ ) < 216
|
Translate the following into a SQL query
|
Where did the player place who is from the United States, who made more than $216, and whose score was 74-70-71-69=284?
|
SELECT Place FROM table WHERE Country = united states AND Money ( $ ) > 216 AND Score = 74-70-71-69=284
|
Translate the following into a SQL query
|
Which player placed in t5 and had a score of 72-71-73-78=294?
|
SELECT Player FROM table WHERE Place = t5 AND Score = 72-71-73-78=294
|
Translate the following into a SQL query
|
What is the year that a record was recorded with Libor Pesek as conductor?
|
SELECT SUM Year of Recording FROM table WHERE Conductor = libor pesek
|
Translate the following into a SQL query
|
What record company did pianist Solomon Cutner record for?
|
SELECT Record Company FROM table WHERE Pianist = solomon cutner
|
Translate the following into a SQL query
|
What record company did conductor Mikhail Snitko record for after 1996?
|
SELECT Record Company FROM table WHERE Year of Recording > 1996 AND Conductor = mikhail snitko
|
Translate the following into a SQL query
|
Which event had a total of 28?
|
SELECT Event FROM table WHERE Total = 28
|
Translate the following into a SQL query
|
Who was the shooter when the rank points was 8 and the event was WC Kerrville?
|
SELECT Shooter FROM table WHERE Rank points = 8 AND Event = wc kerrville
|
Translate the following into a SQL query
|
What was the total when the score points was 12 and the rank points was 15?
|
SELECT Total FROM table WHERE Score points = 12 AND Rank points = 15
|
Translate the following into a SQL query
|
What is the score at the Champions League, when the result shows win?
|
SELECT Score FROM table WHERE Competition = champions league AND Result = win
|
Translate the following into a SQL query
|
What was the competition when the opponent was the Randers?
|
SELECT Competition FROM table WHERE Opponent = randers
|
Translate the following into a SQL query
|
What is the result of the UEFA Cup, against Palermo?
|
SELECT Result FROM table WHERE Competition = uefa cup AND Opponent = palermo
|
Translate the following into a SQL query
|
What date was the UEFA Cup against Panathinaikos?
|
SELECT Date FROM table WHERE Competition = uefa cup AND Opponent = panathinaikos
|
Translate the following into a SQL query
|
What is the total number of deaths of the attack with 0 Israelis or foreigners wounded, 0 other deaths, and a total casualty of 1?
|
SELECT Total deaths FROM table WHERE Israeli and/or foreigner wounded = 0 AND Other deaths = 0 AND Total casualties = 1
|
Translate the following into a SQL query
|
How many Israelis and or foreigners were wounded in the attack with more than 1 Israeli death?
|
SELECT Israeli and/or foreigner wounded FROM table WHERE Israeli deaths > 1
|
Translate the following into a SQL query
|
How many other deaths were in the attack with 242 Israelis and/or foreigners wounded?
|
SELECT Other deaths FROM table WHERE Israeli and/or foreigner wounded = 242
|
Translate the following into a SQL query
|
What is the total number of Israeli deaths in the attack with 0 total casulaties and 0 total deaths?
|
SELECT COUNT Israeli deaths FROM table WHERE Total casualties = 0 AND Total deaths = 0
|
Translate the following into a SQL query
|
What place did the golfer who had a score of 69-68-69-70=276 finish in?
|
SELECT Place FROM table WHERE Score = 69-68-69-70=276
|
Translate the following into a SQL query
|
What was the to par score for Mike Weir?
|
SELECT To par FROM table WHERE Player = mike weir
|
Translate the following into a SQL query
|
What country was Jay Haas representing?
|
SELECT Country FROM table WHERE Player = jay haas
|
Translate the following into a SQL query
|
What country has the t7 place, and player Peter Oosterhuis?
|
SELECT Country FROM table WHERE Place = t7 AND Player = peter oosterhuis
|
Translate the following into a SQL query
|
What is the score for Sandy Lyle?
|
SELECT Score FROM table WHERE Player = sandy lyle
|
Translate the following into a SQL query
|
Who is the player that has scored more than 0 league cup goals, but has than 13 total goals, and 4 league cup appearances total?
|
SELECT Name FROM table WHERE League Cup Goals > 0 AND Total Goals < 13 AND League Cup Apps = 4
|
Translate the following into a SQL query
|
Who has the lowest league total goals with 0 FA cup goals and no FA cup appearances, plays the DF position and has appeared in total of 3 times?
|
SELECT MIN League Goals FROM table WHERE FA Cup Goals = 0 AND FA Cup Apps = 0 AND Position = df AND Total Apps = 3
|
Translate the following into a SQL query
|
What is the lowest # Of Episodes, when Date Released is "15 December 2011"?
|
SELECT MIN # Of Episodes FROM table WHERE Date Released = 15 december 2011
|
Translate the following into a SQL query
|
What Date Released, when # Of Discs is greater than 4?
|
SELECT Date Released FROM table WHERE # Of Discs > 4
|
Translate the following into a SQL query
|
What is Season, when # Of Episodes is "10", and when Date Released is "1 April 2010"?
|
SELECT Season FROM table WHERE # Of Episodes = 10 AND Date Released = 1 april 2010
|
Translate the following into a SQL query
|
What was the score when Sheffield United was the home team?
|
SELECT Score FROM table WHERE Home team = sheffield united
|
Translate the following into a SQL query
|
Who was the away team against Newton Heath?
|
SELECT Away team FROM table WHERE Home team = newton heath
|
Translate the following into a SQL query
|
What is the home team when the tie is 11?
|
SELECT Home team FROM table WHERE Tie no = 11
|
Translate the following into a SQL query
|
What is the sum of League Goals, when Position is "DF", when League Cup Apps is "0", when Total Apps is "7", and when FLT Goals is less than 0?
|
SELECT SUM League Goals FROM table WHERE Position = df AND League Cup Apps = 0 AND Total Apps = 7 AND FLT Goals < 0
|
Translate the following into a SQL query
|
What is the total number of FA Cup Goals, when FLT Goals is greater than 0?
|
SELECT COUNT FA Cup Goals FROM table WHERE FLT Goals > 0
|
Translate the following into a SQL query
|
What is the lowest FA Cup Goals, when Total Goals is greater than 0, when League Goals is "4", when FA Cup Apps is "1", and when League Cup Goals is greater than 0?
|
SELECT MIN FA Cup Goals FROM table WHERE Total Goals > 0 AND League Goals = 4 AND FA Cup Apps = 1 AND League Cup Goals > 0
|
Translate the following into a SQL query
|
What is on at 1:30PM with 12:30 local programs, and Pinky and the Brain shows at 4:00pm?
|
SELECT 1:30 pm FROM table WHERE 12:30 pm = local programs AND 4:00 pm = pinky and the brain
|
Translate the following into a SQL query
|
What is on at 4L00pm, with 1:00pm is All My Children?
|
SELECT 4:00 pm FROM table WHERE 1:00 pm = all my children
|
Translate the following into a SQL query
|
What is on at 11:00AM that shows Power Rangers: Turbo at 4:00pm?
|
SELECT 11:00 am FROM table WHERE 4:00 pm = power rangers: turbo
|
Translate the following into a SQL query
|
What is on at 7:00am, when the 1:00 is just local programs?
|
SELECT 7:00 am FROM table WHERE 1:00 pm = local programs
|
Translate the following into a SQL query
|
What is on at 8:00am, that has Another World playing at 2:00pm?
|
SELECT 8:00 am FROM table WHERE 2:00 pm = another world
|
Translate the following into a SQL query
|
How many points for Newman/Haas Racing with fewer than 40 laps?
|
SELECT AVG Points FROM table WHERE Team = newman/haas racing AND Laps < 40
|
Translate the following into a SQL query
|
Which driver has fewer than 2 points, larger grid that 4 and is on American Spirit Team Johansson?
|
SELECT Driver FROM table WHERE Points < 2 AND Grid > 4 AND Team = american spirit team johansson
|
Translate the following into a SQL query
|
What is the week 11 nov 16 standing with wisconsin (10-1) on week 13 Nov 30?
|
SELECT Week 11 Nov 16 FROM table WHERE Week 13 Nov 30 = wisconsin (10-1)
|
Translate the following into a SQL query
|
What is the week 13 Nov 30 standing with USC (7-3) on week 11 Nov 16?
|
SELECT Week 13 Nov 30 FROM table WHERE Week 11 Nov 16 = usc (7-3)
|
Translate the following into a SQL query
|
What is the week 8 Oct 26 standing with georgia tech (8-2) on week 12 Nov 23?
|
SELECT Week 8 Oct 26 FROM table WHERE Week 12 Nov 23 = georgia tech (8-2)
|
Translate the following into a SQL query
|
What is the week 14 (final) dec 7 standing with Florida (6-1) on week 8 Oct 26?
|
SELECT Week 14 (Final) Dec 7 FROM table WHERE Week 8 Oct 26 = florida (6-1)
|
Translate the following into a SQL query
|
What player is associated with soenderjyske.dk?
|
SELECT Name FROM table WHERE Source = soenderjyske.dk
|
Translate the following into a SQL query
|
What is the transfer fee for Gravgaard?
|
SELECT Transfer fee FROM table WHERE Type = transfer AND Name = gravgaard
|
Translate the following into a SQL query
|
What's the result when there's more than 41 moves with an opening of c42 petrov's defence in 2007?
|
SELECT Result FROM table WHERE Moves > 41 AND Year = 2007 AND Opening = c42 petrov's defence
|
Translate the following into a SQL query
|
What's the total number of moves with a result of ½–½ and a black of Anand before 1999?
|
SELECT COUNT Moves FROM table WHERE Result = ½–½ AND Year < 1999 AND Black = anand
|
Translate the following into a SQL query
|
What's the black with 24 moves in the dortmund tournament?
|
SELECT Black FROM table WHERE Moves = 24 AND Tournament = dortmund
|
Translate the following into a SQL query
|
What's the opening when white is Anand with fewer than 61 moves for a result of ½–½?
|
SELECT Opening FROM table WHERE White = anand AND Moves < 61 AND Result = ½–½
|
Translate the following into a SQL query
|
What's the white for a black of Anand, a result of ½–½, 39 moves, and an opening of d37 queen's gambit declined?
|
SELECT White FROM table WHERE Black = anand AND Result = ½–½ AND Moves = 39 AND Opening = d37 queen's gambit declined
|
Translate the following into a SQL query
|
What is the lowest draw that has We The Lovers for the english translation, with a place greater than 1?
|
SELECT MIN Draw FROM table WHERE English translation = we the lovers AND Place > 1
|
Translate the following into a SQL query
|
How many draws have french as the language, with a place less than 1?
|
SELECT SUM Draw FROM table WHERE Language = french AND Place < 1
|
Translate the following into a SQL query
|
What is the Fate of the HMS Manistee (f 104) with a Tonnage of 4,671 or more?
|
SELECT Fate FROM table WHERE Tonnage > 4,671 AND Name of ship = hms manistee (f 104)
|
Translate the following into a SQL query
|
What is the Tonnage of the ship from Canada?
|
SELECT MAX Tonnage FROM table WHERE Flag = canada
|
Translate the following into a SQL query
|
In what place did the golfer representing Zimbabwe finish?
|
SELECT Place FROM table WHERE Country = zimbabwe
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.