In T-SQL i have a query like this:
select * from ClientSite where ClientSiteId in ( select ClientSiteId from BuildingService where JobId = \'CEB9E217-3B38-4B8