select subq2.isbn
from
   (
    select isbn, count(*) as total
    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
	) subq2 
