instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | For the team whose shirt sponsor is Krombacher, who is the team captain? | SELECT Team Captain FROM table WHERE Shirt sponsor = krombacher |
Translate the following into a SQL query | For the team whose shirt sponsor is Evonik, who is the kitmaker? | SELECT Kitmaker FROM table WHERE Shirt sponsor = evonik |
Translate the following into a SQL query | Who is the Shirt Back Sponsor if the Shorts Sponsor is Telestet? | SELECT Shirt back sponsor FROM table WHERE Shorts sponsor = telestet |
Translate the following into a SQL query | Which of the Res., has Ryan Scheepe as an opponent? | SELECT Res. FROM table WHERE Opponent = ryan scheepe |
Translate the following into a SQL query | What position is Jeff Brown? | SELECT Position FROM table WHERE Player = jeff brown |
Translate the following into a SQL query | which player played on Team Hamilton? | SELECT Player FROM table WHERE CFL Team = hamilton |
Translate the following into a SQL query | What CFL team does Jeff brown play for? | SELECT CFL Team FROM table WHERE Player = jeff brown |
Translate the following into a SQL query | What is the total number of picks for Calgary College? | SELECT COUNT Pick # FROM table WHERE College = calgary |
Translate the following into a SQL query | Who was the home team when the record was 2-3? | SELECT Home FROM table WHERE Record = 2-3 |
Translate the following into a SQL query | What was the record on April 10? | SELECT Record FROM table WHERE Date = april 10 |
Translate the following into a SQL query | What spacecraft had an EVA that ended at 17:28? | SELECT Spacecraft FROM table WHERE End Time = 17:28 |
Translate the following into a SQL query | What crew's EVA started on 20 February 20:09? | SELECT Crew FROM table WHERE Start Date/Time = 20 february 20:09 |
Translate the following into a SQL query | The EVA that started on 8 July 12:38 went for how long? | SELECT Duration FROM table WHERE Start Date/Time = 8 july 12:38 |
Translate the following into a SQL query | The EVA that started 8 July 12:38 was from what spacecraft? | SELECT Spacecraft FROM table WHERE Start Date/Time = 8 july 12:38 |
Translate the following into a SQL query | How many assists were in the k-league competition, which has more than 20 total Gs, the pohang steelers team, and chunnam dragons as the opponent? | SELECT Assists FROM table WHERE Competition = k-league AND Total Gs > 20 AND Team = pohang steelers AND Opponent = chunnam dragons |
Translate the following into a SQL query | What is the average number of goals of park sung-ho at the k-league competition, which has the pohang steelers team and less than 46 total Gs? | SELECT AVG Goals FROM table WHERE Competition = k-league AND Team = pohang steelers AND Name = park sung-ho AND Total Gs < 46 |
Translate the following into a SQL query | What is the date of the k-league cup, which has less than 28 goals, at the jeonju venue? | SELECT Date FROM table WHERE Venue = jeonju AND Goals < 28 AND Competition = k-league cup |
Translate the following into a SQL query | What is the sum of the total As of team bucheon sk, who had the chunnam dragons as their opponent at the bucheon venue? | SELECT SUM Total As FROM table WHERE Team = bucheon sk AND Opponent = chunnam dragons AND Venue = bucheon |
Translate the following into a SQL query | What is the sum of the assists kang jae-soon had in the k-league competition in ulsan? | SELECT SUM Assists FROM table WHERE Venue = ulsan AND Competition = k-league AND Name = kang jae-soon |
Translate the following into a SQL query | What is the sum of the goals on 2007-06-16? | SELECT SUM Goals FROM table WHERE Date = 2007-06-16 |
Translate the following into a SQL query | What was Bill Glasson's score to par after 2 rounds? | SELECT To par FROM table WHERE Player = bill glasson |
Translate the following into a SQL query | What was Phil Mickelson's score to par? | SELECT To par FROM table WHERE Player = phil mickelson |
Translate the following into a SQL query | What place was Bill Glasson in? | SELECT Place FROM table WHERE Player = bill glasson |
Translate the following into a SQL query | What is the average pick with 85 overall in a round lower than 3? | SELECT AVG Pick FROM table WHERE Overall = 85 AND Round < 3 |
Translate the following into a SQL query | What was the 2009 results that has q1 for 2010, and A as the result for 2011? | SELECT 2009 FROM table WHERE 2010 = q1 AND 2011 = a |
Translate the following into a SQL query | What were the 2009 results that has 0 in 2010? | SELECT 2009 FROM table WHERE 2010 = 0 |
Translate the following into a SQL query | With a 2011 of 0 what was the 2006 result? | SELECT 2006 FROM table WHERE 2011 = 0 |
Translate the following into a SQL query | What is the result for 2004 when A is the result for 2005, and the result of q1 when 2009? | SELECT 2004 FROM table WHERE 2005 = a AND 2009 = q1 |
Translate the following into a SQL query | With a 2008 result of 153 what is the result for 2007? | SELECT 2007 FROM table WHERE 2008 = 153 |
Translate the following into a SQL query | What are the results in 2008 when 2009 is 0, and the ATP Tournaments Won is the tournament? | SELECT 2008 FROM table WHERE 2009 = 0 AND Tournament = atp tournaments won |
Translate the following into a SQL query | Which team was in 1951? | SELECT Team FROM table WHERE Year = 1951 |
Translate the following into a SQL query | What is the date of the match with arnaud di pasquale as the opponent in the final? | SELECT Date FROM table WHERE Opponent in the final = arnaud di pasquale |
Translate the following into a SQL query | What is the date of the match with a winner outcome and jim courier as the opponent in the final? | SELECT Date FROM table WHERE Outcome = winner AND Opponent in the final = jim courier |
Translate the following into a SQL query | What is the surface of the palermo, italy championship? | SELECT Surface FROM table WHERE Championship = palermo, italy |
Translate the following into a SQL query | In what Round was OL Player Richard Zulys picked? | SELECT SUM Round FROM table WHERE Position = ol AND Player = richard zulys |
Translate the following into a SQL query | What is the Player from McGill? | SELECT Player FROM table WHERE School/Club Team = mcgill |
Translate the following into a SQL query | Which College had an Overall pick of 171? | SELECT College FROM table WHERE Overall = 171 |
Translate the following into a SQL query | Who had the overall pick of 72? | SELECT Name FROM table WHERE Overall = 72 |
Translate the following into a SQL query | What primary conference does the team nicknamed Phoenix belongs to? | SELECT Primary conference FROM table WHERE Team Nickname = phoenix |
Translate the following into a SQL query | Where is the location for the home rink Triangle sports plex/Greensboro ice house? | SELECT Location FROM table WHERE Home Rink = triangle sports plex/greensboro ice house |
Translate the following into a SQL query | What pick was a player that previously played for the Minnesota Lynx? | SELECT SUM Pick FROM table WHERE Former WNBA Team = minnesota lynx |
Translate the following into a SQL query | Which player was picked after 23? | SELECT Player FROM table WHERE Pick > 23 |
Translate the following into a SQL query | What is the nationality of the player who went to college at Mississippi? | SELECT Nationality FROM table WHERE College/Country/Team = mississippi |
Translate the following into a SQL query | Who is the player who played for the Miami Sol and went to school at North Carolina State? | SELECT Player FROM table WHERE New WNBA Team = miami sol AND College/Country/Team = north carolina state |
Translate the following into a SQL query | WHAT IS THE AVG AST FOR GAMES LARGER THAN 101, RANK 5, TOTAL ASSISTS SMALLER THAN 331? | SELECT AVG Ast. Avg. FROM table WHERE Games > 101 AND Rank = 5 AND Total Assists < 331 |
Translate the following into a SQL query | WHAT IS THE SUM OF AST AVG WITH RANK 5 AND GAMES BIGGER THAN 108? | SELECT SUM Ast. Avg. FROM table WHERE Rank = 5 AND Games > 108 |
Translate the following into a SQL query | Which Round has a Name of john goodyear? | SELECT Round FROM table WHERE Name = john goodyear |
Translate the following into a SQL query | Which Round has a College of appalachian state, and an Overall smaller than 156? | SELECT COUNT Round FROM table WHERE College = appalachian state AND Overall < 156 |
Translate the following into a SQL query | Which Pick has a Round larger than 17, and a Name of gene stewart? | SELECT COUNT Pick FROM table WHERE Round > 17 AND Name = gene stewart |
Translate the following into a SQL query | What was the result when the opponent was Rory Markham? | SELECT Res. FROM table WHERE Opponent = rory markham |
Translate the following into a SQL query | Which Branding has a frequency of 1080khz? | SELECT Branding FROM table WHERE Frequency = 1080khz |
Translate the following into a SQL query | Which frequency is located in Dagupan? | SELECT Frequency FROM table WHERE Location = dagupan |
Translate the following into a SQL query | What frequency does branding dzec radyo agila 1062 have? | SELECT Frequency FROM table WHERE Branding = dzec radyo agila 1062 |
Translate the following into a SQL query | Which frequency has 40kw power? | SELECT Frequency FROM table WHERE Power (kW) = 40kw |
Translate the following into a SQL query | Which frequency is located in Davao? | SELECT Frequency FROM table WHERE Location = davao |
Translate the following into a SQL query | what is the peak population (year) for scranton? | SELECT Peak population (year) FROM table WHERE City = scranton |
Translate the following into a SQL query | what is the numeric decline from peak population when the perfect decline from peak population is -16.76% | SELECT Numeric decline from peak population FROM table WHERE Percent decline from peak population = -16.76% |
Translate the following into a SQL query | what is the numeric decline from peak population when 2010 population is 88857? | SELECT Numeric decline from peak population FROM table WHERE 2010 population = 88857 |
Translate the following into a SQL query | what is the state when the peak population (year) is 134995 (1950)? | SELECT State FROM table WHERE Peak population (year) = 134995 (1950) |
Translate the following into a SQL query | what is the percent decline from peak population when the peak population (year) is 178320 (1960)? | SELECT Percent decline from peak population FROM table WHERE Peak population (year) = 178320 (1960) |
Translate the following into a SQL query | WHAT IS THE RANK OF UNIVERSAL, AND DIRECTOR JOHN HUGHES? | SELECT Rank FROM table WHERE Studio = universal AND Director = john hughes |
Translate the following into a SQL query | WHAT IS THE TITLE THAT HAS A RANK BIGGER THAN 10, FOR DIRECTOR WALTER HILL? | SELECT Title FROM table WHERE Rank > 10 AND Director = walter hill |
Translate the following into a SQL query | WHAT IS THE STUDIO WITH THE TITLE MASK? | SELECT Studio FROM table WHERE Title = mask |
Translate the following into a SQL query | WHAT IS THE RANK WITH A GROSS OF $96,773,200? | SELECT COUNT Rank FROM table WHERE Gross = $96,773,200 |
Translate the following into a SQL query | How many times was the player drawn that had less than 12 losses and a goal difference of +20? | SELECT Drawn FROM table WHERE Lost < 12 AND Goal Difference = +20 |
Translate the following into a SQL query | What is the sum of the positions for the player who had less than 25 losses, a goal difference of +20, 10 draws, and played less than 42? | SELECT SUM Position FROM table WHERE Drawn = 10 AND Lost < 25 AND Goal Difference = +20 AND Played < 42 |
Translate the following into a SQL query | What is the highest number played when there were less than 13 losses and a goal difference of +46? | SELECT MAX Played FROM table WHERE Lost < 13 AND Goal Difference = +46 |
Translate the following into a SQL query | What is listed under points 1 when the position was greater than 4, there were 54 goals for and more than 11 losses? | SELECT Points 1 FROM table WHERE Position > 4 AND Goals For = 54 AND Lost > 11 |
Translate the following into a SQL query | Who was the worship leader that had a lead supporting vocal Marcus Temu? | SELECT Worship Leader FROM table WHERE Lead Supporting Vocal = marcus temu |
Translate the following into a SQL query | Who was the lead supporting vocalist on the song that was 4:54 long? | SELECT Lead Supporting Vocal FROM table WHERE Time = 4:54 |
Translate the following into a SQL query | Who was the Worship Leader for the song that was 7:05 long? | SELECT Worship Leader FROM table WHERE Time = 7:05 |
Translate the following into a SQL query | What is the song name that featured Marcus Temu as the lead supporting vocalist? | SELECT Song FROM table WHERE Lead Supporting Vocal = marcus temu |
Translate the following into a SQL query | What's the lowest diameter when the longitude is 71.1w? | SELECT MIN Diameter FROM table WHERE Longitude = 71.1w |
Translate the following into a SQL query | What's the longitude for philae sulcus in 1997 with a diameter less than 1,575.0? | SELECT Longitude FROM table WHERE Diameter < 1,575.0 AND Year named = 1997 AND Name = philae sulcus |
Translate the following into a SQL query | What is dardanus sulcus' lowest diameter? | SELECT MIN Diameter FROM table WHERE Name = dardanus sulcus |
Translate the following into a SQL query | How many years is ur sulcus listed with a diameter less than 1,145.0? | SELECT COUNT Year named FROM table WHERE Name = ur sulcus AND Diameter < 1,145.0 |
Translate the following into a SQL query | When the attendance was 3188 what was the score? | SELECT Score FROM table WHERE Attendance = 3188 |
Translate the following into a SQL query | What is the maximum number of people in attendance on 16 August 2008 when the home team was Deportes Savio? | SELECT MAX Attendance FROM table WHERE Date = 16 august 2008 AND Home = deportes savio |
Translate the following into a SQL query | What team was the away team when the Deportes Savio was the home team? | SELECT Away FROM table WHERE Home = deportes savio |
Translate the following into a SQL query | What was the away team when the score was 3:1? | SELECT Away FROM table WHERE Score = 3:1 |
Translate the following into a SQL query | When Platense was the away team on 16 August 2008 how many people attended the game? | SELECT Attendance FROM table WHERE Date = 16 august 2008 AND Away = platense |
Translate the following into a SQL query | What was the score when 2441 people were in attendance? | SELECT Score FROM table WHERE Attendance = 2441 |
Translate the following into a SQL query | Which driver had 35+3 points? | SELECT Driver FROM table WHERE Points = 35+3 |
Translate the following into a SQL query | What was the time/retired for the driver with 14 points? | SELECT Time/Retired FROM table WHERE Points = 14 |
Translate the following into a SQL query | What is the sum of goals when the league cup goals are 4 and the FA cup goals are 0? | SELECT Total FROM table WHERE League Cup goals = 4 AND FA Cup goals = 0 |
Translate the following into a SQL query | What is the amount of FA cups goals that were made when the total goals is greater than 16, and the league cup goals is 1 for the Norwich City club? | SELECT FA Cup goals FROM table WHERE Total > 16 AND League Cup goals = 1 AND Club = norwich city |
Translate the following into a SQL query | What is the number of league goals when Bill Dearden was the scorer and there was 0 league cup goals? | SELECT League goals FROM table WHERE League Cup goals = 0 AND Scorer = bill dearden |
Translate the following into a SQL query | What is the name of the player with a transfer window in summer, an undisclosed transfer fee, and is moving from brussels? | SELECT Name FROM table WHERE Transfer window = summer AND Transfer fee = undisclosed AND Moving from = brussels |
Translate the following into a SQL query | What is the type of bulykin, which has a summer transfer window? | SELECT Type FROM table WHERE Transfer window = summer AND Name = bulykin |
Translate the following into a SQL query | What is the country of cordier? | SELECT Country FROM table WHERE Name = cordier |
Translate the following into a SQL query | What is the country of the player moving from belgrano with a summer transfer window? | SELECT Country FROM table WHERE Transfer window = summer AND Moving from = belgrano |
Translate the following into a SQL query | What is the transfer window of the player moving from barueri? | SELECT Transfer window FROM table WHERE Moving from = barueri |
Translate the following into a SQL query | What is the type of the player moving from belgrano? | SELECT Type FROM table WHERE Moving from = belgrano |
Translate the following into a SQL query | Average round for 22 pick that is overall smaller than 229? | SELECT AVG Round FROM table WHERE Pick = 22 AND Overall < 229 |
Translate the following into a SQL query | What is the normal 2002 that has a Country of Peru, and 2007 bigger than 1,200? | SELECT AVG 2002 FROM table WHERE Country = peru AND 2007 > 1,200 |
Translate the following into a SQL query | What is the most reduced 2007 that has 2008 littler than 1,270, and 2003 bigger than 870? | SELECT MIN 2007 FROM table WHERE 2008 < 1,270 AND 2003 > 870 |
Translate the following into a SQL query | What is the most noteworthy 2006 that has 2008 littler than 5,330, and a Country of Peru, and 2009 littler than 1,260? | SELECT MAX 2006 FROM table WHERE 2008 < 5,330 AND Country = peru AND 2009 < 1,260 |
Translate the following into a SQL query | What is the least 2009 that has 2005 littler than 640, and 2011 of 425, and 2003 littler than 500? | SELECT MIN 2009 FROM table WHERE 2005 < 640 AND 2011 = 425 AND 2003 < 500 |
Translate the following into a SQL query | What is the aggregate number of 2005 that has 2004 bigger than 1,040, and a Country of Chile, and 2006 littler than 5,560? | SELECT COUNT 2005 FROM table WHERE 2004 > 1,040 AND Country = chile AND 2006 < 5,560 |
Translate the following into a SQL query | How many Bronze medals did the Nation with 0 Silver receive? | SELECT MAX Bronze FROM table WHERE Silver < 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.