Returns the user Id of the first user to cast a close vote on recently closed questions, ordered by closure timestamp.
Q&A for active researchers, academics and students of physics
SELECT TOP 200 PostHistory.PostId AS [Post Link], -- PostHistory.CreationDate, -- PostHistory.UserId, -- PostHistory.Comment, CHARINDEX('"Voters":[{"Id":',PostHistory.Text) AS 'aaaaa', CHARINDEX(',"DisplayName"',PostHistory.Text) AS 'bbbbb', SUBSTRING( PostHistory.Text, CHARINDEX('Voters',PostHistory.Text)+15, CHARINDEX('Display', PostHistory.Text) -CHARINDEX('Voters',PostHistory.Text)-17 ) AS [User Link], PostHistory.Text FROM PostHistory WHERE PostHistoryTypeId = 10 ORDER BY PostHistory.CreationDate DESC