Find the number of employees of each gender whose salary is lower than 50000.
select count(*), sex from employee where salary < 50000 group by sex