instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What position Jason Fitzgerald played?
SELECT Position FROM table WHERE Player = jason fitzgerald
Translate the following into a SQL query
Jason Romano played for what team?
SELECT Team FROM table WHERE Player = jason romano
Translate the following into a SQL query
What are the dimensions of the amp with a 180W output?
SELECT Dimensions FROM table WHERE Output = 180w
Translate the following into a SQL query
Which player was from Fermanagh and had an average score of 22?
SELECT AVG Average FROM table WHERE Total = 22 AND County = fermanagh
Translate the following into a SQL query
How many total points did Oisin McConville have from his 5 matches?
SELECT COUNT Total FROM table WHERE Player = oisin mcconville AND Matches < 5
Translate the following into a SQL query
How many attendances have October 30, 1977 as the date, with a week greater than 7?
SELECT COUNT Attendance FROM table WHERE Date = october 30, 1977 AND Week > 7
Translate the following into a SQL query
What is the lowest attendance that has l 42-35 as the result, with a week less than 13?
SELECT MIN Attendance FROM table WHERE Result = l 42-35 AND Week < 13
Translate the following into a SQL query
Who is from south korea and has a heat less than 3?
SELECT Name FROM table WHERE Heat < 3 AND Nationality = south korea
Translate the following into a SQL query
What is the highest heat of the athlete from spain with a lane less than 7?
SELECT MAX Heat FROM table WHERE Nationality = spain AND Lane < 7
Translate the following into a SQL query
What is the average lane of the athlete from japan with a time of 4:37.35 and a heat less than 3?
SELECT AVG Lane FROM table WHERE Nationality = japan AND Time = 4:37.35 AND Heat < 3
Translate the following into a SQL query
What is the lowest Gold count if the Bronze is 4 and Silver is greater than 5?
SELECT MIN Gold FROM table WHERE Bronze = 4 AND Silver > 5
Translate the following into a SQL query
What is the Average for Silver medals that have more than 17 Golds?
SELECT AVG Silver FROM table WHERE Gold > 17
Translate the following into a SQL query
What is the highest number of Silver medals with a Total greater than 14 and more than 15 Bronze medals?
SELECT MAX Silver FROM table WHERE Total > 14 AND Bronze > 15
Translate the following into a SQL query
Who is the music-director for the song from the film khaleja who had a co-singer of hemachandra?
SELECT Music - Director FROM table WHERE Co - Singer = hemachandra AND Film = khaleja
Translate the following into a SQL query
What is the film from 2013 with a song title of "neetho edo" with a solo co-singer?
SELECT Film FROM table WHERE Year = 2013 AND Co - Singer = solo AND Song Title = "neetho edo"
Translate the following into a SQL query
What was the score for the matchup having attendance of 354?
SELECT Score FROM table WHERE Att. = 354
Translate the following into a SQL query
What nation had a medal total of less than 10, less than 1 bronze medal, in rank 11?
SELECT Nation FROM table WHERE Total < 10 AND Bronze < 1 AND Rank = 11
Translate the following into a SQL query
How many gold medals did the team that won a total of 10 medals and 3 silver medals win?
SELECT Gold FROM table WHERE Silver = 3 AND Total = 10
Translate the following into a SQL query
What is the total number of medals won by teams that won more than 11 bronze medals?
SELECT COUNT Total FROM table WHERE Bronze > 11
Translate the following into a SQL query
What is the lowest react of the athlete from the United States who has a lane less than 4?
SELECT MIN React FROM table WHERE Country = united states AND Lane < 4
Translate the following into a SQL query
What is the lowest of the athlete from sri lanka who has a lane greater than 8?
SELECT MIN React FROM table WHERE Country = sri lanka AND Lane > 8
Translate the following into a SQL query
What is the average react of athlete muna lee, who is ranked greater than 3?
SELECT AVG React FROM table WHERE Athlete = muna lee AND Rank > 3
Translate the following into a SQL query
What is the average lane of the athlete from cuba who has a time greater than 22.57 and react less than 0.245?
SELECT AVG Lane FROM table WHERE Time > 22.57 AND React < 0.245 AND Country = cuba
Translate the following into a SQL query
What is the average react of the athlete with a time less than 22.29 and a rank greater than 1?
SELECT AVG React FROM table WHERE Time < 22.29 AND Rank > 1
Translate the following into a SQL query
Who is the Opponent on December 7, 2003?
SELECT Opponent FROM table WHERE Date = december 7, 2003
Translate the following into a SQL query
What is the Tv Time of the game with an Attendance of 73,578?
SELECT TV Time FROM table WHERE Attendance = 73,578
Translate the following into a SQL query
What is the highest result for Wallace Spearmon when the reaction time is greater than 0.167?
SELECT MAX Result FROM table WHERE Name = wallace spearmon AND Reaction Time > 0.167
Translate the following into a SQL query
What was the result for Lane 3?
SELECT Result FROM table WHERE Lane = 3
Translate the following into a SQL query
What is the lowest result for Christian Malcolm with a reaction time greater than 0.185 and a lane higher than 3?
SELECT MIN Result FROM table WHERE Reaction Time > 0.185 AND Name = christian malcolm AND Lane > 3
Translate the following into a SQL query
What are the lowest conceded with 1 draw, and a score larger than 14?
SELECT MIN Conceded FROM table WHERE Draws = 1 AND Scored > 14
Translate the following into a SQL query
What are the lowest losses with more than 13 scored, and more than 7 draws?
SELECT MIN Losses FROM table WHERE Scored > 13 AND Draws > 7
Translate the following into a SQL query
What is the average played for less than 8 points?
SELECT AVG Played FROM table WHERE Points < 8
Translate the following into a SQL query
What competition has a Result of 1–2?
SELECT Competition FROM table WHERE Result = 1–2
Translate the following into a SQL query
What is moving from fee in Hun country?
SELECT Moving from FROM table WHERE Country = hun
Translate the following into a SQL query
What is thr type in Aut country?
SELECT Type FROM table WHERE Country = aut
Translate the following into a SQL query
Who is the owner of the radio station that plays adult hits?
SELECT Owner FROM table WHERE Format = adult hits
Translate the following into a SQL query
What is the call sign for the radio owned by astral media?
SELECT Call sign FROM table WHERE Owner = astral media
Translate the following into a SQL query
What is the frequency for the radio owned by bell media with a call sign of chsu-fm?
SELECT Frequency FROM table WHERE Owner = bell media AND Call sign = chsu-fm
Translate the following into a SQL query
What is the branding for the radio with a frequency of 1150 am?
SELECT Branding FROM table WHERE Frequency = 1150 am
Translate the following into a SQL query
What was the format for the radio with a frequency of 00 96.3 fm?
SELECT Format FROM table WHERE Frequency = 00 96.3 fm
Translate the following into a SQL query
Who is the owner of the radio frequency of 0 101.5 fm?
SELECT Owner FROM table WHERE Frequency = 0 101.5 fm
Translate the following into a SQL query
how many times is the name matt targett and the lane higher than 7?
SELECT COUNT Time FROM table WHERE Name = matt targett AND Lane > 7
Translate the following into a SQL query
what is the highest time when the rank is less than 5 and the name is eamon sullivan?
SELECT MAX Time FROM table WHERE Rank < 5 AND Name = eamon sullivan
Translate the following into a SQL query
what is the average rank when the lane is more than 4 and the name is dominik meichtry?
SELECT AVG Rank FROM table WHERE Lane > 4 AND Name = dominik meichtry
Translate the following into a SQL query
What is the 2012 Employees (Total) when the rank (2012) is 7?
SELECT 2012 Employees (Total) FROM table WHERE Rank (2012) = 7
Translate the following into a SQL query
What is the total number of 2012 Employees (Total) when 2007 Employees (Total) is 8,985, and rank (2010) is smaller than 9?
SELECT COUNT 2012 Employees (Total) FROM table WHERE 2007 Employees (Total) = 8,985 AND Rank (2010) < 9
Translate the following into a SQL query
What is the lowest 2010 Employees (Total) when the 2007 Employees (Total) is see note, and the 2012 Employees (Total) is larger than 99,400?
SELECT MIN 2010 Employees (Total) FROM table WHERE 2007 Employees (Total) = see note AND 2012 Employees (Total) > 99,400
Translate the following into a SQL query
What shows for 2010 Employees (Total) when the employer is University of Alberta?
SELECT SUM 2010 Employees (Total) FROM table WHERE Employer = university of alberta
Translate the following into a SQL query
How many floors when the rank is 73.0 72=?
SELECT Floors FROM table WHERE Rank = 73.0 72=
Translate the following into a SQL query
What year was the 190 South Lasalle Street?
SELECT MAX Year FROM table WHERE Name = 190 south lasalle street
Translate the following into a SQL query
What rank has a Time of 4:00.191?
SELECT Rank FROM table WHERE Time = 4:00.191
Translate the following into a SQL query
What is the time for Brazil?
SELECT Time FROM table WHERE Country = brazil
Translate the following into a SQL query
what is the date when the format is cd (limited edition steel-box) from united kingdom?
SELECT Date FROM table WHERE Format = cd (limited edition steel-box) AND Country = united kingdom
Translate the following into a SQL query
What is the country that has the format of cd, the label of sony music and the catalogue no sicp-2055?
SELECT Country FROM table WHERE Format = cd AND Label = sony music AND Catalogue No. = sicp-2055
Translate the following into a SQL query
what is the format for the country united kingdom on 20 october 2008?
SELECT Format FROM table WHERE Country = united kingdom AND Date = 20 october 2008
Translate the following into a SQL query
what is the catalogue no when the format is cd (limited edition steel-box) and the country is germany?
SELECT Catalogue No. FROM table WHERE Format = cd (limited edition steel-box) AND Country = germany
Translate the following into a SQL query
Which Total has a Rank of 4, and a Silver larger than 2?
SELECT MIN Total FROM table WHERE Rank = 4 AND Silver > 2
Translate the following into a SQL query
How much Total has a Rank of 5, and a Bronze larger than 3?
SELECT SUM Total FROM table WHERE Rank = 5 AND Bronze > 3
Translate the following into a SQL query
Which Silver has a Nation of total, and a Bronze smaller than 18?
SELECT MAX Silver FROM table WHERE Nation = total AND Bronze < 18
Translate the following into a SQL query
How much Silver has a Nation of total, and a Total smaller than 54?
SELECT COUNT Silver FROM table WHERE Nation = total AND Total < 54
Translate the following into a SQL query
What was the result for the award for best current affairs presenter?
SELECT Result FROM table WHERE Award = best current affairs presenter
Translate the following into a SQL query
Which award was given to Lianhe Zaobao?
SELECT Award FROM table WHERE Organisation = lianhe zaobao
Translate the following into a SQL query
What's the release date of Feather Finger with an MM Series?
SELECT Release date FROM table WHERE Series = mm AND Title = feather finger
Translate the following into a SQL query
Which Opponent has a Venue of h, and a Result of 0–1, and a Date of 29 august 1998?
SELECT Opponent FROM table WHERE Venue = h AND Result = 0–1 AND Date = 29 august 1998
Translate the following into a SQL query
Which Opponent has a Result of 1–1, and a Date of 28 november 1998?
SELECT Opponent FROM table WHERE Result = 1–1 AND Date = 28 november 1998
Translate the following into a SQL query
What was the venue on 14 november 1998?
SELECT Venue FROM table WHERE Date = 14 november 1998
Translate the following into a SQL query
Which Place is the highest one that has a Draw larger than 1, and 49 Points?
SELECT MAX Place FROM table WHERE Draw > 1 AND Points = 49
Translate the following into a SQL query
Which Song has Points smaller than 54, and a Draw smaller than 4, and a Place smaller than 10?
SELECT Song FROM table WHERE Points < 54 AND Draw < 4 AND Place < 10
Translate the following into a SQL query
What is the bronze number when the total is 54/
SELECT AVG Bronze FROM table WHERE Total = 54
Translate the following into a SQL query
What is the least bronze number when the silver is less than 0?
SELECT MIN Bronze FROM table WHERE Silver < 0
Translate the following into a SQL query
What is the least silver when the total is more than 2, bronze is 3, gold is more than 0, and rank is 1?
SELECT MIN Silver FROM table WHERE Total > 2 AND Bronze = 3 AND Gold > 0 AND Rank = 1
Translate the following into a SQL query
What is the number of silver when the total is more than 2, and bronze is less than 3, with a rank of 7?
SELECT COUNT Silver FROM table WHERE Total > 2 AND Bronze < 3 AND Rank = 7
Translate the following into a SQL query
Which Time has a Lane smaller than 4, and a Rank larger than 6?
SELECT AVG Time FROM table WHERE Lane < 4 AND Rank > 6
Translate the following into a SQL query
Which Rank has a Nationality of france, and a Name of alain bernard, and a Lane smaller than 6?
SELECT AVG Rank FROM table WHERE Nationality = france AND Name = alain bernard AND Lane < 6
Translate the following into a SQL query
Which Nationality has a Rank larger than 1, and a Time smaller than 22.12, and a Lane smaller than 4, and a Name of ashley callus?
SELECT Nationality FROM table WHERE Rank > 1 AND Time < 22.12 AND Lane < 4 AND Name = ashley callus
Translate the following into a SQL query
When the date is 8 october 2008 what is the sum of attendance?
SELECT SUM Attendance FROM table WHERE Date = 8 october 2008
Translate the following into a SQL query
What date has an against of pohang steelers?
SELECT Date FROM table WHERE Against = pohang steelers
Translate the following into a SQL query
What weekday has an against of kashima antlers?
SELECT Weekday FROM table WHERE Against = kashima antlers
Translate the following into a SQL query
What was the final score of Game #4?
SELECT Score FROM table WHERE Game = 4
Translate the following into a SQL query
Which Level has a Leading scorer 1 of tom greaves 8?
SELECT Level FROM table WHERE Leading scorer 1 = tom greaves 8
Translate the following into a SQL query
Which Leading scorer 1 has a Season of 2010–11?
SELECT Leading scorer 1 FROM table WHERE Season = 2010–11
Translate the following into a SQL query
Which Leading scorer 1 has a League Contested of northern premier league premier division, and an FA Cup of 2q?
SELECT Leading scorer 1 FROM table WHERE LeagueContested = northern premier league premier division AND FA Cup = 2q
Translate the following into a SQL query
Which Level has a League Contested of northern premier league premier division, and a Season of 2011–12?
SELECT AVG Level FROM table WHERE LeagueContested = northern premier league premier division AND Season = 2011–12
Translate the following into a SQL query
What is the least Top-5 when 1 is the cuts made?
SELECT MIN Top-5 FROM table WHERE Cuts made = 1
Translate the following into a SQL query
With events less than 0, what is the fewest Top-5?
SELECT MIN Top-5 FROM table WHERE Events < 0
Translate the following into a SQL query
How many wins of average has cuts made less than 0?
SELECT AVG Wins FROM table WHERE Cuts made < 0
Translate the following into a SQL query
How many events total is the Top-5 2, and 4 is the cuts made, and less than 0 wins?
SELECT COUNT Events FROM table WHERE Top-5 = 2 AND Cuts made = 4 AND Wins < 0
Translate the following into a SQL query
In the Open Championship with more than 3 cuts made, what is the average wins?
SELECT AVG Wins FROM table WHERE Tournament = the open championship AND Cuts made > 3
Translate the following into a SQL query
What lane did the barbados swimmer compete in before heat 3?
SELECT Lane FROM table WHERE Heat < 3 AND Nationality = barbados
Translate the following into a SQL query
What was the time of the 5th ranked swimmer who swam after heat 3 and was in a lane under 5?
SELECT Time FROM table WHERE Heat > 3 AND Lane < 5 AND Rank = 5
Translate the following into a SQL query
What is the average population for an area less than 433.7km and a 23013 code?
SELECT AVG Population FROM table WHERE Area (km 2 ) < 433.7 AND Code = 23013
Translate the following into a SQL query
What is the total code number for Amadiba?
SELECT COUNT Code FROM table WHERE Place = amadiba
Translate the following into a SQL query
What is the total capacity for the Leicester Tigers?
SELECT COUNT Capacity FROM table WHERE Club = leicester tigers
Translate the following into a SQL query
What town has the Welford Road Stadium?
SELECT City/Town FROM table WHERE Stadium = welford road
Translate the following into a SQL query
What date was the Cross Code Debut of rl 1st test great britain v australia, and the Int'l Debut was RU Five Nations v Ireland?
SELECT Date FROM table WHERE Cross Code Debut = rl 1st test great britain v australia AND Int'l Debut = ru five nations v ireland
Translate the following into a SQL query
What year was the player David Rose?
SELECT SUM Year FROM table WHERE Player = david rose
Translate the following into a SQL query
What is the median family income when the per capita is $24,114?
SELECT Median family income FROM table WHERE Per capita income = $24,114
Translate the following into a SQL query
What is the median household income when the per capita is $21,585?
SELECT Median household income FROM table WHERE Per capita income = $21,585
Translate the following into a SQL query
What is the population where the median family income is $48,446 and there are more than 35,343 households?
SELECT AVG Population FROM table WHERE Median family income = $48,446 AND Number of households > 35,343
Translate the following into a SQL query
What is the population where the median household income is $87,832 and there are fewer than 64,886 households?
SELECT AVG Population FROM table WHERE Median household income = $87,832 AND Number of households < 64,886