instruction: Get all review tasks for a specific post ID or user's posts. For some of the post types, it probably isn't possible to have review tasks on them, but they're listed anyway.
response: SELECT 'site://review/' + CASE ReviewTaskTypes.Id WHEN 1 THEN 'suggested-edits' WHEN 2 THEN 'close' WHEN 3 THEN 'low-quality-posts' WHEN 4 THEN 'first-posts' WHEN 5 THEN 'late-answers' WHEN 6 THEN 'reopen' END + '/' + CAST(ReviewTasks.Id AS TEXT) + '| ' + ReviewTaskTypes.Name, PostId AS "post_link", ReviewTasks.CreationDate FROM ReviewTasks INNER JOIN ReviewTaskTypes ON ReviewTaskTypes.Id = ReviewTasks.ReviewTaskTypeId INNER JOIN Posts ON ReviewTasks.PostId = Posts.Id WHERE ReviewTasks.PostId = '##PostId##' OR Posts.OwnerUserId = '##UserID##' ORDER BY ReviewTasks.CreationDate DESC