Q&A for professional and enthusiast programmers
SELECT JSON_VALUE(Text, '$.OriginalQuestionIds[0]') FROM PostHistory AS ph WHERE ph.PostId = 7558022 AND ph.PostHistoryTypeId = 10 -- question closed AND ph.Comment = 101 -- as a duplicate