how many projects has stuff worked as leaders total?
select count ( distinct project_id ) from project_staff where role_code = 'leader'
What are other detail about those projects?
select other_details from project_staff where role_code = 'leader' and date_from < '1989-04-24 23:51:54'