Unnamed: 0
int64
0
78.6k
answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
translated_answer
stringlengths
12
992
1,600
SELECT T1.name, T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY COUNT(*) DESC LIMIT 1
What is the storm name and max speed which affected the greatest number of regions?
CREATE TABLE storm (name VARCHAR, max_speed VARCHAR, storm_id VARCHAR); CREATE TABLE affected_region (storm_id VARCHAR)
Qual é o nome da tempestade e a velocidade máxima que afetou o maior número de regiões?
1,601
SELECT name FROM storm WHERE NOT storm_id IN (SELECT storm_id FROM affected_region)
Show the name of storms which don't have affected region in record.
CREATE TABLE affected_region (name VARCHAR, storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)
Mostre o nome das tempestades que não afetaram a região no registro.
1,602
SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING SUM(T2.number_city_affected) >= 10
Show storm name with at least two regions and 10 cities affected.
CREATE TABLE affected_region (storm_id VARCHAR, number_city_affected INTEGER); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)
Mostrar o nome da tempestade com pelo menos duas regiões e 10 cidades afetadas.
1,603
SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2
Show all storm names except for those with at least two affected regions.
CREATE TABLE storm (name VARCHAR); CREATE TABLE affected_region (storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)
Mostrar todos os nomes de tempestades, exceto aqueles com pelo menos duas regiões afetadas.
1,604
SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10
What are the region names affected by the storm with a number of deaths of least 10?
CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE storm (storm_id VARCHAR, number_deaths VARCHAR)
Quais são os nomes das regiões afetadas pela tempestade com um número de mortes de pelo menos 10?
1,605
SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark'
Show all storm names affecting region "Denmark".
CREATE TABLE region (region_id VARCHAR, region_name VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)
Mostrar todos os nomes de tempestades que afetam a região "Dinamarca".
1,606
SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING COUNT(*) >= 2
Show the region name with at least two storms.
CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR)
Mostre o nome da região com pelo menos duas tempestades.
1,607
SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1
Find the names of the regions which were affected by the storm that killed the greatest number of people.
CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE storm (storm_id VARCHAR, Number_Deaths VARCHAR)
Encontre os nomes das regiões que foram afetadas pela tempestade que matou o maior número de pessoas.
1,608
SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Albania'
Find the name of the storm that affected both Afghanistan and Albania regions.
CREATE TABLE storm (Name VARCHAR, storm_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE region (region_id VARCHAR, Region_name VARCHAR)
Encontre o nome da tempestade que afetou as regiões do Afeganistão e da Albânia.
1,609
SELECT COUNT(*) FROM county
How many counties are there in total?
CREATE TABLE county (Id VARCHAR)
Quantos municípios existem no total?
1,610
SELECT County_name, Population FROM county
Show the county name and population of all counties.
CREATE TABLE county (County_name VARCHAR, Population VARCHAR)
Mostre o nome do condado e a população de todos os condados.
1,611
SELECT AVG(Population) FROM county
Show the average population of all counties.
CREATE TABLE county (Population INTEGER)
Mostrar a população média de todos os condados.
1,612
SELECT MAX(Population), MIN(Population) FROM county
Return the maximum and minimum population among all counties.
CREATE TABLE county (Population INTEGER)
Retornar a população máxima e mínima entre todos os condados.
1,613
SELECT DISTINCT District FROM election
Show all the distinct districts for elections.
CREATE TABLE election (District VARCHAR)
Mostrar todos os distritos distintos para as eleições.
1,614
SELECT Zip_code FROM county WHERE County_name = "Howard"
Show the zip code of the county with name "Howard".
CREATE TABLE county (Zip_code VARCHAR, County_name VARCHAR)
Mostre o código postal do condado com o nome "Howard".
1,615
SELECT Delegate FROM election WHERE District = 1
Show the delegate from district 1 in election.
CREATE TABLE election (Delegate VARCHAR, District VARCHAR)
Mostre o delegado do distrito 1 na eleição.
1,616
SELECT Delegate, Committee FROM election
Show the delegate and committee information of elections.
CREATE TABLE election (Delegate VARCHAR, Committee VARCHAR)
Mostre ao delegado e à comissão informações sobre as eleições.
1,617
SELECT COUNT(DISTINCT Governor) FROM party
How many distinct governors are there?
CREATE TABLE party (Governor VARCHAR)
Quantos governadores distintos existem?
1,618
SELECT Lieutenant_Governor, Comptroller FROM party WHERE Party = "Democratic"
Show the lieutenant governor and comptroller from the democratic party.
CREATE TABLE party (Lieutenant_Governor VARCHAR, Comptroller VARCHAR, Party VARCHAR)
Mostre ao vice-governador e à controladora do partido democrático.
1,619
SELECT DISTINCT YEAR FROM party WHERE Governor = "Eliot Spitzer"
In which distinct years was the governor "Eliot Spitzer"?
CREATE TABLE party (YEAR VARCHAR, Governor VARCHAR)
Em que anos foi o governador Eliot Spitzer?
1,620
SELECT * FROM election
Show all the information about election.
CREATE TABLE election (Id VARCHAR)
Mostre todas as informações sobre a eleição.
1,621
SELECT T2.Delegate, T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District
Show the delegates and the names of county they belong to.
CREATE TABLE election (Delegate VARCHAR, District VARCHAR); CREATE TABLE county (County_name VARCHAR, County_id VARCHAR)
Mostre os delegados e os nomes do condado a que pertencem.
1,622
SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000
Which delegates are from counties with population smaller than 100000?
CREATE TABLE election (Delegate VARCHAR, District VARCHAR); CREATE TABLE county (County_id VARCHAR, Population INTEGER)
Quais delegados são de condados com população menor que 100000?
1,623
SELECT COUNT(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000
How many distinct delegates are from counties with population larger than 50000?
CREATE TABLE election (Delegate VARCHAR, District VARCHAR); CREATE TABLE county (County_id VARCHAR, Population INTEGER)
Quantos delegados distintos são de condados com população superior a 50000?
1,624
SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = "Appropriations"
What are the names of the county that the delegates on "Appropriations" committee belong to?
CREATE TABLE election (District VARCHAR, Committee VARCHAR); CREATE TABLE county (County_name VARCHAR, County_id VARCHAR)
Quais são os nomes do condado a que pertencem os delegados do comitê de "Apropriações"?
1,625
SELECT T1.Delegate, T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID
Show the delegates and the names of the party they belong to.
CREATE TABLE election (Delegate VARCHAR, Party VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)
Mostre os delegados e os nomes do partido a que pertencem.
1,626
SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1
Who were the governors of the parties associated with delegates from district 1?
CREATE TABLE party (Governor VARCHAR, Party_ID VARCHAR); CREATE TABLE election (Party VARCHAR, District VARCHAR)
Quem eram os governadores dos partidos associados aos delegados do distrito 1?
1,627
SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2
Who were the comptrollers of the parties associated with the delegates from district 1 or district 2?
CREATE TABLE party (Comptroller VARCHAR, Party_ID VARCHAR); CREATE TABLE election (Party VARCHAR, District VARCHAR)
Quem eram os participantes dos partidos associados aos delegados do distrito 1 ou do distrito 2?
1,628
SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic"
Return all the committees that have delegates from Democratic party.
CREATE TABLE election (Committee VARCHAR, Party VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Party VARCHAR)
Devolver todos os comitês que têm delegados do Partido Democrata.
1,629
SELECT T1.County_name, COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id
Show the name of each county along with the corresponding number of delegates from that county.
CREATE TABLE election (District VARCHAR); CREATE TABLE county (County_name VARCHAR, County_id VARCHAR)
Mostre o nome de cada condado, juntamente com o número correspondente de delegados desse condado.
1,630
SELECT T2.Party, COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party
Show the name of each party and the corresponding number of delegates from that party.
CREATE TABLE election (Party VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)
Mostre o nome de cada parte e o número correspondente de delegados desse partido.
1,631
SELECT County_name FROM county ORDER BY Population
Return the names of all counties sorted by population in ascending order.
CREATE TABLE county (County_name VARCHAR, Population VARCHAR)
Retornar os nomes de todos os condados classificados por população em ordem crescente.
1,632
SELECT County_name FROM county ORDER BY County_name DESC
Return the names of all counties sorted by county name in descending alphabetical order.
CREATE TABLE county (County_name VARCHAR)
Retornar os nomes de todos os condados classificados pelo nome do condado em ordem alfabética decrescente.
1,633
SELECT County_name FROM county ORDER BY Population DESC LIMIT 1
Show the name of the county with the biggest population.
CREATE TABLE county (County_name VARCHAR, Population VARCHAR)
Mostre o nome do município com a maior população.
1,634
SELECT County_name FROM county ORDER BY Population LIMIT 3
Show the 3 counties with the smallest population.
CREATE TABLE county (County_name VARCHAR, Population VARCHAR)
Mostre os três condados com a menor população.
1,635
SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2
Show the names of counties that have at least two delegates.
CREATE TABLE election (District VARCHAR); CREATE TABLE county (County_name VARCHAR, County_id VARCHAR)
Mostre os nomes dos condados que têm pelo menos dois delegados.
1,636
SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2
Show the name of the party that has at least two records.
CREATE TABLE party (Party VARCHAR)
Mostre o nome da festa que tem pelo menos dois registros.
1,637
SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1
Show the name of the party that has the most delegates.
CREATE TABLE election (Party VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)
Mostre o nome do partido que tem mais delegados.
1,638
SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1
Show the people that have been governor the most times.
CREATE TABLE party (Governor VARCHAR)
Mostre às pessoas que têm sido governador mais vezes.
1,639
SELECT Comptroller, COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1
Show the people that have been comptroller the most times and the corresponding number of times.
CREATE TABLE party (Comptroller VARCHAR)
Mostre às pessoas que mais vezes foram controladoras e o número correspondente de vezes.
1,640
SELECT Party FROM party WHERE NOT Party_ID IN (SELECT Party FROM election)
What are the names of parties that do not have delegates in election?
CREATE TABLE election (Party VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)
Quais são os nomes dos partidos que não têm delegados nas eleições?
1,641
SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Appropriations" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Economic Matters"
What are the names of parties that have both delegates on "Appropriations" committee and
CREATE TABLE election (Party VARCHAR, Committee VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)
Quais são os nomes dos partidos que têm ambos os delegados no comitê de "Apropriações" e
1,642
SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Liberal"
Which committees have delegates from both democratic party and liberal party?
CREATE TABLE election (Committee VARCHAR, Party VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Party VARCHAR)
Quais comitês têm delegados do partido democrático e do partido liberal?
1,643
SELECT COUNT(*) FROM journalist
How many journalists are there?
CREATE TABLE journalist (Id VARCHAR)
Quantos jornalistas existem?
1,644
SELECT Name FROM journalist ORDER BY Years_working
List the names of journalists in ascending order of years working.
CREATE TABLE journalist (Name VARCHAR, Years_working VARCHAR)
Liste os nomes dos jornalistas em ordem crescente de anos de trabalho.
1,645
SELECT Nationality, Age FROM journalist
What are the nationalities and ages of journalists?
CREATE TABLE journalist (Nationality VARCHAR, Age VARCHAR)
Quais são as nacionalidades e idades dos jornalistas?
1,646
SELECT Name FROM journalist WHERE Nationality = "England" OR Nationality = "Wales"
Show the names of journalists from "England" or "Wales".
CREATE TABLE journalist (Name VARCHAR, Nationality VARCHAR)
Mostre os nomes dos jornalistas de "Inglaterra" ou "Países Baixos".
1,647
SELECT AVG(Years_working) FROM journalist
What is the average number of years spent working as a journalist?
CREATE TABLE journalist (Years_working INTEGER)
Qual é o número médio de anos de trabalho como jornalista?
1,648
SELECT Nationality FROM journalist ORDER BY Years_working DESC LIMIT 1
What is the nationality of the journalist with the largest number of years working?
CREATE TABLE journalist (Nationality VARCHAR, Years_working VARCHAR)
Qual é a nacionalidade do jornalista com o maior número de anos de trabalho?
1,649
SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality
Show the different nationalities and the number of journalists of each nationality.
CREATE TABLE journalist (Nationality VARCHAR)
Mostrar as diferentes nacionalidades e o número de jornalistas de cada nacionalidade.
1,650
SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Show the most common nationality for journalists.
CREATE TABLE journalist (Nationality VARCHAR)
Mostre a nacionalidade mais comum para os jornalistas.
1,651
SELECT Nationality FROM journalist WHERE Years_working > 10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working < 3
Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working.
CREATE TABLE journalist (Nationality VARCHAR, Years_working INTEGER)
Mostre às nações que têm jornalistas com mais de 10 anos de trabalho e jornalistas com menos de 3 anos de trabalho.
1,652
SELECT Date, Name, venue FROM event ORDER BY Event_Attendance DESC
Show the dates, places, and names of events in descending order of the attendance.
CREATE TABLE event (Date VARCHAR, Name VARCHAR, venue VARCHAR, Event_Attendance VARCHAR)
Mostre as datas, lugares e nomes dos eventos em ordem decrescente da participação.
1,653
SELECT T3.Name, T2.Date FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID
Show the names of journalists and the dates of the events they reported.
CREATE TABLE journalist (Name VARCHAR, journalist_ID VARCHAR); CREATE TABLE news_report (Event_ID VARCHAR, journalist_ID VARCHAR); CREATE TABLE event (Date VARCHAR, Event_ID VARCHAR)
Mostre os nomes dos jornalistas e as datas dos eventos que eles relataram.
1,654
SELECT T3.Name, T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID ORDER BY T2.Event_Attendance
Show the names of journalists and the names of the events they reported in ascending order
CREATE TABLE journalist (Name VARCHAR, journalist_ID VARCHAR); CREATE TABLE news_report (Event_ID VARCHAR, journalist_ID VARCHAR); CREATE TABLE event (Name VARCHAR, Event_ID VARCHAR, Event_Attendance VARCHAR)
Mostrar os nomes dos jornalistas e os nomes dos eventos que relataram em ordem crescente
1,655
SELECT T3.Name, COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name
Show the names of journalists and the number of events they reported.
CREATE TABLE journalist (Name VARCHAR, journalist_ID VARCHAR); CREATE TABLE news_report (Event_ID VARCHAR, journalist_ID VARCHAR); CREATE TABLE event (Event_ID VARCHAR)
Mostre os nomes dos jornalistas e o número de eventos que eles relataram.
1,656
SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name HAVING COUNT(*) > 1
Show the names of journalists that have reported more than one event.
CREATE TABLE journalist (Name VARCHAR, journalist_ID VARCHAR); CREATE TABLE news_report (Event_ID VARCHAR, journalist_ID VARCHAR); CREATE TABLE event (Event_ID VARCHAR)
Mostre os nomes dos jornalistas que relataram mais de um evento.
1,657
SELECT Name FROM journalist WHERE NOT journalist_ID IN (SELECT journalist_ID FROM news_report)
List the names of journalists who have not reported any event.
CREATE TABLE journalist (Name VARCHAR, journalist_ID VARCHAR); CREATE TABLE news_report (Name VARCHAR, journalist_ID VARCHAR)
Liste os nomes dos jornalistas que não relataram nenhum evento.
1,658
SELECT AVG(Event_Attendance), MAX(Event_Attendance) FROM event
what are the average and maximum attendances of all events?
CREATE TABLE event (Event_Attendance INTEGER)
Quais são os atendimentos médios e máximos de todos os eventos?
1,659
SELECT AVG(t1.age), AVG(Years_working), t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id = t2.journalist_id GROUP BY t2.work_type
Find the average age and experience working length of journalists working on different role type.
CREATE TABLE news_report (work_type VARCHAR, journalist_id VARCHAR); CREATE TABLE journalist (age INTEGER, journalist_id VARCHAR)
Encontre a idade média e a experiência de trabalho dos jornalistas que trabalham em diferentes tipos de papéis.
1,660
SELECT venue, name FROM event ORDER BY Event_Attendance DESC LIMIT 2
List the event venues and names that have the top 2 most number of people attended.
CREATE TABLE event (venue VARCHAR, name VARCHAR, Event_Attendance VARCHAR)
Liste os locais do evento e os nomes que têm o maior número de pessoas atendidas.
1,661
SELECT ResName FROM Restaurant
Show me all the restaurants.
CREATE TABLE Restaurant (ResName VARCHAR)
Mostra-me todos os restaurantes.
1,662
SELECT Address FROM Restaurant WHERE ResName = "Subway"
What is the address of the restaurant Subway?
CREATE TABLE Restaurant (Address VARCHAR, ResName VARCHAR)
Qual é o endereço do restaurante Subway?
1,663
SELECT Rating FROM Restaurant WHERE ResName = "Subway"
What is the rating of the restaurant Subway?
CREATE TABLE Restaurant (Rating VARCHAR, ResName VARCHAR)
Qual é a classificação do restaurante Subway?
1,664
SELECT ResTypeName FROM Restaurant_Type
List all restaurant types.
CREATE TABLE Restaurant_Type (ResTypeName VARCHAR)
Liste todos os tipos de restaurantes.
1,665
SELECT ResTypeDescription FROM Restaurant_Type WHERE ResTypeName = "Sandwich"
What is the description of the restaurant type Sandwich?
CREATE TABLE Restaurant_Type (ResTypeDescription VARCHAR, ResTypeName VARCHAR)
Qual é a descrição do tipo de restaurante Sandwich?
1,666
SELECT ResName, Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1
Which restaurants have highest rating? List the restaurant name and its rating.
CREATE TABLE Restaurant (ResName VARCHAR, Rating VARCHAR)
Quais restaurantes têm a classificação mais alta? Listar o nome do restaurante e sua classificação.
1,667
SELECT Age FROM Student WHERE Fname = "Linda" AND Lname = "Smith"
What is the age of student Linda Smith?
CREATE TABLE Student (Age VARCHAR, Fname VARCHAR, Lname VARCHAR)
Qual é a idade da estudante Linda Smith?
1,668
SELECT Sex FROM Student WHERE Fname = "Linda" AND Lname = "Smith"
What is the gender of the student Linda Smith?
CREATE TABLE Student (Sex VARCHAR, Fname VARCHAR, Lname VARCHAR)
Qual é o sexo da estudante Linda Smith?
1,669
SELECT Fname, Lname FROM Student WHERE Major = 600
List all students' first names and last names who majored in 600.
CREATE TABLE Student (Fname VARCHAR, Lname VARCHAR, Major VARCHAR)
Liste os primeiros nomes e sobrenomes de todos os alunos que se formaram em 600.
1,670
SELECT city_code FROM Student WHERE Fname = "Linda" AND Lname = "Smith"
Which city does student Linda Smith live in?
CREATE TABLE Student (city_code VARCHAR, Fname VARCHAR, Lname VARCHAR)
Em que cidade vive a estudante Linda Smith?
1,671
SELECT COUNT(*) FROM Student WHERE Advisor = 1121
Advisor 1121 has how many students?
CREATE TABLE Student (Advisor VARCHAR)
O 1121 tem quantos alunos?
1,672
SELECT Advisor, COUNT(*) FROM Student GROUP BY Advisor ORDER BY COUNT(Advisor) DESC LIMIT 1
Which Advisor has most of students? List advisor and the number of students.
CREATE TABLE Student (Advisor VARCHAR)
Qual conselheiro tem a maioria dos alunos? Lista de conselheiros e o número de alunos.
1,673
SELECT Major, COUNT(*) FROM Student GROUP BY Major ORDER BY COUNT(Major) LIMIT 1
Which major has least number of students? List the major and the number of students.
CREATE TABLE Student (Major VARCHAR)
Qual maior tem o menor número de alunos? Liste o maior e o número de alunos.
1,674
SELECT Major, COUNT(*) FROM Student GROUP BY Major HAVING COUNT(Major) BETWEEN 2 AND 30
Which major has between 2 and 30 number of students? List major and the number of students.
CREATE TABLE Student (Major VARCHAR)
Qual major tem entre 2 e 30 número de alunos? Lista maior e o número de alunos.
1,675
SELECT Fname, Lname FROM Student WHERE Age > 18 AND Major = 600
Which student's age is older than 18 and is majoring in 600? List each student's first and last name.
CREATE TABLE Student (Fname VARCHAR, Lname VARCHAR, Age VARCHAR, Major VARCHAR)
Qual aluno tem mais de 18 anos e está se formando em 600? Listar o primeiro e último nome de cada aluno.
1,676
SELECT Fname, Lname FROM Student WHERE Age > 18 AND Major <> 600 AND Sex = 'F'
List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.
CREATE TABLE Student (Fname VARCHAR, Lname VARCHAR, Sex VARCHAR, Age VARCHAR, Major VARCHAR)
Listar todas as estudantes do sexo feminino com idade superior a 18 anos que não está se formando em 600. Listar o primeiro nome e sobrenome dos alunos.
1,677
SELECT COUNT(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID = Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich'
How many restaurant is the Sandwich type restaurant?
CREATE TABLE Type_Of_Restaurant (Id VARCHAR); CREATE TABLE Restaurant (Id VARCHAR); CREATE TABLE Restaurant_Type (Id VARCHAR)
Quantos restaurantes é o restaurante do tipo Sandwich?
1,678
SELECT SUM(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith"
How long does student Linda Smith spend on the restaurant in total?
CREATE TABLE Visits_Restaurant (Spent INTEGER); CREATE TABLE Student (Spent INTEGER)
Quanto tempo a estudante Linda Smith gasta no restaurante no total?
1,679
SELECT COUNT(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway"
How many times has the student Linda Smith visited Subway?
CREATE TABLE Visits_Restaurant (Id VARCHAR); CREATE TABLE Student (Id VARCHAR); CREATE TABLE Restaurant (Id VARCHAR)
Quantas vezes a estudante Linda Smith visitou o Subway?
1,680
SELECT TIME FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway"
When did Linda Smith visit Subway?
CREATE TABLE Restaurant (TIME VARCHAR); CREATE TABLE Visits_Restaurant (TIME VARCHAR); CREATE TABLE Student (TIME VARCHAR)
Quando Linda Smith visitou o metrô?
1,681
SELECT Restaurant.ResName, SUM(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY SUM(Visits_Restaurant.Spent) LIMIT 1
At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.
CREATE TABLE Visits_Restaurant (Id VARCHAR); CREATE TABLE Restaurant (Id VARCHAR)
Em que restaurante os alunos gastaram menos tempo? Listar restaurante e o tempo que os alunos gastaram no total.
1,682
SELECT Student.Fname, Student.Lname FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID GROUP BY Student.StuID ORDER BY COUNT(*) DESC LIMIT 1
Which student visited restaurant most often? List student's first name and last name.
CREATE TABLE Visits_Restaurant (Id VARCHAR); CREATE TABLE Student (Id VARCHAR)
Qual aluno visitou o restaurante com mais frequência? Liste o primeiro nome e o sobrenome do aluno.
1,683
SELECT actual_order_id FROM actual_orders WHERE order_status_code = 'Success'
Find the ids of orders whose status is 'Success'.
CREATE TABLE actual_orders (actual_order_id VARCHAR, order_status_code VARCHAR)
Encontre os IDs de ordens cujo status é "Sucesso".
1,684
SELECT t1.product_name, t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY COUNT(*) DESC LIMIT 1
Find the name and price of the product that has been ordered the greatest number of times.
CREATE TABLE products (product_name VARCHAR, product_price VARCHAR, product_id VARCHAR); CREATE TABLE regular_order_products (product_id VARCHAR)
Encontre o nome e o preço do produto que foi encomendado o maior número de vezes.
1,685
SELECT COUNT(*) FROM customers
Find the number of customers in total.
CREATE TABLE customers (Id VARCHAR)
Encontre o número de clientes no total.
1,686
SELECT COUNT(DISTINCT payment_method) FROM customers
How many different payment methods are there?
CREATE TABLE customers (payment_method VARCHAR)
Quantos métodos de pagamento diferentes existem?
1,687
SELECT truck_details FROM trucks ORDER BY truck_licence_number
Show the details of all trucks in the order of their license number.
CREATE TABLE trucks (truck_details VARCHAR, truck_licence_number VARCHAR)
Mostre os detalhes de todos os caminhões na ordem de seu número de licença.
1,688
SELECT product_name FROM products ORDER BY product_price DESC LIMIT 1
Find the name of the most expensive product.
CREATE TABLE products (product_name VARCHAR, product_price VARCHAR)
Encontre o nome do produto mais caro.
1,689
SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California'
Find the names of customers who are not living in the state of California.
CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR); CREATE TABLE addresses (address_id VARCHAR, state_province_county VARCHAR)
Encontre os nomes dos clientes que não vivem no estado da Califórnia.
1,690
SELECT customer_email, customer_name FROM customers WHERE payment_method = 'Visa'
List the names and emails of customers who payed by Visa card.
CREATE TABLE customers (customer_email VARCHAR, customer_name VARCHAR, payment_method VARCHAR)
Listar os nomes e e-mails dos clientes que pagaram com cartão Visa.
1,691
SELECT t1.customer_name, t1.customer_phone FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California'
Find the names and phone numbers of customers living in California state.
CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE addresses (address_id VARCHAR, state_province_county VARCHAR)
Encontre os nomes e números de telefone dos clientes que vivem no estado da Califórnia.
1,692
SELECT state_province_county FROM addresses WHERE NOT address_id IN (SELECT employee_address_id FROM Employees)
Find the states which do not have any employee in their record.
CREATE TABLE Employees (state_province_county VARCHAR, address_id VARCHAR, employee_address_id VARCHAR); CREATE TABLE addresses (state_province_county VARCHAR, address_id VARCHAR, employee_address_id VARCHAR)
Encontre os estados que não têm nenhum funcionário em seu registro.
1,693
SELECT customer_name, customer_phone, customer_email FROM Customers ORDER BY date_became_customer
List the names, phone numbers, and emails of all customers sorted by their dates of becoming customers.
CREATE TABLE Customers (customer_name VARCHAR, customer_phone VARCHAR, customer_email VARCHAR, date_became_customer VARCHAR)
Liste os nomes, números de telefone e e-mails de todos os clientes classificados por suas datas de se tornarem clientes.
1,694
SELECT customer_name FROM Customers ORDER BY date_became_customer LIMIT 5
Find the name of the first 5 customers.
CREATE TABLE Customers (customer_name VARCHAR, date_became_customer VARCHAR)
Encontre o nome dos 5 primeiros clientes.
1,695
SELECT payment_method FROM Customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1
Find the payment method that is used most frequently.
CREATE TABLE Customers (payment_method VARCHAR)
Encontre o método de pagamento que é usado com mais frequência.
1,696
SELECT route_name FROM Delivery_Routes ORDER BY route_name
List the names of all routes in alphabetic order.
CREATE TABLE Delivery_Routes (route_name VARCHAR)
Listar os nomes de todas as rotas em ordem alfabética.
1,697
SELECT t1.route_name FROM Delivery_Routes AS t1 JOIN Delivery_Route_Locations AS t2 ON t1.route_id = t2.route_id GROUP BY t1.route_id ORDER BY COUNT(*) DESC LIMIT 1
Find the name of route that has the highest number of deliveries.
CREATE TABLE Delivery_Routes (route_name VARCHAR, route_id VARCHAR); CREATE TABLE Delivery_Route_Locations (route_id VARCHAR)
Encontre o nome da rota que tem o maior número de entregas.
1,698
SELECT t2.state_province_county, COUNT(*) FROM customer_addresses AS t1 JOIN addresses AS t2 ON t1.address_id = t2.address_id GROUP BY t2.state_province_county
List the state names and the number of customers living in each state.
CREATE TABLE customer_addresses (address_id VARCHAR); CREATE TABLE addresses (state_province_county VARCHAR, address_id VARCHAR)
Liste os nomes dos estados e o número de clientes que vivem em cada estado.
1,699
SELECT COUNT(*) FROM authors
How many authors are there?
CREATE TABLE authors (Id VARCHAR)
Quantos autores existem?