Unnamed: 0
int64 0
78.6k
| answer
stringlengths 18
557
| question
stringlengths 12
244
| context
stringlengths 27
489
| translated_answer
stringlengths 12
992
|
|---|---|---|---|---|
900
|
SELECT AVG(transaction_amount), MIN(transaction_amount), MAX(transaction_amount), SUM(transaction_amount) FROM Financial_transactions
|
What is the average, minimum, maximum, and total transaction amount?
|
CREATE TABLE Financial_transactions (transaction_amount INTEGER)
|
Qual é o valor médio, mínimo, máximo e total da transação?
|
901
|
SELECT transaction_id FROM Financial_transactions WHERE transaction_amount > (SELECT AVG(transaction_amount) FROM Financial_transactions)
|
Show ids for all transactions whose amounts are greater than the average.
|
CREATE TABLE Financial_transactions (transaction_id VARCHAR, transaction_amount INTEGER)
|
Mostrar IDs para todas as transações cujos valores são maiores que a média.
|
902
|
SELECT transaction_type, SUM(transaction_amount) FROM Financial_transactions GROUP BY transaction_type
|
Show the transaction types and the total amount of transactions.
|
CREATE TABLE Financial_transactions (transaction_type VARCHAR, transaction_amount INTEGER)
|
Mostrar os tipos de transação e a quantidade total de transações.
|
903
|
SELECT T2.account_name, T1.account_id, COUNT(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id
|
Show the account name, id and the number of transactions for each account.
|
CREATE TABLE Financial_transactions (account_id VARCHAR); CREATE TABLE Accounts (account_name VARCHAR, account_id VARCHAR)
|
Mostre o nome da conta, o ID e o número de transações para cada conta.
|
904
|
SELECT account_id FROM Financial_transactions GROUP BY account_id ORDER BY COUNT(*) DESC LIMIT 1
|
Show the account id with most number of transactions.
|
CREATE TABLE Financial_transactions (account_id VARCHAR)
|
Mostre o ID da conta com o maior número de transações.
|
905
|
SELECT T1.account_id, T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id HAVING COUNT(*) >= 4
|
Show the account id and name with at least 4 transactions.
|
CREATE TABLE Financial_transactions (account_id VARCHAR); CREATE TABLE Accounts (account_name VARCHAR, account_id VARCHAR)
|
Mostre o ID da conta e o nome com pelo menos 4 transações.
|
906
|
SELECT DISTINCT product_size FROM Products
|
Show all product sizes.
|
CREATE TABLE Products (product_size VARCHAR)
|
Mostrar todos os tamanhos do produto.
|
907
|
SELECT DISTINCT product_color FROM Products
|
Show all product colors.
|
CREATE TABLE Products (product_color VARCHAR)
|
Mostrar todas as cores do produto.
|
908
|
SELECT invoice_number, COUNT(*) FROM Financial_transactions GROUP BY invoice_number
|
Show the invoice number and the number of transactions for each invoice.
|
CREATE TABLE Financial_transactions (invoice_number VARCHAR)
|
Mostre o número da fatura e o número de transações para cada fatura.
|
909
|
SELECT T2.invoice_number, T2.invoice_date FROM Financial_transactions AS T1 JOIN Invoices AS T2 ON T1.invoice_number = T2.invoice_number GROUP BY T1.invoice_number ORDER BY COUNT(*) DESC LIMIT 1
|
What is the invoice number and invoice date for the invoice with most number of transactions?
|
CREATE TABLE Invoices (invoice_number VARCHAR, invoice_date VARCHAR); CREATE TABLE Financial_transactions (invoice_number VARCHAR)
|
Qual é o número da fatura e a data da fatura para a fatura com o maior número de transações?
|
910
|
SELECT COUNT(*) FROM Invoices
|
How many invoices do we have?
|
CREATE TABLE Invoices (Id VARCHAR)
|
Quantas faturas temos?
|
911
|
SELECT T1.invoice_date, T1.order_id, T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id
|
Show invoice dates and order id and details for all invoices.
|
CREATE TABLE Invoices (invoice_date VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_details VARCHAR, order_id VARCHAR)
|
Mostrar as datas da fatura e o ID do pedido e os detalhes de todas as faturas.
|
912
|
SELECT order_id, COUNT(*) FROM Invoices GROUP BY order_id
|
Show the order ids and the number of invoices for each order.
|
CREATE TABLE Invoices (order_id VARCHAR)
|
Mostre os IDs do pedido e o número de faturas para cada pedido.
|
913
|
SELECT T2.order_id, T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id GROUP BY T2.order_id HAVING COUNT(*) > 2
|
What is the order id and order details for the order more than two invoices.
|
CREATE TABLE Orders (order_id VARCHAR, order_details VARCHAR); CREATE TABLE Invoices (order_id VARCHAR)
|
Qual é o ID do pedido e os detalhes do pedido mais de duas faturas.
|
914
|
SELECT T2.customer_last_name, T1.customer_id, T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1
|
What is the customer last name, id and phone number with most number of orders?
|
CREATE TABLE Orders (customer_id VARCHAR); CREATE TABLE Customers (customer_last_name VARCHAR, phone_number VARCHAR, customer_id VARCHAR)
|
Qual é o sobrenome do cliente, ID e número de telefone com o maior número de pedidos?
|
915
|
SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id
|
Show all product names without an order.
|
CREATE TABLE Products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE Order_items (product_id VARCHAR); CREATE TABLE Products (product_name VARCHAR)
|
Mostre todos os nomes de produtos sem uma ordem.
|
916
|
SELECT T2.product_name, SUM(T1.product_quantity) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name
|
Show all product names and the total quantity ordered for each product name.
|
CREATE TABLE Products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE Order_items (product_quantity INTEGER, product_id VARCHAR)
|
Mostrar todos os nomes dos produtos e a quantidade total encomendada para cada nome de produto.
|
917
|
SELECT order_id, COUNT(*) FROM Order_items GROUP BY order_id
|
Show the order ids and the number of items in each order.
|
CREATE TABLE Order_items (order_id VARCHAR)
|
Mostre os IDs da ordem e o número de itens em cada ordem.
|
918
|
SELECT product_id, COUNT(DISTINCT order_id) FROM Order_items GROUP BY product_id
|
Show the product ids and the number of unique orders containing each product.
|
CREATE TABLE Order_items (product_id VARCHAR, order_id VARCHAR)
|
Mostre os IDs do produto e o número de pedidos exclusivos que contêm cada produto.
|
919
|
SELECT T2.product_name, COUNT(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name
|
Show all product names and the number of customers having an order on each product.
|
CREATE TABLE Order_items (product_id VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_id VARCHAR); CREATE TABLE Products (product_name VARCHAR, product_id VARCHAR)
|
Mostre todos os nomes de produtos e o número de clientes que têm um pedido em cada produto.
|
920
|
SELECT order_id, COUNT(DISTINCT product_id) FROM Order_items GROUP BY order_id
|
Show order ids and the number of products in each order.
|
CREATE TABLE Order_items (order_id VARCHAR, product_id VARCHAR)
|
Mostrar IDs de pedidos e o número de produtos em cada pedido.
|
921
|
SELECT order_id, SUM(product_quantity) FROM Order_items GROUP BY order_id
|
Show order ids and the total quantity in each order.
|
CREATE TABLE Order_items (order_id VARCHAR, product_quantity INTEGER)
|
Mostrar IDs de ordem e a quantidade total em cada ordem.
|
922
|
SELECT COUNT(*) FROM products WHERE NOT product_id IN (SELECT product_id FROM Order_items)
|
How many products were not included in any order?
|
CREATE TABLE products (product_id VARCHAR); CREATE TABLE Order_items (product_id VARCHAR)
|
Quantos produtos não foram incluídos em nenhuma ordem?
|
923
|
SELECT COUNT(*) FROM Church WHERE Open_Date < 1850
|
How many churches opened before 1850 are there?
|
CREATE TABLE Church (Open_Date INTEGER)
|
Quantas igrejas foram abertas antes de 1850?
|
924
|
SELECT name, open_date, organized_by FROM Church
|
Show the name, open date, and organizer for all churches.
|
CREATE TABLE Church (name VARCHAR, open_date VARCHAR, organized_by VARCHAR)
|
Mostre o nome, a data de abertura e o organizador de todas as igrejas.
|
925
|
SELECT name FROM church ORDER BY open_date DESC
|
List all church names in descending order of opening date.
|
CREATE TABLE church (name VARCHAR, open_date VARCHAR)
|
Listar todos os nomes da igreja em ordem decrescente de data de abertura.
|
926
|
SELECT open_date FROM church GROUP BY open_date HAVING COUNT(*) >= 2
|
Show the opening year in whcih at least two churches opened.
|
CREATE TABLE church (open_date VARCHAR)
|
Mostre o ano de abertura em whcih pelo menos duas igrejas abertas.
|
927
|
SELECT organized_by, name FROM church WHERE open_date BETWEEN 1830 AND 1840
|
Show the organizer and name for churches that opened between 1830 and 1840.
|
CREATE TABLE church (organized_by VARCHAR, name VARCHAR, open_date INTEGER)
|
Mostre o organizador e o nome das igrejas que abriram entre 1830 e 1840.
|
928
|
SELECT open_date, COUNT(*) FROM church GROUP BY open_date
|
Show all opening years and the number of churches that opened in that year.
|
CREATE TABLE church (open_date VARCHAR)
|
Mostre todos os anos de abertura e o número de igrejas que abriram naquele ano.
|
929
|
SELECT name, open_date FROM church ORDER BY open_date DESC LIMIT 3
|
Show the name and opening year for three churches that opened most recently.
|
CREATE TABLE church (name VARCHAR, open_date VARCHAR)
|
Mostre o nome e o ano de abertura para três igrejas que foram inauguradas mais recentemente.
|
930
|
SELECT COUNT(*) FROM people WHERE is_male = 'F' AND age > 30
|
How many female people are older than 30 in our record?
|
CREATE TABLE people (is_male VARCHAR, age VARCHAR)
|
Quantas mulheres têm mais de 30 anos em nosso registro?
|
931
|
SELECT country FROM people WHERE age < 25 INTERSECT SELECT country FROM people WHERE age > 30
|
Show the country where people older than 30 and younger than 25 are from.
|
CREATE TABLE people (country VARCHAR, age INTEGER)
|
Mostre ao país de onde vêm pessoas com mais de 30 anos ou menos de 25 anos.
|
932
|
SELECT MIN(age), MAX(age), AVG(age) FROM people
|
Show the minimum, maximum, and average age for all people.
|
CREATE TABLE people (age INTEGER)
|
Mostre a idade mínima, máxima e média para todas as pessoas.
|
933
|
SELECT name, country FROM people WHERE age < (SELECT AVG(age) FROM people)
|
Show the name and country for all people whose age is smaller than the average.
|
CREATE TABLE people (name VARCHAR, country VARCHAR, age INTEGER)
|
Mostre o nome e o país para todas as pessoas cuja idade seja menor que a média.
|
934
|
SELECT T2.name, T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id WHERE T1.year > 2014
|
Show the pair of male and female names in all weddings after year 2014
|
CREATE TABLE wedding (male_id VARCHAR, female_id VARCHAR, year INTEGER); CREATE TABLE people (name VARCHAR, people_id VARCHAR)
|
Mostre o par de nomes masculinos e femininos em todos os casamentos após o ano de 2014
|
935
|
SELECT name, age FROM people WHERE is_male = 'T' AND NOT people_id IN (SELECT male_id FROM wedding)
|
Show the name and age for all male people who don't have a wedding.
|
CREATE TABLE wedding (name VARCHAR, age VARCHAR, is_male VARCHAR, people_id VARCHAR, male_id VARCHAR); CREATE TABLE people (name VARCHAR, age VARCHAR, is_male VARCHAR, people_id VARCHAR, male_id VARCHAR)
|
Mostre o nome e a idade para todos os homens que não têm um casamento.
|
936
|
SELECT name FROM church EXCEPT SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id WHERE T2.year = 2015
|
Show all church names except for those that had a wedding in year 2015.
|
CREATE TABLE church (name VARCHAR); CREATE TABLE wedding (church_id VARCHAR, year VARCHAR); CREATE TABLE church (name VARCHAR, church_id VARCHAR)
|
Mostre todos os nomes da igreja, exceto aqueles que tiveram um casamento no ano de 2015.
|
937
|
SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id GROUP BY T1.church_id HAVING COUNT(*) >= 2
|
Show all church names that have hosted least two weddings.
|
CREATE TABLE wedding (church_id VARCHAR); CREATE TABLE church (name VARCHAR, church_id VARCHAR)
|
Mostre todos os nomes de igrejas que já receberam pelo menos dois casamentos.
|
938
|
SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada'
|
Show the names for all females from Canada having a wedding in year 2016.
|
CREATE TABLE people (name VARCHAR, people_id VARCHAR, country VARCHAR, is_male VARCHAR); CREATE TABLE wedding (female_id VARCHAR, year VARCHAR)
|
Mostre os nomes de todas as mulheres do Canadá que têm um casamento no ano de 2016.
|
939
|
SELECT COUNT(*) FROM wedding WHERE YEAR = 2016
|
How many weddings are there in year 2016?
|
CREATE TABLE wedding (YEAR VARCHAR)
|
Quantos casamentos existem no ano de 2016?
|
940
|
SELECT T4.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id JOIN church AS T4 ON T4.church_id = T1.church_id WHERE T2.age > 30 OR T3.age > 30
|
Show the church names for the weddings of all people older than 30.
|
CREATE TABLE church (name VARCHAR, church_id VARCHAR); CREATE TABLE people (people_id VARCHAR, age VARCHAR); CREATE TABLE wedding (male_id VARCHAR, female_id VARCHAR, church_id VARCHAR)
|
Mostre os nomes da igreja para os casamentos de todas as pessoas com mais de 30 anos.
|
941
|
SELECT country, COUNT(*) FROM people GROUP BY country
|
Show all countries and the number of people from each country.
|
CREATE TABLE people (country VARCHAR)
|
Mostrar todos os países e o número de pessoas de cada país.
|
942
|
SELECT COUNT(DISTINCT church_id) FROM wedding WHERE YEAR = 2016
|
How many churches have a wedding in year 2016?
|
CREATE TABLE wedding (church_id VARCHAR, YEAR VARCHAR)
|
Quantas igrejas têm um casamento no ano de 2016?
|
943
|
SELECT COUNT(*) FROM artist
|
How many artists do we have?
|
CREATE TABLE artist (Id VARCHAR)
|
Quantos artistas temos?
|
944
|
SELECT name, age, country FROM artist ORDER BY Year_Join
|
Show all artist name, age, and country ordered by the yeared they joined.
|
CREATE TABLE artist (name VARCHAR, age VARCHAR, country VARCHAR, Year_Join VARCHAR)
|
Mostre todo o nome do artista, idade e país ordenados pelo ano em que se juntaram.
|
945
|
SELECT DISTINCT country FROM artist
|
What are all distinct country for artists?
|
CREATE TABLE artist (country VARCHAR)
|
O que é um país distinto para os artistas?
|
946
|
SELECT name, year_join FROM artist WHERE country <> 'United States'
|
Show all artist names and the year joined who are not from United States.
|
CREATE TABLE artist (name VARCHAR, year_join VARCHAR, country VARCHAR)
|
Mostre todos os nomes de artistas e o ano que se juntou que não são dos Estados Unidos.
|
947
|
SELECT COUNT(*) FROM artist WHERE age > 46 AND year_join > 1990
|
How many artists are above age 46 and joined after 1990?
|
CREATE TABLE artist (age VARCHAR, year_join VARCHAR)
|
Quantos artistas estão acima dos 46 anos e se juntaram depois de 1990?
|
948
|
SELECT AVG(age), MIN(age) FROM artist WHERE country = 'United States'
|
What is the average and minimum age of all artists from United States.
|
CREATE TABLE artist (age INTEGER, country VARCHAR)
|
Qual é a idade média e mínima de todos os artistas dos Estados Unidos?
|
949
|
SELECT name FROM artist ORDER BY year_join DESC LIMIT 1
|
What is the name of the artist who joined latest?
|
CREATE TABLE artist (name VARCHAR, year_join VARCHAR)
|
Qual é o nome do artista que se juntou mais tarde?
|
950
|
SELECT COUNT(*) FROM exhibition WHERE YEAR >= 2005
|
How many exhibition are there in year 2005 or after?
|
CREATE TABLE exhibition (YEAR VARCHAR)
|
Quantas exposições existem no ano de 2005 ou depois?
|
951
|
SELECT theme, YEAR FROM exhibition WHERE ticket_price < 15
|
Show theme and year for all exhibitions with ticket prices lower than 15.
|
CREATE TABLE exhibition (theme VARCHAR, YEAR VARCHAR, ticket_price INTEGER)
|
Mostre o tema e o ano para todas as exposições com preços de ingressos inferiores a 15.
|
952
|
SELECT T2.name, COUNT(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id
|
Show all artist names and the number of exhibitions for each artist.
|
CREATE TABLE artist (name VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition (artist_id VARCHAR)
|
Mostre todos os nomes dos artistas e o número de exposições para cada artista.
|
953
|
SELECT T2.name, T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id ORDER BY COUNT(*) DESC LIMIT 1
|
What is the name and country for the artist with most number of exhibitions?
|
CREATE TABLE exhibition (artist_id VARCHAR); CREATE TABLE artist (name VARCHAR, country VARCHAR, artist_id VARCHAR)
|
Qual é o nome e o país do artista com maior número de exposições?
|
954
|
SELECT name FROM artist WHERE NOT artist_id IN (SELECT artist_id FROM exhibition)
|
Show names for artists without any exhibition.
|
CREATE TABLE artist (name VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition (name VARCHAR, artist_id VARCHAR)
|
Mostre nomes para artistas sem nenhuma exposição.
|
955
|
SELECT T1.theme, T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT AVG(ticket_price) FROM exhibition)
|
What is the theme and artist name for the exhibition with a ticket price higher than the average?
|
CREATE TABLE exhibition (ticket_price INTEGER); CREATE TABLE exhibition (theme VARCHAR, artist_id VARCHAR, ticket_price INTEGER); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR)
|
Qual é o tema e nome do artista para a exposição com um preço de bilhete superior à média?
|
956
|
SELECT AVG(ticket_price), MIN(ticket_price), MAX(ticket_price) FROM exhibition WHERE YEAR < 2009
|
Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.
|
CREATE TABLE exhibition (ticket_price INTEGER, YEAR INTEGER)
|
Mostre os preços médios, mínimos e máximos dos ingressos para as exposições de todos os anos anteriores a 2009.
|
957
|
SELECT theme, YEAR FROM exhibition ORDER BY ticket_price DESC
|
Show theme and year for all exhibitions in an descending order of ticket price.
|
CREATE TABLE exhibition (theme VARCHAR, YEAR VARCHAR, ticket_price VARCHAR)
|
Mostre o tema e o ano para todas as exposições em uma ordem decrescente de preço do bilhete.
|
958
|
SELECT T2.theme, T1.date, T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T2.year = 2004
|
What is the theme, date, and attendance for the exhibition in year 2004?
|
CREATE TABLE exhibition_record (date VARCHAR, attendance VARCHAR, exhibition_id VARCHAR); CREATE TABLE exhibition (theme VARCHAR, exhibition_id VARCHAR, year VARCHAR)
|
Qual é o tema, data e presença para a exposição no ano de 2004?
|
959
|
SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.year = 2004
|
Show all artist names who didn't have an exhibition in 2004.
|
CREATE TABLE exhibition (artist_id VARCHAR, year VARCHAR); CREATE TABLE artist (name VARCHAR); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR)
|
Mostre todos os nomes de artistas que não tiveram uma exposição em 2004.
|
960
|
SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance < 100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 500
|
Show the theme for exhibitions with both records of an attendance below 100 and above 500.
|
CREATE TABLE exhibition (theme VARCHAR, exhibition_id VARCHAR); CREATE TABLE exhibition_record (exhibition_id VARCHAR, attendance INTEGER)
|
Mostre o tema para exposições com ambos os registros de um atendimento abaixo de 100 e acima de 500.
|
961
|
SELECT COUNT(*) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 100 OR T2.ticket_price < 10
|
How many exhibitions have a attendance more than 100 or have a ticket price below 10?
|
CREATE TABLE exhibition_record (exhibition_id VARCHAR, attendance VARCHAR); CREATE TABLE exhibition (exhibition_id VARCHAR, ticket_price VARCHAR)
|
Quantas exposições têm uma participação superior a 100 ou têm um preço de bilhete abaixo de 10?
|
962
|
SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id JOIN artist AS T3 ON T3.artist_id = T2.artist_id GROUP BY T3.artist_id HAVING AVG(T1.attendance) > 200
|
Show all artist names with an average exhibition attendance over 200.
|
CREATE TABLE artist (name VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition (exhibition_id VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition_record (exhibition_id VARCHAR, attendance INTEGER)
|
Mostre todos os nomes de artistas com um público médio de exposição superior a 200.
|
963
|
SELECT i_id FROM item WHERE title = "orange"
|
Find the id of the item whose title is "orange".
|
CREATE TABLE item (i_id VARCHAR, title VARCHAR)
|
Encontre o id do item cujo título é "laranja".
|
964
|
SELECT * FROM item
|
List all information in the item table.
|
CREATE TABLE item (Id VARCHAR)
|
Liste todas as informações na tabela de itens.
|
965
|
SELECT COUNT(*) FROM review
|
Find the number of reviews.
|
CREATE TABLE review (Id VARCHAR)
|
Encontre o número de reviews.
|
966
|
SELECT COUNT(*) FROM useracct
|
How many users are there?
|
CREATE TABLE useracct (Id VARCHAR)
|
Quantos usuários existem?
|
967
|
SELECT AVG(rating), MAX(rating) FROM review
|
Find the average and maximum rating of all reviews.
|
CREATE TABLE review (rating INTEGER)
|
Encontre a classificação média e máxima de todas as avaliações.
|
968
|
SELECT MIN(rank) FROM review
|
Find the highest rank of all reviews.
|
CREATE TABLE review (rank INTEGER)
|
Encontre a classificação mais alta de todas as avaliações.
|
969
|
SELECT COUNT(DISTINCT u_id) FROM review
|
How many different users wrote some reviews?
|
CREATE TABLE review (u_id VARCHAR)
|
Quantos usuários diferentes escreveram alguns comentários?
|
970
|
SELECT COUNT(DISTINCT i_id) FROM review
|
How many different items were reviewed by some users?
|
CREATE TABLE review (i_id VARCHAR)
|
Quantos itens diferentes foram revisados por alguns usuários?
|
971
|
SELECT COUNT(*) FROM item WHERE NOT i_id IN (SELECT i_id FROM review)
|
Find the number of items that did not receive any review.
|
CREATE TABLE review (i_id VARCHAR); CREATE TABLE item (i_id VARCHAR)
|
Encontre o número de itens que não receberam nenhuma revisão.
|
972
|
SELECT name FROM useracct WHERE NOT u_id IN (SELECT u_id FROM review)
|
Find the names of users who did not leave any review.
|
CREATE TABLE review (name VARCHAR, u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR)
|
Encontre os nomes dos usuários que não deixaram nenhum comentário.
|
973
|
SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating = 10
|
Find the names of goods that receive a rating of 10.
|
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating VARCHAR)
|
Encontre os nomes das mercadorias que recebem uma classificação de 10.
|
974
|
SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > (SELECT AVG(rating) FROM review)
|
Find the titles of items whose rating is higher than the average review rating of all items.
|
CREATE TABLE review (rating INTEGER); CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)
|
Encontre os títulos dos itens cuja classificação é maior do que a média de avaliação de todos os itens.
|
975
|
SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5
|
Find the titles of items that received any rating below 5.
|
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)
|
Encontre os títulos dos itens que receberam qualquer classificação abaixo de 5.
|
976
|
SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > 8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5
|
Find the titles of items that received both a rating higher than 8 and a rating below 5.
|
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)
|
Encontre os títulos dos itens que receberam uma classificação superior a 8 e uma classificação abaixo de 5.
|
977
|
SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rank > 3 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id HAVING AVG(T2.rating) > 5
|
Find the names of items whose rank is higher than 3 and whose average rating is above 5.
|
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rank INTEGER, rating INTEGER)
|
Encontre os nomes dos itens cuja classificação é superior a 3 e cuja classificação média é superior a 5.
|
978
|
SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) LIMIT 1
|
Find the name of the item with the lowest average rating.
|
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)
|
Encontre o nome do item com a classificação média mais baixa.
|
979
|
SELECT title FROM item ORDER BY title
|
List the titles of all items in alphabetic order .
|
CREATE TABLE item (title VARCHAR)
|
Liste os títulos de todos os itens em ordem alfabética .
|
980
|
SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY COUNT(*) DESC LIMIT 1
|
Find the name of the user who gives the most reviews.
|
CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE review (u_id VARCHAR)
|
Encontre o nome do usuário que dá mais avaliações.
|
981
|
SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) DESC LIMIT 1
|
Find the name and id of the item with the highest average rating.
|
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)
|
Encontre o nome e o ID do item com a classificação média mais alta.
|
982
|
SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rank) DESC LIMIT 1
|
Find the name and id of the good with the highest average rank.
|
CREATE TABLE review (i_id VARCHAR, rank INTEGER); CREATE TABLE item (title VARCHAR, i_id VARCHAR)
|
Encontre o nome e o ID do bem com a classificação média mais alta.
|
983
|
SELECT T1.name, AVG(T2.rating) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id
|
For each user, return the name and the average rating of reviews given by them.
|
CREATE TABLE review (rating INTEGER, u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR)
|
Para cada usuário, devolva o nome e a classificação média das avaliações dadas por eles.
|
984
|
SELECT T1.name, COUNT(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id
|
For each user, find their name and the number of reviews written by them.
|
CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE review (u_id VARCHAR)
|
Para cada usuário, encontre seu nome e o número de comentários escritos por eles.
|
985
|
SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id ORDER BY T2.rating DESC LIMIT 1
|
Find the name of the user who gave the highest rating.
|
CREATE TABLE review (u_id VARCHAR, rating VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR)
|
Encontre o nome do usuário que deu a classificação mais alta.
|
986
|
SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.source_u_id GROUP BY T2.source_u_id ORDER BY AVG(trust) DESC LIMIT 1
|
Find the name of the source user with the highest average trust score.
|
CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE trust (source_u_id VARCHAR)
|
Encontre o nome do usuário de origem com a maior pontuação média de confiança.
|
987
|
SELECT T1.name, AVG(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id GROUP BY T2.target_u_id
|
Find each target user's name and average trust score.
|
CREATE TABLE trust (target_u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR)
|
Encontre o nome de cada usuário-alvo e a pontuação média de confiança.
|
988
|
SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id ORDER BY trust LIMIT 1
|
Find the name of the target user with the lowest trust score.
|
CREATE TABLE trust (target_u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR)
|
Encontre o nome do usuário-alvo com a menor pontuação de confiança.
|
989
|
SELECT title FROM item WHERE NOT i_id IN (SELECT i_id FROM review)
|
Find the names of the items that did not receive any review.
|
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (title VARCHAR, i_id VARCHAR)
|
Encontre os nomes dos itens que não receberam nenhuma revisão.
|
990
|
SELECT COUNT(*) FROM useracct WHERE NOT u_id IN (SELECT u_id FROM review)
|
Find the number of users who did not write any review.
|
CREATE TABLE review (u_id VARCHAR); CREATE TABLE useracct (u_id VARCHAR)
|
Encontre o número de usuários que não escreveram nenhuma revisão.
|
991
|
SELECT COUNT(*) FROM player
|
How many players are there?
|
CREATE TABLE player (Id VARCHAR)
|
Quantos jogadores existem?
|
992
|
SELECT Player_name FROM player ORDER BY Votes
|
List the names of players in ascending order of votes.
|
CREATE TABLE player (Player_name VARCHAR, Votes VARCHAR)
|
Listar os nomes dos jogadores em ordem crescente de votos.
|
993
|
SELECT Gender, Occupation FROM player
|
What are the gender and occupation of players?
|
CREATE TABLE player (Gender VARCHAR, Occupation VARCHAR)
|
Qual é o gênero e a ocupação dos jogadores?
|
994
|
SELECT Player_name, residence FROM player WHERE Occupation <> "Researcher"
|
List the name and residence for players whose occupation is not "Researcher".
|
CREATE TABLE player (Player_name VARCHAR, residence VARCHAR, Occupation VARCHAR)
|
Liste o nome e a residência de jogadores cuja ocupação não seja "Pesquisador".
|
995
|
SELECT Sponsor_name FROM player WHERE Residence = "Brandon" OR Residence = "Birtle"
|
Show the names of sponsors of players whose residence is either "Brandon" or "Birtle".
|
CREATE TABLE player (Sponsor_name VARCHAR, Residence VARCHAR)
|
Mostre os nomes dos patrocinadores dos jogadores cuja residência seja "Brandon" ou "Birtle".
|
996
|
SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1
|
What is the name of the player with the largest number of votes?
|
CREATE TABLE player (Player_name VARCHAR, Votes VARCHAR)
|
Qual é o nome do jogador com o maior número de votos?
|
997
|
SELECT Occupation, COUNT(*) FROM player GROUP BY Occupation
|
Show different occupations along with the number of players in each occupation.
|
CREATE TABLE player (Occupation VARCHAR)
|
Mostrar diferentes ocupações, juntamente com o número de jogadores em cada ocupação.
|
998
|
SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1
|
Please show the most common occupation of players.
|
CREATE TABLE player (Occupation VARCHAR)
|
Por favor, mostre a ocupação mais comum de jogadores.
|
999
|
SELECT Residence FROM player GROUP BY Residence HAVING COUNT(*) >= 2
|
Show the residences that have at least two players.
|
CREATE TABLE player (Residence VARCHAR)
|
Mostre as residências que têm pelo menos dois jogadores.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.