instruction: Approved/rejected/pending suggested edits by the given user.
response: SELECT OwnerUserId AS "user_link", Comment, 'site://suggested-edits/' + CAST(Id AS TEXT) AS "suggested_edit", PostId AS "post_link", CreationDate, ApprovalDate, RejectionDate, CASE WHEN NOT ApprovalDate IS NULL THEN 'Approved' WHEN NOT RejectionDate IS NULL THEN 'Rejected' WHEN ((ApprovalDate IS NULL) AND (RejectionDate IS NULL)) THEN 'Pending' END FROM SuggestedEdits WHERE (OwnerUserId = '##userid##') AND ((('##appr?0##' = 1) AND (NOT ApprovalDate IS NULL)) OR (('##rej?1##' = 1) AND (NOT RejectionDate IS NULL)) OR (('##appr##' = 0) AND (ApprovalDate IS NULL) AND ('##rej##' = 0) AND (RejectionDate IS NULL)))