Unnamed: 0
int64
0
78.6k
answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
translated_answer
stringlengths
12
992
1,700
SELECT COUNT(*) FROM inst
How many institutions are there?
CREATE TABLE inst (Id VARCHAR)
Quantas instituições existem?
1,701
SELECT COUNT(*) FROM papers
How many papers are published in total?
CREATE TABLE papers (Id VARCHAR)
Quantos artigos são publicados no total?
1,702
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Jeremy" AND t1.lname = "Gibbons"
What are the titles of papers published by "Jeremy Gibbons"?
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)
Quais são os títulos dos artigos publicados por "Jeremy Gibbons"?
1,703
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Aaron" AND t1.lname = "Turon"
Find all the papers published by "Aaron Turon".
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)
Encontre todos os artigos publicados por "Aaron Turon".
1,704
SELECT COUNT(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Atsushi" AND t1.lname = "Ohori"
How many papers have "Atsushi Ohori" published?
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE papers (paperid VARCHAR)
Quantos artigos foram publicados em "Atsushi Ohori"?
1,705
SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Matthias" AND t1.lname = "Blume"
What is the name of the institution that "Matthias Blume" belongs to?
CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE inst (name VARCHAR, instid VARCHAR)
Qual é o nome da instituição a que "Matthias Blume" pertence?
1,706
SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Katsuhiro" AND t1.lname = "Ueno"
Which institution does "Katsuhiro Ueno" belong to?
CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE inst (name VARCHAR, instid VARCHAR)
A que instituição pertence "Katsuhiro Ueno"?
1,707
SELECT DISTINCT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "University of Oxford"
Who belong to the institution "University of Oxford"? Show the first names and last names.
CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR); CREATE TABLE inst (instid VARCHAR, name VARCHAR)
Quem pertence à instituição "Universidade de Oxford"? Mostrar os primeiros nomes e apelidos.
1,708
SELECT DISTINCT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google"
Which authors belong to the institution "Google"? Show the first names and last names.
CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR); CREATE TABLE inst (instid VARCHAR, name VARCHAR)
Quais autores pertencem à instituição "Google"? Mostrar os primeiros nomes e sobrenomes.
1,709
SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Binders Unbound"
What are the last names of the author of the paper titled "Binders Unbound"?
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (lname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR)
Quais são os sobrenomes do autor do artigo intitulado "Binders Unbound"?
1,710
SELECT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Nameless , Painless"
Find the first and last name of the author(s) who wrote the paper "Nameless, Painless".
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR)
Encontre o primeiro e último nome do(s) autor(es) que escreveram o artigo "Nameless, Painless".
1,711
SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Indiana University"
What are the papers published under the institution "Indiana University"?
CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)
Quais são os artigos publicados sob a instituição "Universidade Indiana"?
1,712
SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google"
Find all the papers published by the institution "Google".
CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)
Encontre todos os artigos publicados pela instituição "Google".
1,713
SELECT COUNT(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Tokohu University"
How many papers are published by the institution "Tokohu University"?
CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)
Quantos artigos são publicados pela instituição "Tokohu University"?
1,714
SELECT COUNT(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "University of Pennsylvania"
Find the number of papers published by the institution "University of Pennsylvania".
CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)
Encontre o número de artigos publicados pela instituição "Universidade da Pensilvânia".
1,715
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Olin" AND t1.lname = "Shivers"
Find the papers which have "Olin Shivers" as an author.
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)
Encontre os papéis que têm "Olin Shivers" como autor.
1,716
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Stephanie" AND t1.lname = "Weirich"
Which papers have "Stephanie Weirich" as an author?
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)
Quais artigos têm "Stephanie Weirich" como autor?
1,717
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = "USA" AND t2.authorder = 2 AND t1.lname = "Turon"
Which paper is published in an institution in "USA" and have "Turon" as its second author?
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR, instid VARCHAR, authorder VARCHAR); CREATE TABLE authors (authid VARCHAR, lname VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE inst (instid VARCHAR, country VARCHAR)
Qual artigo é publicado em uma instituição em "EUA" e tem "Turon" como seu segundo autor?
1,718
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = "Japan" AND t2.authorder = 1 AND t1.lname = "Ohori"
Find the titles of papers whose first author is affiliated with an institution in the country "Japan" and has last name "Ohori"?
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR, instid VARCHAR, authorder VARCHAR); CREATE TABLE authors (authid VARCHAR, lname VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE inst (instid VARCHAR, country VARCHAR)
Encontre os títulos de papéis cujo primeiro autor é afiliado a uma instituição no país "África" e tem o sobrenome "Ohori"?
1,719
SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname, t1.lname ORDER BY COUNT(*) DESC LIMIT 1
What is the last name of the author that has published the most papers?
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (lname VARCHAR, fname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR)
Qual é o sobrenome do autor que mais publicou artigos?
1,720
SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY COUNT(*) DESC LIMIT 1
Retrieve the country that has published the most papers.
CREATE TABLE inst (country VARCHAR, instid VARCHAR); CREATE TABLE authorship (instid VARCHAR, paperid VARCHAR); CREATE TABLE papers (paperid VARCHAR)
Recupere o país que mais publicou artigos.
1,721
SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY COUNT(*) DESC LIMIT 1
Find the name of the organization that has published the largest number of papers.
CREATE TABLE inst (name VARCHAR, instid VARCHAR); CREATE TABLE authorship (instid VARCHAR, paperid VARCHAR); CREATE TABLE papers (paperid VARCHAR)
Encontre o nome da organização que publicou o maior número de artigos.
1,722
SELECT title FROM papers WHERE title LIKE "%ML%"
Find the titles of the papers that contain the word "ML".
CREATE TABLE papers (title VARCHAR)
Encontre os títulos dos papéis que contêm a palavra "ML".
1,723
SELECT title FROM papers WHERE title LIKE "%Database%"
Which paper's title contains the word "Database"?
CREATE TABLE papers (title VARCHAR)
Qual o título do artigo que contém a palavra "Base de Dados"?
1,724
SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE "%Functional%"
Find the first names of all the authors who have written a paper with title containing the word "Functional".
CREATE TABLE authors (fname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR); CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR)
Encontre os primeiros nomes de todos os autores que escreveram um artigo com o título contendo a palavra "Funcional".
1,725
SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE "%Monadic%"
Find the last names of all the authors that have written a paper with title containing the word "Monadic".
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (lname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR)
Encontre os sobrenomes de todos os autores que escreveram um artigo com título contendo a palavra "Monádico".
1,726
SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid = t2.paperid WHERE t1.authorder = (SELECT MAX(authorder) FROM authorship)
Retrieve the title of the paper that has the largest number of authors.
CREATE TABLE authorship (authorder INTEGER); CREATE TABLE authorship (paperid VARCHAR, authorder INTEGER); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)
Recupere o título do artigo que tem o maior número de autores.
1,727
SELECT fname FROM authors WHERE lname = "Ueno"
What is the first name of the author with last name "Ueno"?
CREATE TABLE authors (fname VARCHAR, lname VARCHAR)
Qual é o primeiro nome do autor com o sobrenome "Ueno"?
1,728
SELECT lname FROM authors WHERE fname = "Amal"
Find the last name of the author with first name "Amal".
CREATE TABLE authors (lname VARCHAR, fname VARCHAR)
Encontre o último nome do autor com o nome "Amal".
1,729
SELECT fname FROM authors ORDER BY fname
Find the first names of all the authors ordered in alphabetical order.
CREATE TABLE authors (fname VARCHAR)
Encontre os primeiros nomes de todos os autores ordenados em ordem alfabética.
1,730
SELECT lname FROM authors ORDER BY lname
Retrieve all the last names of authors in alphabetical order.
CREATE TABLE authors (lname VARCHAR)
Recupere todos os sobrenomes dos autores em ordem alfabética.
1,731
SELECT fname, lname FROM authors ORDER BY lname
Retrieve all the first and last names of authors in the alphabetical order of last names.
CREATE TABLE authors (fname VARCHAR, lname VARCHAR)
Recupere todos os nomes e sobrenomes dos autores na ordem alfabética dos sobrenomes.
1,732
SELECT COUNT(DISTINCT last_name) FROM actor
How many different last names do the actors and actresses have?
CREATE TABLE actor (last_name VARCHAR)
Quantos sobrenomes diferentes os atores e atrizes têm?
1,733
SELECT first_name FROM actor GROUP BY first_name ORDER BY COUNT(*) DESC LIMIT 1
What is the most popular first name of the actors?
CREATE TABLE actor (first_name VARCHAR)
Qual é o primeiro nome mais popular dos atores?
1,734
SELECT first_name, last_name FROM actor GROUP BY first_name, last_name ORDER BY COUNT(*) DESC LIMIT 1
What is the most popular full name of the actors?
CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR)
Qual é o nome completo mais popular dos atores?
1,735
SELECT district FROM address GROUP BY district HAVING COUNT(*) >= 2
Which districts have at least two addresses?
CREATE TABLE address (district VARCHAR)
Quais distritos têm pelo menos dois endereços?
1,736
SELECT phone, postal_code FROM address WHERE address = '1031 Daugavpils Parkway'
What is the phone number and postal code of the address 1031 Daugavpils Parkway?
CREATE TABLE address (phone VARCHAR, postal_code VARCHAR, address VARCHAR)
Qual é o número de telefone e código postal do endereço 1031 Daugavpils Parkway?
1,737
SELECT T2.city, COUNT(*), T1.city_id FROM address AS T1 JOIN city AS T2 ON T1.city_id = T2.city_id GROUP BY T1.city_id ORDER BY COUNT(*) DESC LIMIT 1
Which city has the most addresses? List the city name, number of addresses, and city id.
CREATE TABLE address (city_id VARCHAR); CREATE TABLE city (city VARCHAR, city_id VARCHAR)
Qual cidade tem mais endereços? Listar o nome da cidade, número de endereços e ID da cidade.
1,738
SELECT COUNT(*) FROM address WHERE district = 'California'
How many addresses are in the district of California?
CREATE TABLE address (district VARCHAR)
Quantos endereços existem no distrito da Califórnia?
1,739
SELECT title, film_id FROM film WHERE rental_rate = 0.99 INTERSECT SELECT T1.title, T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id HAVING COUNT(*) < 3
Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id.
CREATE TABLE film (title VARCHAR, film_id VARCHAR, rental_rate VARCHAR); CREATE TABLE inventory (film_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR)
Qual filme é alugado a uma taxa de 0,99 e tem menos de 3 no inventário? Listar o título do filme e ID.
1,740
SELECT COUNT(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id WHERE T2.country = 'Australia'
How many cities are in Australia?
CREATE TABLE country (country_id VARCHAR, country VARCHAR); CREATE TABLE city (country_id VARCHAR)
Quantas cidades existem na Austrália?
1,741
SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING COUNT(*) >= 3
Which countries have at least 3 cities?
CREATE TABLE country (country VARCHAR, country_id VARCHAR); CREATE TABLE city (country_id VARCHAR)
Quais países têm pelo menos três cidades?
1,742
SELECT payment_date FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Elsa'
Find all the payment dates for the payments with an amount larger than 10 and the payments handled by a staff person with the first name Elsa.
CREATE TABLE payment (payment_date VARCHAR, staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, first_name VARCHAR); CREATE TABLE payment (payment_date VARCHAR, amount INTEGER)
Encontre todas as datas de pagamento para os pagamentos com um valor superior a 10 e os pagamentos tratados por uma pessoa da equipe com o primeiro nome Elsa.
1,743
SELECT COUNT(*) FROM customer WHERE active = '1'
How many customers have an active value of 1?
CREATE TABLE customer (active VARCHAR)
Quantos clientes têm um valor ativo de 1?
1,744
SELECT title, rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1
Which film has the highest rental rate? And what is the rate?
CREATE TABLE film (title VARCHAR, rental_rate VARCHAR)
Qual filme tem a maior taxa de aluguel? E qual é a taxa?
1,745
SELECT T2.title, T2.film_id, T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY COUNT(*) DESC LIMIT 1
Which film has the most number of actors or actresses? List the film name, film id and description.
CREATE TABLE film_actor (film_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR, description VARCHAR)
Qual filme tem o maior número de atores ou atrizes? Listar o nome do filme, ID do filme e descrição.
1,746
SELECT T2.first_name, T2.last_name, T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id ORDER BY COUNT(*) DESC LIMIT 1
Which film actor (actress) starred the most films? List his or her first name, last name and actor id.
CREATE TABLE film_actor (actor_id VARCHAR); CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR, actor_id VARCHAR)
Qual ator de cinema (atriz) estrelou mais filmes? Liste seu primeiro nome, sobrenome e identidade do ator.
1,747
SELECT T2.first_name, T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING COUNT(*) > 30
Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.
CREATE TABLE film_actor (actor_id VARCHAR); CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR, actor_id VARCHAR)
Quais atores de cinema (atrizes) desempenharam um papel em mais de 30 filmes? Listar seu primeiro nome e sobrenome.
1,748
SELECT store_id FROM inventory GROUP BY store_id ORDER BY COUNT(*) DESC LIMIT 1
Which store owns most items?
CREATE TABLE inventory (store_id VARCHAR)
Qual loja possui a maioria dos itens?
1,749
SELECT SUM(amount) FROM payment
What is the total amount of all payments?
CREATE TABLE payment (amount INTEGER)
Qual é o valor total de todos os pagamentos?
1,750
SELECT T1.first_name, T1.last_name, T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY SUM(amount) LIMIT 1
Which customer, who has made at least one payment, has spent the least money? List his or her first name, last name, and the id.
CREATE TABLE payment (customer_id VARCHAR); CREATE TABLE customer (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR)
Qual cliente, que fez pelo menos um pagamento, gastou menos dinheiro? Liste seu primeiro nome, sobrenome e ID.
1,751
SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'HUNGER ROOF'
What is the genre name of the film HUNGER ROOF?
CREATE TABLE film_category (category_id VARCHAR, film_id VARCHAR); CREATE TABLE film (film_id VARCHAR, title VARCHAR); CREATE TABLE category (name VARCHAR, category_id VARCHAR)
Qual é o nome do gênero do filme HUNGER ROOF?
1,752
SELECT T2.name, T1.category_id, COUNT(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T1.category_id
How many films are there in each category? List the genre name, genre id and the count.
CREATE TABLE film_category (category_id VARCHAR); CREATE TABLE category (name VARCHAR, category_id VARCHAR)
Quantos filmes existem em cada categoria? Liste o nome do gênero, o ID do gênero e a contagem.
1,753
SELECT T1.title, T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY COUNT(*) DESC LIMIT 1
Which film has the most copies in the inventory? List both title and id.
CREATE TABLE film (title VARCHAR, film_id VARCHAR); CREATE TABLE inventory (film_id VARCHAR)
Qual filme tem mais cópias no inventário? Liste o título e o ID.
1,754
SELECT T1.title, T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T2.inventory_id ORDER BY COUNT(*) DESC LIMIT 1
What is the film title and inventory id of the item in the inventory which was rented most frequently?
CREATE TABLE film (title VARCHAR, film_id VARCHAR); CREATE TABLE inventory (inventory_id VARCHAR, film_id VARCHAR); CREATE TABLE rental (inventory_id VARCHAR)
Qual é o título do filme e o ID do inventário do item no inventário que foi alugado com mais frequência?
1,755
SELECT COUNT(DISTINCT language_id) FROM film
How many languages are in these films?
CREATE TABLE film (language_id VARCHAR)
Quantas línguas existem nesses filmes?
1,756
SELECT title FROM film WHERE rating = 'R'
What are all the movies rated as R? List the titles.
CREATE TABLE film (title VARCHAR, rating VARCHAR)
Quais são todos os filmes classificados como R? Listar os títulos.
1,757
SELECT T2.address FROM store AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE store_id = 1
Where is store 1 located?
CREATE TABLE store (address_id VARCHAR); CREATE TABLE address (address VARCHAR, address_id VARCHAR)
Onde fica a loja 1?
1,758
SELECT T1.first_name, T1.last_name, T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id = T2.staff_id GROUP BY T1.staff_id ORDER BY COUNT(*) LIMIT 1
Which staff handled least number of payments? List the full name and the id.
CREATE TABLE payment (staff_id VARCHAR); CREATE TABLE staff (first_name VARCHAR, last_name VARCHAR, staff_id VARCHAR)
Quais funcionários lidaram com o menor número de pagamentos? Liste o nome completo e o ID.
1,759
SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'AIRPORT POLLOCK'
Which language does the film AIRPORT POLLOCK use? List the language name.
CREATE TABLE film (language_id VARCHAR, title VARCHAR); CREATE TABLE LANGUAGE (name VARCHAR, language_id VARCHAR)
Qual idioma o filme AIRPORT POLLOCK usa? Liste o nome do idioma.
1,760
SELECT COUNT(*) FROM store
How many stores are there?
CREATE TABLE store (Id VARCHAR)
Quantas lojas existem?
1,761
SELECT COUNT(DISTINCT rating) FROM film
How many kinds of different ratings are listed?
CREATE TABLE film (rating VARCHAR)
Quantos tipos de classificações diferentes estão listadas?
1,762
SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%'
Which movies have 'Deleted Scenes' as a substring in the special feature?
CREATE TABLE film (title VARCHAR, special_features VARCHAR)
Quais filmes têm "Scenes Excluídas" como uma substring no recurso especial?
1,763
SELECT COUNT(*) FROM inventory WHERE store_id = 1
How many items in inventory does store 1 have?
CREATE TABLE inventory (store_id VARCHAR)
Quantos itens no inventário o 1 tem?
1,764
SELECT payment_date FROM payment ORDER BY payment_date LIMIT 1
When did the first payment happen?
CREATE TABLE payment (payment_date VARCHAR)
Quando aconteceu o primeiro pagamento?
1,765
SELECT T2.address, T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id = T1.address_id WHERE T1.first_name = 'LINDA'
Where does the customer with the first name Linda live? And what is her email?
CREATE TABLE customer (email VARCHAR, address_id VARCHAR, first_name VARCHAR); CREATE TABLE address (address VARCHAR, address_id VARCHAR)
Onde mora o cliente com o primeiro nome Linda? E qual é o e-mail dela?
1,766
SELECT title FROM film WHERE LENGTH > 100 OR rating = 'PG' EXCEPT SELECT title FROM film WHERE replacement_cost > 200
Find all the films longer than 100 minutes, or rated PG, except those who cost more than 200 for replacement. List the titles.
CREATE TABLE film (title VARCHAR, replacement_cost INTEGER, LENGTH VARCHAR, rating VARCHAR)
Encontre todos os filmes com mais de 100 minutos, ou PG avaliado, exceto aqueles que custam mais de 200 para substituição. Liste os títulos.
1,767
SELECT T1.first_name, T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id = T2.customer_id ORDER BY T2.rental_date LIMIT 1
What is the first name and the last name of the customer who made the earliest rental?
CREATE TABLE customer (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR); CREATE TABLE rental (customer_id VARCHAR, rental_date VARCHAR)
Qual é o primeiro nome e o sobrenome do cliente que fez o aluguel mais cedo?
1,768
SELECT DISTINCT T1.first_name, T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS'
What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns?
CREATE TABLE customer (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE rental (staff_id VARCHAR, customer_id VARCHAR); CREATE TABLE staff (first_name VARCHAR, last_name VARCHAR, staff_id VARCHAR)
Qual é o nome completo do membro da equipe que alugou um filme para um cliente com o primeiro nome Abril e o sobrenome Burns?
1,769
SELECT store_id FROM customer GROUP BY store_id ORDER BY COUNT(*) DESC LIMIT 1
Which store has most the customers?
CREATE TABLE customer (store_id VARCHAR)
Qual loja tem mais clientes?
1,770
SELECT amount FROM payment ORDER BY amount DESC LIMIT 1
What is the largest payment amount?
CREATE TABLE payment (amount VARCHAR)
Qual é o maior valor de pagamento?
1,771
SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Elsa'
Where does the staff member with the first name Elsa live?
CREATE TABLE staff (address_id VARCHAR, first_name VARCHAR); CREATE TABLE address (address VARCHAR, address_id VARCHAR)
Onde mora o membro da equipe com o nome Elsa?
1,772
SELECT first_name FROM customer WHERE NOT customer_id IN (SELECT customer_id FROM rental WHERE rental_date > '2005-08-23 02:06:01')
What are the first names of customers who have not rented any films after '2005-08-23 02:06:01'?
CREATE TABLE customer (first_name VARCHAR, customer_id VARCHAR, rental_date INTEGER); CREATE TABLE rental (first_name VARCHAR, customer_id VARCHAR, rental_date INTEGER)
Quais são os primeiros nomes dos clientes que não alugaram nenhum filme após '2005-08-23 02:06:01'?
1,773
SELECT COUNT(*) FROM bank
How many bank branches are there?
CREATE TABLE bank (Id VARCHAR)
Quantas agências bancárias existem?
1,774
SELECT SUM(no_of_customers) FROM bank
How many customers are there?
CREATE TABLE bank (no_of_customers INTEGER)
Quantos clientes existem?
1,775
SELECT SUM(no_of_customers) FROM bank WHERE city = 'New York City'
Find the number of customers in the banks at New York City.
CREATE TABLE bank (no_of_customers INTEGER, city VARCHAR)
Encontre o número de clientes nos bancos da cidade de Nova York.
1,776
SELECT AVG(no_of_customers) FROM bank WHERE state = 'Utah'
Find the average number of customers in all banks of Utah state.
CREATE TABLE bank (no_of_customers INTEGER, state VARCHAR)
Encontre o número médio de clientes em todos os bancos do estado de Utah.
1,777
SELECT AVG(no_of_customers) FROM bank
Find the average number of customers cross all banks.
CREATE TABLE bank (no_of_customers INTEGER)
Encontre o número médio de clientes em todos os bancos.
1,778
SELECT city, state FROM bank WHERE bname = 'morningside'
Find the city and state of the bank branch named morningside.
CREATE TABLE bank (city VARCHAR, state VARCHAR, bname VARCHAR)
Encontre a cidade e o estado da agência bancária chamada Morningside.
1,779
SELECT bname FROM bank WHERE state = 'New York'
Find the branch names of banks in the New York state.
CREATE TABLE bank (bname VARCHAR, state VARCHAR)
Encontre os nomes de agências de bancos no estado de Nova York.
1,780
SELECT cust_name FROM customer ORDER BY acc_bal
List the name of all customers sorted by their account balance in ascending order.
CREATE TABLE customer (cust_name VARCHAR, acc_bal VARCHAR)
Liste o nome de todos os clientes classificados pelo saldo da conta em ordem crescente.
1,781
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY SUM(T2.amount)
List the name of all different customers who have some loan sorted by their total loan amount.
CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)
Liste o nome de todos os clientes diferentes que têm algum empréstimo classificado pelo valor total do empréstimo.
1,782
SELECT state, acc_type, credit_score FROM customer WHERE no_of_loans = 0
Find the state, account type, and credit score of the customer whose number of loan is 0.
CREATE TABLE customer (state VARCHAR, acc_type VARCHAR, credit_score VARCHAR, no_of_loans VARCHAR)
Encontre o estado, o tipo de conta e a pontuação de crédito do cliente cujo número de empréstimo é 0.
1,783
SELECT COUNT(DISTINCT city) FROM bank
Find the number of different cities which banks are located at.
CREATE TABLE bank (city VARCHAR)
Encontre o número de cidades diferentes em que os bancos estão localizados.
1,784
SELECT COUNT(DISTINCT state) FROM bank
Find the number of different states which banks are located at.
CREATE TABLE bank (state VARCHAR)
Encontre o número de estados diferentes em que os bancos estão localizados.
1,785
SELECT COUNT(DISTINCT acc_type) FROM customer
How many distinct types of accounts are there?
CREATE TABLE customer (acc_type VARCHAR)
Quantos tipos distintos de contas existem?
1,786
SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%'
Find the name and account balance of the customer whose name includes the letter ‘a’.
CREATE TABLE customer (cust_name VARCHAR, acc_bal VARCHAR)
Encontre o nome e o saldo da conta do cliente cujo nome inclui a letra “a”.
1,787
SELECT SUM(acc_bal) FROM customer WHERE state = 'Utah' OR state = 'Texas'
Find the total account balance of each customer from Utah or Texas.
CREATE TABLE customer (acc_bal INTEGER, state VARCHAR)
Encontre o saldo total da conta de cada cliente de Utah ou Texas.
1,788
SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking'
Find the name of customers who have both saving and checking account types.
CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR)
Encontre o nome dos clientes que têm ambos os tipos de conta de poupança e de verificação.
1,789
SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving'
Find the name of customers who do not have an saving account.
CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR)
Encontre o nome dos clientes que não têm uma conta de salvamento.
1,790
SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages'
Find the name of customers who do not have a loan with a type of Mortgages.
CREATE TABLE loan (cust_id VARCHAR, loan_type VARCHAR); CREATE TABLE customer (cust_name VARCHAR); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)
Encontre o nome dos clientes que não têm um empréstimo com um tipo de hipotecas.
1,791
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto'
Find the name of customers who have loans of both Mortgages and Auto.
CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR)
Encontre o nome dos clientes que têm empréstimos de hipotecas e Auto.
1,792
SELECT cust_name FROM customer WHERE credit_score < (SELECT AVG(credit_score) FROM customer)
Find the name of customers whose credit score is below the average credit scores of all customers.
CREATE TABLE customer (cust_name VARCHAR, credit_score INTEGER)
Encontre o nome dos clientes cuja pontuação de crédito está abaixo da pontuação média de crédito de todos os clientes.
1,793
SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1
Find the branch name of the bank that has the most number of customers.
CREATE TABLE bank (bname VARCHAR, no_of_customers VARCHAR)
Encontre o nome da filial do banco que tem o maior número de clientes.
1,794
SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1
Find the name of customer who has the lowest credit score.
CREATE TABLE customer (cust_name VARCHAR, credit_score VARCHAR)
Encontre o nome do cliente que tem a menor pontuação de crédito.
1,795
SELECT cust_name, acc_type, acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1
Find the name, account type, and account balance of the customer who has the highest credit score.
CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR, acc_bal VARCHAR, credit_score VARCHAR)
Encontre o nome, o tipo de conta e o saldo da conta do cliente que tem a maior pontuação de crédito.
1,796
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY SUM(T2.amount) DESC LIMIT 1
Find the name of customer who has the highest amount of loans.
CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)
Encontre o nome do cliente que tem a maior quantidade de empréstimos.
1,797
SELECT state FROM bank GROUP BY state ORDER BY SUM(no_of_customers) DESC LIMIT 1
Find the state which has the most number of customers.
CREATE TABLE bank (state VARCHAR, no_of_customers INTEGER)
Encontre o estado que tem o maior número de clientes.
1,798
SELECT AVG(acc_bal), acc_type FROM customer WHERE credit_score < 50 GROUP BY acc_type
For each account type, find the average account balance of customers with credit score lower than 50.
CREATE TABLE customer (acc_type VARCHAR, acc_bal INTEGER, credit_score INTEGER)
Para cada tipo de conta, encontre o saldo médio da conta de clientes com pontuação de crédito inferior a 50.
1,799
SELECT SUM(acc_bal), state FROM customer WHERE credit_score > 100 GROUP BY state
For each state, find the total account balance of customers whose credit score is above 100.
CREATE TABLE customer (state VARCHAR, acc_bal INTEGER, credit_score INTEGER)
Para cada estado, encontre o saldo total da conta de clientes cuja pontuação de crédito esteja acima de 100.