If you simply want to see the most-viewed questions to which you've supplied a positively-scored answer, you can use this query in SEDE:
SELECT QuestionPosts.Title, QuestionPosts.Id, QuestionPosts.ViewCount
FROM Posts AnswerPosts
JOIN Posts QuestionPosts
ON AnswerPosts.ParentId = QuestionPosts.Id
WHERE AnswerPosts.PostTypeId = 2
AND AnswerPosts.Score > 0
AND AnswerPosts.OwnerUserId = ##UserId##
ORDER BY QuestionPosts.ViewCount DESC
(In the Data Explorer interface, you'll need to use the user ID from your own profile URL to populate the ##UserId##
variable.)
However, this query is a lot more permissive than the actual algorithm. In particular, the real algorithm only considers answers where:
Also meets one or more of the following criteria:
- In the top 3 answers OR
- Is the Accepted Answer OR
- Score >5 OR
- Has at least 20% of the total vote count
We can add in the middle two criteria with the WHERE
predicate:
AND (AnswerPosts.Score > 5 OR
QuestionPosts.AcceptedAnswerId = AnswerPosts.Id)
But this is now more restrictive than the real algorithm. The other two conditions are more complicated and require additional subqueries to pull down all the answers for each question and compare each of your answers to every other answer.