-- Database schema
| Scientists : SSN [ INT ] primary_key , Name [ TEXT ] | Projects : Code [ TEXT ] primary_key , Name [ TEXT ] , Hours [ INT ] | AssignedTo : Scientist [ INT ] primary_key AssignedTo.Scientist = Scientists.SSN , Project [ TEXT ] AssignedTo.Project = Projects.Code |
-- -- What are the names of projects that require more than 300 hours, and how many scientists are assigned to each?

SELECT count(*) ,  T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project WHERE T1.hours  >  300 GROUP BY T1.name;