Q&A for active researchers, academics and students of physics
DECLARE @UserId int = ##UserId## select * from Posts a inner join Posts b on a.ParentId = b.Id inner join Posts c on c.ParentId = b.Id where a.PostTypeId = 2 and a.OwnerUserId = @UserId and b.PostTypeId = 1 and b.AcceptedAnswerId is NULL and c.PostTypeId = 2 and c.OwnerUserId <> @UserId;