instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What is the score in 1929?
SELECT Score FROM table WHERE Year = 1929
Translate the following into a SQL query
Who was the batsmen at the Brit Oval location?
SELECT Batsmen FROM table WHERE Location = the brit oval
Translate the following into a SQL query
What year was the bridge in Kent built?
SELECT Built FROM table WHERE County = kent
Translate the following into a SQL query
In which county is East Providence?
SELECT County FROM table WHERE Location = east providence
Translate the following into a SQL query
What county had a bridge biult in 1884?
SELECT County FROM table WHERE Built = 1884
Translate the following into a SQL query
What is the Place of the Player with a Score of 68-73-66-74=281?
SELECT Place FROM table WHERE Score = 68-73-66-74=281
Translate the following into a SQL query
What is the Place of the Player with 122,100 Money and a Score of 68-70-68-74=280?
SELECT Place FROM table WHERE Money ( £ ) > 122,100 AND Score = 68-70-68-74=280
Translate the following into a SQL query
What Country's Player scored 71-69-70-71=281?
SELECT Country FROM table WHERE Score = 71-69-70-71=281
Translate the following into a SQL query
What is T5 Place Vijay Singh's To par?
SELECT To par FROM table WHERE Place = t5 AND Player = vijay singh
Translate the following into a SQL query
What is Score, when Player is "Bob Murphy"?
SELECT Score FROM table WHERE Player = bob murphy
Translate the following into a SQL query
What is Player, when To Par is "+1", when Country is "United States", and when Score is "71-70=141"?
SELECT Player FROM table WHERE To par = +1 AND Country = united states AND Score = 71-70=141
Translate the following into a SQL query
What is Score, when Place is "T8", and when Player is "Orville Moody"?
SELECT Score FROM table WHERE Place = t8 AND Player = orville moody
Translate the following into a SQL query
What is Score, when Player is "Deane Beman"?
SELECT Score FROM table WHERE Player = deane beman
Translate the following into a SQL query
What is Country, when Player is "Jack Nicklaus"?
SELECT Country FROM table WHERE Player = jack nicklaus
Translate the following into a SQL query
What is the Country, when Place is "1"?
SELECT Country FROM table WHERE Place = 1
Translate the following into a SQL query
WHAT IS THE RESULT FOR best urban/alternative performance, IN 2003 OR GREATER?
SELECT Result FROM table WHERE Category = best urban/alternative performance AND Year > 2003
Translate the following into a SQL query
WHAT IS THE TITLE WITH CATEGORY OF best r&b song?
SELECT Title FROM table WHERE Category = best r&b song
Translate the following into a SQL query
WHAT IS THE RESULT FOR 2003, IN best urban/alternative performance?
SELECT Result FROM table WHERE Year = 2003 AND Category = best urban/alternative performance
Translate the following into a SQL query
WHAT IS THE YEAR OF FLOETIC?
SELECT SUM Year FROM table WHERE Title = floetic
Translate the following into a SQL query
Who had the highest assists when the nuggets record was 2-4?
SELECT High assists FROM table WHERE Record = 2-4
Translate the following into a SQL query
Who had the highest assists in game 3?
SELECT High assists FROM table WHERE Game = 3
Translate the following into a SQL query
What is Home Team, when Home Team Score is 22.15 (147)?
SELECT Home team FROM table WHERE Home team score = 22.15 (147)
Translate the following into a SQL query
What is Time, when Ground is Waverley Park, and when Away Team is Footscray?
SELECT Time FROM table WHERE Ground = waverley park AND Away team = footscray
Translate the following into a SQL query
What is Away Team, when Ground is Waverley Park, and when Away Team Score is 10.14 (74)?
SELECT Away team FROM table WHERE Ground = waverley park AND Away team score = 10.14 (74)
Translate the following into a SQL query
What is Ground, when Away Team is Sydney?
SELECT Ground FROM table WHERE Away team = sydney
Translate the following into a SQL query
What is Date, when Home Team is Richmond?
SELECT Date FROM table WHERE Home team = richmond
Translate the following into a SQL query
What is Home Team Score, when Time is 12:00 PM, and when Ground is Waverley Park?
SELECT Home team score FROM table WHERE Time = 12:00 pm AND Ground = waverley park
Translate the following into a SQL query
What is the highest year for the US Open?
SELECT MAX Year FROM table WHERE Championship = us open
Translate the following into a SQL query
What is Result, when Week is 16?
SELECT Result FROM table WHERE Week = 16
Translate the following into a SQL query
What is Record, when Attendance is 30,110?
SELECT Record FROM table WHERE Attendance = 30,110
Translate the following into a SQL query
What is Date, when Opponent is At Saskatchewan Roughriders?
SELECT Date FROM table WHERE Opponent = at saskatchewan roughriders
Translate the following into a SQL query
Which grades have a 2007 API of 734?
SELECT grades FROM table WHERE 2007 API = 734
Translate the following into a SQL query
Which School name has students smaller than 389, and grades of 10-12?
SELECT School name FROM table WHERE students < 389 AND grades = 10-12
Translate the following into a SQL query
Which grades have students smaller than 430, and a 2007 API of 510?
SELECT grades FROM table WHERE students < 430 AND 2007 API = 510
Translate the following into a SQL query
What was the score of the game where the home team was the cairns taipans?
SELECT Score FROM table WHERE Home team = cairns taipans
Translate the following into a SQL query
What was the score of the game where the adelaide 36ers were the home team?
SELECT Score FROM table WHERE Home team = adelaide 36ers
Translate the following into a SQL query
What was the score of the game where the venue was cairns convention centre?
SELECT Score FROM table WHERE Venue = cairns convention centre
Translate the following into a SQL query
Who was the away team during the game when the home team was the new zealand breakers?
SELECT Away team FROM table WHERE Home team = new zealand breakers
Translate the following into a SQL query
What was the score of the game which featured the gold coast blaze as the away team and the adelaide 36ers as the home team?
SELECT Score FROM table WHERE Away team = gold coast blaze AND Home team = adelaide 36ers
Translate the following into a SQL query
What is the average market value in billions of the company with less than 1,705.35 billions in assets, sales of 175.05 billions, and is ranked less than 19?
SELECT AVG Market Value (billion $) FROM table WHERE Assets (billion $) < 1,705.35 AND Sales (billion $) = 175.05 AND Rank < 19
Translate the following into a SQL query
What is the total rank of the company with less than 248.44 billion in assets, an industry of oil and gas, headquarters in France, and a market value greater than 152.62 billions?
SELECT COUNT Rank FROM table WHERE Assets (billion $) < 248.44 AND Industry = oil and gas AND Headquarters = france AND Market Value (billion $) > 152.62
Translate the following into a SQL query
What company has more than 195.34 billion in sales, ranked greater than 7, more than 11.29 billion in profits, and a market value greater than 198.14 billion?
SELECT Company FROM table WHERE Sales (billion $) > 195.34 AND Rank > 7 AND Profits (billion $) > 11.29 AND Market Value (billion $) > 198.14
Translate the following into a SQL query
What is the average rank of the company with more than 146.56 billion in sales and profits of 11.68 billions?
SELECT AVG Rank FROM table WHERE Sales (billion $) > 146.56 AND Profits (billion $) = 11.68
Translate the following into a SQL query
What was the position of the player from the college of Nevada with a round over 5?
SELECT Position FROM table WHERE Round > 5 AND College = nevada
Translate the following into a SQL query
Which college had a pick in a round under 7, with a pick number 13 and overall was under 186?
SELECT College FROM table WHERE Round < 7 AND Overall < 186 AND Pick = 13
Translate the following into a SQL query
How many Parishes in Merrimack which has 4 Cemeteries?
SELECT MIN Parishes FROM table WHERE Pastoral Region = merrimack AND Cemeteries < 4
Translate the following into a SQL query
What Pastoral Region has 3 Cemeteries?
SELECT Pastoral Region FROM table WHERE Cemeteries = 3
Translate the following into a SQL query
How many High schools in the Region with 8 Cemeteries?
SELECT SUM High schools FROM table WHERE Cemeteries = 8
Translate the following into a SQL query
What Pastoral Region has Episcopal Vicar Robert Francis Hennessey?
SELECT Pastoral Region FROM table WHERE Episcopal vicar = robert francis hennessey
Translate the following into a SQL query
What is the name of the person with more than 299 games during the 1995–07 period?
SELECT Name FROM table WHERE Games > 299 AND Period = 1995–07
Translate the following into a SQL query
What is the number of games for Shlomi Avrahami?
SELECT COUNT Games FROM table WHERE Name = shlomi avrahami
Translate the following into a SQL query
What is the rank for the period of 1973–89, with less than 423 games.
SELECT SUM Rank FROM table WHERE Period = 1973–89 AND Games < 423
Translate the following into a SQL query
What is the team 1 when Ulisses is team 2?
SELECT Team 1 FROM table WHERE Team 2 = ulisses
Translate the following into a SQL query
What is 2009, when Year is "Highest Mean Annual Temperature"?
SELECT 2009 FROM table WHERE Year = highest mean annual temperature
Translate the following into a SQL query
How many gold values have totals over 30, bronzes over 35, and are in Swimming?
SELECT COUNT Gold FROM table WHERE Total > 30 AND Sport = swimming AND Bronze > 35
Translate the following into a SQL query
What is the highest bronze value with silvers over 2, golds under 16, and in Cycling?
SELECT MAX Bronze FROM table WHERE Silver > 2 AND Sport = cycling AND Gold < 16
Translate the following into a SQL query
What is the total associated with Bronzes over 35?
SELECT Total FROM table WHERE Bronze > 35
Translate the following into a SQL query
What is the smallest bronze value associated with golds over 0, silvers over 11, and totals of 36?
SELECT MIN Bronze FROM table WHERE Gold > 0 AND Total = 36 AND Silver > 11
Translate the following into a SQL query
What is the average number of golds in athletics associated with over 42 silvers?
SELECT AVG Gold FROM table WHERE Sport = athletics AND Silver > 42
Translate the following into a SQL query
What is the smallest number of silvers associated with bronzes under 20, totals of 1, golds of 0, and in Water Polo?
SELECT MIN Silver FROM table WHERE Bronze < 20 AND Total = 1 AND Sport = water polo AND Gold < 0
Translate the following into a SQL query
What was the lowest pick number for Marc Pilon?
SELECT MIN Pick # FROM table WHERE Player = marc pilon
Translate the following into a SQL query
What player was from the British Columbia college?
SELECT Player FROM table WHERE College = british columbia
Translate the following into a SQL query
What was the highest pick number for the Hamilton tiger-cats?
SELECT MAX Pick # FROM table WHERE CFL Team = hamilton tiger-cats
Translate the following into a SQL query
What was the pick number for the WR position?
SELECT Pick # FROM table WHERE Position = wr
Translate the following into a SQL query
Can you tell me the Goal that has the Result of 2-0?
SELECT Goal FROM table WHERE Result = 2-0
Translate the following into a SQL query
What is Place, when Prize is "$381.030"?
SELECT Place FROM table WHERE Prize = $381.030
Translate the following into a SQL query
What is Rank, when Event is "LAPT3 Punta Del Este"?
SELECT Rank FROM table WHERE Event = lapt3 punta del este
Translate the following into a SQL query
What is Name, when Prize is "$279.330"?
SELECT Name FROM table WHERE Prize = $279.330
Translate the following into a SQL query
What is Prize, when Rank is "2nd"?
SELECT Prize FROM table WHERE Rank = 2nd
Translate the following into a SQL query
What is Rank, when Event is "LAPT4 São Paulo"?
SELECT Rank FROM table WHERE Event = lapt4 são paulo
Translate the following into a SQL query
What is Prize, when Name is "Valdemar Kwaysser"?
SELECT Prize FROM table WHERE Name = valdemar kwaysser
Translate the following into a SQL query
What is the bus power for the Controlnet Fieldbus?
SELECT Bus power FROM table WHERE Fieldbus = controlnet
Translate the following into a SQL query
What is the millisecond cycle for the Fieldbus?
SELECT Sub millisecond cycle FROM table WHERE Fieldbus = fieldbus
Translate the following into a SQL query
What is the synchronisation for the controlnet fieldbus?
SELECT Synchronisation FROM table WHERE Fieldbus = controlnet
Translate the following into a SQL query
Which Position has a College of colorado?
SELECT Position FROM table WHERE College = colorado
Translate the following into a SQL query
Which College has an Overall larger than 211, a Position of db, and a Name of carl charon?
SELECT College FROM table WHERE Overall > 211 AND Position = db AND Name = carl charon
Translate the following into a SQL query
Which Overall has a College of michigan state, a Position of fb, and a Round larger than 8?
SELECT SUM Overall FROM table WHERE College = michigan state AND Position = fb AND Round > 8
Translate the following into a SQL query
Which Round has a College of arizona?
SELECT MIN Round FROM table WHERE College = arizona
Translate the following into a SQL query
Which Overall has a Round of 7?
SELECT MIN Overall FROM table WHERE Round = 7
Translate the following into a SQL query
Which Round has a Pick larger than 1?
SELECT SUM Round FROM table WHERE Pick > 1
Translate the following into a SQL query
In italy, when the stolen ends were 10 and blank ends were under 14, what's the lowest ends won?
SELECT MIN Ends Won FROM table WHERE Stolen Ends = 10 AND Locale = italy AND Blank Ends < 14
Translate the following into a SQL query
When ends won were below 57 but stolen ends are more than 14, what's the highest blank ends found?
SELECT MAX Blank Ends FROM table WHERE Stolen Ends > 14 AND Ends Won < 57
Translate the following into a SQL query
What is the highest value for N, Golosov, when Constellation is G, and when Largest Component, Fractional Share is greater than 0.15?
SELECT MAX N, Golosov FROM table WHERE Constellation = g AND Largest component, fractional share > 0.15
Translate the following into a SQL query
What is the sum of the values for N, Laakso-Taagepera, when Largest Component, Fractional Share is 0.35000000000000003, and when Constellation is E?
SELECT SUM N, Laakso-Taagepera FROM table WHERE Largest component, fractional share = 0.35000000000000003 AND Constellation = e
Translate the following into a SQL query
What is the sum of the values for Largest Component, Fractional Share, when Constellation is E, and when N, Golosov is greater than 2.9?
SELECT SUM Largest component, fractional share FROM table WHERE Constellation = e AND N, Golosov > 2.9
Translate the following into a SQL query
What is the average Largest Component, Fractional Share, when N, Laakso-Taagepera is 1.98, and when N, Golosov is greater than 1.82?
SELECT AVG Largest component, fractional share FROM table WHERE N, Laakso-Taagepera = 1.98 AND N, Golosov > 1.82
Translate the following into a SQL query
What is the lowest value for N, Golosov, when N, Laakso-Taagepera is greater than 10.64?
SELECT MIN N, Golosov FROM table WHERE N, Laakso-Taagepera > 10.64
Translate the following into a SQL query
What was the attendance record for Leicester City?
SELECT Attendance FROM table WHERE Home team = leicester city
Translate the following into a SQL query
What was the attendance for Arsenal?
SELECT Attendance FROM table WHERE Home team = arsenal
Translate the following into a SQL query
Who was the home team against the Bolton Wanderers?
SELECT Home team FROM table WHERE Away team = bolton wanderers
Translate the following into a SQL query
Who was the opponent of the match in South Dakota, United States which has 2 rounds?
SELECT Opponent FROM table WHERE Round = 2 AND Location = south dakota, united states
Translate the following into a SQL query
What is the total ATMs with off-site ATMs greater than 3672, and less than 1685 as the number of branches?
SELECT COUNT Total ATMs FROM table WHERE Off-site ATMs > 3672 AND Number of branches < 1685
Translate the following into a SQL query
What is the total number of branches when the on-site ATMS is 1548, and the off-site ATMs is bigger than 3672?
SELECT SUM Number of branches FROM table WHERE On-site ATMs = 1548 AND Off-site ATMs > 3672
Translate the following into a SQL query
What is the minimum total ATMs with new private sector banks as the bank type, and the on-site ATMs are greater than 1883?
SELECT MIN Total ATMs FROM table WHERE Bank type = new private sector banks AND On-site ATMs > 1883
Translate the following into a SQL query
What is the mean on-site ATMS that have off-site ATMs of 1567, and the total number of ATMs less than 4772?
SELECT AVG On-site ATMs FROM table WHERE Off-site ATMs = 1567 AND Total ATMs < 4772
Translate the following into a SQL query
With foreign banks as the bank type, and on-site ATMS less than 218, what is the average off-site ATMs?
SELECT AVG Off-site ATMs FROM table WHERE Bank type = foreign banks AND On-site ATMs < 218
Translate the following into a SQL query
What is Effect, when Weapon is "35mm/Small arms fire"?
SELECT Effect FROM table WHERE Weapon = 35mm/small arms fire
Translate the following into a SQL query
What is Date, when Effect is "Shot Down", and when Place is "South of Stanley Airport"?
SELECT Date FROM table WHERE Effect = shot down AND Place = south of stanley airport
Translate the following into a SQL query
What is Place, when Weapon is "35mm fire", and when Date is "27 May 1982"?
SELECT Place FROM table WHERE Weapon = 35mm fire AND Date = 27 may 1982
Translate the following into a SQL query
What is Pilot, when Place is "Goose Green", and when Date is "27 May 1982"?
SELECT Pilot FROM table WHERE Place = goose green AND Date = 27 may 1982