-- 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 |
-- -- Find the number of projects which each scientist is working on and scientist's name.

SELECT count(*) ,  T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn  =  T2.scientist GROUP BY T1.name;