I want to select the persons only who are having pets.
when I execute the query
var query = from p in people join
this can also be done using lambda expressions in a single line of code...
IEnumerable peopleWithPets = people.Where(x => pets.Any(y => y.Owner == x));