I am currently making a SEDE query to determine which questions from a specific user have made it onto the Hot Network Questions list and when. While I can get the specific questions, I am unable to figure out how to get the date when those questions became/were no longer a Hot Network Question.
From this answer, I have knowledge of how to get questions that were on the HNQ list for a specific user (this can be done by searching for questions with PostTypeHistoryId=52
that were asked by a certain user), but am unable to find anything on how to find when said questions hit/disappeared from the HNQ list, despite searching through the hot-questions and data-explorer tags. (along with doing a few Google searches)
This is what I currently have:
DECLARE @UserId INT = ##UserId##
SELECT DISTINCT p.Id AS [Post Link], p.PostTypeId, u.DisplayName AS [User Link], p.CreationDate
FROM Posts p
JOIN Users u ON p.OwnerUserId = u.Id
JOIN PostHistory ph ON p.Id = ph.PostId
WHERE (OwnerUserId = @UserId) AND (ph.PostHistoryTypeId = 52)
ORDER BY p.Id ASC
My question is: How should I go about extending my code as to include the times for which a question became/was no longer hot with SEDE, or is there a resource that I could use on how to do this?
CreationDate
. And 53 is when it became not HNQ, so you needph.PoshHistoryTypeId IN (52, 53)
. Do you have an example user you already know has at least one such question?