Database: art_1
Question: When did each artist who created less than 4 paintings die ?
SQL:
select t1.deathyear from artists as t1 join paintings as t2 on t1.artistid  =  t2.painterid group by t2.painterid having count(*)  <  4