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 PostId, PostHistory.CreationDate AS PostClosureDate, PostHistory.UserId AS PostClosingUser, PostHistory.Comment AS PostClosureComment, CAST(SUBSTRING( PostHistory.Text, CHARINDEX('Voters',PostHistory.Text)+15, CHARINDEX('Display', PostHistory.Text) -CHARINDEX('Voters',PostHistory.Text)-17 ) AS INT) AS FirstClosingUser FROM PostHistory WHERE PostHistoryTypeId = 10 ORDER BY PostHistory.CreationDate DESC