[Schema (values) (types)]: | company_1 |  works_on : essn (text) , pno (number) , hours (number) | employee : fname (text) , minit (number) , lname (number) , ssn (number) , bdate (text) , address (text) , sex (text) , salary (number) , super_ssn (text) , dno (text) | department : dname (text) , dnumber (number) , mgr_ssn (number) , mgr_start_date (number) | project : pname (text) , pnumber (number) , plocation (number) , dnum (number) | dependent : essn (text) , dependent_name (number) , sex (number) , bdate (number) , relationship (text) | dept_locations : dnumber (text) , dlocation (number);
[Primary Keys]: works_on : essn, employee : ssn, department : dnumber, project : pnumber, dependent : essn, dept_locations : dnumber
[Foreign Keys]:

Question: List all department names ordered by their starting date.
SQL: SELECT dname FROM department ORDER BY mgr_start_date

Question: find all dependent names who have a spouse relation with some employee.
SQL: SELECT Dependent_name FROM dependent WHERE relationship  =  'Spouse'

Question: how many female dependents are there?
SQL: SELECT count(*) FROM dependent WHERE sex  =  'F'

Question: Find the names of departments that are located in Houston.
SQL: SELECT t1.dname FROM department AS t1 JOIN dept_locations AS t2 ON t1.dnumber  =  t2.dnumber WHERE t2.dlocation  =  'Houston'

Question: Return the first names and last names of employees who earn more than 30000 in salary.
SQL: SELECT fname ,  lname FROM employee WHERE salary  >  30000

Question: Find the number of employees of each gender whose salary is lower than 50000.
SQL: SELECT count(*) ,  sex FROM employee WHERE salary  <  50000 GROUP BY sex

Question: list the first and last names, and the addresses of all employees in the ascending order of their birth date.
SQL: SELECT fname ,  lname ,  address FROM employee ORDER BY Bdate