select isbn, count(*)
from(
     select isbn
     from dbo.borrow b,
          dbo.library l
     where l.lname = b.lname
     and l.city='New York'
    )  subq1
group by isbn
having count(*) >=3