instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What is the average value for Lost, when the value for Goals Scored is greater than 20, and when the value for Played is less than 18?
SELECT AVG Lost FROM table WHERE Goals Scored > 20 AND Played < 18
Translate the following into a SQL query
What is score of the game played in place t8 with Byron Nelson playing?
SELECT Score FROM table WHERE Place = t8 AND Player = byron nelson
Translate the following into a SQL query
What is the sum of Money of the game that was played in the United States with Sam Snead as a player?
SELECT SUM Money ( $ ) FROM table WHERE Country = united states AND Player = sam snead
Translate the following into a SQL query
What is the Money ($) of the game with a score of 69-74-70-73=286?
SELECT MAX Money ( $ ) FROM table WHERE Score = 69-74-70-73=286
Translate the following into a SQL query
Name the mountains classification which has a young rider classification of francesco casagrande and integiro classification of not awarded with stage of 2
SELECT Mountains classification FROM table WHERE Young rider classification = francesco casagrande AND Intergiro classification = not awarded AND Stage = 2
Translate the following into a SQL query
Name the winner for adriano baffi and integiro classification of jΓ‘n svorada for stage of 13
SELECT Winner FROM table WHERE Points classification = adriano baffi AND Intergiro classification = jΓ‘n svorada AND Stage = 13
Translate the following into a SQL query
Name trofeo fast team with young rider classification of francesco casagrande and stage of 10
SELECT Trofeo Fast Team FROM table WHERE Young rider classification = francesco casagrande AND Stage = 10
Translate the following into a SQL query
What is the sum of the total for a routine score of 26.6?
SELECT SUM Total FROM table WHERE Routine score = 26.6
Translate the following into a SQL query
Name the january when april is courtney rachel culkin
SELECT January FROM table WHERE April = courtney rachel culkin
Translate the following into a SQL query
Name the october when november is buffy tyler
SELECT October FROM table WHERE November = buffy tyler
Translate the following into a SQL query
Name the october when the september is dalene kurtis
SELECT October FROM table WHERE September = dalene kurtis
Translate the following into a SQL query
Name the april for candice cassidy
SELECT April FROM table WHERE June = candice cassidy
Translate the following into a SQL query
Name the october for july of kimberley stanfield
SELECT October FROM table WHERE July = kimberley stanfield
Translate the following into a SQL query
Which Representative was from Kentucky during the years of 1855–1859?
SELECT Representative FROM table WHERE State = kentucky AND Years = 1855–1859
Translate the following into a SQL query
What was the lifespan of the Representative from the Republican Party during the years of 1953–1970?
SELECT Lifespan FROM table WHERE Party = republican AND Years = 1953–1970
Translate the following into a SQL query
What years did the Representative from Iowa with a lifespan of 1880–1942 serve?
SELECT Years FROM table WHERE State = iowa AND Lifespan = 1880–1942
Translate the following into a SQL query
Which Representative had a Lifespan of 1795–1866?
SELECT Representative FROM table WHERE Lifespan = 1795–1866
Translate the following into a SQL query
When did the Chiefs have their first bye?
SELECT MIN Week FROM table WHERE Attendance = bye
Translate the following into a SQL query
What is the position played for the player drafted in round 2?
SELECT Position FROM table WHERE Round = 2
Translate the following into a SQL query
what is the name of the player that played position 3b?
SELECT Name FROM table WHERE Position = 3b
Translate the following into a SQL query
what is the school for Ivey armstrong?
SELECT School FROM table WHERE Name = ivey armstrong
Translate the following into a SQL query
what is the position for the player from university of alabama?
SELECT Position FROM table WHERE School = university of alabama
Translate the following into a SQL query
How many days with frost were there in the City/Town of Lugo have?
SELECT SUM Days with frost FROM table WHERE City/Town = lugo
Translate the following into a SQL query
What is the lowest number of sunlight hours, and number of days with frost, more than 30, for the city of Ourense?
SELECT MIN Sunlight hours FROM table WHERE City/Town = ourense AND Days with frost > 30
Translate the following into a SQL query
What is the largest amount of sunlight hours for the City of Pontevedra?
SELECT MAX Sunlight hours FROM table WHERE City/Town = pontevedra
Translate the following into a SQL query
for the rank of 3 for the united states, what is the average lane?
SELECT AVG Lane FROM table WHERE Nationality = united states AND Rank = 3
Translate the following into a SQL query
for the rank more than 1 and nationality of netherlands, what is the lane?
SELECT AVG Lane FROM table WHERE Nationality = netherlands AND Rank > 1
Translate the following into a SQL query
for the time of 49.04 and lane less than 3, what is the nationality?
SELECT Nationality FROM table WHERE Lane < 3 AND Time = 49.04
Translate the following into a SQL query
for the rank of 8 and lane less than 3 what is the name?
SELECT Name FROM table WHERE Lane < 3 AND Rank = 8
Translate the following into a SQL query
What play has a loss of 2?
SELECT Played FROM table WHERE Lost = 2
Translate the following into a SQL query
What try bonus has a club of caerphilly rfc?
SELECT Try bonus FROM table WHERE Club = caerphilly rfc
Translate the following into a SQL query
What club has a play of 22, and losing bonus of 7?
SELECT Club FROM table WHERE Played = 22 AND Losing bonus = 7
Translate the following into a SQL query
What point against has tries against of 77, and a lost of 16?
SELECT Points against FROM table WHERE Tries against = 77 AND Lost = 16
Translate the following into a SQL query
The nll participate in what sport?
SELECT Sport FROM table WHERE League = nll
Translate the following into a SQL query
When did the Club of western new york flash begin to play?
SELECT Began play FROM table WHERE Club = western new york flash
Translate the following into a SQL query
Which club plays soccer in the nwsl?
SELECT Club FROM table WHERE Sport = soccer AND League = nwsl
Translate the following into a SQL query
When did the Rochester Rhinos begin to play?
SELECT Began play FROM table WHERE Club = rochester rhinos
Translate the following into a SQL query
The sun of total that has a tour of 7 and a Giro smaller than 3 is 12.
SELECT SUM Total FROM table WHERE Tour = 7 AND Giro < 3
Translate the following into a SQL query
What genders did Lynmore Primary School take?
SELECT Gender FROM table WHERE Name = lynmore primary school
Translate the following into a SQL query
Which area served coed genders at Kaharoa school and had a Decile of 9?
SELECT Area FROM table WHERE Gender = coed AND Decile = 9 AND Name = kaharoa school
Translate the following into a SQL query
What was the gender for the integrated authority with a roll of 142?
SELECT Gender FROM table WHERE Authority = integrated AND Roll = 142
Translate the following into a SQL query
What was the Authority for Avalon School with a roll less than 358?
SELECT Authority FROM table WHERE Area = avalon AND Roll < 358 AND Name = avalon school
Translate the following into a SQL query
Who is the authority for the coed Eastbourne school?
SELECT Authority FROM table WHERE Area = eastbourne AND Gender = coed
Translate the following into a SQL query
What is the sum of all laps with rank 3?
SELECT COUNT Laps FROM table WHERE Rank = 3
Translate the following into a SQL query
What is the sum of all laps starting at 10 and finishing at 20?
SELECT SUM Laps FROM table WHERE Start = 10 AND Finish = 20
Translate the following into a SQL query
What's the rank when the start is 10 and the laps are fewer than 192?
SELECT Rank FROM table WHERE Start = 10 AND Laps < 192
Translate the following into a SQL query
What's the rank when the laps are fewer than 137 and the qual is 116.470?
SELECT Rank FROM table WHERE Laps < 137 AND Qual = 116.470
Translate the following into a SQL query
What director worked with Al Mackay as writer?
SELECT Director(s) FROM table WHERE Writer(s) = al mackay
Translate the following into a SQL query
Which producer worked with Robert Sproul-cran as writer?
SELECT Producer(s) FROM table WHERE Writer(s) = robert sproul-cran
Translate the following into a SQL query
Which film did Al Mackay write?
SELECT Film FROM table WHERE Writer(s) = al mackay
Translate the following into a SQL query
Who directed the film 'The Chapel'?
SELECT Director(s) FROM table WHERE Film = the chapel
Translate the following into a SQL query
What award did Andrew Ryder win as producer?
SELECT Award FROM table WHERE Producer(s) = andrew ryder
Translate the following into a SQL query
What is the total national rank of Canada with lanes larger than 3?
SELECT SUM Rank FROM table WHERE Nationality = canada AND Lane > 3
Translate the following into a SQL query
For the team with 39+1 points and fewer than 7 draws, how many wins were scored?
SELECT COUNT Wins FROM table WHERE Points = 39+1 AND Draws < 7
Translate the following into a SQL query
For a goal difference greater than 3 and fewer than 8 losses, what is the most draws scored?
SELECT MAX Draws FROM table WHERE Goal Difference > 3 AND Losses < 8
Translate the following into a SQL query
Which club had fewer than 29 goals against and a difference smaller than 26?
SELECT Club FROM table WHERE Goals against < 29 AND Goal Difference < 26
Translate the following into a SQL query
What was the score when the Rangers' attendance was 23,493?
SELECT Score FROM table WHERE Attendance = 23,493
Translate the following into a SQL query
Who was the opponent on the game on April 14, 2007?
SELECT Opponent FROM table WHERE Date = april 14, 2007
Translate the following into a SQL query
How many people were in attendance on the game on April 8, 2007?
SELECT Attendance FROM table WHERE Date = april 8, 2007
Translate the following into a SQL query
What was the date of the game with 16,404 people?
SELECT Date FROM table WHERE Attendance = 16,404
Translate the following into a SQL query
Which category was Dev Patel nominated for?
SELECT Category FROM table WHERE Winner/Nominee(s) = dev patel
Translate the following into a SQL query
Which film was Eddie Murphy nominated for?
SELECT Film FROM table WHERE Winner/Nominee(s) = eddie murphy AND Result = nominated
Translate the following into a SQL query
When the start is 22, what is the finish?
SELECT Finish FROM table WHERE Start = 22
Translate the following into a SQL query
What year resulted in 54 laps?
SELECT Year FROM table WHERE Laps = 54
Translate the following into a SQL query
On what date was the score 2–4?
SELECT Date FROM table WHERE Score = 2–4
Translate the following into a SQL query
Who was the home team when the score was 4–3?
SELECT Home FROM table WHERE Score = 4–3
Translate the following into a SQL query
On what date was the record 2–1?
SELECT Date FROM table WHERE Record = 2–1
Translate the following into a SQL query
Who was the winning driver with the winning team Opel Team Holzer 1, and a round under 9 with the fastest lap being Bernd Schneider?
SELECT Winning driver FROM table WHERE Winning team = opel team holzer 1 AND Round < 9 AND Fastest lap = bernd schneider
Translate the following into a SQL query
What was the final number for the winning manufacturer with Mercedes-benz, and a circuit of hockenheimring?
SELECT COUNT Round FROM table WHERE Winning manufacturer = mercedes-benz AND Circuit = hockenheimring
Translate the following into a SQL query
What was the date of Circuit Hockenheimring and the winning manufacturer being Mercedes-Benz?
SELECT Date FROM table WHERE Circuit = hockenheimring AND Winning manufacturer = mercedes-benz
Translate the following into a SQL query
Who was the winning driver of the Circuit of Lausitzring?
SELECT Winning driver FROM table WHERE Circuit = lausitzring
Translate the following into a SQL query
What is the city of txdot har?
SELECT City of License FROM table WHERE Brand = txdot har
Translate the following into a SQL query
What was radio mexicana's website?
SELECT Website FROM table WHERE Brand = radio mexicana
Translate the following into a SQL query
Which player ranks higher than 9?
SELECT Player FROM table WHERE Rank > 9
Translate the following into a SQL query
What was the 2011 gross revenue for the venue that had a gross revenue of $156,315 in 1982?
SELECT Gross Revenue (2011) FROM table WHERE Gross Revenue (1982) = $156,315
Translate the following into a SQL query
What was the 2011 gross revenue for the venue that had a gross revenue of $156,315 in 1982?
SELECT Gross Revenue (2011) FROM table WHERE Gross Revenue (1982) = $156,315
Translate the following into a SQL query
How many tickets were sold / available for the venue that had a gross revenue of $333,100 in 2011?
SELECT Tickets Sold / Available FROM table WHERE Gross Revenue (2011) = $333,100
Translate the following into a SQL query
What is the venue in the city of Brussels, Belgium?
SELECT Venue FROM table WHERE City = brussels, belgium
Translate the following into a SQL query
What venue had gross revenues of $1,325,153 in 2011?
SELECT Venue FROM table WHERE Gross Revenue (2011) = $1,325,153
Translate the following into a SQL query
What was held in 2003/04 when Former Ranking Tournaments was in 2007/08?
SELECT 2003/ 04 FROM table WHERE 2007/ 08 = former ranking tournaments
Translate the following into a SQL query
What was held in 2009/10 with Former Ranking Tournaments in 2003/04?
SELECT 2009/ 10 FROM table WHERE 2003/ 04 = former ranking tournaments
Translate the following into a SQL query
What was held in 2003/04 when 3R was in 2012?
SELECT 2003/ 04 FROM table WHERE 2012/ 13 = 3r
Translate the following into a SQL query
What was held in 2009/10 when 2004/05 was Variant Format Tournaments?
SELECT 2009/ 10 FROM table WHERE 2004/ 05 = variant format tournaments
Translate the following into a SQL query
How many people are in Livingstone when less than 6,406 are in Firzroy, less than 3,967 in Mt. Morgan, more than 52,383 in Rochhampton, and less than 102,048 in total region?
SELECT COUNT Livingstone FROM table WHERE Fitzroy < 6,406 AND Mt Morgan < 3,967 AND Rockhampton > 52,383 AND Total Region < 102,048
Translate the following into a SQL query
How many people in the total region when there are more than 6,406 in Fitzroy, 27,017 in Livinstonge, and less than 58,382 in Rochhampton?
SELECT COUNT Total Region FROM table WHERE Fitzroy > 6,406 AND Livingstone = 27,017 AND Rockhampton < 58,382
Translate the following into a SQL query
How many people were in Mt Morgan earlier than 1933 when the Total Region had 44,501?
SELECT COUNT Mt Morgan FROM table WHERE Total Region = 44,501 AND Year < 1933
Translate the following into a SQL query
What is the sum of people in the total region when more than 5,060 were in Mt. Morgan?
SELECT SUM Total Region FROM table WHERE Mt Morgan > 5,060
Translate the following into a SQL query
What is the total swimsuit with Preliminaries smaller than 8.27?
SELECT SUM Swimsuit FROM table WHERE Preliminaries < 8.27
Translate the following into a SQL query
What's the average interview with Preliminaries larger than 8.27, an Evening Gown of 8.85, and an Average smaller than 8.842?
SELECT AVG Interview FROM table WHERE Preliminaries > 8.27 AND Evening Gown = 8.85 AND Average < 8.842
Translate the following into a SQL query
How many swimsuits have an Evening Gown larger than 9, and an Interview larger than 8.405?
SELECT COUNT Swimsuit FROM table WHERE Evening Gown > 9 AND Interview > 8.405
Translate the following into a SQL query
What is the 2000 population in OK with a 1990-2000 percent change of A078 +17.22%?
SELECT 2000 Population FROM table WHERE State(s) = ok AND Percent Change (1990–2000) = a078 +17.22%
Translate the following into a SQL query
What is the 1990-2000 percent change of a result that is estimated to be 45,393 in 2007?
SELECT Percent Change (1990–2000) FROM table WHERE 2007 Estimate = 45,393
Translate the following into a SQL query
What is the rank of a result with a population of 99,962 in 2000?
SELECT Rank (CSA) FROM table WHERE 2000 Population = 99,962
Translate the following into a SQL query
How many matches did goalkeeper Wilfredo Caballero have an average less than 1.11?
SELECT SUM Matches FROM table WHERE Goalkeeper = wilfredo caballero AND Average < 1.11
Translate the following into a SQL query
What is the average goals less than 41 that goalkeeper Claudio Bravo had?
SELECT COUNT Average FROM table WHERE Goals < 41 AND Goalkeeper = claudio bravo
Translate the following into a SQL query
What is the highest average of goals less than 45 for team Real Sociedad?
SELECT MAX Average FROM table WHERE Goals < 45 AND Team = real sociedad
Translate the following into a SQL query
When did the person born on 3 May 1446 cease to be countess?
SELECT Ceased to be Countess FROM table WHERE Birth = 3 may 1446
Translate the following into a SQL query
Who was the father of the person born in 1363?
SELECT Father FROM table WHERE Birth = 1363
Translate the following into a SQL query
When was the marriage of the person who died on 17 December 1471?
SELECT Marriage FROM table WHERE Death = 17 december 1471
Translate the following into a SQL query
On what surface did Poland play as the against team?
SELECT Surface FROM table WHERE Against = poland