Unnamed: 0
int64 0
78.6k
| answer
stringlengths 18
557
| question
stringlengths 12
244
| context
stringlengths 27
489
| translated_answer
stringlengths 12
992
|
---|---|---|---|---|
300 |
SELECT billing_country, COUNT(*) FROM invoices GROUP BY billing_country ORDER BY COUNT(*) DESC LIMIT 5
|
A list of the top 5 countries by number of invoices. List country name and number of invoices.
|
CREATE TABLE invoices (billing_country VARCHAR)
|
Uma lista dos 5 principais países por número de faturas. Listar o nome do país e número de faturas.
|
301 |
SELECT billing_country, SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8
|
A list of the top 8 countries by gross/total invoice size. List country name and gross invoice size.
|
CREATE TABLE invoices (billing_country VARCHAR, total INTEGER)
|
Uma lista dos 8 principais países pelo tamanho bruto/total da fatura. Listar o nome do país e o tamanho bruto da fatura.
|
302 |
SELECT billing_country, AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10
|
A list of the top 10 countries by average invoice size. List country name and average invoice size.
|
CREATE TABLE invoices (billing_country VARCHAR, total INTEGER)
|
Uma lista dos 10 principais países pelo tamanho médio da fatura. Listar o nome do país e o tamanho médio da fatura.
|
303 |
SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5
|
Find out 5 customers who most recently purchased something. List customers' first and last name.
|
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR, invoice_date VARCHAR)
|
Descubra 5 clientes que mais recentemente compraram algo. Liste o primeiro e o último nome dos clientes.
|
304 |
SELECT T1.first_name, T1.last_name, COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10
|
Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders.
|
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR)
|
Descubra os 10 melhores clientes pelo número total de pedidos. Liste o primeiro e o último nome dos clientes e o número total de pedidos.
|
305 |
SELECT T1.first_name, T1.last_name, SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10
|
List the top 10 customers by total gross sales. List customers' first and last name and total gross sales.
|
CREATE TABLE invoices (total INTEGER, customer_id VARCHAR); CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR)
|
Liste os 10 principais clientes pelo total de vendas brutas. Liste o primeiro e o último nome dos clientes e o total de vendas brutas.
|
306 |
SELECT T1.name, COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 5
|
List the top 5 genres by number of tracks. List genres name and total tracks.
|
CREATE TABLE tracks (genre_id VARCHAR); CREATE TABLE genres (name VARCHAR, id VARCHAR)
|
Liste os 5 principais gêneros por número de faixas. Liste o nome dos gêneros e o total de faixas.
|
307 |
SELECT title FROM albums
|
List every album's title.
|
CREATE TABLE albums (title VARCHAR)
|
Liste o título de cada álbum.
|
308 |
SELECT title FROM albums ORDER BY title
|
List every album ordered by album title in ascending order.
|
CREATE TABLE albums (title VARCHAR)
|
Liste todos os álbuns ordenados pelo título do álbum em ordem crescente.
|
309 |
SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title
|
List every album whose title starts with A in alphabetical order.
|
CREATE TABLE albums (title VARCHAR)
|
Listar todos os álbuns cujo título começa com A em ordem alfabética.
|
310 |
SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10
|
List the customers first and last name of 10 least expensive invoices.
|
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR)
|
Liste o primeiro e o último nome dos clientes de 10 faturas menos caras.
|
311 |
SELECT SUM(total) FROM invoices WHERE billing_city = "Chicago" AND billing_state = "IL"
|
List total amount of invoice from Chicago, IL.
|
CREATE TABLE invoices (total INTEGER, billing_city VARCHAR, billing_state VARCHAR)
|
Liste o valor total da fatura de Chicago, IL.
|
312 |
SELECT COUNT(*) FROM invoices WHERE billing_city = "Chicago" AND billing_state = "IL"
|
List the number of invoices from Chicago, IL.
|
CREATE TABLE invoices (billing_city VARCHAR, billing_state VARCHAR)
|
Liste o número de faturas de Chicago, IL.
|
313 |
SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state
|
List the number of invoices from the US, grouped by state.
|
CREATE TABLE invoices (billing_state VARCHAR, billing_country VARCHAR)
|
Liste o número de faturas dos EUA, agrupadas por estado.
|
314 |
SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1
|
List the state in the US with the most invoices.
|
CREATE TABLE invoices (billing_state VARCHAR, billing_country VARCHAR)
|
Liste o estado dos EUA com o maior número de faturas.
|
315 |
SELECT billing_state, COUNT(*), SUM(total) FROM invoices WHERE billing_state = "CA"
|
List the number of invoices and the invoice total from California.
|
CREATE TABLE invoices (billing_state VARCHAR, total INTEGER)
|
Liste o número de faturas e o total da fatura da Califórnia.
|
316 |
SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "Aerosmith"
|
List Aerosmith's albums.
|
CREATE TABLE artists (id VARCHAR, name VARCHAR); CREATE TABLE albums (title VARCHAR, artist_id VARCHAR)
|
Listar álbuns do Aerosmith.
|
317 |
SELECT COUNT(*) FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "Billy Cobham"
|
How many albums does Billy Cobham has?
|
CREATE TABLE artists (id VARCHAR, name VARCHAR); CREATE TABLE albums (artist_id VARCHAR)
|
Quantos álbuns Billy Cobham tem?
|
318 |
SELECT company FROM customers WHERE first_name = "Eduardo" AND last_name = "Martins"
|
Eduardo Martins is a customer at which company?
|
CREATE TABLE customers (company VARCHAR, first_name VARCHAR, last_name VARCHAR)
|
Eduardo Martins é um cliente em que empresa?
|
319 |
SELECT email, phone FROM customers WHERE first_name = "Astrid" AND last_name = "Gruber"
|
What is Astrid Gruber's email and phone number?
|
CREATE TABLE customers (email VARCHAR, phone VARCHAR, first_name VARCHAR, last_name VARCHAR)
|
O que é o e-mail e número de telefone da Astrid Gruber?
|
320 |
SELECT COUNT(*) FROM customers WHERE city = "Prague"
|
How many customers live in Prague city?
|
CREATE TABLE customers (city VARCHAR)
|
Quantos clientes vivem na cidade de Praga?
|
321 |
SELECT COUNT(*) FROM customers WHERE state = "CA"
|
How many customers in state of CA?
|
CREATE TABLE customers (state VARCHAR)
|
Quantos clientes estão no estado da Califórnia?
|
322 |
SELECT country FROM customers WHERE first_name = "Roberto" AND last_name = "Almeida"
|
What country does Roberto Almeida live?
|
CREATE TABLE customers (country VARCHAR, first_name VARCHAR, last_name VARCHAR)
|
Que país vive Roberto Almeida?
|
323 |
SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%'
|
List the name of albums that are released by aritist whose name has 'Led'
|
CREATE TABLE artists (id VARCHAR, name VARCHAR); CREATE TABLE albums (title VARCHAR, artist_id VARCHAR)
|
Listar o nome dos álbuns que são lançados por aritist cujo nome tem "Led"
|
324 |
SELECT COUNT(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = "Steve" AND T1.last_name = "Johnson"
|
How many customers does Steve Johnson support?
|
CREATE TABLE employees (id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE customers (support_rep_id VARCHAR)
|
Quantos clientes o Steve Johnson oferece?
|
325 |
SELECT title, phone, hire_date FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards"
|
What is the title, phone and hire date of Nancy Edwards?
|
CREATE TABLE employees (title VARCHAR, phone VARCHAR, hire_date VARCHAR, first_name VARCHAR, last_name VARCHAR)
|
Qual é o título, telefone e data de aluguer de Nancy Edwards?
|
326 |
SELECT T2.first_name, T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = "Nancy" AND T1.last_name = "Edwards"
|
find the full name of employees who report to Nancy Edwards?
|
CREATE TABLE employees (id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, reports_to VARCHAR)
|
encontrar o nome completo dos funcionários que se reportam a Nancy Edwards?
|
327 |
SELECT address FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards"
|
What is the address of employee Nancy Edwards?
|
CREATE TABLE employees (address VARCHAR, first_name VARCHAR, last_name VARCHAR)
|
Qual é o endereço da funcionária Nancy Edwards?
|
328 |
SELECT T1.first_name, T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1
|
Find the full name of employee who supported the most number of customers.
|
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE customers (support_rep_id VARCHAR)
|
Encontre o nome completo do funcionário que deu suporte ao maior número de clientes.
|
329 |
SELECT COUNT(*) FROM employees WHERE country = "Canada"
|
How many employees are living in Canada?
|
CREATE TABLE employees (country VARCHAR)
|
Quantos funcionários vivem no Canadá?
|
330 |
SELECT phone FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards"
|
What is employee Nancy Edwards's phone number?
|
CREATE TABLE employees (phone VARCHAR, first_name VARCHAR, last_name VARCHAR)
|
Qual é o número de telefone da empregada Nancy Edwards?
|
331 |
SELECT first_name, last_name FROM employees ORDER BY birth_date DESC LIMIT 1
|
Who is the youngest employee in the company? List employee's first and last name.
|
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, birth_date VARCHAR)
|
Quem é o funcionário mais jovem da empresa? Liste o primeiro e o último nome do funcionário.
|
332 |
SELECT first_name, last_name FROM employees ORDER BY hire_date LIMIT 10
|
List top 10 employee work longest in the company. List employee's first and last name.
|
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR)
|
Liste os 10 melhores funcionários que trabalham mais na empresa. Liste o primeiro e o último nome do funcionário.
|
333 |
SELECT COUNT(*), city FROM employees WHERE title = 'IT Staff' GROUP BY city
|
Find the number of employees whose title is IT Staff from each city?
|
CREATE TABLE employees (city VARCHAR, title VARCHAR)
|
Encontre o número de funcionários cujo título é Equipe de TI de cada cidade?
|
334 |
SELECT T2.first_name, T2.last_name, COUNT(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY COUNT(T1.reports_to) DESC LIMIT 1
|
Which employee manage most number of peoples? List employee's first and last name, and number of people report to that employee.
|
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE employees (reports_to VARCHAR)
|
Qual funcionário gerencia o maior número de pessoas? Liste o primeiro e o último nome do funcionário e o número de pessoas que se reportam a esse funcionário.
|
335 |
SELECT COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini"
|
How many orders does Lucas Mancini has?
|
CREATE TABLE invoices (customer_id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)
|
Quantas encomendas tem Lucas Mancini?
|
336 |
SELECT SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini"
|
What is the total amount of money spent by Lucas Mancini?
|
CREATE TABLE invoices (total INTEGER, customer_id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)
|
Qual é a quantidade total de dinheiro gasto por Lucas Mancini?
|
337 |
SELECT name FROM media_types
|
List all media types.
|
CREATE TABLE media_types (name VARCHAR)
|
Liste todos os tipos de mídia.
|
338 |
SELECT DISTINCT name FROM genres
|
List all different genre types.
|
CREATE TABLE genres (name VARCHAR)
|
Liste todos os tipos de gênero diferentes.
|
339 |
SELECT name FROM playlists
|
List the name of all playlist.
|
CREATE TABLE playlists (name VARCHAR)
|
Liste o nome de todas as listas de reprodução.
|
340 |
SELECT composer FROM tracks WHERE name = "Fast As a Shark"
|
Who is the composer of track Fast As a Shark?
|
CREATE TABLE tracks (composer VARCHAR, name VARCHAR)
|
Quem é o compositor da faixa Fast As a Shark?
|
341 |
SELECT milliseconds FROM tracks WHERE name = "Fast As a Shark"
|
How long does track Fast As a Shark has?
|
CREATE TABLE tracks (milliseconds VARCHAR, name VARCHAR)
|
Quanto tempo dura o Fast As a Shark?
|
342 |
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock"
|
What is the name of tracks whose genre is Rock?
|
CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR)
|
Qual é o nome das faixas cujo gênero é Rock?
|
343 |
SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = "Balls to the Wall"
|
What is title of album which track Balls to the Wall belongs to?
|
CREATE TABLE tracks (genre_id VARCHAR, name VARCHAR); CREATE TABLE albums (title VARCHAR, id VARCHAR)
|
Qual é o título do álbum a que a faixa Balls to the Wall pertence?
|
344 |
SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = "Balls to the Wall"
|
List name of all tracks in Balls to the Wall.
|
CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR); CREATE TABLE albums (id VARCHAR, title VARCHAR)
|
Listar o nome de todas as faixas em Balls to the Wall.
|
345 |
SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING COUNT(T1.id) > 10
|
List title of albums have the number of tracks greater than 10.
|
CREATE TABLE tracks (album_id VARCHAR); CREATE TABLE albums (title VARCHAR, id VARCHAR)
|
O título da lista de álbuns tem o número de faixas maiores que 10.
|
346 |
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "Rock" AND T3.name = "MPEG audio file"
|
List the name of tracks belongs to genre Rock and whose media type is MPEG audio file.
|
CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR); CREATE TABLE media_types (id VARCHAR, name VARCHAR)
|
Listar o nome das faixas pertence ao gênero Rock e cujo tipo de mídia é arquivo de áudio MPEG.
|
347 |
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "Rock" OR T3.name = "MPEG audio file"
|
List the name of tracks belongs to genre Rock or media type is MPEG audio file.
|
CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR); CREATE TABLE media_types (id VARCHAR, name VARCHAR)
|
Listar o nome das faixas pertence ao gênero Rock ou tipo de mídia é arquivo de áudio MPEG.
|
348 |
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock" OR T1.name = "Jazz"
|
List the name of tracks belongs to genre Rock or genre Jazz.
|
CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR)
|
Listar o nome das faixas pertence ao gênero Rock ou gênero Jazz.
|
349 |
SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = "Movies"
|
List the name of all tracks in the playlists of Movies.
|
CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)
|
Liste o nome de todas as faixas nas listas de reprodução de Filmes.
|
350 |
SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING COUNT(T1.track_id) > 100
|
List the name of playlist which has number of tracks greater than 100.
|
CREATE TABLE playlist_tracks (playlist_id VARCHAR, track_id VARCHAR); CREATE TABLE playlists (name VARCHAR, id VARCHAR)
|
Listar o nome da lista de reprodução que tem número de faixas superior a 100.
|
351 |
SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = "Daan" AND T4.last_name = "Peeters"
|
List all tracks bought by customer Daan Peeters.
|
CREATE TABLE invoices (id VARCHAR, customer_id VARCHAR); CREATE TABLE invoice_lines (track_id VARCHAR, invoice_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)
|
Listar todas as faixas compradas pelo cliente Daan Peeters.
|
352 |
SELECT unit_price FROM tracks WHERE name = "Fast As a Shark"
|
How much is the track Fast As a Shark?
|
CREATE TABLE tracks (unit_price VARCHAR, name VARCHAR)
|
Quanto é a faixa Fast As a Shark?
|
353 |
SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'
|
Find the name of tracks which are in Movies playlist but not in music playlist.
|
CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)
|
Encontre o nome das faixas que estão na lista de reprodução de filmes, mas não na lista de reprodução de música.
|
354 |
SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'
|
Find the name of tracks which are in both Movies and music playlists.
|
CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)
|
Encontre o nome das faixas que estão nas listas de reprodução de filmes e músicas.
|
355 |
SELECT COUNT(*), T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name
|
Find number of tracks in each genre?
|
CREATE TABLE tracks (genre_id VARCHAR); CREATE TABLE genres (name VARCHAR, id VARCHAR)
|
Encontrar o número de faixas em cada gênero?
|
356 |
SELECT COUNT(*) FROM editor
|
How many editors are there?
|
CREATE TABLE editor (Id VARCHAR)
|
Quantos editores existem?
|
357 |
SELECT Name FROM editor ORDER BY Age
|
List the names of editors in ascending order of age.
|
CREATE TABLE editor (Name VARCHAR, Age VARCHAR)
|
Listar os nomes dos editores em ordem crescente de idade.
|
358 |
SELECT Name, Age FROM editor
|
What are the names and ages of editors?
|
CREATE TABLE editor (Name VARCHAR, Age VARCHAR)
|
Quais são os nomes e idades dos editores?
|
359 |
SELECT Name FROM editor WHERE Age > 25
|
List the names of editors who are older than 25.
|
CREATE TABLE editor (Name VARCHAR, Age INTEGER)
|
Listar os nomes dos editores com mais de 25 anos.
|
360 |
SELECT Name FROM editor WHERE Age = 24 OR Age = 25
|
Show the names of editors of age either 24 or 25.
|
CREATE TABLE editor (Name VARCHAR, Age VARCHAR)
|
Mostre os nomes dos editores de idade 24 ou 25.
|
361 |
SELECT Name FROM editor ORDER BY Age LIMIT 1
|
What is the name of the youngest editor?
|
CREATE TABLE editor (Name VARCHAR, Age VARCHAR)
|
Qual é o nome do editor mais jovem?
|
362 |
SELECT Age, COUNT(*) FROM editor GROUP BY Age
|
What are the different ages of editors? Show each age along with the number of editors of that age.
|
CREATE TABLE editor (Age VARCHAR)
|
Quais são as diferentes idades dos editores? Mostre cada idade junto com o número de editores dessa idade.
|
363 |
SELECT Age FROM editor GROUP BY Age ORDER BY COUNT(*) DESC LIMIT 1
|
Please show the most common age of editors.
|
CREATE TABLE editor (Age VARCHAR)
|
Por favor, mostre a idade mais comum dos editores.
|
364 |
SELECT DISTINCT Theme FROM journal
|
Show the distinct themes of journals.
|
CREATE TABLE journal (Theme VARCHAR)
|
Mostre os temas distintos dos periódicos.
|
365 |
SELECT T2.Name, T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID
|
Show the names of editors and the theme of journals for which they serve on committees.
|
CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Theme VARCHAR, Journal_ID VARCHAR)
|
Mostre os nomes dos editores e o tema das revistas para as quais eles servem em comitês.
|
366 |
SELECT T2.Name, T2.age, T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID ORDER BY T3.Theme
|
Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.
|
CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, age VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Theme VARCHAR, Journal_ID VARCHAR)
|
Mostrar os nomes e idades dos editores e o tema dos periódicos para os quais atuam em comitês, em ordem alfabética ascendente do tema.
|
367 |
SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T3.Sales > 3000
|
Show the names of editors that are on the committee of journals with sales bigger than 3000.
|
CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Journal_ID VARCHAR, Sales INTEGER)
|
Mostre os nomes dos editores que estão no comitê de periódicos com vendas maiores que 3000.
|
368 |
SELECT T1.editor_id, T1.Name, COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.editor_id
|
Show the id, name of each editor and the number of journal committees they are on.
|
CREATE TABLE editor (editor_id VARCHAR, Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal_committee (Editor_ID VARCHAR)
|
Mostre o ID, o nome de cada editor e o número de comitês de periódicos em que estão.
|
369 |
SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.Name HAVING COUNT(*) >= 2
|
Show the names of editors that are on at least two journal committees.
|
CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal_committee (Editor_ID VARCHAR)
|
Mostre os nomes dos editores que estão em pelo menos dois comitês de periódicos.
|
370 |
SELECT Name FROM editor WHERE NOT editor_id IN (SELECT editor_id FROM journal_committee)
|
List the names of editors that are not on any journal committee.
|
CREATE TABLE editor (Name VARCHAR, editor_id VARCHAR); CREATE TABLE journal_committee (Name VARCHAR, editor_id VARCHAR)
|
Liste os nomes dos editores que não estão em nenhum comitê de periódicos.
|
371 |
SELECT date, theme, sales FROM journal EXCEPT SELECT T1.date, T1.theme, T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID
|
List the date, theme and sales of the journal which did not have any of the listed editors serving on committee.
|
CREATE TABLE journal_committee (journal_ID VARCHAR); CREATE TABLE journal (date VARCHAR, theme VARCHAR, sales VARCHAR); CREATE TABLE journal (date VARCHAR, theme VARCHAR, sales VARCHAR, journal_ID VARCHAR)
|
Liste a data, o tema e as vendas da revista que não tinha nenhum dos editores listados servindo no comitê.
|
372 |
SELECT AVG(T1.sales) FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID WHERE T2.work_type = 'Photo'
|
What is the average sales of the journals that have an editor whose work type is 'Photo'?
|
CREATE TABLE journal_committee (journal_ID VARCHAR, work_type VARCHAR); CREATE TABLE journal (sales INTEGER, journal_ID VARCHAR)
|
Qual é a média de vendas dos periódicos que têm um editor cujo tipo de trabalho é 'Foto'?
|
373 |
SELECT COUNT(*) FROM Accounts
|
How many accounts do we have?
|
CREATE TABLE Accounts (Id VARCHAR)
|
Quantas contas temos?
|
374 |
SELECT account_id, customer_id, account_name FROM Accounts
|
Show ids, customer ids, names for all accounts.
|
CREATE TABLE Accounts (account_id VARCHAR, customer_id VARCHAR, account_name VARCHAR)
|
Mostre IDs, IDs de clientes, nomes para todas as contas.
|
375 |
SELECT other_account_details FROM Accounts WHERE account_name = "338"
|
Show other account details for account with name 338.
|
CREATE TABLE Accounts (other_account_details VARCHAR, account_name VARCHAR)
|
Mostrar outros detalhes da conta com o nome 338.
|
376 |
SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = "162"
|
What is the first name, last name, and phone of the customer with account name 162?
|
CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR, account_name VARCHAR)
|
Qual é o primeiro nome, sobrenome e telefone do cliente com o nome da conta 162?
|
377 |
SELECT COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Art" AND T2.customer_last_name = "Turcotte"
|
How many accounts does the customer with first name Art and last name Turcotte have?
|
CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR)
|
Quantas contas tem o cliente com o primeiro nome Art e o último nome Turcotte?
|
378 |
SELECT customer_id, COUNT(*) FROM Accounts GROUP BY customer_id
|
Show all customer ids and the number of accounts for each customer.
|
CREATE TABLE Accounts (customer_id VARCHAR)
|
Mostrar todos os IDs de clientes e o número de contas para cada cliente.
|
379 |
SELECT customer_id, COUNT(*) FROM Accounts GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1
|
Show the customer id and number of accounts with most accounts.
|
CREATE TABLE Accounts (customer_id VARCHAR)
|
Mostre o ID do cliente e o número de contas com a maioria das contas.
|
380 |
SELECT T2.customer_first_name, T2.customer_last_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1
|
What is the customer first, last name and id with least number of accounts.
|
CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)
|
Qual é o primeiro, último nome e ID do cliente com o menor número de contas?
|
381 |
SELECT COUNT(*) FROM Customers WHERE NOT customer_id IN (SELECT customer_id FROM Accounts)
|
Show the number of all customers without an account.
|
CREATE TABLE Customers (customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR)
|
Mostre o número de todos os clientes sem uma conta.
|
382 |
SELECT customer_first_name, customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name, T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id
|
Show the first names and last names of customers without any account.
|
CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR)
|
Mostre os primeiros nomes e sobrenomes dos clientes sem qualquer conta.
|
383 |
SELECT DISTINCT T1.customer_first_name, T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id
|
Show distinct first and last names for all customers with an account.
|
CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)
|
Mostre nomes próprios e sobrenomes distintos para todos os clientes com uma conta.
|
384 |
SELECT COUNT(DISTINCT customer_id) FROM Accounts
|
How many customers have an account?
|
CREATE TABLE Accounts (customer_id VARCHAR)
|
Quantos clientes têm uma conta?
|
385 |
SELECT COUNT(*) FROM Customers
|
How many customers do we have?
|
CREATE TABLE Customers (Id VARCHAR)
|
Quantos clientes temos?
|
386 |
SELECT customer_id, customer_first_name, customer_last_name, customer_phone FROM Customers
|
Show ids, first names, last names, and phones for all customers.
|
CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR)
|
Mostre IDs, primeiros nomes, sobrenomes e telefones para todos os clientes.
|
387 |
SELECT customer_phone, customer_email FROM Customers WHERE customer_first_name = "Aniyah" AND customer_last_name = "Feest"
|
What is the phone and email for customer with first name Aniyah and last name Feest?
|
CREATE TABLE Customers (customer_phone VARCHAR, customer_email VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR)
|
Qual é o telefone e e-mail para o cliente com o primeiro nome Aniyah e sobrenome Feest?
|
388 |
SELECT COUNT(*) FROM Customers_cards
|
Show the number of customer cards.
|
CREATE TABLE Customers_cards (Id VARCHAR)
|
Mostre o número de cartões de cliente.
|
389 |
SELECT card_id, customer_id, card_type_code, card_number FROM Customers_cards
|
Show ids, customer ids, card type codes, card numbers for all cards.
|
CREATE TABLE Customers_cards (card_id VARCHAR, customer_id VARCHAR, card_type_code VARCHAR, card_number VARCHAR)
|
Mostrar IDs, IDs de clientes, códigos de tipo de cartão, números de cartão para todos os cartões.
|
390 |
SELECT date_valid_from, date_valid_to FROM Customers_cards WHERE card_number = "4560596484842"
|
Show the date valid from and the date valid to for the card with card number '4560596484842'.
|
CREATE TABLE Customers_cards (date_valid_from VARCHAR, date_valid_to VARCHAR, card_number VARCHAR)
|
Mostrar a data válida de e a data válida para o cartão com o número de cartão '4560596484842'.
|
391 |
SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_number = "4560596484842"
|
What is the first name, last name, and phone of the customer with card 4560596484842.
|
CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE Customers_cards (customer_id VARCHAR, card_number VARCHAR)
|
Qual é o primeiro nome, sobrenome e telefone do cliente com o cartão 45605964842.
|
392 |
SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Art" AND T2.customer_last_name = "Turcotte"
|
How many cards does customer Art Turcotte have?
|
CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR)
|
Quantos cartões tem a Art Turcotte?
|
393 |
SELECT COUNT(*) FROM Customers_cards WHERE card_type_code = "Debit"
|
How many debit cards do we have?
|
CREATE TABLE Customers_cards (card_type_code VARCHAR)
|
Quantos cartões de débito temos?
|
394 |
SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Blanche" AND T2.customer_last_name = "Huels" AND T1.card_type_code = "Credit"
|
How many credit cards does customer Blanche Huels have?
|
CREATE TABLE Customers_cards (customer_id VARCHAR, card_type_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR)
|
Quantos cartões de crédito o cliente Blanche Huels tem?
|
395 |
SELECT customer_id, COUNT(*) FROM Customers_cards GROUP BY customer_id
|
Show all customer ids and the number of cards owned by each customer.
|
CREATE TABLE Customers_cards (customer_id VARCHAR)
|
Mostre todos os IDs de clientes e o número de cartões de propriedade de cada cliente.
|
396 |
SELECT customer_id, COUNT(*) FROM Customers_cards GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1
|
What is the customer id with most number of cards, and how many does he have?
|
CREATE TABLE Customers_cards (customer_id VARCHAR)
|
Qual é o ID do cliente com o maior número de cartões, e quantos ele tem?
|
397 |
SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2
|
Show id, first and last names for all customers with at least two cards.
|
CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)
|
Mostrar identificação, primeiro e último nome para todos os clientes com pelo menos dois cartões.
|
398 |
SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1
|
What is the customer id, first and last name with least number of accounts.
|
CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)
|
Qual é o ID do cliente, primeiro e último nome com o menor número de contas?
|
399 |
SELECT card_type_code, COUNT(*) FROM Customers_cards GROUP BY card_type_code
|
Show all card type codes and the number of cards in each type.
|
CREATE TABLE Customers_cards (card_type_code VARCHAR)
|
Mostrar todos os códigos de tipo de cartão e o número de cartões em cada tipo.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.