question: Find the number of employees of each gender whose salary is lower than 50000.
#1 return employees 
#2 return salaries of  #1 
#3 return #1 where  #2 is  lower than than  50000 
#4 return genders of  #3 
#5 return number of #3 for each #4