instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Name the total number of Laps for year of 1961
SELECT COUNT Laps FROM table WHERE Year = 1961
Translate the following into a SQL query
Name the finish for start of 28
SELECT Finish FROM table WHERE Start = 28
Translate the following into a SQL query
Name the laps for rank of 14 and start of 16
SELECT Laps FROM table WHERE Rank = 14 AND Start = 16
Translate the following into a SQL query
Name the qual for year of 1960
SELECT Qual FROM table WHERE Year = 1960
Translate the following into a SQL query
What is the name of the player in position lb and an overall of 128?
SELECT Player FROM table WHERE Position = lb AND Overall = 128
Translate the following into a SQL query
What is the total overall when Kenny Lewis is the player in a round after 5?
SELECT COUNT Overall FROM table WHERE Player = kenny lewis AND Round > 5
Translate the following into a SQL query
What is the college when the over is larger than 15 in round 7?
SELECT College FROM table WHERE Overall > 15 AND Round = 7
Translate the following into a SQL query
What is the position with an overall less than 128 for Brigham Young college?
SELECT Position FROM table WHERE Overall < 128 AND College = brigham young
Translate the following into a SQL query
How many attended the game on 4 February 2003?
SELECT AVG Attendance FROM table WHERE Date = 4 february 2003
Translate the following into a SQL query
yes or no for the auckland with a yes for sydney, no for perth, yes for melbourne and yes for the gold coast?
SELECT Auckland FROM table WHERE Sydney = yes AND Perth = no AND Melbourne = yes AND Gold Coast = yes
Translate the following into a SQL query
yes or no for the adelaide with no for auckland, yes for melbourne, yes for the gold coast?
SELECT Adelaide FROM table WHERE Auckland = no AND Melbourne = yes AND Gold Coast = yes
Translate the following into a SQL query
yes or no for the gold coast with yes for melbourne, yes for adelaide, yes for auckland?
SELECT Gold Coast FROM table WHERE Melbourne = yes AND Adelaide = yes AND Auckland = yes
Translate the following into a SQL query
yes or no for the melbourne with yes for gold coast, yes for adelaide, no for auckland?
SELECT Melbourne FROM table WHERE Gold Coast = yes AND Adelaide = no AND Auckland = no
Translate the following into a SQL query
yes or no for the sydney with yes for melbourne, no for perth, no for auckland and no for gold coast?
SELECT Sydney FROM table WHERE Melbourne = yes AND Perth = no AND Auckland = no AND Gold Coast = no
Translate the following into a SQL query
yes or no for the melbourne that has no for adelaide, no for gold coast?
SELECT Melbourne FROM table WHERE Adelaide = yes AND Gold Coast = no
Translate the following into a SQL query
How many losses did the team with 0 wins and more than 72 runs allowed have?
SELECT SUM Losses FROM table WHERE Wins = 0 AND Runs Allowed > 72
Translate the following into a SQL query
What is the lowest amount of losses the United States, ranked higher than 3 with more than 6 wins, have?
SELECT MIN Losses FROM table WHERE Rank < 3 AND Team = united states AND Wins > 6
Translate the following into a SQL query
How many runs allowed did the team ranked 2 with more than 2 losses have?
SELECT AVG Runs Allowed FROM table WHERE Rank = 2 AND Losses > 2
Translate the following into a SQL query
How many total wins did the team ranked lower than 1 with a run ratio less than 5.85 and more than 4 losses have?
SELECT COUNT Wins FROM table WHERE Rank > 1 AND Run Ratio < 5.85 AND Losses > 4
Translate the following into a SQL query
What is the highest run ratio Japan, which has less than 58 runs and 5 wins, have?
SELECT MAX Run Ratio FROM table WHERE Runs Allowed < 58 AND Wins = 5 AND Team = japan
Translate the following into a SQL query
What is the average number of losses the team with less than 25 runs allowed and 5 wins have?
SELECT AVG Losses FROM table WHERE Runs Allowed < 25 AND Wins = 5
Translate the following into a SQL query
Which date has tigers as the opponent?
SELECT Date FROM table WHERE Opponent = tigers
Translate the following into a SQL query
What loss has october 1 as the date?
SELECT Loss FROM table WHERE Date = october 1
Translate the following into a SQL query
What year is listed that has points greater than 0 with a chassis labeled AGS JH22?
SELECT Year FROM table WHERE Points > 0 AND Chassis = ags jh22
Translate the following into a SQL query
What is the total points listed that includes P listed Tyres after 1986?
SELECT SUM Points FROM table WHERE Tyres = p AND Year > 1986
Translate the following into a SQL query
What point is the lowest for listings of chassis labeled AGS JH23 before 1988?
SELECT MIN Points FROM table WHERE Chassis = ags jh23 AND Year < 1988
Translate the following into a SQL query
What is the total point for the year listed in 1988?
SELECT SUM Points FROM table WHERE Year = 1988
Translate the following into a SQL query
What was the attendance on August 2?
SELECT MAX Attendance FROM table WHERE Date = august 2
Translate the following into a SQL query
Which opponent lost with pitcher Kinney (0-1)?
SELECT Opponent FROM table WHERE Loss = kinney (0-1)
Translate the following into a SQL query
What was the attendance on August 23?
SELECT COUNT Attendance FROM table WHERE Date = august 23
Translate the following into a SQL query
What is the highest wins a tournament with 3 cuts and more than 4 events has?
SELECT MAX Wins FROM table WHERE Cuts made = 3 AND Events > 4
Translate the following into a SQL query
What is the lowest number of events a tournament with more than 1 top-10 and more than 0 wins has?
SELECT MIN Events FROM table WHERE Top-10 > 1 AND Wins > 0
Translate the following into a SQL query
How many laps did the 6th placed in 1998 complete?
SELECT SUM Laps FROM table WHERE Pos. = 6th AND Year = 1998
Translate the following into a SQL query
What position did the 5th place team after 1992 with over 346 laps finish in?
SELECT Pos. FROM table WHERE Class Pos. = 5th AND Year > 1992 AND Laps > 346
Translate the following into a SQL query
What team was c1 class, had over 331 laps after 1990?
SELECT Team FROM table WHERE Class = c1 AND Laps > 331 AND Year > 1990
Translate the following into a SQL query
What class did eddie cheever raul boesel race in?
SELECT Class FROM table WHERE Co-Drivers = eddie cheever raul boesel
Translate the following into a SQL query
What's the lowest rank of a player who played in 2012?
SELECT MIN Rank FROM table WHERE Event = 2012
Translate the following into a SQL query
What player has the rank 2011?
SELECT Player FROM table WHERE Rank = 2011
Translate the following into a SQL query
What was the score of the match played on hard with a person ranked 10?
SELECT Score FROM table WHERE Surface = hard AND Rank = 10
Translate the following into a SQL query
What females speak Romanian?
SELECT females FROM table WHERE Language = romanian
Translate the following into a SQL query
What females have males of 1 234?
SELECT females FROM table WHERE males = 1 234
Translate the following into a SQL query
What males speak Polish?
SELECT males FROM table WHERE Language = polish
Translate the following into a SQL query
What is the number of males 977 948?
SELECT Number FROM table WHERE males = 977 948
Translate the following into a SQL query
Bowler of shane bond has what lowest overall number?
SELECT MIN Over no. FROM table WHERE Bowler = shane bond
Translate the following into a SQL query
Wickets of chris gayle caught kapali happened on what date?
SELECT Date FROM table WHERE Wickets = chris gayle caught kapali
Translate the following into a SQL query
What is the area of a nation has a population under 44,788,852, and a GDP greater than $83.351 billion?
SELECT COUNT Area (km²) FROM table WHERE GDP (billion US$) > 83.351 AND Population < 44,788,852
Translate the following into a SQL query
What is the population of the place that has an area (km²) of 30,528, and a GDP (billion US$) larger than 58.316?
SELECT SUM Population FROM table WHERE Area (km²) = 30,528 AND GDP (billion US$) > 58.316
Translate the following into a SQL query
What is the GDP of the place with over 54,292,038 people and an Area (km²) greater than 30,528?
SELECT MIN GDP (billion US$) FROM table WHERE Population > 54,292,038 AND Area (km²) > 30,528
Translate the following into a SQL query
What year did Kyle Newman place third?
SELECT Year FROM table WHERE Third = kyle newman
Translate the following into a SQL query
What was the venue when Jerran Hart won?
SELECT Venue FROM table WHERE Winner = jerran hart
Translate the following into a SQL query
Who was the runner-up in 2004?
SELECT Runner-Up FROM table WHERE Year = 2004
Translate the following into a SQL query
What was the venue when Jack Hargreaves finished third?
SELECT Venue FROM table WHERE Third = jack hargreaves
Translate the following into a SQL query
What was the venue when Ben Barker finished third?
SELECT Venue FROM table WHERE Third = ben barker
Translate the following into a SQL query
What is on tv at 10:00 on the same channel that had Infoman on at 7:30?
SELECT 10:00 FROM table WHERE 7:30 = infoman
Translate the following into a SQL query
What is on tv at 10:00 on the same channel that had movies on at 8:00?
SELECT 10:00 FROM table WHERE 8:00 = movies
Translate the following into a SQL query
What is on tv at 7:00 on the same channel that has Survivor: China on at 8:00?
SELECT 7:00 FROM table WHERE 8:00 = survivor: china
Translate the following into a SQL query
What is on tv at 8:00 on the same channel that had Loft Story on at 7:00?
SELECT 8:00 FROM table WHERE 7:00 = loft story
Translate the following into a SQL query
What is on tv at 9:30 on the same channel that had e2 on at 7:30?
SELECT 9:30 FROM table WHERE 7:30 = e2
Translate the following into a SQL query
What province/region is RJTQ located?
SELECT Province/Region FROM table WHERE ICAO = rjtq
Translate the following into a SQL query
In what city is RJSN located?
SELECT City FROM table WHERE ICAO = rjsn
Translate the following into a SQL query
What is RJCM's IATA?
SELECT IATA FROM table WHERE ICAO = rjcm
Translate the following into a SQL query
In what country is Hokkaidō and New Chitose airport located?
SELECT Country FROM table WHERE Province/Region = hokkaidō AND Airport = new chitose airport
Translate the following into a SQL query
In what country is Hiroshima Airport located?
SELECT Country FROM table WHERE Airport = hiroshima airport
Translate the following into a SQL query
What is the ICAO of Nakashibetsu?
SELECT ICAO FROM table WHERE City = nakashibetsu
Translate the following into a SQL query
What is the total number of games lost when 22 have been played, the losing BP number is 2, and the club is Merthyr RFC?
SELECT Lost FROM table WHERE Played = 22 AND Losing BP = 2 AND Club = merthyr rfc
Translate the following into a SQL query
What is the number drawn when 3 have been lost?
SELECT Drawn FROM table WHERE Lost = 3
Translate the following into a SQL query
What is the number drawn when the try BP is 1?
SELECT Drawn FROM table WHERE Try BP = 1
Translate the following into a SQL query
What is the try BP when the losing BP is 4 and the club is Bargoed RFC?
SELECT Try BP FROM table WHERE Losing BP = 4 AND Club = bargoed rfc
Translate the following into a SQL query
What is the club that has played 22 rounds, has a drawn score of 0, has lost 14, and whose losing BP is 5?
SELECT Club FROM table WHERE Played = 22 AND Drawn = 0 AND Lost = 14 AND Losing BP = 5
Translate the following into a SQL query
What average Total has a Rank of 3 and a Bronze award larger than 3?
SELECT AVG Total FROM table WHERE Rank = 3 AND Bronze > 3
Translate the following into a SQL query
What average Total has a Gold award of 13 and a Bronze award less than 13?
SELECT AVG Total FROM table WHERE Gold = 13 AND Bronze < 13
Translate the following into a SQL query
What is the average Gold award that has a Silver award greater than 2, and a Bronze award less than 13, and a Total greater than 24?
SELECT AVG Gold FROM table WHERE Silver > 2 AND Bronze < 13 AND Total > 24
Translate the following into a SQL query
What is the record number of the game where Guardado lost?
SELECT Record FROM table WHERE Loss = guardado
Translate the following into a SQL query
What was the lowest attendance recorded at a game on September 28?
SELECT MIN Attendance FROM table WHERE Date = september 28
Translate the following into a SQL query
What is the average gold that has a total of 2 and more than 1 bronze.
SELECT AVG Gold FROM table WHERE Total = 2 AND Bronze > 1
Translate the following into a SQL query
What is the 2006 result of the Canada Masters tournament that is A in 2009 and A in 2010?
SELECT 2006 FROM table WHERE 2010 = a AND 2009 = a AND Tournament = canada masters
Translate the following into a SQL query
What is the result for 2006 of a tournament that is 107 in 2010?
SELECT 2006 FROM table WHERE 2010 = 107
Translate the following into a SQL query
What is the 2010 result of a tournament that is A in 2006 and A in 2011?
SELECT 2010 FROM table WHERE 2011 = a AND 2006 = a
Translate the following into a SQL query
What is the 2012 result of a tournament that is 2R in 2007, 1R in 2008 and 1R in 2009?
SELECT 2012 FROM table WHERE 2009 = 1r AND 2008 = 1r AND 2007 = 2r
Translate the following into a SQL query
What is the 2010 result of a tournament that is 1R in 2009, Q2 in 2011 and 1R in 2012?
SELECT 2010 FROM table WHERE 2011 = q2 AND 2012 = 1r AND 2009 = 1r
Translate the following into a SQL query
What match number took place on August 3, 2007?
SELECT MAX Match FROM table WHERE Date = august 3, 2007
Translate the following into a SQL query
What is the 2010 value of the 2013 Grand Slam Tournaments?
SELECT 2010 FROM table WHERE 2013 = grand slam tournaments
Translate the following into a SQL query
What is the 2012 value with A in 2007 and qf in 2011?
SELECT 2012 FROM table WHERE 2007 = a AND 2011 = qf
Translate the following into a SQL query
What is the 2012 value with a 1r in 2011 in the Australian Open?
SELECT 2012 FROM table WHERE 2011 = 1r AND Tournament = australian open
Translate the following into a SQL query
What is the 2013 value with a qf in 2011?
SELECT 2013 FROM table WHERE 2011 = qf
Translate the following into a SQL query
What is the 2007 value at the 2012 Grand Slam Tournaments?
SELECT 2007 FROM table WHERE 2012 = grand slam tournaments
Translate the following into a SQL query
Which tournament had a qf in 2011?
SELECT Tournament FROM table WHERE 2011 = qf
Translate the following into a SQL query
What is the 2009 first time percentage of the mg general science 5-9 exam with a 2008 first time percentage of 54%?
SELECT 2009 First Time FROM table WHERE 2008 First Time = 54% AND Exam = mg general science 5-9
Translate the following into a SQL query
What is the 2008 all percentage of the exam with a 2007 first time percentage of 74%?
SELECT 2008 All FROM table WHERE 2007 First Time = 74%
Translate the following into a SQL query
What is the 2009 first time percentage of the exam with a 2010 first time percentage of 88%?
SELECT 2009 First Time FROM table WHERE 2010 First Time = 88%
Translate the following into a SQL query
What is the 2009 all percentage of the exam with a 2007 first time percentage of 49%?
SELECT 2009 All FROM table WHERE 2007 First Time = 49%
Translate the following into a SQL query
What is the 2006 first time percentage of the exam witha 2009 all percentage of 62%?
SELECT 2006 First Time FROM table WHERE 2009 All = 62%
Translate the following into a SQL query
What is the 2006 first time percentage of the exam with a 2009 all percentage of 72% and a 2007 first time percentage of 85%?
SELECT 2006 First Time FROM table WHERE 2009 All = 72% AND 2007 First Time = 85%
Translate the following into a SQL query
What was the score for the 2014 FIFA World Cup Qual. competition?
SELECT Score FROM table WHERE Competition = 2014 fifa world cup qual.
Translate the following into a SQL query
What is the highest number of matches with less than 2 draws that had an efficiency percent of 25%?
SELECT MAX Matches FROM table WHERE Draws < 2 AND Efficiency % = 25%
Translate the following into a SQL query
What is the total number of Draws with less than 4 matches?
SELECT COUNT Draws FROM table WHERE Matches < 4
Translate the following into a SQL query
What is the average MHz Frequency of radio rezonans?
SELECT AVG Frequency MHz FROM table WHERE Program = radio rezonans
Translate the following into a SQL query
What date shows a Loss of lilly (2–2)?
SELECT Date FROM table WHERE Loss = lilly (2–2)
Translate the following into a SQL query
What is the loss when the time was 3:16, and a Record of 15–15?
SELECT Loss FROM table WHERE Time = 3:16 AND Record = 15–15
Translate the following into a SQL query
What team was the opponent when the time was 2:57, and a Score of 7–5?
SELECT Opponent FROM table WHERE Time = 2:57 AND Score = 7–5