Unnamed: 0
int64
0
78.6k
answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
translated_answer
stringlengths
12
992
2,100
SELECT AVG(rating), languages FROM song GROUP BY languages
What is the average rating of songs for each language?
CREATE TABLE song (languages VARCHAR, rating INTEGER)
Qual é a classificação média das músicas para cada idioma?
2,101
SELECT T1.gender, T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1
Return the gender and name of artist who produced the song with the lowest resolution.
CREATE TABLE artist (gender VARCHAR, artist_name VARCHAR); CREATE TABLE song (artist_name VARCHAR, resolution VARCHAR)
Retorne o gênero e o nome do artista que produziu a música com a menor resolução.
2,102
SELECT COUNT(*), formats FROM files GROUP BY formats
For each file format, return the number of artists who released songs in that format.
CREATE TABLE files (formats VARCHAR)
Para cada formato de arquivo, retorne o número de artistas que lançaram músicas nesse formato.
2,103
SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT MIN(resolution) FROM song WHERE languages = "english")
Find the distinct names of all songs that have a higher resolution than some songs in English.
CREATE TABLE song (song_name VARCHAR, resolution INTEGER, languages VARCHAR)
Encontre os nomes distintos de todas as músicas que têm uma resolução maior do que algumas músicas em inglês.
2,104
SELECT song_name FROM song WHERE rating < (SELECT MAX(rating) FROM song WHERE genre_is = "blues")
What are the names of all songs that have a lower rating than some song of blues genre?
CREATE TABLE song (song_name VARCHAR, rating INTEGER, genre_is VARCHAR)
Quais são os nomes de todas as músicas que têm uma classificação mais baixa do que algumas músicas do gênero blues?
2,105
SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.song_name LIKE "%love%"
What is the name and country of origin of the artist who released a song that has "love" in its title?
CREATE TABLE song (artist_name VARCHAR, song_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)
Qual é o nome e o país de origem do artista que lançou uma música que tem "amor" em seu título?
2,106
SELECT T1.artist_name, T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE "%Mar%"
List the name and gender for all artists who released songs in March.
CREATE TABLE song (artist_name VARCHAR, releasedate VARCHAR); CREATE TABLE artist (artist_name VARCHAR, gender VARCHAR)
Liste o nome e o gênero de todos os artistas que lançaram músicas em março.
2,107
SELECT g_name, rating FROM genre ORDER BY g_name
List the names of all genres in alphabetical oder, together with its ratings.
CREATE TABLE genre (g_name VARCHAR, rating VARCHAR)
Liste os nomes de todos os gêneros em ordem alfabética, juntamente com suas classificações.
2,108
SELECT song_name FROM song ORDER BY resolution
Give me a list of the names of all songs ordered by their resolution.
CREATE TABLE song (song_name VARCHAR, resolution VARCHAR)
Dê-me uma lista dos nomes de todas as músicas ordenadas por sua resolução.
2,109
SELECT f_id FROM files WHERE formats = "mp4" UNION SELECT f_id FROM song WHERE resolution > 720
What are the ids of songs that are available in either mp4 format or have resolution above 720?
CREATE TABLE song (f_id VARCHAR, formats VARCHAR, resolution INTEGER); CREATE TABLE files (f_id VARCHAR, formats VARCHAR, resolution INTEGER)
Quais são os IDs de músicas que estão disponíveis em formato mp4 ou têm resolução acima de 720?
2,110
SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages = "english"
List the names of all songs that have 4 minute duration or are in English.
CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (song_name VARCHAR, f_id VARCHAR); CREATE TABLE song (song_name VARCHAR, languages VARCHAR)
Listar os nomes de todas as músicas que têm duração de 4 minutos ou estão em inglês.
2,111
SELECT languages FROM song GROUP BY languages ORDER BY COUNT(*) DESC LIMIT 1
What is the language used most often in the songs?
CREATE TABLE song (languages VARCHAR)
Qual é a linguagem mais usada nas canções?
2,112
SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY COUNT(*) DESC LIMIT 1
What is the language that was used most often in songs with resolution above 500?
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR, resolution INTEGER)
Qual é o idioma mais usado em músicas com resolução acima de 500?
2,113
SELECT artist_name FROM artist WHERE country = "UK" AND gender = "Male"
What are the names of artists who are Male and are from UK?
CREATE TABLE artist (artist_name VARCHAR, country VARCHAR, gender VARCHAR)
Quais são os nomes dos artistas que são do sexo masculino e são do Reino Unido?
2,114
SELECT song_name FROM song WHERE genre_is = "modern" OR languages = "english"
Find the names of songs whose genre is modern or language is English.
CREATE TABLE song (song_name VARCHAR, genre_is VARCHAR, languages VARCHAR)
Encontre os nomes de músicas cujo gênero é moderno ou idioma é o inglês.
2,115
SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" INTERSECT SELECT song_name FROM song WHERE resolution < 1000
Return the names of songs for which format is mp3 and resolution is below 1000.
CREATE TABLE song (song_name VARCHAR, resolution INTEGER); CREATE TABLE song (song_name VARCHAR, f_id VARCHAR); CREATE TABLE files (f_id VARCHAR, formats VARCHAR)
Retornar os nomes das músicas cujo formato é mp3 e resolução é inferior a 1000.
2,116
SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english"
Return the names of singers who are from UK and released an English song.
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)
Devolver os nomes dos cantores que são do Reino Unido e lançou uma canção em inglês.
2,117
SELECT AVG(rating), AVG(resolution) FROM song WHERE languages = "bangla"
What are the average rating and resolution of songs that are in Bangla?
CREATE TABLE song (rating INTEGER, resolution INTEGER, languages VARCHAR)
Qual é a classificação e resolução média de músicas que estão em Bangla?
2,118
SELECT MAX(T2.resolution), MIN(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "3:%"
What are the maximum and minimum resolution of songs whose duration is 3 minutes?
CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (resolution INTEGER, f_id VARCHAR)
Qual é a resolução máxima e mínima de músicas cuja duração é de 3 minutos?
2,119
SELECT MAX(T1.duration), MAX(T2.resolution), T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages
What are the maximum duration and resolution of songs grouped and ordered by languages?
CREATE TABLE song (languages VARCHAR, resolution INTEGER, f_id VARCHAR); CREATE TABLE files (duration INTEGER, f_id VARCHAR)
Qual é a duração máxima e resolução das músicas agrupadas e ordenadas por idiomas?
2,120
SELECT MIN(T1.duration), MIN(T2.rating), T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is
What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?
CREATE TABLE song (genre_is VARCHAR, rating INTEGER, f_id VARCHAR); CREATE TABLE files (duration INTEGER, f_id VARCHAR)
Quais são a duração mais curta e a classificação mais baixa de músicas agrupadas por gênero e ordenadas por gênero?
2,121
SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english" GROUP BY T2.artist_name HAVING COUNT(*) >= 1
Find the names and number of works of all artists who have at least one English songs.
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR)
Encontre os nomes e o número de obras de todos os artistas que tenham pelo menos uma música em inglês.
2,122
SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.resolution > 900 GROUP BY T2.artist_name HAVING COUNT(*) >= 1
Find the name and country of origin for all artists who have release at least one song of resolution above 900.
CREATE TABLE song (artist_name VARCHAR, resolution INTEGER); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)
Encontre o nome e o país de origem para todos os artistas que tenham lançado pelo menos uma música de resolução acima de 900.
2,123
SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3
Find the names and number of works of the three artists who have produced the most songs.
CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR)
Encontre os nomes e o número de obras dos três artistas que produziram mais músicas.
2,124
SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) LIMIT 1
Find the country of origin for the artist who made the least number of songs?
CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (country VARCHAR, artist_name VARCHAR)
Encontrar o país de origem para o artista que fez o menor número de músicas?
2,125
SELECT song_name FROM song WHERE rating < (SELECT MIN(rating) FROM song WHERE languages = 'english')
What are the names of the songs whose rating is below the rating of all songs in English?
CREATE TABLE song (song_name VARCHAR, rating INTEGER, languages VARCHAR)
Quais são os nomes das músicas cuja classificação está abaixo da classificação de todas as músicas em inglês?
2,126
SELECT f_id FROM song WHERE resolution > (SELECT MAX(resolution) FROM song WHERE rating < 8)
What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?
CREATE TABLE song (f_id VARCHAR, resolution INTEGER, rating INTEGER)
O que é ids das músicas cuja resolução é maior do que a resolução de quaisquer músicas com classificação inferior a 8?
2,127
SELECT f_id FROM song WHERE resolution > (SELECT AVG(resolution) FROM song WHERE genre_is = "modern")
What is ids of the songs whose resolution is higher than the average resolution of songs in modern genre?
CREATE TABLE song (f_id VARCHAR, resolution INTEGER, genre_is VARCHAR)
O que são IDs das músicas cuja resolução é maior do que a resolução média das músicas no gênero moderno?
2,128
SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "bangla" GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3
Find the top 3 artists who have the largest number of songs works whose language is Bangla.
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR)
Encontre os 3 melhores artistas que têm o maior número de músicas cuja linguagem é Bangla.
2,129
SELECT f_id, genre_is, artist_name FROM song WHERE languages = "english" ORDER BY rating
List the id, genre and artist name of English songs ordered by rating.
CREATE TABLE song (f_id VARCHAR, genre_is VARCHAR, artist_name VARCHAR, languages VARCHAR, rating VARCHAR)
Liste o id, gênero e nome do artista das músicas em inglês ordenadas por classificação.
2,130
SELECT T1.duration, T1.file_size, T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.genre_is = "pop" ORDER BY T2.song_name
List the duration, file size and format of songs whose genre is pop, ordered by title?
CREATE TABLE song (f_id VARCHAR, genre_is VARCHAR, song_name VARCHAR); CREATE TABLE files (duration VARCHAR, file_size VARCHAR, formats VARCHAR, f_id VARCHAR)
Liste a duração, o tamanho do arquivo e o formato das músicas cujo gênero é pop, ordenadas por título?
2,131
SELECT DISTINCT artist_name FROM song WHERE languages = "english" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 8
Find the names of the artists who have produced English songs but have never received rating higher than 8.
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR, rating INTEGER)
Encontre os nomes dos artistas que produziram músicas em inglês, mas nunca receberam classificação superior a 8.
2,132
SELECT DISTINCT artist_name FROM artist WHERE country = "Bangladesh" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7
Find the names of the artists who are from Bangladesh and have never received rating higher than 7.
CREATE TABLE artist (artist_name VARCHAR, country VARCHAR, rating INTEGER); CREATE TABLE song (artist_name VARCHAR, country VARCHAR, rating INTEGER)
Encontre os nomes dos artistas que são de Bangladesh e nunca receberam uma classificação superior a 7.
2,133
SELECT T1.name_full, T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY COUNT(*) DESC LIMIT 1
what is the full name and id of the college with the largest number of baseball players?
CREATE TABLE player_college (college_id VARCHAR); CREATE TABLE college (name_full VARCHAR, college_id VARCHAR)
Qual é o nome completo e ID da faculdade com o maior número de jogadores de beisebol?
2,134
SELECT AVG(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings'
What is average salary of the players in the team named 'Boston Red Stockings' ?
CREATE TABLE salary (salary INTEGER, team_id VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)
Qual é o salário médio dos jogadores da equipe chamada 'Boston Red Stockings'?
2,135
SELECT name_first, name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998
What are first and last names of players participating in all star game in 1998?
CREATE TABLE all_star (player_id VARCHAR); CREATE TABLE player (player_id VARCHAR)
Quais são os primeiros e últimos nomes de jogadores que participam de todos os jogos de estrelas em 1998?
2,136
SELECT T1.name_first, T1.name_last, T1.player_id, COUNT(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY COUNT(*) DESC LIMIT 1
What are the first name, last name and id of the player with the most all star game experiences? Also list the count.
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE all_star (player_id VARCHAR)
Quais são o primeiro nome, sobrenome e ID do jogador com a maioria das experiências de jogo estrela? Também listar a contagem.
2,137
SELECT yearid, COUNT(*) FROM hall_of_fame GROUP BY yearid
How many players enter hall of fame each year?
CREATE TABLE hall_of_fame (yearid VARCHAR)
Quantos jogadores entram no Hall da Fama a cada ano?
2,138
SELECT YEAR, AVG(attendance) FROM home_game GROUP BY YEAR
What is the average number of attendance at home games for each year?
CREATE TABLE home_game (YEAR VARCHAR, attendance INTEGER)
Qual é o número médio de jogos em casa para cada ano?
2,139
SELECT T2.team_id, T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY AVG(T1.attendance) DESC LIMIT 1
In 2014, what are the id and rank of the team that has the largest average number of attendance?
CREATE TABLE team (team_id VARCHAR, rank VARCHAR); CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance INTEGER)
Em 2014, qual é o ID e a classificação da equipe que tem o maior número médio de atendimentos?
2,140
SELECT T1.name_first, T1.name_last, T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id = T2.player_id GROUP BY T2.player_id ORDER BY COUNT(*) DESC LIMIT 1
What are the manager's first name, last name and id who won the most manager award?
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE manager_award (player_id VARCHAR)
Qual é o primeiro nome, sobrenome e ID do gerente que ganhou o prêmio de maior número de gerentes?
2,141
SELECT COUNT(*) FROM park WHERE state = 'NY'
How many parks are there in the state of NY?
CREATE TABLE park (state VARCHAR)
Quantos parques existem no estado de Nova York?
2,142
SELECT T1.name_first, T1.name_last, T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY COUNT(*) DESC LIMIT 3
Which 3 players won the most player awards? List their full name and id.
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE player_award (player_id VARCHAR)
Quais 3 jogadores ganharam mais prêmios de jogadores? Listar seu nome completo e ID.
2,143
SELECT birth_country FROM player GROUP BY birth_country ORDER BY COUNT(*) LIMIT 3
List three countries which are the origins of the least players.
CREATE TABLE player (birth_country VARCHAR)
Listar três países que são as origens dos menos jogadores.
2,144
SELECT name_first, name_last FROM player WHERE death_year = ''
Find all the players' first name and last name who have empty death record.
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, death_year VARCHAR)
Encontre o primeiro nome e sobrenome de todos os jogadores que têm registro de morte vazio.
2,145
SELECT COUNT(*) FROM player WHERE birth_country = 'USA' AND bats = 'R'
How many players born in USA are right-handed batters? That is, have the batter value 'R'.
CREATE TABLE player (birth_country VARCHAR, bats VARCHAR)
Quantos jogadores nascidos nos EUA são batedores destros? Ou seja, têm o valor de batedor 'R'.
2,146
SELECT AVG(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id WHERE T3.name_full = 'Yale University'
What is the average height of the players from the college named 'Yale University'?
CREATE TABLE player_college (player_id VARCHAR, college_id VARCHAR); CREATE TABLE player (height INTEGER, player_id VARCHAR); CREATE TABLE college (college_id VARCHAR, name_full VARCHAR)
Qual é a altura média dos jogadores da faculdade chamada "Yale University"?
2,147
SELECT T1.name, T1.team_id, MAX(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id
What is the highest salary among each team? List the team name, id and maximum salary.
CREATE TABLE salary (salary INTEGER, team_id VARCHAR); CREATE TABLE team (name VARCHAR, team_id VARCHAR)
Qual é o salário mais alto entre cada equipe? Liste o nome da equipe, o ID e o salário máximo.
2,148
SELECT T1.name, T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY AVG(T2.salary) LIMIT 1
What are the name and id of the team offering the lowest average salary?
CREATE TABLE team (name VARCHAR, team_id VARCHAR); CREATE TABLE salary (team_id VARCHAR, salary INTEGER)
Qual é o nome e o ID da equipe que oferece o menor salário médio?
2,149
SELECT T1.name_first, T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1960 INTERSECT SELECT T1.name_first, T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1961
Find the players' first name and last name who won award both in 1960 and in 1961.
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR); CREATE TABLE player_award (year VARCHAR)
Encontre o primeiro nome e sobrenome dos jogadores que ganharam o prêmio tanto em 1960 quanto em 1961.
2,150
SELECT name_first, name_last FROM player WHERE weight > 220 OR height < 75
List players' first name and last name who have weight greater than 220 or height shorter than 75.
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, weight VARCHAR, height VARCHAR)
Listar o primeiro nome e sobrenome dos jogadores que têm peso maior que 220 ou altura menor que 75.
2,151
SELECT MAX(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings'
List the maximum scores of the team Boston Red Stockings when the team won in postseason?
CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE postseason (wins INTEGER, team_id_winner VARCHAR)
Listar as pontuações máximas da equipe Boston Red Stockings quando a equipe ganhou na pós-temporada?
2,152
SELECT COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009
How many times did Boston Red Stockings lose in 2009 postseason?
CREATE TABLE postseason (team_id_loser VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)
Quantas vezes o Boston Red Stockings perdeu na pós-temporada de 2009?
2,153
SELECT T2.name, T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY COUNT(*) DESC LIMIT 1
What are the name and id of the team with the most victories in 2008 postseason?
CREATE TABLE postseason (team_id_winner VARCHAR, year VARCHAR); CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
Qual é o nome e o ID da equipe com mais vitórias na pós-temporada de 2008?
2,154
SELECT COUNT(*), T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year
What is the number of wins the team Boston Red Stockings got in the postseasons each year in history?
CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE postseason (year VARCHAR, team_id_winner VARCHAR)
Qual é o número de vitórias que a equipe Boston Red Stockings obteve nas pós-temporadas a cada ano na história?
2,155
SELECT COUNT(*) FROM (SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings')
What is the total number of postseason games that team Boston Red Stockings participated in?
CREATE TABLE postseason (team_id_winner VARCHAR, team_id_loser VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)
Qual é o número total de jogos pós-temporada que o time Boston Red Stockings participou?
2,156
SELECT COUNT(*) FROM postseason WHERE YEAR = 1885 AND ties = 1
How many games in 1885 postseason resulted in ties (that is, the value of "ties" is '1')?
CREATE TABLE postseason (YEAR VARCHAR, ties VARCHAR)
Quantos jogos na pós-temporada de 1885 resultaram em empates (ou seja, o valor de "ties" é '1')?
2,157
SELECT SUM(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010
What is the total salary paid by team Boston Red Stockings in 2010?
CREATE TABLE salary (salary INTEGER, team_id VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)
Qual é o salário total pago pela equipe Boston Red Stockings em 2010?
2,158
SELECT COUNT(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2000
How many players were in the team Boston Red Stockings in 2000?
CREATE TABLE salary (team_id VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)
Quantos jogadores estavam na equipe Boston Red Stockings em 2000?
2,159
SELECT salary FROM salary WHERE YEAR = 2001 ORDER BY salary DESC LIMIT 3
List the 3 highest salaries of the players in 2001?
CREATE TABLE salary (salary VARCHAR, YEAR VARCHAR)
Listar os 3 maiores salários dos jogadores em 2001?
2,160
SELECT salary FROM salary WHERE YEAR = 2010 UNION SELECT salary FROM salary WHERE YEAR = 2001
What were all the salary values of players in 2010 and 2001?
CREATE TABLE salary (salary VARCHAR, YEAR VARCHAR)
Quais foram todos os valores salariais dos jogadores em 2010 e 2001?
2,161
SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY COUNT(*) LIMIT 1
In which year did the least people enter hall of fame?
CREATE TABLE hall_of_fame (yearid VARCHAR)
Em que ano o menor número de pessoas entrou no Hall da Fama?
2,162
SELECT COUNT(*) FROM park WHERE city = 'Atlanta'
How many parks are there in Atlanta city?
CREATE TABLE park (city VARCHAR)
Quantos parques existem na cidade de Atlanta?
2,163
SELECT COUNT(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park'
How many games were played in park "Columbia Park" in 1907?
CREATE TABLE park (park_id VARCHAR, park_name VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR)
Quantos jogos foram jogados no parque "Columbia Park" em 1907?
2,164
SELECT COUNT(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2000 AND T2.city = 'Atlanta'
How many games were played in city Atlanta in 2000?
CREATE TABLE park (park_id VARCHAR, city VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR)
Quantos jogos foram jogados na cidade de Atlanta em 2000?
2,165
SELECT SUM(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010
What is the total home game attendance of team Boston Red Stockings from 2000 to 2010?
CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE home_game (attendance INTEGER, team_id VARCHAR, year VARCHAR)
Qual é o comparecimento total ao jogo em casa da equipe Boston Red Stockings de 2000 a 2010?
2,166
SELECT SUM(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first = 'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990
How much did the the player with first name Len and last name Barker earn between 1985 to 1990 in total?
CREATE TABLE salary (salary INTEGER, player_id VARCHAR, year VARCHAR); CREATE TABLE player (player_id VARCHAR, name_first VARCHAR, name_last VARCHAR)
Quanto ganhou o jogador com o primeiro nome Len e o último nome Barker entre 1985 e 1990 no total?
2,167
SELECT T2.name_first, T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first, T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'
List players' first name and last name who received salary from team Washington Nationals in both 2005 and 2007.
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE salary (player_id VARCHAR, team_id VARCHAR, year VARCHAR)
Listar o primeiro nome e sobrenome dos jogadores que receberam salário do time Washington Nationals em 2005 e 2007.
2,168
SELECT SUM(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000
How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?
CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE home_game (games INTEGER, team_id VARCHAR, year VARCHAR)
Quantos jogos em casa o time Boston Red Stockings jogou de 1990 a 2000 no total?
2,169
SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance LIMIT 1
Which team had the least number of attendances in home games in 1980?
CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance VARCHAR); CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
Qual equipe teve o menor número de presenças em jogos em casa em 1980?
2,170
SELECT state FROM park GROUP BY state HAVING COUNT(*) > 2
List the names of states that have more than 2 parks.
CREATE TABLE park (state VARCHAR)
Listar os nomes dos estados que têm mais de 2 parques.
2,171
SELECT COUNT(*) FROM team_franchise WHERE active = 'Y'
How many team franchises are active, with active value 'Y'?
CREATE TABLE team_franchise (active VARCHAR)
Quantas franquias de equipe estão ativas, com valor ativo 'Y'?
2,172
SELECT city FROM park GROUP BY city HAVING COUNT(*) BETWEEN 2 AND 4
Which cities have 2 to 4 parks?
CREATE TABLE park (city VARCHAR)
Quais cidades têm de 2 a 4 parques?
2,173
SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1
Which park had most attendances in 2008?
CREATE TABLE park (park_name VARCHAR, park_id VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR, attendance VARCHAR)
Qual parque teve mais presenças em 2008?
2,174
SELECT COUNT(*) FROM camera_lens WHERE focal_length_mm > 15
How many camera lenses have a focal length longer than 15 mm?
CREATE TABLE camera_lens (focal_length_mm INTEGER)
Quantas lentes de câmera têm uma distância focal maior que 15 mm?
2,175
SELECT brand, name FROM camera_lens ORDER BY max_aperture DESC
Find the brand and name for each camera lens, and sort in descending order of maximum aperture.
CREATE TABLE camera_lens (brand VARCHAR, name VARCHAR, max_aperture VARCHAR)
Encontre a marca e o nome de cada lente da câmera e classifique em ordem decrescente de abertura máxima.
2,176
SELECT id, color, name FROM photos
List the id, color scheme, and name for all the photos.
CREATE TABLE photos (id VARCHAR, color VARCHAR, name VARCHAR)
Liste o id, o esquema de cores e o nome de todas as fotos.
2,177
SELECT MAX(height), AVG(height) FROM mountain
What are the maximum and average height of the mountains?
CREATE TABLE mountain (height INTEGER)
Qual é a altura máxima e média das montanhas?
2,178
SELECT AVG(prominence) FROM mountain WHERE country = 'Morocco'
What are the average prominence of the mountains in country 'Morocco'?
CREATE TABLE mountain (prominence INTEGER, country VARCHAR)
Qual é a proeminência média das montanhas no país 'Marrocos'?
2,179
SELECT name, height, prominence FROM mountain WHERE range <> 'Aberdare Range'
What are the name, height and prominence of mountains which do not belong to the range 'Aberdare Range'?
CREATE TABLE mountain (name VARCHAR, height VARCHAR, prominence VARCHAR, range VARCHAR)
Quais são o nome, altura e proeminência das montanhas que não pertencem à faixa 'Aberdare Range'?
2,180
SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.height > 4000
What are the id and name of the photos for mountains?
CREATE TABLE photos (mountain_id VARCHAR); CREATE TABLE mountain (id VARCHAR, name VARCHAR, height INTEGER)
Qual é o id e o nome das fotos para as montanhas?
2,181
SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id GROUP BY T1.id HAVING COUNT(*) >= 2
What are the id and name of the mountains that have at least 2 photos?
CREATE TABLE mountain (id VARCHAR, name VARCHAR); CREATE TABLE photos (mountain_id VARCHAR)
Quais são o ID e o nome das montanhas que têm pelo menos 2 fotos?
2,182
SELECT T2.name FROM photos AS T1 JOIN camera_lens AS T2 ON T1.camera_lens_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1
What are the names of the cameras that have taken picture of the most mountains?
CREATE TABLE camera_lens (name VARCHAR, id VARCHAR); CREATE TABLE photos (camera_lens_id VARCHAR)
Quais são os nomes das câmeras que tiraram fotos da maioria das montanhas?
2,183
SELECT T1.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id = T1.id WHERE T1.brand = 'Sigma' OR T1.brand = 'Olympus'
What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'?
CREATE TABLE photos (camera_lens_id VARCHAR); CREATE TABLE camera_lens (name VARCHAR, id VARCHAR, brand VARCHAR)
Quais são os nomes das fotos tiradas com a marca de lentes 'Sigma' ou 'Olympus'?
2,184
SELECT COUNT(DISTINCT brand) FROM camera_lens
How many different kinds of lens brands are there?
CREATE TABLE camera_lens (brand VARCHAR)
Quantos tipos diferentes de marcas de lentes existem?
2,185
SELECT COUNT(*) FROM camera_lens WHERE NOT id IN (SELECT camera_lens_id FROM photos)
How many camera lenses are not used in taking any photos?
CREATE TABLE photos (id VARCHAR, camera_lens_id VARCHAR); CREATE TABLE camera_lens (id VARCHAR, camera_lens_id VARCHAR)
Quantas lentes de câmera não são usadas para tirar fotos?
2,186
SELECT COUNT(DISTINCT T2.camera_lens_id) FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.country = 'Ethiopia'
How many distinct kinds of camera lenses are used to take photos of mountains in the country 'Ethiopia'?
CREATE TABLE mountain (id VARCHAR, country VARCHAR); CREATE TABLE photos (camera_lens_id VARCHAR, mountain_id VARCHAR)
Quantos tipos distintos de lentes de câmera são usados para tirar fotos de montanhas no país 'Etiópia'?
2,187
SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Toubkal Atlas' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Lasta Massif'
List the brands of lenses that took both a picture of mountains with range 'Toubkal Atlas' and a picture of mountains with range 'Lasta Massif'
CREATE TABLE mountain (id VARCHAR, range VARCHAR); CREATE TABLE photos (mountain_id VARCHAR, camera_lens_id VARCHAR); CREATE TABLE camera_lens (brand VARCHAR, id VARCHAR)
Liste as marcas de lentes que tiraram uma foto de montanhas com alcance 'Toubkal Atlas' e uma foto de montanhas com alcance 'Lasta Massif'
2,188
SELECT name, prominence FROM mountain EXCEPT SELECT T1.name, T1.prominence FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T3.brand = 'Sigma'
Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'.
CREATE TABLE camera_lens (id VARCHAR, brand VARCHAR); CREATE TABLE mountain (name VARCHAR, prominence VARCHAR, id VARCHAR); CREATE TABLE photos (mountain_id VARCHAR, camera_lens_id VARCHAR); CREATE TABLE mountain (name VARCHAR, prominence VARCHAR)
Mostre o nome e a proeminência das montanhas cuja imagem não é tirada por uma lente da marca 'Sigma'.
2,189
SELECT name FROM camera_lens WHERE name LIKE "%Digital%"
List the camera lens names containing substring "Digital".
CREATE TABLE camera_lens (name VARCHAR)
Listar os nomes das lentes da câmera contendo substring "Digital".
2,190
SELECT T1.name, COUNT(*) FROM camera_lens AS T1 JOIN photos AS T2 ON T1.id = T2.camera_lens_id GROUP BY T1.id ORDER BY COUNT(*)
What is the name of each camera lens and the number of photos taken by it? Order the result by the count of photos.
CREATE TABLE photos (camera_lens_id VARCHAR); CREATE TABLE camera_lens (name VARCHAR, id VARCHAR)
Qual é o nome de cada lente da câmera e o número de fotos tiradas por ela? Encomende o resultado pela contagem de fotos.
2,191
SELECT name FROM channel WHERE OWNER <> 'CCTV'
Find the names of channels that are not owned by CCTV.
CREATE TABLE channel (name VARCHAR, OWNER VARCHAR)
Encontre os nomes dos canais que não são de propriedade da CCTV.
2,192
SELECT name FROM channel ORDER BY rating_in_percent DESC
List all channel names ordered by their rating in percent from big to small.
CREATE TABLE channel (name VARCHAR, rating_in_percent VARCHAR)
Listar todos os nomes de canais ordenados por sua classificação em porcentagem de grande para pequeno.
2,193
SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1
What is the owner of the channel that has the highest rating ratio?
CREATE TABLE channel (OWNER VARCHAR, rating_in_percent VARCHAR)
Qual é o proprietário do canal que tem a maior taxa de classificação?
2,194
SELECT COUNT(*) FROM program
how many programs are there?
CREATE TABLE program (Id VARCHAR)
Quantos programas existem?
2,195
SELECT name FROM program ORDER BY launch
list all the names of programs, ordering by launch time.
CREATE TABLE program (name VARCHAR, launch VARCHAR)
listar todos os nomes dos programas, ordenando por hora de lançamento.
2,196
SELECT name, origin, OWNER FROM program
List the name, origin and owner of each program.
CREATE TABLE program (name VARCHAR, origin VARCHAR, OWNER VARCHAR)
Listar o nome, origem e proprietário de cada programa.
2,197
SELECT name FROM program ORDER BY launch DESC LIMIT 1
find the name of the program that was launched most recently.
CREATE TABLE program (name VARCHAR, launch VARCHAR)
encontrar o nome do programa que foi lançado mais recentemente.
2,198
SELECT SUM(Share_in_percent) FROM channel WHERE OWNER = 'CCTV'
find the total percentage share of all channels owned by CCTV.
CREATE TABLE channel (Share_in_percent INTEGER, OWNER VARCHAR)
encontrar a porcentagem total de todos os canais de propriedade da CCTV.
2,199
SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning'
Find the names of the channels that are broadcast in the morning.
CREATE TABLE channel (name VARCHAR, channel_id VARCHAR); CREATE TABLE broadcast (channel_id VARCHAR, time_of_day VARCHAR)
Encontre os nomes dos canais que são transmitidos pela manhã.