select s.salary from salaries as s
join employees as e on e.emp_no = s.emp_no
where s.to_date = '9999-01-01' and e.gender = 'F'
order by salary desc limit 1
select s.salary from salaries as s
join employees as e on e.emp_no = s.emp_no
where s.to_date = '9999-01-01' and e.gender = 'M'
order by salary desc limit 1