Unnamed: 0
int64 0
78.6k
| answer
stringlengths 18
557
| question
stringlengths 12
244
| context
stringlengths 27
489
| translated_answer
stringlengths 12
992
|
---|---|---|---|---|
2,500 | SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id = T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id = T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type = T4.organisation_type WHERE T2.grant_amount > 5000 AND T4.organisation_type_description = 'Research' | Find out the send dates of the documents with the grant amount of more than 5000 were granted by organisation type described | CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Grants (grant_id VARCHAR, organisation_id VARCHAR, grant_amount VARCHAR); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR); CREATE TABLE documents (sent_date VARCHAR, grant_id VARCHAR) | Descobrir as datas de envio dos documentos com o montante da subvenção de mais de 5000 foram concedidos por tipo de organização descrito |
2,501 | SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Regular' OR T3.grant_amount > 100 | What are the response received dates for the documents described as 'Regular' or granted with more than 100? | CREATE TABLE Documents (response_received_date VARCHAR, document_type_code VARCHAR, grant_id VARCHAR); CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR); CREATE TABLE Grants (grant_id VARCHAR, grant_amount VARCHAR) | Quais são as datas de resposta recebidas para os documentos descritos como "regulares" ou concedidos com mais de 100? |
2,502 | SELECT project_details FROM Projects WHERE NOT project_id IN (SELECT project_id FROM Project_Staff WHERE role_code = 'researcher') | List the project details of the projects which did not hire any staff for a researcher role. | CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR, role_code VARCHAR); CREATE TABLE Project_Staff (project_details VARCHAR, project_id VARCHAR, role_code VARCHAR) | Liste os detalhes do projeto dos projetos que não contrataram nenhum funcionário para uma função de pesquisador. |
2,503 | SELECT T1.task_details, T1.task_id, T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'omnis' UNION SELECT T1.task_details, T1.task_id, T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.project_id HAVING COUNT(*) > 2 | What are the task details, task id and project id for the projects which are detailed as 'omnis' or have more than 2 outcomes? | CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR); CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Tasks (task_details VARCHAR, task_id VARCHAR, project_id VARCHAR) | Quais são os detalhes da tarefa, o ID da tarefa e o ID do projeto para os projetos que são detalhados como "omnis" ou têm mais de 2 resultados? |
2,504 | SELECT date_from, date_to FROM Project_Staff WHERE role_code = 'researcher' | When do all the researcher role staff start to work, and when do they stop working? | CREATE TABLE Project_Staff (date_from VARCHAR, date_to VARCHAR, role_code VARCHAR) | Quando é que toda a equipa de investigadores começa a trabalhar e quando é que param de trabalhar? |
2,505 | SELECT COUNT(DISTINCT role_code) FROM Project_Staff | How many kinds of roles are there for the staff? | CREATE TABLE Project_Staff (role_code VARCHAR) | Quantos tipos de funções existem para o pessoal? |
2,506 | SELECT SUM(grant_amount), organisation_id FROM Grants GROUP BY organisation_id | What is the total amount of grants given by each organisations? Also list the organisation id. | CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER) | Qual é o montante total das subvenções concedidas por cada organização? |
2,507 | SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code = T3.outcome_code WHERE T3.outcome_description LIKE '%Published%' | List the project details of the projects with the research outcome described with the substring 'Published'. | CREATE TABLE Research_outcomes (outcome_code VARCHAR, outcome_description VARCHAR); CREATE TABLE Project_outcomes (project_id VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR) | Liste os detalhes do projeto com o resultado da pesquisa descrito com a substring 'Published'. |
2,508 | SELECT T1.project_id, COUNT(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*) | How many staff does each project has? List the project id and the number in an ascending order. | CREATE TABLE Project_Staff (project_id VARCHAR); CREATE TABLE Projects (project_id VARCHAR) | Quantos funcionários cada projeto tem? Liste o ID do projeto e o número em uma ordem crescente. |
2,509 | SELECT role_description FROM Staff_Roles WHERE role_code = 'researcher' | What is the complete description of the researcher role. | CREATE TABLE Staff_Roles (role_description VARCHAR, role_code VARCHAR) | Qual é a descrição completa do papel do pesquisador? |
2,510 | SELECT date_from FROM Project_Staff ORDER BY date_from LIMIT 1 | When did the first staff for the projects started working? | CREATE TABLE Project_Staff (date_from VARCHAR) | Quando é que os primeiros funcionários dos projetos começaram a trabalhar? |
2,511 | SELECT T1.project_details, T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*) DESC LIMIT 1 | Which project made the most number of outcomes? List the project details and the project id. | CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR) | Qual projeto obteve o maior número de resultados? Liste os detalhes do projeto e o ID do projeto. |
2,512 | SELECT project_details FROM Projects WHERE NOT project_id IN (SELECT project_id FROM Project_outcomes) | Which projects have no outcome? List the project details. | CREATE TABLE Project_outcomes (project_details VARCHAR, project_id VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR) | Quais projetos não têm resultado? Liste os detalhes do projeto. |
2,513 | SELECT T1.organisation_id, T1.organisation_type, T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1 | Which organisation hired the most number of research staff? List the organisation id, type and detail. | CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR, organisation_details VARCHAR); CREATE TABLE Research_Staff (employer_organisation_id VARCHAR) | Qual organização contratou o maior número de pessoal de pesquisa? Liste o ID da organização, o tipo e os detalhes. |
2,514 | SELECT T1.role_description, T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY COUNT(*) DESC LIMIT 1 | Show the role description and the id of the project staff involved in most number of project outcomes? | CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Project_Staff (staff_id VARCHAR, role_code VARCHAR, project_id VARCHAR); CREATE TABLE Staff_Roles (role_description VARCHAR, role_code VARCHAR) | Mostrar a descrição do papel e o ID da equipe do projeto envolvida no maior número de resultados do projeto? |
2,515 | SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%' | Which document type is described with the prefix 'Initial'? | CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR) | Que tipo de documento é descrito com o prefixo 'Initial'? |
2,516 | SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Initial Application' | For grants with both documents described as 'Regular' and documents described as 'Initial Application', list its start date. | CREATE TABLE Grants (grant_start_date VARCHAR, grant_id VARCHAR); CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR); CREATE TABLE Documents (grant_id VARCHAR, document_type_code VARCHAR) | Para subsídios com ambos os documentos descritos como 'Regular' e documentos descritos como 'Initial Application', liste sua data de início. |
2,517 | SELECT grant_id, COUNT(*) FROM Documents GROUP BY grant_id ORDER BY COUNT(*) DESC LIMIT 1 | How many documents can one grant have at most? List the grant id and number. | CREATE TABLE Documents (grant_id VARCHAR) | Quantos documentos uma concessão pode ter no máximo? Liste o ID da concessão e o número. |
2,518 | SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_details = 'quo' | Find the organisation type description of the organisation detailed as 'quo'. | CREATE TABLE Organisations (organisation_type VARCHAR, organisation_details VARCHAR); CREATE TABLE organisation_Types (organisation_type_description VARCHAR, organisation_type VARCHAR) | Encontre a descrição do tipo de organização da organização detalhada como 'quo'. |
2,519 | SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details | What are all the details of the organisations described as 'Sponsor'? Sort the result in an ascending order. | CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR) | Quais são todos os detalhes das organizações descritas como 'Patrocinador'? Classifique o resultado em uma ordem crescente. |
2,520 | SELECT COUNT(*) FROM Project_outcomes WHERE outcome_code = 'Patent' | How many Patent outcomes are generated from all the projects? | CREATE TABLE Project_outcomes (outcome_code VARCHAR) | Quantos resultados de patentes são gerados de todos os projetos? |
2,521 | SELECT COUNT(*) FROM Project_Staff WHERE role_code = 'leader' OR date_from < '1989-04-24 23:51:54' | How many project staff worked as leaders or started working before '1989-04-24 23:51:54'? | CREATE TABLE Project_Staff (role_code VARCHAR, date_from VARCHAR) | Quantos funcionários do projeto trabalharam como líderes ou começaram a trabalhar antes de 1989-04-24 23:51:54? |
2,522 | SELECT date_to FROM Project_Staff ORDER BY date_to DESC LIMIT 1 | What is the last date of the staff leaving the projects? | CREATE TABLE Project_Staff (date_to VARCHAR) | Qual é a última data em que o pessoal deixa os projetos? |
2,523 | SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint' | What are the result description of the project whose detail is 'sint'? | CREATE TABLE Project_outcomes (outcome_code VARCHAR, project_id VARCHAR); CREATE TABLE Research_outcomes (outcome_description VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR) | Qual é a descrição do resultado do projeto cujo detalhe é 'sint'? |
2,524 | SELECT T1.organisation_id, COUNT(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1 | List the organisation id with the maximum outcome count, and the count. | CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Projects (organisation_id VARCHAR, project_id VARCHAR) | Liste o ID da organização com a contagem máxima de resultados e a contagem. |
2,525 | SELECT project_details FROM Projects WHERE organisation_id IN (SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY COUNT(*) DESC LIMIT 1) | List the project details of the projects launched by the organisation | CREATE TABLE Projects (project_details VARCHAR, organisation_id VARCHAR) | Listar os detalhes do projeto dos projetos lançados pela organização |
2,526 | SELECT staff_details FROM Research_Staff ORDER BY staff_details | List the research staff details, and order in ascending order. | CREATE TABLE Research_Staff (staff_details VARCHAR) | Liste os detalhes da equipe de pesquisa e encomende em ordem crescente. |
2,527 | SELECT COUNT(*) FROM Tasks | How many tasks are there in total? | CREATE TABLE Tasks (Id VARCHAR) | Quantas tarefas existem no total? |
2,528 | SELECT COUNT(*), T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id | How many tasks does each project have? List the task count and the project detail. | CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR); CREATE TABLE Tasks (project_id VARCHAR) | Quantas tarefas cada projeto tem? Liste a contagem de tarefas e os detalhes do projeto. |
2,529 | SELECT role_code FROM Project_Staff WHERE date_from > '2003-04-19 15:06:20' AND date_to < '2016-03-15 00:33:18' | What are the staff roles of the staff who | CREATE TABLE Project_Staff (role_code VARCHAR, date_from VARCHAR, date_to VARCHAR) | Quais são as funções do pessoal que |
2,530 | SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code | What are the descriptions of all the project outcomes? | CREATE TABLE Research_outcomes (outcome_description VARCHAR, outcome_code VARCHAR); CREATE TABLE Project_outcomes (outcome_code VARCHAR) | Quais são as descrições de todos os resultados do projeto? |
2,531 | SELECT role_code FROM Project_Staff GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1 | Which role is most common for the staff? | CREATE TABLE Project_Staff (role_code VARCHAR) | Qual é o papel mais comum para o pessoal? |
2,532 | SELECT COUNT(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan' | How many friends does Dan have? | CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR) | Quantos amigos o Dan tem? |
2,533 | SELECT COUNT(*) FROM Person WHERE gender = 'female' | How many females does this network has? | CREATE TABLE Person (gender VARCHAR) | Quantas mulheres essa rede tem? |
2,534 | SELECT AVG(age) FROM Person | What is the average age for all person? | CREATE TABLE Person (age INTEGER) | Qual é a idade média para todas as pessoas? |
2,535 | SELECT COUNT(DISTINCT city) FROM Person | How many different cities are they from? | CREATE TABLE Person (city VARCHAR) | De quantas cidades são diferentes? |
2,536 | SELECT COUNT(DISTINCT job) FROM Person | How many type of jobs do they have? | CREATE TABLE Person (job VARCHAR) | Quantos tipos de empregos eles têm? |
2,537 | SELECT name FROM Person WHERE age = (SELECT MAX(age) FROM person) | Who is the oldest person? | CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE person (name VARCHAR, age INTEGER) | Quem é a pessoa mais velha? |
2,538 | SELECT name FROM Person WHERE job = 'student' AND age = (SELECT MAX(age) FROM person WHERE job = 'student') | Who is the oldest person whose job is student? | CREATE TABLE person (name VARCHAR, job VARCHAR, age INTEGER); CREATE TABLE Person (name VARCHAR, job VARCHAR, age INTEGER) | Quem é a pessoa mais velha cujo trabalho é estudante? |
2,539 | SELECT name FROM Person WHERE gender = 'male' AND age = (SELECT MIN(age) FROM person WHERE gender = 'male') | Who is the youngest male? | CREATE TABLE Person (name VARCHAR, gender VARCHAR, age INTEGER); CREATE TABLE person (name VARCHAR, gender VARCHAR, age INTEGER) | Quem é o homem mais novo? |
2,540 | SELECT age FROM Person WHERE job = 'doctor' AND name = 'Zach' | How old is the doctor named Zach? | CREATE TABLE Person (age VARCHAR, job VARCHAR, name VARCHAR) | Que idade tem o médico chamado Zach? |
2,541 | SELECT name FROM Person WHERE age < 30 | Who is the person whose age is below 30? | CREATE TABLE Person (name VARCHAR, age INTEGER) | Quem é a pessoa cuja idade é inferior a 30 anos? |
2,542 | SELECT COUNT(*) FROM Person WHERE age > 30 AND job = 'engineer' | How many people whose age is greater 30 and job is engineer? | CREATE TABLE Person (age VARCHAR, job VARCHAR) | Quantas pessoas cuja idade é maior que 30 anos e trabalho é engenheiro? |
2,543 | SELECT AVG(age), gender FROM Person GROUP BY gender | What is the average age for each gender? | CREATE TABLE Person (gender VARCHAR, age INTEGER) | Qual é a idade média para cada sexo? |
2,544 | SELECT AVG(age), job FROM Person GROUP BY job | What is average age for different job title? | CREATE TABLE Person (job VARCHAR, age INTEGER) | Qual é a idade média para um cargo diferente? |
2,545 | SELECT AVG(age), job FROM Person WHERE gender = 'male' GROUP BY job | What is average age of male for different job title? | CREATE TABLE Person (job VARCHAR, age INTEGER, gender VARCHAR) | Qual é a idade média do sexo masculino para diferentes cargos? |
2,546 | SELECT MIN(age), job FROM Person GROUP BY job | What is minimum age for different job title? | CREATE TABLE Person (job VARCHAR, age INTEGER) | Qual é a idade mínima para um cargo diferente? |
2,547 | SELECT COUNT(*), gender FROM Person WHERE age < 40 GROUP BY gender | Find the number of people who is under 40 for each gender. | CREATE TABLE Person (gender VARCHAR, age INTEGER) | Encontre o número de pessoas com menos de 40 anos para cada gênero. |
2,548 | SELECT name FROM Person WHERE age > (SELECT MIN(age) FROM person WHERE job = 'engineer') ORDER BY age | Find the name of people whose age is greater than any engineer sorted by their age. | CREATE TABLE Person (name VARCHAR, age INTEGER, job VARCHAR); CREATE TABLE person (name VARCHAR, age INTEGER, job VARCHAR) | Encontre o nome de pessoas cuja idade é maior do que qualquer engenheiro classificado por sua idade. |
2,549 | SELECT COUNT(*) FROM Person WHERE age > (SELECT MAX(age) FROM person WHERE job = 'engineer') | Find the number of people whose age is greater than all engineers. | CREATE TABLE Person (age INTEGER, job VARCHAR); CREATE TABLE person (age INTEGER, job VARCHAR) | Encontre o número de pessoas cuja idade é maior do que todos os engenheiros. |
2,550 | SELECT name, job FROM Person ORDER BY name | list the name, job title of all people ordered by their names. | CREATE TABLE Person (name VARCHAR, job VARCHAR) | listar o nome, o cargo de todas as pessoas ordenadas por seus nomes. |
2,551 | SELECT name FROM Person ORDER BY age DESC | Find the names of all person sorted in the descending order using age. | CREATE TABLE Person (name VARCHAR, age VARCHAR) | Encontre os nomes de todas as pessoas classificadas na ordem decrescente usando a idade. |
2,552 | SELECT name FROM Person WHERE gender = 'male' ORDER BY age | Find the name and age of all males in order of their age. | CREATE TABLE Person (name VARCHAR, gender VARCHAR, age VARCHAR) | Encontre o nome e a idade de todos os homens por ordem de idade. |
2,553 | SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' | Find the name and age of the person who is a friend of both Dan and Alice. | CREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR) | Encontre o nome e a idade da pessoa que é amiga de Dan e Alice. |
2,554 | SELECT DISTINCT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' OR T2.friend = 'Alice' | Find the name and age of the person who is a friend of Dan or Alice. | CREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR) | Encontre o nome e a idade da pessoa que é amiga de Dan ou Alice. |
2,555 | SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30) | Find the name of the person who has friends with age above 40 and under age 30? | CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR) | Encontre o nome da pessoa que tem amigos com mais de 40 anos e menos de 30 anos? |
2,556 | SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30) | Find the name of the person who has friends with age above 40 but not under age 30? | CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR) | Encontre o nome da pessoa que tem amigos com mais de 40 anos, mas não com menos de 30 anos? |
2,557 | SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student' | Find the name of the person who has no student friends. | CREATE TABLE Person (name VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE person (name VARCHAR) | Encontre o nome da pessoa que não tem amigos estudantes. |
2,558 | SELECT name FROM PersonFriend GROUP BY name HAVING COUNT(*) = 1 | Find the person who has exactly one friend. | CREATE TABLE PersonFriend (name VARCHAR) | Encontre a pessoa que tem exatamente um amigo. |
2,559 | SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Bob' | Who are the friends of Bob? | CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR) | Quem são os amigos de Bob? |
2,560 | SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob' | Find the name of persons who are friends with Bob. | CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR) | Encontre o nome das pessoas que são amigas de Bob. |
2,561 | SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach' AND T1.gender = 'female' | Find the names of females who are friends with Zach | CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR, gender VARCHAR) | Encontre os nomes das mulheres que são amigas de Zach |
2,562 | SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female' | Find the female friends of Alice. | CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR, gender VARCHAR) | Encontre as amigas de Alice. |
2,563 | SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' AND T1.job = 'doctor' | Find the male friend of Alice whose job is a doctor? | CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR, job VARCHAR, gender VARCHAR) | Encontrar o amigo masculino de Alice cujo trabalho é um médico? |
2,564 | SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.city = 'new york city' | Who has a friend that is from new york city? | CREATE TABLE Person (name VARCHAR, city VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR) | Quem tem um amigo que é da cidade de Nova York? |
2,565 | SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age < (SELECT AVG(age) FROM person) | Who has friends that are younger than the average age? | CREATE TABLE person (age INTEGER); CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR) | Quem tem amigos que são mais jovens do que a média de idade? |
2,566 | SELECT DISTINCT T2.name, T2.friend, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT AVG(age) FROM person) | Who has friends that are older than the average age? Print their friends and their ages as well | CREATE TABLE person (age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR) | Quem tem amigos que são mais velhos do que a idade média? Imprima seus amigos e suas idades também |
2,567 | SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT MAX(YEAR) FROM PersonFriend WHERE name = 'Zach') | Who is the friend of Zach with longest year relationship? | CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR, YEAR INTEGER) | Quem é o amigo de Zach com o relacionamento mais longo? |
2,568 | SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = (SELECT MAX(YEAR) FROM PersonFriend WHERE name = 'Zach') | What is the age of the friend of Zach with longest year relationship? | CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR, year VARCHAR); CREATE TABLE PersonFriend (YEAR INTEGER, name VARCHAR); CREATE TABLE Person (age VARCHAR, name VARCHAR) | Qual é a idade do amigo de Zach com relacionamento mais longo? |
2,569 | SELECT name FROM PersonFriend WHERE friend = 'Alice' AND YEAR = (SELECT MIN(YEAR) FROM PersonFriend WHERE friend = 'Alice') | Find the name of persons who are friends with Alice for the shortest years. | CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, YEAR INTEGER) | Encontre o nome das pessoas que são amigas de Alice para os anos mais curtos. |
2,570 | SELECT T1.name, T1.age, T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT MAX(YEAR) FROM PersonFriend WHERE friend = 'Alice') | Find the name, age, and job title of persons who are friends with Alice for the longest years. | CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, year VARCHAR); CREATE TABLE Person (name VARCHAR, age VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (YEAR INTEGER, friend VARCHAR) | Encontre o nome, a idade e o cargo das pessoas que são amigas de Alice por mais tempo. |
2,571 | SELECT name FROM person EXCEPT SELECT name FROM PersonFriend | Who is the person that has no friend? | CREATE TABLE PersonFriend (name VARCHAR); CREATE TABLE person (name VARCHAR) | Quem é a pessoa que não tem amigo? |
2,572 | SELECT T2.name, AVG(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY AVG(T1.age) DESC LIMIT 1 | Which person whose friends have the oldest average age? | CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR) | Qual pessoa cujos amigos têm a idade média mais antiga? |
2,573 | SELECT COUNT(DISTINCT name) FROM PersonFriend WHERE NOT friend IN (SELECT name FROM person WHERE city = 'Austin') | What is the total number of people who has no friend living in the city of Austin. | CREATE TABLE person (name VARCHAR, friend VARCHAR, city VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, city VARCHAR) | Qual é o número total de pessoas que não têm nenhum amigo vivendo na cidade de Austin? |
2,574 | SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name = T2.name JOIN PersonFriend AS T3 ON T1.friend = T3.name JOIN PersonFriend AS T4 ON T3.friend = T4.name WHERE T2.name = 'Alice' AND T4.name <> 'Alice' | Find Alice's friends of friends. | CREATE TABLE PersonFriend (name VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR) | Encontre os amigos de amigos da Alice. |
2,575 | SELECT COUNT(*) FROM member | How many members are there? | CREATE TABLE member (Id VARCHAR) | Quantos membros existem? |
2,576 | SELECT Name FROM member ORDER BY Name | List the names of members in ascending alphabetical order. | CREATE TABLE member (Name VARCHAR) | Listar os nomes dos membros em ordem alfabética ascendente. |
2,577 | SELECT Name, Country FROM member | What are the names and countries of members? | CREATE TABLE member (Name VARCHAR, Country VARCHAR) | Quais são os nomes e países dos membros? |
2,578 | SELECT Name FROM member WHERE Country = "United States" OR Country = "Canada" | Show the names of members whose country is "United States" or "Canada". | CREATE TABLE member (Name VARCHAR, Country VARCHAR) | Mostre os nomes dos membros cujo país é "Estados Unidos" ou "Canadá". |
2,579 | SELECT Country, COUNT(*) FROM member GROUP BY Country | Show the different countries and the number of members from each. | CREATE TABLE member (Country VARCHAR) | Mostrar os diferentes países e o número de membros de cada um. |
2,580 | SELECT Country FROM member GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1 | Show the most common country across members. | CREATE TABLE member (Country VARCHAR) | Mostre o país mais comum entre os membros. |
2,581 | SELECT Country FROM member GROUP BY Country HAVING COUNT(*) > 2 | Which countries have more than two members? | CREATE TABLE member (Country VARCHAR) | Quais países têm mais de dois membros? |
2,582 | SELECT Leader_Name, College_Location FROM college | Show the leader names and locations of colleges. | CREATE TABLE college (Leader_Name VARCHAR, College_Location VARCHAR) | Mostre os nomes dos líderes e locais das faculdades. |
2,583 | SELECT T2.Name, T1.Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID | Show the names of members and names of colleges they go to. | CREATE TABLE member (Name VARCHAR, College_ID VARCHAR); CREATE TABLE college (Name VARCHAR, College_ID VARCHAR) | Mostre os nomes dos membros e os nomes das faculdades que eles frequentam. |
2,584 | SELECT T2.Name, T1.College_Location FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID ORDER BY T2.Name | Show the names of members and the locations of colleges they go to in ascending alphabetical order of member names. | CREATE TABLE member (Name VARCHAR, College_ID VARCHAR); CREATE TABLE college (College_Location VARCHAR, College_ID VARCHAR) | Mostre os nomes dos membros e os locais das faculdades para as quais eles vão em ordem alfabética ascendente de nomes de membros. |
2,585 | SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID WHERE T2.Country = "Canada" | Show the distinct leader names of colleges associated with members from country "Canada". | CREATE TABLE college (Leader_Name VARCHAR, College_ID VARCHAR); CREATE TABLE member (College_ID VARCHAR, Country VARCHAR) | Mostre os diferentes nomes de líderes de faculdades associadas a membros do país "Canadá". |
2,586 | SELECT T1.Name, T2.Decoration_Theme FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID | Show the names of members and the decoration themes they have. | CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE round (Decoration_Theme VARCHAR, Member_ID VARCHAR) | Mostre os nomes dos membros e os temas de decoração que eles têm. |
2,587 | SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID WHERE T2.Rank_in_Round > 3 | Show the names of members that have a rank in round higher than 3. | CREATE TABLE round (Member_ID VARCHAR, Rank_in_Round INTEGER); CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR) | Mostre os nomes dos membros que têm uma classificação em rodada superior a 3. |
2,588 | SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY Rank_in_Round | Show the names of members in ascending order of their rank in rounds. | CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE round (Member_ID VARCHAR) | Mostre os nomes dos membros em ordem crescente de sua classificação em rodadas. |
2,589 | SELECT Name FROM member WHERE NOT Member_ID IN (SELECT Member_ID FROM round) | List the names of members who did not participate in any round. | CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE round (Name VARCHAR, Member_ID VARCHAR) | Liste os nomes dos membros que não participaram de nenhuma rodada. |
2,590 | SELECT document_name, access_count FROM documents ORDER BY document_name | Find the name and access counts of all documents, in alphabetic order of the document name. | CREATE TABLE documents (document_name VARCHAR, access_count VARCHAR) | Encontre o nome e as contagens de acesso de todos os documentos, em ordem alfabética do nome do documento. |
2,591 | SELECT document_name, access_count FROM documents ORDER BY access_count DESC LIMIT 1 | Find the name of the document that has been accessed the greatest number of times, as well as the count of how many times it has been accessed? | CREATE TABLE documents (document_name VARCHAR, access_count VARCHAR) | Encontre o nome do documento que foi acessado o maior número de vezes, bem como a contagem de quantas vezes ele foi acessado? |
2,592 | SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 4 | Find the types of documents with more than 4 documents. | CREATE TABLE documents (document_type_code VARCHAR) | Encontre os tipos de documentos com mais de 4 documentos. |
2,593 | SELECT SUM(access_count) FROM documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 1 | Find the total access count of all documents in the most popular document type. | CREATE TABLE documents (access_count INTEGER, document_type_code VARCHAR) | Encontre a contagem total de acesso de todos os documentos no tipo de documento mais popular. |
2,594 | SELECT AVG(access_count) FROM documents | What is the average access count of documents? | CREATE TABLE documents (access_count INTEGER) | Qual é a contagem média de acesso dos documentos? |
2,595 | SELECT t2.document_structure_description FROM documents AS t1 JOIN document_structures AS t2 ON t1.document_structure_code = t2.document_structure_code GROUP BY t1.document_structure_code ORDER BY COUNT(*) DESC LIMIT 1 | What is the structure of the document with the least number of accesses? | CREATE TABLE document_structures (document_structure_description VARCHAR, document_structure_code VARCHAR); CREATE TABLE documents (document_structure_code VARCHAR) | Qual é a estrutura do documento com o menor número de acessos? |
2,596 | SELECT document_type_code FROM documents WHERE document_name = "David CV" | What is the type of the document named "David CV"? | CREATE TABLE documents (document_type_code VARCHAR, document_name VARCHAR) | Qual é o tipo de documento chamado "David CV"? |
2,597 | SELECT document_name FROM documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 3 INTERSECT SELECT document_name FROM documents GROUP BY document_structure_code ORDER BY COUNT(*) DESC LIMIT 3 | Find the list of documents that are both in the most three popular type and have the most three popular structure. | CREATE TABLE documents (document_name VARCHAR, document_type_code VARCHAR, document_structure_code VARCHAR) | Encontre a lista de documentos que estão nos três tipos mais populares e têm a estrutura mais popular. |
2,598 | SELECT document_type_code FROM documents GROUP BY document_type_code HAVING SUM(access_count) > 10000 | What document types do have more than 10000 total access number. | CREATE TABLE documents (document_type_code VARCHAR, access_count INTEGER) | Quais tipos de documentos têm mais de 10000 números de acesso total? |
2,599 | SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = "David CV" | What are all the section titles of the document named "David CV"? | CREATE TABLE documents (document_code VARCHAR, document_name VARCHAR); CREATE TABLE document_sections (section_title VARCHAR, document_code VARCHAR) | Quais são todos os títulos de seção do documento chamado "David CV"? |
Subsets and Splits