Required output:
declare @Sibling int
set @Sibling = 101
;with Objects as
(
select ObjectId from ObjectSiblingMap
where SiblingId = @Sibling
)
,Siblings as
(
select ObjectId,SiblingId from ObjectSiblingMap
where ObjectId in
(select ObjectId from Objects)
)
select * from Siblings