SELECT count(*) ,  T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn  =  T2.scientist GROUP BY T1.name
What are the names of the scientists, and how many projects are each of them working on?
create table Scientists (
  SSN int,
  Name Char(30) not null,
  Primary Key (SSN)
);
Create table Projects (
  Code Char(4),
  Name Char(50) not null,
  Hours int,
  Primary Key (Code)
);
create table AssignedTo (
  Scientist int not null,
  Project char(4) not null,
  Primary Key (Scientist, Project),
  Foreign Key (Scientist) references Scientists (SSN),
  Foreign Key (Project) references Projects (Code)
);
INSERT INTO Scientists(SSN,Name) 
INSERT INTO Projects ( Code,Name,Hours)
INSERT INTO AssignedTo ( Scientist, Project)