instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
Which Byes have an Against smaller than 1466, and Losses smaller than 6?
|
SELECT Byes FROM table WHERE Against < 1466 AND Losses < 6
|
Translate the following into a SQL query
|
What was week 2's opponent?
|
SELECT Opponent FROM table WHERE Week = 2
|
Translate the following into a SQL query
|
Which Week has an Attendance of 20,112?
|
SELECT MAX Week FROM table WHERE Attendance = 20,112
|
Translate the following into a SQL query
|
What is the margin of victory of the Dodge Intrepid?
|
SELECT Margin of Victory FROM table WHERE Make = dodge intrepid
|
Translate the following into a SQL query
|
What is the lowest car number sponsored by UPS before 2001?
|
SELECT MIN Car # FROM table WHERE Sponsor = ups AND Season < 2001
|
Translate the following into a SQL query
|
Who sponsored Greg Biffle's win on April 14?
|
SELECT Sponsor FROM table WHERE Winning Driver = greg biffle AND Date = april 14
|
Translate the following into a SQL query
|
What is the highest car number sponsored by Post-It / National Guard?
|
SELECT MAX Car # FROM table WHERE Sponsor = post-it / national guard
|
Translate the following into a SQL query
|
How many seasons has UPS sponsored a car with a number larger than 17?
|
SELECT COUNT Season FROM table WHERE Car # > 17 AND Sponsor = ups
|
Translate the following into a SQL query
|
What shows for set 2 when Set 1 is 29–27?
|
SELECT Set 2 FROM table WHERE Set 1 = 29–27
|
Translate the following into a SQL query
|
What is the time when the set 1 is 21–25?
|
SELECT Time FROM table WHERE Set 1 = 21–25
|
Translate the following into a SQL query
|
What is the score when the set 3 is 26–28?
|
SELECT Score FROM table WHERE Set 3 = 26–28
|
Translate the following into a SQL query
|
What is the Score when the set 3 is 26–28?
|
SELECT Score FROM table WHERE Set 3 = 26–28
|
Translate the following into a SQL query
|
What is the set 3 when the total is 78–92?
|
SELECT Set 3 FROM table WHERE Total = 78–92
|
Translate the following into a SQL query
|
What is the total when the set 1 is 21–25?
|
SELECT Total FROM table WHERE Set 1 = 21–25
|
Translate the following into a SQL query
|
How many total losses were with less than 51 draws but more than 6 wins?
|
SELECT COUNT Losses FROM table WHERE Draw < 51 AND Wins > 6
|
Translate the following into a SQL query
|
How many matches has 51 draws and more than 6 against?
|
SELECT SUM Matches FROM table WHERE Against > 6 AND Draw = 51
|
Translate the following into a SQL query
|
How many wins has more than 165 against?
|
SELECT MAX Wins FROM table WHERE Against > 165
|
Translate the following into a SQL query
|
How many draws have less than 35 losses with 136 matches and less than 146 against?
|
SELECT AVG Draw FROM table WHERE Losses < 35 AND Matches = 136 AND Against < 146
|
Translate the following into a SQL query
|
How many Againsts have more than 15 wins?
|
SELECT COUNT Against FROM table WHERE Wins > 15
|
Translate the following into a SQL query
|
Which Byes have Losses larger than 0, and an Against larger than 3049?
|
SELECT AVG Byes FROM table WHERE Losses > 0 AND Against > 3049
|
Translate the following into a SQL query
|
What is the total number of Points 1, when Position is "7", and when Drawn is greater than 6?
|
SELECT COUNT Points 1 FROM table WHERE Position = 7 AND Drawn > 6
|
Translate the following into a SQL query
|
What is the highest Goals For, when Team is "Cheadle Town", and when Drawn is greater than 7?
|
SELECT MAX Goals For FROM table WHERE Team = cheadle town AND Drawn > 7
|
Translate the following into a SQL query
|
What is the sum of Position, when Points 1 is greater than 23, and when Goals For is "77"?
|
SELECT SUM Position FROM table WHERE Points 1 > 23 AND Goals For = 77
|
Translate the following into a SQL query
|
What is Played, when Goal Difference is "+51"?
|
SELECT Played FROM table WHERE Goal Difference = +51
|
Translate the following into a SQL query
|
What is Date, when Surface is "Carpet"?
|
SELECT Date FROM table WHERE Surface = carpet
|
Translate the following into a SQL query
|
What is Tournament, when Date is "6 October 2008"?
|
SELECT Tournament FROM table WHERE Date = 6 october 2008
|
Translate the following into a SQL query
|
What is Surface, when Tournament is "Sunderland , United Kingdom"?
|
SELECT Surface FROM table WHERE Tournament = sunderland , united kingdom
|
Translate the following into a SQL query
|
Who replaced István Sándor?
|
SELECT Replaced by FROM table WHERE Outgoing manager = istván sándor
|
Translate the following into a SQL query
|
What is the position that has the outgoing manager lászló Dajka?
|
SELECT Position in table FROM table WHERE Outgoing manager = lászló dajka
|
Translate the following into a SQL query
|
When was outgoing manager Zoltán Varga appointed?
|
SELECT Date of appointment FROM table WHERE Outgoing manager = zoltán varga
|
Translate the following into a SQL query
|
Can you tell me the Score that has the Date of 05 dec?
|
SELECT Score FROM table WHERE Date = 05 dec
|
Translate the following into a SQL query
|
What is the average number of points of the team with more than 17 pg won?
|
SELECT AVG Points (Pts.) FROM table WHERE Won (PG) > 17
|
Translate the following into a SQL query
|
What is the total number of pg won of the team with 64 goals conceded and more than 33 goals scored?
|
SELECT COUNT Won (PG) FROM table WHERE Goals Conceded (GC) = 64 AND Goals Scored (GF) > 33
|
Translate the following into a SQL query
|
What is the sum of the pe draw of team plaza amador, who has less than 6 pg won?
|
SELECT SUM Draw (PE) FROM table WHERE Team (Equipo) = plaza amador AND Won (PG) < 6
|
Translate the following into a SQL query
|
What is the sum of the places of the team with more than 49 points and less than 54 goals scored?
|
SELECT SUM Place (Posición) FROM table WHERE Points (Pts.) > 49 AND Goals Scored (GF) < 54
|
Translate the following into a SQL query
|
WHAT IS THE AWAY WITH HOME AT 2-2?
|
SELECT Away FROM table WHERE Home = 2-2
|
Translate the following into a SQL query
|
WHAT IS THE LEAGUE WITH HOME 1-1?
|
SELECT League FROM table WHERE Home = 1-1
|
Translate the following into a SQL query
|
What is the Weight of the person born 1981-02-24 from the Uralochka Zlatoust club ?
|
SELECT Weight FROM table WHERE Club = uralochka zlatoust AND Date of Birth = 1981-02-24
|
Translate the following into a SQL query
|
What is the total number of households with a population larger than 25,692 and a median household income of $51,914?
|
SELECT COUNT Number of households FROM table WHERE Population > 25,692 AND Median household income = $51,914
|
Translate the following into a SQL query
|
What is the sum of households that makes a median household income of $44,718?
|
SELECT SUM Number of households FROM table WHERE Median household income = $44,718
|
Translate the following into a SQL query
|
What is the highest population for Baraga County with less than 3,444 households?
|
SELECT MAX Population FROM table WHERE County = baraga AND Number of households < 3,444
|
Translate the following into a SQL query
|
Which golfer had a score of 68-70-68-66=272?
|
SELECT Player FROM table WHERE Score = 68-70-68-66=272
|
Translate the following into a SQL query
|
What place was the golfer with a score of 67-67-66-68=268 ranked in?
|
SELECT Place FROM table WHERE Score = 67-67-66-68=268
|
Translate the following into a SQL query
|
Which category was Maite Perroni nominated for earlier than 2009?
|
SELECT Category FROM table WHERE Nominated = maite perroni AND Year < 2009
|
Translate the following into a SQL query
|
In what year was there an award for TV Adicto Golden Awards and the category Female Revelation?
|
SELECT Year FROM table WHERE Award = tv adicto golden awards AND Category = female revelation
|
Translate the following into a SQL query
|
What winner has silence-lotto as the team classification?
|
SELECT Winner FROM table WHERE Team Classification = silence-lotto
|
Translate the following into a SQL query
|
What general classification has david de la fuente as mountains classification, and thor hushovd as points classification?
|
SELECT General classification FROM table WHERE Mountains classification = david de la fuente AND Points classification = thor hushovd
|
Translate the following into a SQL query
|
What general classification has levi leipheimer as points classification?
|
SELECT General classification FROM table WHERE Points classification = levi leipheimer
|
Translate the following into a SQL query
|
What team classification has alejandro valverde as points classification, with alejandro valverde as the winner, with 3 as the stage?
|
SELECT Team Classification FROM table WHERE Points classification = alejandro valverde AND Winner = alejandro valverde AND Stage = 3
|
Translate the following into a SQL query
|
What winner has pierre rolland as mountains classification, with 7 as the stage?
|
SELECT Winner FROM table WHERE Mountains classification = pierre rolland AND Stage = 7
|
Translate the following into a SQL query
|
What general classification has 4 as the stage?
|
SELECT General classification FROM table WHERE Stage = 4
|
Translate the following into a SQL query
|
What are the lowest lost has 111 as the goals against?
|
SELECT MIN Lost FROM table WHERE Goals Against = 111
|
Translate the following into a SQL query
|
What is the highest goals against that has 15 as position?
|
SELECT MAX Goals Against FROM table WHERE Position = 15
|
Translate the following into a SQL query
|
Hiw many losses have 30 for the goals with points greater than 24?
|
SELECT COUNT Losses FROM table WHERE Goals for = 30 AND Points > 24
|
Translate the following into a SQL query
|
How many draws have goals for less than 56, 10 as the postion, with goals against less than 45?
|
SELECT COUNT Draws FROM table WHERE Goals for < 56 AND Position = 10 AND Goals against < 45
|
Translate the following into a SQL query
|
What is the highest draws that have 31 for points, wins greater than 12, with a goal difference less than 11?
|
SELECT MAX Draws FROM table WHERE Points = 31 AND Wins > 12 AND Goal Difference < 11
|
Translate the following into a SQL query
|
Name Road Team of Game of game 4?
|
SELECT Road Team FROM table WHERE Game = game 4
|
Translate the following into a SQL query
|
Which Date has a Road Team of chicago, and a Result of 88-85 (ot)?
|
SELECT Date FROM table WHERE Road Team = chicago AND Result = 88-85 (ot)
|
Translate the following into a SQL query
|
Which Home Team is on june 12?
|
SELECT Home Team FROM table WHERE Date = june 12
|
Translate the following into a SQL query
|
Which Result that is on june 5?
|
SELECT Result FROM table WHERE Date = june 5
|
Translate the following into a SQL query
|
Which Date has Result of 86-87?
|
SELECT Date FROM table WHERE Result = 86-87
|
Translate the following into a SQL query
|
Which Result has a Game of game 1?
|
SELECT Result FROM table WHERE Game = game 1
|
Translate the following into a SQL query
|
What Miss Maja Pilipinas has a Binibining Pilipinas-Tourism of not awarded, and a Binibining Pilipinas-Universe of anjanette abayari?
|
SELECT Miss Maja Pilipinas FROM table WHERE Binibining Pilipinas-Tourism = not awarded AND Binibining Pilipinas-Universe = anjanette abayari
|
Translate the following into a SQL query
|
What Binibining Pilipinas-International has a Year larger than 1990, and a Binibining Pilipinas-Universe of maria lourdes gonzalez?
|
SELECT Binibining Pilipinas-International FROM table WHERE Year > 1990 AND Binibining Pilipinas-Universe = maria lourdes gonzalez
|
Translate the following into a SQL query
|
What First runner-up has a Miss Maja Pilipinas of nanette prodigalidad?
|
SELECT First runner-up FROM table WHERE Miss Maja Pilipinas = nanette prodigalidad
|
Translate the following into a SQL query
|
What is the smallest Year with a Binibining Pilipinas-International of jessie alice salones dixson?
|
SELECT MIN Year FROM table WHERE Binibining Pilipinas-International = jessie alice salones dixson
|
Translate the following into a SQL query
|
What Binibining Pilipinas-International has a Year of 1975?
|
SELECT Binibining Pilipinas-International FROM table WHERE Year = 1975
|
Translate the following into a SQL query
|
What is To par, when Player is "Jesper Parnevik"?
|
SELECT To par FROM table WHERE Player = jesper parnevik
|
Translate the following into a SQL query
|
What is Player, when Place is "1"?
|
SELECT Player FROM table WHERE Place = 1
|
Translate the following into a SQL query
|
What is To par, when Country is "United States", and when Player is "Mark Brooks"?
|
SELECT To par FROM table WHERE Country = united states AND Player = mark brooks
|
Translate the following into a SQL query
|
What is Place, when Player is "Phil Mickelson"?
|
SELECT Place FROM table WHERE Player = phil mickelson
|
Translate the following into a SQL query
|
What is Score, when Player is "Brad Faxon"?
|
SELECT Score FROM table WHERE Player = brad faxon
|
Translate the following into a SQL query
|
What was the edition after 2003 when the Third was Tikveš and Sileks was the runner-up?
|
SELECT MIN Edition FROM table WHERE Year > 2003 AND Third = tikveš AND Runner-up = sileks
|
Translate the following into a SQL query
|
What was the latest year with an edition of 14?
|
SELECT MAX Year FROM table WHERE Edition = 14
|
Translate the following into a SQL query
|
What was the venue for the game on 18/03/2006?
|
SELECT Venue FROM table WHERE Date = 18/03/2006
|
Translate the following into a SQL query
|
What was the score when the place was t8?
|
SELECT Score FROM table WHERE Place = t8
|
Translate the following into a SQL query
|
What country scored 71-66-66-71=274?
|
SELECT Country FROM table WHERE Score = 71-66-66-71=274
|
Translate the following into a SQL query
|
What country scored 66-65-66-72=269?
|
SELECT Country FROM table WHERE Score = 66-65-66-72=269
|
Translate the following into a SQL query
|
What was the money for place t3 and United States?
|
SELECT Money ( $ ) FROM table WHERE Place = t3 AND Country = united states
|
Translate the following into a SQL query
|
What country does Jeff Sluman play for?
|
SELECT Country FROM table WHERE Player = jeff sluman
|
Translate the following into a SQL query
|
What was the to par for place t8 and a score of 71-66-66-71=274?
|
SELECT To par FROM table WHERE Place = t8 AND Score = 71-66-66-71=274
|
Translate the following into a SQL query
|
What home team played against Fleetwood Town?
|
SELECT Home team FROM table WHERE Away team = fleetwood town
|
Translate the following into a SQL query
|
What callsign has 1300 as the frequency?
|
SELECT Callsign FROM table WHERE Frequency = 1300
|
Translate the following into a SQL query
|
What's the name of the stadium when the club was F.C. Igea Virtus Barcellona?
|
SELECT Stadium FROM table WHERE Club = f.c. igea virtus barcellona
|
Translate the following into a SQL query
|
Who was the club when during the 2007-08 season had 12th in serie c2/c?
|
SELECT Club FROM table WHERE 2007–08 season = 12th in serie c2/c
|
Translate the following into a SQL query
|
Who was the club when during the 2007-08 season had 14th in serie c2/c?
|
SELECT Club FROM table WHERE 2007–08 season = 14th in serie c2/c
|
Translate the following into a SQL query
|
What is the capacity when the 2007–08 season was 1st Serie D/I?
|
SELECT Capacity FROM table WHERE 2007–08 season = 1st serie d/i
|
Translate the following into a SQL query
|
What was the largest capacity when the club was F.C. Igea Virtus Barcellona?
|
SELECT MAX Capacity FROM table WHERE Club = f.c. igea virtus barcellona
|
Translate the following into a SQL query
|
Who had a total of 34?
|
SELECT Name FROM table WHERE Total = 34
|
Translate the following into a SQL query
|
What rank is Takatōriki having less than 30 total?
|
SELECT Highest rank FROM table WHERE Total < 30 AND Name = takatōriki
|
Translate the following into a SQL query
|
What was the total when the first was November 1966?
|
SELECT SUM Total FROM table WHERE First = november 1966
|
Translate the following into a SQL query
|
What is the last when the first was January 2001 and more than 26 total?
|
SELECT Last FROM table WHERE Total > 26 AND First = january 2001
|
Translate the following into a SQL query
|
What is the greatest total when the last was September 1970?
|
SELECT MAX Total FROM table WHERE Last = september 1970
|
Translate the following into a SQL query
|
What rank is Takatōriki?
|
SELECT Highest rank FROM table WHERE Name = takatōriki
|
Translate the following into a SQL query
|
What year has 54 (73) points?
|
SELECT SUM Year FROM table WHERE Pts. = 54 (73)
|
Translate the following into a SQL query
|
What is the chassis more recent than 1967?
|
SELECT Chassis FROM table WHERE Year > 1967
|
Translate the following into a SQL query
|
What is the year of the Lotus 25 chassis?
|
SELECT AVG Year FROM table WHERE Chassis = lotus 25
|
Translate the following into a SQL query
|
What is the year of the Lotus 18 chassis?
|
SELECT COUNT Year FROM table WHERE Chassis = lotus 18
|
Translate the following into a SQL query
|
What is First Elected, when District is "Minnesota 2"?
|
SELECT First elected FROM table WHERE District = minnesota 2
|
Translate the following into a SQL query
|
What is the lowest First Elected, when Party is "Republican", and when District is "Minnesota 1"?
|
SELECT MIN First elected FROM table WHERE Party = republican AND District = minnesota 1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.