db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
cre_Doc_Tracking_DB | select employee_id from employees where employee_name = 'ebba' | Question: what is the id for the employee called ebba? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_Description. All_D... | what is the id for the employee called ebba? |
cre_Doc_Tracking_DB | select employee_id from employees where employee_name = 'ebba' | Question: show the id of the employee named ebba. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_Description. All_Docume... | show the id of the employee named ebba. |
cre_Doc_Tracking_DB | select employee_name from employees where role_code = 'hr' | Question: show the names of all the employees with role 'hr'. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_Description... | show the names of all the employees with role 'hr'. |
cre_Doc_Tracking_DB | select employee_name from employees where role_code = 'hr' | Question: which employees have the role with code 'hr'? find their names. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role... | which employees have the role with code 'hr'? find their names. |
cre_Doc_Tracking_DB | select role_code , count(*) from employees group by role_code | Question: show all role codes and the number of employees in each role. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_D... | show all role codes and the number of employees in each role. |
cre_Doc_Tracking_DB | select role_code , count(*) from employees group by role_code | Question: what is the code of each role and the number of employees in each role? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Na... | what is the code of each role and the number of employees in each role? |
cre_Doc_Tracking_DB | select role_code from employees group by role_code order by count(*) desc limit 1 | Question: what is the role code with the largest number of employees? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_Des... | what is the role code with the largest number of employees? |
cre_Doc_Tracking_DB | select role_code from employees group by role_code order by count(*) desc limit 1 | Question: find the code of the role that have the most employees. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_Descrip... | find the code of the role that have the most employees. |
cre_Doc_Tracking_DB | select role_code from employees group by role_code having count(*) >= 3 | Question: show all role codes with at least 3 employees. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_Description. All... | show all role codes with at least 3 employees. |
cre_Doc_Tracking_DB | select role_code from employees group by role_code having count(*) >= 3 | Question: what are the roles with three or more employees? give me the role codes. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_N... | what are the roles with three or more employees? give me the role codes. |
cre_Doc_Tracking_DB | select role_code from employees group by role_code order by count(*) asc limit 1 | Question: show the role code with the least employees. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_Description. All_D... | show the role code with the least employees. |
cre_Doc_Tracking_DB | select role_code from employees group by role_code order by count(*) asc limit 1 | Question: what is the role with the smallest number of employees? find the role codes. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Ro... | what is the role with the smallest number of employees? find the role codes. |
cre_Doc_Tracking_DB | select t2.role_name , t2.role_description from employees as t1 join roles as t2 on t1.role_code = t2.role_code where t1.employee_name = 'ebba' | Question: what is the role name and role description for employee called ebba? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name,... | what is the role name and role description for employee called ebba? |
cre_Doc_Tracking_DB | select t2.role_name , t2.role_description from employees as t1 join roles as t2 on t1.role_code = t2.role_code where t1.employee_name = 'ebba' | Question: show the name and description of the role played by the employee named ebba. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Ro... | show the name and description of the role played by the employee named ebba. |
cre_Doc_Tracking_DB | select t1.employee_name from employees as t1 join roles as t2 on t1.role_code = t2.role_code where t2.role_name = 'editor' | Question: show the names of employees with role name editor. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_Description.... | show the names of employees with role name editor. |
cre_Doc_Tracking_DB | select t1.employee_name from employees as t1 join roles as t2 on t1.role_code = t2.role_code where t2.role_name = 'editor' | Question: find the names of all the employees whose the role name is 'editor'. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name,... | find the names of all the employees whose the role name is 'editor'. |
cre_Doc_Tracking_DB | select t1.employee_id from employees as t1 join roles as t2 on t1.role_code = t2.role_code where t2.role_name = 'human resource' or t2.role_name = 'manager' | Question: show the employee ids for all employees with role name 'human resource' or 'manager'. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role... | show the employee ids for all employees with role name 'human resource' or 'manager'. |
cre_Doc_Tracking_DB | select t1.employee_id from employees as t1 join roles as t2 on t1.role_code = t2.role_code where t2.role_name = 'human resource' or t2.role_name = 'manager' | Question: what are the employee ids of the employees whose role name is 'human resource' or 'manager'? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles ... | what are the employee ids of the employees whose role name is 'human resource' or 'manager'? |
cre_Doc_Tracking_DB | select distinct location_code from document_locations | Question: what are the different location codes for documents? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_Descriptio... | what are the different location codes for documents? |
cre_Doc_Tracking_DB | select distinct location_code from document_locations | Question: give me all the distinct location codes for documents. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_Descript... | give me all the distinct location codes for documents. |
cre_Doc_Tracking_DB | select t3.location_name from all_documents as t1 join document_locations as t2 on t1.document_id = t2.document_id join ref_locations as t3 on t2.location_code = t3.location_code where t1.document_name = 'robin cv' | Question: show the location name for document 'robin cv'. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_Description. Al... | show the location name for document 'robin cv'. |
cre_Doc_Tracking_DB | select t3.location_name from all_documents as t1 join document_locations as t2 on t1.document_id = t2.document_id join ref_locations as t3 on t2.location_code = t3.location_code where t1.document_name = 'robin cv' | Question: what is the location name of the document 'robin cv'? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_Descripti... | what is the location name of the document 'robin cv'? |
cre_Doc_Tracking_DB | select location_code , date_in_location_from , date_in_locaton_to from document_locations | Question: show the location code, the starting date and ending data in that location for all the documents. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. R... | show the location code, the starting date and ending data in that location for all the documents. |
cre_Doc_Tracking_DB | select location_code , date_in_location_from , date_in_locaton_to from document_locations | Question: what are each document's location code, and starting date and ending data in that location? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -... | what are each document's location code, and starting date and ending data in that location? |
cre_Doc_Tracking_DB | select t1.date_in_location_from , t1.date_in_locaton_to from document_locations as t1 join all_documents as t2 on t1.document_id = t2.document_id where t2.document_name = 'robin cv' | Question: what is 'the date in location from' and 'the date in location to' for the document with name 'robin cv'? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Descrip... | what is 'the date in location from' and 'the date in location to' for the document with name 'robin cv'? |
cre_Doc_Tracking_DB | select t1.date_in_location_from , t1.date_in_locaton_to from document_locations as t1 join all_documents as t2 on t1.document_id = t2.document_id where t2.document_name = 'robin cv' | Question: find the starting date and ending data in location for the document named 'robin cv'. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role... | find the starting date and ending data in location for the document named 'robin cv'. |
cre_Doc_Tracking_DB | select location_code , count(*) from document_locations group by location_code | Question: show the location codes and the number of documents in each location. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name... | show the location codes and the number of documents in each location. |
cre_Doc_Tracking_DB | select location_code , count(*) from document_locations group by location_code | Question: what is the code of each location and the number of documents in that location? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code,... | what is the code of each location and the number of documents in that location? |
cre_Doc_Tracking_DB | select location_code from document_locations group by location_code order by count(*) desc limit 1 | Question: what is the location code with the most documents? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_Description.... | what is the location code with the most documents? |
cre_Doc_Tracking_DB | select location_code from document_locations group by location_code order by count(*) desc limit 1 | Question: find the code of the location with the largest number of documents. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, ... | find the code of the location with the largest number of documents. |
cre_Doc_Tracking_DB | select location_code from document_locations group by location_code having count(*) >= 3 | Question: show the location codes with at least 3 documents. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_Description.... | show the location codes with at least 3 documents. |
cre_Doc_Tracking_DB | select location_code from document_locations group by location_code having count(*) >= 3 | Question: what are the codes of the locations with at least three documents? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, R... | what are the codes of the locations with at least three documents? |
cre_Doc_Tracking_DB | select t2.location_name , t1.location_code from document_locations as t1 join ref_locations as t2 on t1.location_code = t2.location_code group by t1.location_code order by count(*) asc limit 1 | Question: show the location name and code with the least documents. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_Descr... | show the location name and code with the least documents. |
cre_Doc_Tracking_DB | select t2.location_name , t1.location_code from document_locations as t1 join ref_locations as t2 on t1.location_code = t2.location_code group by t1.location_code order by count(*) asc limit 1 | Question: what are the name and code of the location with the smallest number of documents? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Cod... | what are the name and code of the location with the smallest number of documents? |
cre_Doc_Tracking_DB | select t2.employee_name , t3.employee_name from documents_to_be_destroyed as t1 join employees as t2 on t1.destruction_authorised_by_employee_id = t2.employee_id join employees as t3 on t1.destroyed_by_employee_id = t3.employee_id; | Question: what are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location... | what are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents? |
cre_Doc_Tracking_DB | select t2.employee_name , t3.employee_name from documents_to_be_destroyed as t1 join employees as t2 on t1.destruction_authorised_by_employee_id = t2.employee_id join employees as t3 on t1.destroyed_by_employee_id = t3.employee_id; | Question: list the names of the employees who authorized the destruction of documents and the employees who destroyed the corresponding documents. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code,... | list the names of the employees who authorized the destruction of documents and the employees who destroyed the corresponding documents. |
cre_Doc_Tracking_DB | select destruction_authorised_by_employee_id , count(*) from documents_to_be_destroyed group by destruction_authorised_by_employee_id | Question: show the id of each employee and the number of document destruction authorised by that employee. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Ro... | show the id of each employee and the number of document destruction authorised by that employee. |
cre_Doc_Tracking_DB | select destruction_authorised_by_employee_id , count(*) from documents_to_be_destroyed group by destruction_authorised_by_employee_id | Question: what are the id of each employee and the number of document destruction authorised by that employee? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description... | what are the id of each employee and the number of document destruction authorised by that employee? |
cre_Doc_Tracking_DB | select destroyed_by_employee_id , count(*) from documents_to_be_destroyed group by destroyed_by_employee_id | Question: show the employee ids and the number of documents destroyed by each employee. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, R... | show the employee ids and the number of documents destroyed by each employee. |
cre_Doc_Tracking_DB | select destroyed_by_employee_id , count(*) from documents_to_be_destroyed group by destroyed_by_employee_id | Question: what are the id of each employee and the number of document destroyed by that employee? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Ro... | what are the id of each employee and the number of document destroyed by that employee? |
cre_Doc_Tracking_DB | select employee_id from employees except select destruction_authorised_by_employee_id from documents_to_be_destroyed | Question: show the ids of the employees who don't authorize destruction for any document. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code,... | show the ids of the employees who don't authorize destruction for any document. |
cre_Doc_Tracking_DB | select employee_id from employees except select destruction_authorised_by_employee_id from documents_to_be_destroyed | Question: which employees do not authorize destruction for any document? give me their employee ids. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles ->... | which employees do not authorize destruction for any document? give me their employee ids. |
cre_Doc_Tracking_DB | select distinct destruction_authorised_by_employee_id from documents_to_be_destroyed | Question: show the ids of all employees who have authorized destruction. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_... | show the ids of all employees who have authorized destruction. |
cre_Doc_Tracking_DB | select distinct destruction_authorised_by_employee_id from documents_to_be_destroyed | Question: what are the ids of all the employees who authorize document destruction? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_... | what are the ids of all the employees who authorize document destruction? |
cre_Doc_Tracking_DB | select distinct destroyed_by_employee_id from documents_to_be_destroyed | Question: show the ids of all employees who have destroyed a document. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_De... | show the ids of all employees who have destroyed a document. |
cre_Doc_Tracking_DB | select distinct destroyed_by_employee_id from documents_to_be_destroyed | Question: what are the ids of all the employees who have destroyed documents? | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, ... | what are the ids of all the employees who have destroyed documents? |
cre_Doc_Tracking_DB | select employee_id from employees except select destroyed_by_employee_id from documents_to_be_destroyed | Question: show the ids of all employees who don't destroy any document. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name, Role_D... | show the ids of all employees who don't destroy any document. |
cre_Doc_Tracking_DB | select employee_id from employees except select destroyed_by_employee_id from documents_to_be_destroyed | Question: which employees do not destroy any document? find their employee ids. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Description. Roles -> Role_Code, Role_Name... | which employees do not destroy any document? find their employee ids. |
cre_Doc_Tracking_DB | select destroyed_by_employee_id from documents_to_be_destroyed union select destruction_authorised_by_employee_id from documents_to_be_destroyed | Question: show the ids of all employees who have either destroyed a document or made an authorization to do this. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_Descript... | show the ids of all employees who have either destroyed a document or made an authorization to do this. |
cre_Doc_Tracking_DB | select destroyed_by_employee_id from documents_to_be_destroyed union select destruction_authorised_by_employee_id from documents_to_be_destroyed | Question: which employees have either destroyed a document or made an authorization to do so? return their employee ids. | Tables: Ref_Document_Types -> Document_Type_Code, Document_Type_Name, Document_Type_Description. Ref_Calendar -> Calendar_Date, Day_Number. Ref_Locations -> Location_Code, Location_Name, Location_D... | which employees have either destroyed a document or made an authorization to do so? return their employee ids. |
club_1 | select count(*) from club | Question: how many clubs are there? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | how many clubs are there? |
club_1 | select count(*) from club | Question: count the total number of clubs. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | count the total number of clubs. |
club_1 | select clubname from club | Question: what are the names of all clubs? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | what are the names of all clubs? |
club_1 | select clubname from club | Question: give me the name of each club. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | give me the name of each club. |
club_1 | select count(*) from student | Question: how many students are there? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | how many students are there? |
club_1 | select count(*) from student | Question: count the total number of students. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | count the total number of students. |
club_1 | select distinct fname from student | Question: what are the first names of all the students? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | what are the first names of all the students? |
club_1 | select distinct fname from student | Question: find each student's first name. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | find each student's first name. |
club_1 | select t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'bootup baltimore' | Question: find the last names of the members of the club 'bootup baltimore'. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = St... | find the last names of the members of the club 'bootup baltimore'. |
club_1 | select t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'bootup baltimore' | Question: who are the members of the club named 'bootup baltimore'? give me their last names. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_o... | who are the members of the club named 'bootup baltimore'? give me their last names. |
club_1 | select t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'hopkins student enterprises' | Question: who are the members of the club named 'hopkins student enterprises'? show the last name. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Mem... | who are the members of the club named 'hopkins student enterprises'? show the last name. |
club_1 | select t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'hopkins student enterprises' | Question: return the last name for the members of the club named 'hopkins student enterprises'. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member... | return the last name for the members of the club named 'hopkins student enterprises'. |
club_1 | select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'tennis club' | Question: how many members does the club 'tennis club' has? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | how many members does the club 'tennis club' has? |
club_1 | select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'tennis club' | Question: count the members of the club 'tennis club'. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | count the members of the club 'tennis club'. |
club_1 | select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'pen and paper gaming' | Question: find the number of members of club 'pen and paper gaming'. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.St... | find the number of members of club 'pen and paper gaming'. |
club_1 | select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'pen and paper gaming' | Question: how many people have membership in the club 'pen and paper gaming'? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = S... | how many people have membership in the club 'pen and paper gaming'? |
club_1 | select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = 'linda' and t3.lname = 'smith' | Question: how many clubs does 'linda smith' belong to? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | how many clubs does 'linda smith' belong to? |
club_1 | select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = 'linda' and t3.lname = 'smith' | Question: how many clubs does 'linda smith' have membership for? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | how many clubs does 'linda smith' have membership for? |
club_1 | select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = 'tracy' and t3.lname = 'kim' | Question: find the number of clubs where 'tracy kim' is a member. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID... | find the number of clubs where 'tracy kim' is a member. |
club_1 | select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = 'tracy' and t3.lname = 'kim' | Question: for how many clubs is 'tracy kim' a member? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | for how many clubs is 'tracy kim' a member? |
club_1 | select t3.fname , t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'bootup baltimore' and t3.sex = 'f' | Question: find all the female members of club 'bootup baltimore'. show the first name and last name. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, M... | find all the female members of club 'bootup baltimore'. show the first name and last name. |
club_1 | select t3.fname , t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'bootup baltimore' and t3.sex = 'f' | Question: give me the first name and last name for all the female members of the club 'bootup baltimore'. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.Club... | give me the first name and last name for all the female members of the club 'bootup baltimore'. |
club_1 | select t3.fname , t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'hopkins student enterprises' and t3.sex = 'm' | Question: find all the male members of club 'hopkins student enterprises'. show the first name and last name. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.... | find all the male members of club 'hopkins student enterprises'. show the first name and last name. |
club_1 | select t3.fname , t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'hopkins student enterprises' and t3.sex = 'm' | Question: what are the first name and last name of each male member in club 'hopkins student enterprises'? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.Clu... | what are the first name and last name of each male member in club 'hopkins student enterprises'? |
club_1 | select t3.fname , t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'bootup baltimore' and t3.major = '600' | Question: find all members of 'bootup baltimore' whose major is '600'. show the first name and last name. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.Club... | find all members of 'bootup baltimore' whose major is '600'. show the first name and last name. |
club_1 | select t3.fname , t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'bootup baltimore' and t3.major = '600' | Question: which members of 'bootup baltimore' major in '600'? give me their first names and last names. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID... | which members of 'bootup baltimore' major in '600'? give me their first names and last names. |
club_1 | select t1.clubname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.major = '600' group by t1.clubname order by count(*) desc limit 1 | Question: which club has the most members majoring in '600'? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | which club has the most members majoring in '600'? |
club_1 | select t1.clubname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.major = '600' group by t1.clubname order by count(*) desc limit 1 | Question: find the club which has the largest number of members majoring in '600'. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuI... | find the club which has the largest number of members majoring in '600'. |
club_1 | select t1.clubname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.sex = 'f' group by t1.clubname order by count(*) desc limit 1 | Question: find the name of the club that has the most female students. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.... | find the name of the club that has the most female students. |
club_1 | select t1.clubname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.sex = 'f' group by t1.clubname order by count(*) desc limit 1 | Question: which club has the most female students as their members? give me the name of the club. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Memb... | which club has the most female students as their members? give me the name of the club. |
club_1 | select clubdesc from club where clubname = 'tennis club' | Question: what is the description of the club named 'tennis club'? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuI... | what is the description of the club named 'tennis club'? |
club_1 | select clubdesc from club where clubname = 'tennis club' | Question: find the description of the club called 'tennis club'. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | find the description of the club called 'tennis club'. |
club_1 | select clubdesc from club where clubname = 'pen and paper gaming' | Question: find the description of the club 'pen and paper gaming'. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuI... | find the description of the club 'pen and paper gaming'. |
club_1 | select clubdesc from club where clubname = 'pen and paper gaming' | Question: what is the description of the club 'pen and paper gaming'? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.S... | what is the description of the club 'pen and paper gaming'? |
club_1 | select clublocation from club where clubname = 'tennis club' | Question: what is the location of the club named 'tennis club'? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | what is the location of the club named 'tennis club'? |
club_1 | select clublocation from club where clubname = 'tennis club' | Question: where us the club named 'tennis club' located? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | where us the club named 'tennis club' located? |
club_1 | select clublocation from club where clubname = 'pen and paper gaming' | Question: find the location of the club 'pen and paper gaming'. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | find the location of the club 'pen and paper gaming'. |
club_1 | select clublocation from club where clubname = 'pen and paper gaming' | Question: where is the club 'pen and paper gaming' located? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | where is the club 'pen and paper gaming' located? |
club_1 | select clublocation from club where clubname = 'hopkins student enterprises' | Question: where is the club 'hopkins student enterprises' located? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuI... | where is the club 'hopkins student enterprises' located? |
club_1 | select clublocation from club where clubname = 'hopkins student enterprises' | Question: tell me the location of the club 'hopkins student enterprises'. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Stude... | tell me the location of the club 'hopkins student enterprises'. |
club_1 | select clubname from club where clublocation = 'akw' | Question: find the name of all the clubs at 'akw'. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | find the name of all the clubs at 'akw'. |
club_1 | select clubname from club where clublocation = 'akw' | Question: which clubs are located at 'akw'? return the club names. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuI... | which clubs are located at 'akw'? return the club names. |
club_1 | select count(*) from club where clublocation = 'hhh' | Question: how many clubs are located at 'hhh'? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | how many clubs are located at 'hhh'? |
club_1 | select count(*) from club where clublocation = 'hhh' | Question: count the number of clubs located at 'hhh'. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = Student.StuID, | count the number of clubs located at 'hhh'. |
club_1 | select t3.fname , t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'bootup baltimore' and t2.position = 'president' | Question: what are the first and last name of the president of the club 'bootup baltimore'? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_... | what are the first and last name of the president of the club 'bootup baltimore'? |
club_1 | select t3.fname , t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'bootup baltimore' and t2.position = 'president' | Question: who is the president of the club 'bootup baltimore'? give me the first and last name. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member... | who is the president of the club 'bootup baltimore'? give me the first and last name. |
club_1 | select t3.fname , t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'hopkins student enterprises' and t2.position = 'cto' | Question: who is the 'cto' of club 'hopkins student enterprises'? show the first name and last name. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, M... | who is the 'cto' of club 'hopkins student enterprises'? show the first name and last name. |
club_1 | select t3.fname , t3.lname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t1.clubname = 'hopkins student enterprises' and t2.position = 'cto' | Question: find the first name and last name for the 'cto' of the club 'hopkins student enterprises'? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, M... | find the first name and last name for the 'cto' of the club 'hopkins student enterprises'? |
club_1 | select count(distinct t2.position) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid where t1.clubname = 'bootup baltimore' | Question: how many different roles are there in the club 'bootup baltimore'? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID = St... | how many different roles are there in the club 'bootup baltimore'? |
club_1 | select count(distinct t2.position) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid where t1.clubname = 'bootup baltimore' | Question: count the number of different positions in the club 'bootup baltimore'. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Club -> ClubID, ClubName, ClubDesc, ClubLocation. Member_of_club -> StuID, ClubID, Position. | Joins: Member_of_club.ClubID = Club.ClubID, Member_of_club.StuID... | count the number of different positions in the club 'bootup baltimore'. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.