How long has zach been friends with each of them?
SELECT name,friend,year from PersonFriend  where name = 'Zach'
how long refers to the duration or period which could be represented by a year or a difference between years; 'friends with each of them' refers to the relationships Zach has with other people;