Q&A for the craft of professional writing, including fiction, non-fiction, technical, scholarly, and commercial writing
SELECT voters.Id AS [User Link], COUNT(*) AS [Number of Posts] FROM PostHistory AS ph CROSS APPLY OPENJSON(ph.Text, '$.Voters') WITH (Id INTEGER '$.Id') voters CROSS APPLY OPENJSON(ph.Text, '$.OriginalQuestionIds') qid WHERE ph.PostHistoryTypeId = 10 AND qid.value = ##DupeTargetId:int## GROUP BY voters.Id ORDER BY [Number of Posts] DESC