select m.title, m.director.lname
from movies m
where m.has_actor(m.director) > 0;

select m.title, m.director.lname
from movies m
where m.has_actor(m.director) = 0;