COALESCE((SELECT
SUM(CASE WHEN v2.VoteTypeId = 1 THEN 2 ELSE 0 END)
FROM Votes AS v2
INNER JOIN Posts AS p2 ON v2.PostId = p2.Id
INNER JOIN Posts AS p3 ON p2.Id = p3.AcceptedAnswerId
WHERE p3.OwnerUserId = ##UserId##),0) AS ReputationFromAcceptingAnswers
This times out for me, although it shouldn't be many posts. Why?