instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Tell me the sum of attendane for a result of w 12-3 and week more than 12
SELECT SUM Attendance FROM table WHERE Result = w 12-3 AND Week > 12
Translate the following into a SQL query
Tell me the total number of attendance for result of l 18-6
SELECT COUNT Attendance FROM table WHERE Result = l 18-6
Translate the following into a SQL query
Tell me the total number of attendance for week of 16
SELECT COUNT Attendance FROM table WHERE Week = 16
Translate the following into a SQL query
How many bronzes were held by those with a total of 4 and less than 3 silvers.
SELECT SUM Bronze FROM table WHERE Total = 4 AND Silver < 3
Translate the following into a SQL query
How many rounds did the IFL: Oakland event have?
SELECT SUM Round FROM table WHERE Event = ifl: oakland
Translate the following into a SQL query
Which opponent has a record of 3-0?
SELECT Opponent FROM table WHERE Record = 3-0
Translate the following into a SQL query
Tell me the constructor for david coulthard
SELECT Constructor FROM table WHERE Driver = david coulthard
Translate the following into a SQL query
Tell me the pos for adrian sutil
SELECT Pos. FROM table WHERE Driver = adrian sutil
Translate the following into a SQL query
Tell me the part 1 of grid of 1
SELECT Part 1 FROM table WHERE Grid = 1
Translate the following into a SQL query
Name the city of license for call sign of k215es
SELECT City of license FROM table WHERE Call sign = k215es
Translate the following into a SQL query
Name the FCC info for call sign of k208eq
SELECT FCC info FROM table WHERE Call sign = k208eq
Translate the following into a SQL query
Tell me the total number of date for carpet
SELECT COUNT Date FROM table WHERE Surface = carpet
Translate the following into a SQL query
Tell me the opponent for 6–2, 3–6, 4–6
SELECT Opponent in the final FROM table WHERE Score in the final = 6–2, 3–6, 4–6
Translate the following into a SQL query
What is the nationality of Martin Lewis?
SELECT Nationality FROM table WHERE Player = martin lewis
Translate the following into a SQL query
Tell me the opponent of week 14
SELECT Opponent FROM table WHERE Week = 14
Translate the following into a SQL query
Tell me the average attendance for week of 11
SELECT AVG Attendance FROM table WHERE Week = 11
Translate the following into a SQL query
Tell me opponent for result of w 33-31
SELECT Opponent FROM table WHERE Result = w 33-31
Translate the following into a SQL query
What Name is administered by oral or iv, and is being investigated for thyroid imaging thyroid metastases imaging?
SELECT Name FROM table WHERE Route of administration = oral or iv AND Investigation = thyroid imaging thyroid metastases imaging
Translate the following into a SQL query
Who is the owner with a call sign of cjgx?
SELECT Owner FROM table WHERE Call sign = cjgx
Translate the following into a SQL query
Who is the owner of the branding gx94?
SELECT Owner FROM table WHERE Branding = gx94
Translate the following into a SQL query
What is the call frequency sign of cjjc-fm?
SELECT Frequency FROM table WHERE Call sign = cjjc-fm
Translate the following into a SQL query
Who is the owner with the branding fox fm?
SELECT Owner FROM table WHERE Branding = fox fm
Translate the following into a SQL query
What is the branding frequency of cbc radio 2?
SELECT Frequency FROM table WHERE Branding = cbc radio 2
Translate the following into a SQL query
Tell me the location for altitude being less thaan 6102
SELECT Location FROM table WHERE Altitude (metres) < 6102
Translate the following into a SQL query
Say the region for 6854 altitudes
SELECT Region FROM table WHERE Altitude (metres) = 6854
Translate the following into a SQL query
What is the frequency of number 161?
SELECT Frequency FROM table WHERE Number = 161
Translate the following into a SQL query
What is the frequency of number 3 with a bus station origin?
SELECT Frequency FROM table WHERE Origin = bus station AND Number = 3
Translate the following into a SQL query
What is the origin of the one with a number larger than 161?
SELECT Origin FROM table WHERE Number > 161
Translate the following into a SQL query
What is the origin of the one whose final destination is Brandholmen?
SELECT Origin FROM table WHERE Final destination = brandholmen
Translate the following into a SQL query
What is the highest rank of a rider whose time was 1:19.02.8?
SELECT MAX Place FROM table WHERE Time = 1:19.02.8
Translate the following into a SQL query
Tell me the revised of mccune reischauer of yŏn (s) ryŏn (n)
SELECT Revised FROM table WHERE McCune-Reischauer = yŏn (s) ryŏn (n)
Translate the following into a SQL query
Name the hanja for hangul of 주
SELECT Hanja FROM table WHERE Hangul = 주
Translate the following into a SQL query
Tell me the hanja of eum
SELECT Hanja FROM table WHERE Revised = eum
Translate the following into a SQL query
What model was released in 2005?
SELECT Model FROM table WHERE Released = 2005
Translate the following into a SQL query
Tell me the score for 9 may 2001
SELECT Score FROM table WHERE Date = 9 may 2001
Translate the following into a SQL query
Tell me the competition for 25 march 2001
SELECT Competition FROM table WHERE Date = 25 march 2001
Translate the following into a SQL query
Who was the Race Winner of the Southern Illinois 100?
SELECT Race Winner FROM table WHERE Event Name = southern illinois 100
Translate the following into a SQL query
At which track did the event Daytona Arca 200 take place?
SELECT Track FROM table WHERE Event Name = daytona arca 200
Translate the following into a SQL query
At which event was Ken Schrader the Race Winner at the Toledo Speedway?
SELECT Event Name FROM table WHERE Race Winner = ken schrader AND Track = toledo speedway
Translate the following into a SQL query
At which track was Frank Kimmel the Pole Winner of the Pennsylvania 200?
SELECT Track FROM table WHERE Pole Winner = frank kimmel AND Event Name = pennsylvania 200
Translate the following into a SQL query
Steve Wallace was a Race Winner at the Kentucky Speedway on what date?
SELECT Date FROM table WHERE Race Winner = steve wallace AND Track = kentucky speedway
Translate the following into a SQL query
What is the lowest number of silver owned by a nation that is not ranked number 1?
SELECT MIN Silver FROM table WHERE Rank < 1
Translate the following into a SQL query
What is Driver Kimi Räikkönen's number on the grid?
SELECT Grid FROM table WHERE Driver = kimi räikkönen
Translate the following into a SQL query
Which driver had a Part 1 time of 1:13.306?
SELECT Driver FROM table WHERE Part 1 = 1:13.306
Translate the following into a SQL query
What ride opened after 2011?
SELECT Current Name FROM table WHERE Year First Opened > 2011
Translate the following into a SQL query
Tell me the actor from russia for anastasiya slutskaya
SELECT Actor's Name FROM table WHERE Film Name = anastasiya slutskaya AND Country = russia
Translate the following into a SQL query
Rell mem the actor from ukraine for best actress in a leading role
SELECT Actor's Name FROM table WHERE Nomination = best actress in a leading role AND Country = ukraine
Translate the following into a SQL query
Tell me the director for the movie with svetlana zelenkovskaya
SELECT Director FROM table WHERE Actor's Name = svetlana zelenkovskaya
Translate the following into a SQL query
Tell me the actor's name for anastasiya slutskaya belarus
SELECT Actor's Name FROM table WHERE Film Name = anastasiya slutskaya AND Country = belarus
Translate the following into a SQL query
Tell me the nominator for piotr adamczyk
SELECT Nomination FROM table WHERE Actor's Name = piotr adamczyk
Translate the following into a SQL query
Which stadium can hold 63,443 people?
SELECT Result FROM table WHERE Attendance = 63,443
Translate the following into a SQL query
Tell me the number of weeks for bye
SELECT COUNT Week FROM table WHERE Date = bye
Translate the following into a SQL query
Tell me the number of weeks for december 5, 2005
SELECT COUNT Week FROM table WHERE Date = december 5, 2005
Translate the following into a SQL query
Tell me the start time for december 24, 2005
SELECT Start Time FROM table WHERE Date = december 24, 2005
Translate the following into a SQL query
Tell me the result for lincoln financial field december 11, 2005
SELECT Result FROM table WHERE Venue = lincoln financial field AND Date = december 11, 2005
Translate the following into a SQL query
Tell me the total number of years for wins less than 2 and class of 50cc with points of 15
SELECT COUNT Year FROM table WHERE Wins < 2 AND Class = 50cc AND Points = 15
Translate the following into a SQL query
Tell me the year for class of 125cc
SELECT Year FROM table WHERE Class = 125cc
Translate the following into a SQL query
Tell me the average wins for class of 50cc and rank of 8th
SELECT AVG Wins FROM table WHERE Class = 50cc AND Rank = 8th
Translate the following into a SQL query
Tell me the lowest wins for class of 50cc and team of tomos for year less than 1969
SELECT MIN Wins FROM table WHERE Class = 50cc AND Team = tomos AND Year < 1969
Translate the following into a SQL query
Which country has the highest bronze amount and a silver amount bigger than 41?
SELECT MAX Bronze FROM table WHERE Silver > 41
Translate the following into a SQL query
What is the lowest amount of medals Russia has if they have more than 2 silver medals and less than 4 gold medals?
SELECT MIN Total FROM table WHERE Silver > 2 AND Nation = russia AND Gold < 4
Translate the following into a SQL query
How many points did the 2005 1st place team receive?
SELECT Points FROM table WHERE Year = 2005
Translate the following into a SQL query
What engine was used by the teams that used a Lola b02/00 chassis and ranked 1st?
SELECT Engine FROM table WHERE Chassis = lola b02/00 AND Rank = 1st
Translate the following into a SQL query
How many years did Team Newman/Haas Racing receive a 1st place ranking?
SELECT COUNT Year FROM table WHERE Team = newman/haas racing AND Rank = 1st
Translate the following into a SQL query
What is the aggregate of place for points being 35?
SELECT SUM Place FROM table WHERE Points = 35
Translate the following into a SQL query
Name the fewest points of 5 place
SELECT MIN Points FROM table WHERE Place = 5
Translate the following into a SQL query
Name the total number of places for vicky gordon and points more than 23
SELECT COUNT Place FROM table WHERE Artist = vicky gordon AND Points > 23
Translate the following into a SQL query
Tell me the opponent for attendance of 68,264
SELECT Opponent FROM table WHERE Attendance = 68,264
Translate the following into a SQL query
Tell me the sum of week for result of l 24–21
SELECT SUM Week FROM table WHERE Result = l 24–21
Translate the following into a SQL query
Tell me the result for attendance of 54,462
SELECT Result FROM table WHERE Attendance = 54,462
Translate the following into a SQL query
Tell me the opponent for attendance of 53,899
SELECT Opponent FROM table WHERE Attendance = 53,899
Translate the following into a SQL query
What is the points that is more than 636 and has a value of 50?
SELECT Pts [b ] FROM table WHERE Reb [b ] > 636 AND No [a ] = 50
Translate the following into a SQL query
Which rebound was 8 and has and ast that was less than 57?
SELECT AVG Reb [b ] FROM table WHERE No [a ] = 8 AND Ast [b ] < 57
Translate the following into a SQL query
Tell me the country for ICAO of tjig
SELECT Country FROM table WHERE ICAO = tjig
Translate the following into a SQL query
Tell me the country for san juan
SELECT Country FROM table WHERE City = san juan
Translate the following into a SQL query
Tell me the country for ICAO tjvq
SELECT Country FROM table WHERE ICAO = tjvq
Translate the following into a SQL query
Tell me the iata for icao of tjrv
SELECT IATA FROM table WHERE ICAO = tjrv
Translate the following into a SQL query
Tell me the icao of isla grande
SELECT ICAO FROM table WHERE City = isla grande
Translate the following into a SQL query
What position does the Colorado Rapids pick after 15 play?
SELECT Position FROM table WHERE MLS Team = colorado rapids AND Pick # > 15
Translate the following into a SQL query
I want to know the events for 106 bands
SELECT Event FROM table WHERE Acts = 106 bands
Translate the following into a SQL query
Tell me the Actor's name for film name of sara
SELECT Actor's Name FROM table WHERE Film Name = sara
Translate the following into a SQL query
Tell me the nomination for ukraine
SELECT Nomination FROM table WHERE Country = ukraine
Translate the following into a SQL query
Tell me the actors name for barhanov and his bodyguard
SELECT Actor's Name FROM table WHERE Film Name = barhanov and his bodyguard
Translate the following into a SQL query
Tell me the actors name for goran paskaljevic
SELECT Actor's Name FROM table WHERE Director = goran paskaljevic
Translate the following into a SQL query
Tell me the nomination for goran paskaljevic
SELECT Nomination FROM table WHERE Director = goran paskaljevic
Translate the following into a SQL query
In what year did Stephan Wojcikiewicz play men's single and Anna Rice play women's single?
SELECT Year FROM table WHERE Men's Singles = stephan wojcikiewicz AND Women's Singles = anna rice
Translate the following into a SQL query
Who played men's doubles in 2012?
SELECT Men's Doubles FROM table WHERE Year = 2012
Translate the following into a SQL query
Which FA Cup apps has league goals of 1 with total goals less than 1?
SELECT AVG FA Cup Apps FROM table WHERE League Goals = 1 AND Total Goals < 1
Translate the following into a SQL query
What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9?
SELECT MAX Total Apps FROM table WHERE FA Cup Apps = 26 AND Total Goals > 9
Translate the following into a SQL query
Which league goals has FA cup apps of 2?
SELECT League Goals FROM table WHERE FA Cup Apps = 2
Translate the following into a SQL query
What FA cup apps has a total larger than 12 and league apps larger than 38, and FA Cup goals larger than 1?
SELECT COUNT FA Cup Apps FROM table WHERE Total Apps > 12 AND League Apps > 38 AND FA Cup Goals > 1
Translate the following into a SQL query
What was the total attendance on December 14, 1975 after week 13?
SELECT COUNT Attendance FROM table WHERE Date = december 14, 1975 AND Week > 13
Translate the following into a SQL query
What is the sum of all totals with a rank greater than 6, gold greater than 0, and silver greater than 2?
SELECT SUM Total FROM table WHERE Rank > 6 AND Gold > 0 AND Silver = 2
Translate the following into a SQL query
How many values for silver occur when gold is less than 1, the rank is 13, and bronze is greater than 2?
SELECT COUNT Silver FROM table WHERE Gold < 1 AND Rank = 13 AND Bronze > 2
Translate the following into a SQL query
What is the average value of Bronze when silver is 0 and the total is less than 1?
SELECT AVG Bronze FROM table WHERE Silver = 0 AND Total < 1
Translate the following into a SQL query
What is the lowest value for bronze with a total of 3 and a value for silver greater than 1 while the value of gold is smaller than 1?
SELECT MIN Bronze FROM table WHERE Total = 3 AND Silver > 1 AND Gold < 1
Translate the following into a SQL query
How man values for bronze occur when gold is less than 1, rank is greater than 15, and total is greater than 1?
SELECT COUNT Bronze FROM table WHERE Gold < 1 AND Rank > 15 AND Total > 1
Translate the following into a SQL query
Name the position of pick 234
SELECT Position FROM table WHERE Pick = 234
Translate the following into a SQL query
Name the team of vitali yeremeyev
SELECT NHL team FROM table WHERE Player = vitali yeremeyev
Translate the following into a SQL query
Tell me the result for 2007-09-29
SELECT Result FROM table WHERE Date = 2007-09-29