INSERT INTO wp_commentmeta
(comment_id, meta_key, meta_value)
SELECT x.comment_id, 'comment-option-review',
CASE WHEN CONVERT(x.meta_value, UNSIGNED INTEGER) > 0 AND CONVERT(x.meta_value, UNSIGNED INTEGER) <= 5 THEN 'on'
ELSE NULL
END
FROM wp_commentmeta x
WHERE x.meta_key='wprm-comment-rating'
SELECT * FROM `wp_commentmeta_copy` WHERE meta_key="comment-option-review"