Q&A for users, experts, and developers of the Tezos blockchain project
SELECT a.Id AS [Post Link], a.CreationDate FROM PostHistory AS ph INNER JOIN Posts AS a ON a.ParentId = ph.PostId CROSS APPLY OPENJSON(ph.Text, '$.Voters') WITH (Id INTEGER '$.Id') c WHERE ph.PostHistoryTypeId = 10 -- Closed AND a.OwnerUserId = ##UserId:int## AND c.Id = ##UserId:int## ORDER BY a.CreationDate DESC