Question: What are the staff ids and genders of all staffs whose job title is Department Manager?
Schema: create table staff_department_assignments (staff_id varchar, job_title_code varchar, PRIMARY KEY (staff_id)); create table staff (staff_id varchar, staff_gender varchar, PRIMARY KEY (staff_id))
SQL: select t1.staff_id, t1.staff_gender from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id where t2.job_title_code = "department manager"