SET STATEMENT max_statement_time = 900 FOR SELECT * FROM (( SELECT 'abwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `abwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `abwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `abwiki_p`.`revision_userindex` AS revs JOIN `abwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `abwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `abwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `abwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6151 ) UNION ( SELECT 'acewiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `acewiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `acewiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `acewiki_p`.`revision_userindex` AS revs JOIN `acewiki_p`.`page` AS page ON (rev_page = page_id) JOIN `acewiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `acewiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `acewiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7715 ) UNION ( SELECT 'afwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `afwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `afwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `afwiki_p`.`revision_userindex` AS revs JOIN `afwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `afwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `afwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `afwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 38402 ) UNION ( SELECT 'afwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `afwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `afwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `afwikibooks_p`.`revision_userindex` AS revs JOIN `afwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `afwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `afwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `afwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1081 ) UNION ( SELECT 'afwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `afwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `afwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `afwikiquote_p`.`revision_userindex` AS revs JOIN `afwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `afwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `afwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `afwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1207 ) UNION ( SELECT 'afwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `afwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `afwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `afwiktionary_p`.`revision_userindex` AS revs JOIN `afwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `afwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `afwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `afwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2308 ) UNION ( SELECT 'akwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `akwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `akwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `akwiki_p`.`revision_userindex` AS revs JOIN `akwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `akwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `akwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `akwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3838 ) UNION ( SELECT 'alswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `alswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `alswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `alswiki_p`.`revision_userindex` AS revs JOIN `alswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `alswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `alswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `alswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 32145 ) UNION ( SELECT 'amwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `amwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `amwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `amwiki_p`.`revision_userindex` AS revs JOIN `amwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `amwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `amwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `amwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 12978 ) UNION ( SELECT 'amwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `amwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `amwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `amwikiquote_p`.`revision_userindex` AS revs JOIN `amwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `amwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `amwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `amwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 785 ) UNION ( SELECT 'amwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `amwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `amwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `amwiktionary_p`.`revision_userindex` AS revs JOIN `amwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `amwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `amwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `amwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1238 ) UNION ( SELECT 'angwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `angwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `angwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `angwiki_p`.`revision_userindex` AS revs JOIN `angwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `angwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `angwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `angwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 30587 ) UNION ( SELECT 'angwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `angwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `angwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `angwikibooks_p`.`revision_userindex` AS revs JOIN `angwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `angwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `angwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `angwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1262 ) UNION ( SELECT 'angwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `angwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `angwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `angwiktionary_p`.`revision_userindex` AS revs JOIN `angwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `angwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `angwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `angwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2320 ) UNION ( SELECT 'anwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `anwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `anwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `anwiki_p`.`revision_userindex` AS revs JOIN `anwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `anwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `anwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `anwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 23432 ) UNION ( SELECT 'anwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `anwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `anwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `anwiktionary_p`.`revision_userindex` AS revs JOIN `anwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `anwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `anwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `anwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1326 ) UNION ( SELECT 'arcwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `arcwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `arcwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `arcwiki_p`.`revision_userindex` AS revs JOIN `arcwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `arcwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `arcwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `arcwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7351 ) UNION ( SELECT 'arwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `arwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `arwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `arwikibooks_p`.`revision_userindex` AS revs JOIN `arwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `arwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `arwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `arwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 11935 ) UNION ( SELECT 'arwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `arwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `arwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `arwikinews_p`.`revision_userindex` AS revs JOIN `arwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `arwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `arwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `arwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6027 ) UNION ( SELECT 'arwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `arwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `arwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `arwikiquote_p`.`revision_userindex` AS revs JOIN `arwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `arwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `arwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `arwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7971 ) UNION ( SELECT 'arwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `arwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `arwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `arwikisource_p`.`revision_userindex` AS revs JOIN `arwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `arwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `arwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `arwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 13385 ) UNION ( SELECT 'arwikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `arwikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `arwikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `arwikiversity_p`.`revision_userindex` AS revs JOIN `arwikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `arwikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `arwikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `arwikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3103 ) UNION ( SELECT 'arwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `arwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `arwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `arwiktionary_p`.`revision_userindex` AS revs JOIN `arwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `arwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `arwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `arwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9582 ) UNION ( SELECT 'arzwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `arzwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `arzwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `arzwiki_p`.`revision_userindex` AS revs JOIN `arzwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `arzwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `arzwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `arzwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 38308 ) UNION ( SELECT 'astwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `astwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `astwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `astwiki_p`.`revision_userindex` AS revs JOIN `astwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `astwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `astwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `astwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 25200 ) UNION ( SELECT 'astwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `astwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `astwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `astwiktionary_p`.`revision_userindex` AS revs JOIN `astwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `astwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `astwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `astwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1617 ) UNION ( SELECT 'aswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `aswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `aswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `aswiki_p`.`revision_userindex` AS revs JOIN `aswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `aswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `aswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `aswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6952 ) UNION ( SELECT 'aswikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `aswikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `aswikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `aswikisource_p`.`revision_userindex` AS revs JOIN `aswikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `aswikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `aswikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `aswikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 251 ) UNION ( SELECT 'atjwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `atjwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `atjwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `atjwiki_p`.`revision_userindex` AS revs JOIN `atjwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `atjwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `atjwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `atjwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 775 ) UNION ( SELECT 'avwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `avwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `avwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `avwiki_p`.`revision_userindex` AS revs JOIN `avwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `avwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `avwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `avwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4363 ) UNION ( SELECT 'aywiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `aywiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `aywiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `aywiki_p`.`revision_userindex` AS revs JOIN `aywiki_p`.`page` AS page ON (rev_page = page_id) JOIN `aywiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `aywiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `aywiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6432 ) UNION ( SELECT 'azbwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `azbwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `azbwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `azbwiki_p`.`revision_userindex` AS revs JOIN `azbwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `azbwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `azbwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `azbwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3844 ) UNION ( SELECT 'azwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `azwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `azwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `azwiki_p`.`revision_userindex` AS revs JOIN `azwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `azwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `azwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `azwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 49791 ) UNION ( SELECT 'azwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `azwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `azwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `azwikibooks_p`.`revision_userindex` AS revs JOIN `azwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `azwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `azwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `azwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2112 ) UNION ( SELECT 'azwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `azwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `azwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `azwikiquote_p`.`revision_userindex` AS revs JOIN `azwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `azwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `azwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `azwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2016 ) UNION ( SELECT 'azwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `azwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `azwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `azwikisource_p`.`revision_userindex` AS revs JOIN `azwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `azwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `azwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `azwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2491 ) UNION ( SELECT 'azwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `azwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `azwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `azwiktionary_p`.`revision_userindex` AS revs JOIN `azwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `azwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `azwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `azwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2243 ) UNION ( SELECT 'banwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `banwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `banwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `banwiki_p`.`revision_userindex` AS revs JOIN `banwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `banwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `banwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `banwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 305 ) UNION ( SELECT 'barwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `barwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `barwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `barwiki_p`.`revision_userindex` AS revs JOIN `barwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `barwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `barwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `barwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 21931 ) UNION ( SELECT 'bat_smgwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bat_smgwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bat_smgwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bat_smgwiki_p`.`revision_userindex` AS revs JOIN `bat_smgwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `bat_smgwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bat_smgwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bat_smgwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 11037 ) UNION ( SELECT 'bawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bawiki_p`.`revision_userindex` AS revs JOIN `bawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `bawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9471 ) UNION ( SELECT 'bawikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bawikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bawikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bawikibooks_p`.`revision_userindex` AS revs JOIN `bawikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `bawikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bawikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bawikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1554 ) UNION ( SELECT 'bclwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bclwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bclwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bclwiki_p`.`revision_userindex` AS revs JOIN `bclwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `bclwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bclwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bclwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6705 ) UNION ( SELECT 'be_x_oldwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `be_x_oldwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `be_x_oldwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `be_x_oldwiki_p`.`revision_userindex` AS revs JOIN `be_x_oldwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `be_x_oldwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `be_x_oldwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `be_x_oldwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 21746 ) UNION ( SELECT 'betawikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `betawikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `betawikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `betawikiversity_p`.`revision_userindex` AS revs JOIN `betawikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `betawikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `betawikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `betawikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 17274 ) UNION ( SELECT 'bewiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bewiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bewiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bewiki_p`.`revision_userindex` AS revs JOIN `bewiki_p`.`page` AS page ON (rev_page = page_id) JOIN `bewiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bewiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bewiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 25141 ) UNION ( SELECT 'bewikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bewikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bewikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bewikibooks_p`.`revision_userindex` AS revs JOIN `bewikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `bewikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bewikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bewikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1093 ) UNION ( SELECT 'bewikimedia' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bewikimedia_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bewikimedia_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bewikimedia_p`.`revision_userindex` AS revs JOIN `bewikimedia_p`.`page` AS page ON (rev_page = page_id) JOIN `bewikimedia_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bewikimedia_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bewikimedia_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 276 ) UNION ( SELECT 'bewikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bewikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bewikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bewikiquote_p`.`revision_userindex` AS revs JOIN `bewikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `bewikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bewikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bewikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1275 ) UNION ( SELECT 'bewikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bewikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bewikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bewikisource_p`.`revision_userindex` AS revs JOIN `bewikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `bewikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bewikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bewikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 553 ) UNION ( SELECT 'bewiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bewiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bewiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bewiktionary_p`.`revision_userindex` AS revs JOIN `bewiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `bewiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bewiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bewiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1338 ) UNION ( SELECT 'bgwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bgwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bgwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bgwikibooks_p`.`revision_userindex` AS revs JOIN `bgwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `bgwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bgwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bgwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2548 ) UNION ( SELECT 'bgwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bgwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bgwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bgwikinews_p`.`revision_userindex` AS revs JOIN `bgwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `bgwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bgwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bgwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1643 ) UNION ( SELECT 'bgwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bgwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bgwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bgwikiquote_p`.`revision_userindex` AS revs JOIN `bgwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `bgwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bgwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bgwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4452 ) UNION ( SELECT 'bgwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bgwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bgwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bgwikisource_p`.`revision_userindex` AS revs JOIN `bgwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `bgwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bgwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bgwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2054 ) UNION ( SELECT 'bhwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bhwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bhwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bhwiki_p`.`revision_userindex` AS revs JOIN `bhwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `bhwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bhwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bhwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9268 ) UNION ( SELECT 'biwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `biwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `biwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `biwiki_p`.`revision_userindex` AS revs JOIN `biwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `biwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `biwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `biwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3899 ) UNION ( SELECT 'bjnwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bjnwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bjnwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bjnwiki_p`.`revision_userindex` AS revs JOIN `bjnwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `bjnwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bjnwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bjnwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3717 ) UNION ( SELECT 'bmwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bmwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bmwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bmwiki_p`.`revision_userindex` AS revs JOIN `bmwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `bmwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bmwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bmwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4084 ) UNION ( SELECT 'bnwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bnwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bnwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bnwiki_p`.`revision_userindex` AS revs JOIN `bnwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `bnwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bnwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bnwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 49466 ) UNION ( SELECT 'bnwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bnwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bnwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bnwikibooks_p`.`revision_userindex` AS revs JOIN `bnwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `bnwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bnwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bnwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1670 ) UNION ( SELECT 'bnwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bnwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bnwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bnwikisource_p`.`revision_userindex` AS revs JOIN `bnwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `bnwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bnwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bnwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2538 ) UNION ( SELECT 'bnwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bnwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bnwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bnwiktionary_p`.`revision_userindex` AS revs JOIN `bnwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `bnwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bnwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bnwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2299 ) UNION ( SELECT 'bowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bowiki_p`.`revision_userindex` AS revs JOIN `bowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `bowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9257 ) UNION ( SELECT 'bpywiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bpywiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bpywiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bpywiki_p`.`revision_userindex` AS revs JOIN `bpywiki_p`.`page` AS page ON (rev_page = page_id) JOIN `bpywiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bpywiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bpywiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 11474 ) UNION ( SELECT 'brwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `brwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `brwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `brwiki_p`.`revision_userindex` AS revs JOIN `brwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `brwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `brwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `brwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 26651 ) UNION ( SELECT 'brwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `brwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `brwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `brwikiquote_p`.`revision_userindex` AS revs JOIN `brwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `brwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `brwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `brwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 876 ) UNION ( SELECT 'brwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `brwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `brwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `brwikisource_p`.`revision_userindex` AS revs JOIN `brwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `brwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `brwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `brwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 782 ) UNION ( SELECT 'brwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `brwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `brwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `brwiktionary_p`.`revision_userindex` AS revs JOIN `brwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `brwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `brwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `brwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2212 ) UNION ( SELECT 'bswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bswiki_p`.`revision_userindex` AS revs JOIN `bswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `bswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 53214 ) UNION ( SELECT 'bswikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bswikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bswikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bswikibooks_p`.`revision_userindex` AS revs JOIN `bswikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `bswikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bswikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bswikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1108 ) UNION ( SELECT 'bswikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bswikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bswikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bswikinews_p`.`revision_userindex` AS revs JOIN `bswikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `bswikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bswikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bswikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1485 ) UNION ( SELECT 'bswikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bswikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bswikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bswikiquote_p`.`revision_userindex` AS revs JOIN `bswikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `bswikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bswikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bswikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3706 ) UNION ( SELECT 'bswikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bswikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bswikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bswikisource_p`.`revision_userindex` AS revs JOIN `bswikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `bswikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bswikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bswikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1339 ) UNION ( SELECT 'bswiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bswiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bswiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bswiktionary_p`.`revision_userindex` AS revs JOIN `bswiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `bswiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bswiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bswiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1445 ) UNION ( SELECT 'bugwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bugwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bugwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bugwiki_p`.`revision_userindex` AS revs JOIN `bugwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `bugwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bugwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bugwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4967 ) UNION ( SELECT 'bxrwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `bxrwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `bxrwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `bxrwiki_p`.`revision_userindex` AS revs JOIN `bxrwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `bxrwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `bxrwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `bxrwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4351 ) UNION ( SELECT 'cawikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cawikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cawikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cawikibooks_p`.`revision_userindex` AS revs JOIN `cawikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `cawikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cawikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cawikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2511 ) UNION ( SELECT 'cawikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cawikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cawikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cawikinews_p`.`revision_userindex` AS revs JOIN `cawikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `cawikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cawikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cawikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2153 ) UNION ( SELECT 'cawikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cawikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cawikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cawikiquote_p`.`revision_userindex` AS revs JOIN `cawikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `cawikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cawikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cawikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3519 ) UNION ( SELECT 'cawikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cawikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cawikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cawikisource_p`.`revision_userindex` AS revs JOIN `cawikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `cawikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cawikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cawikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2824 ) UNION ( SELECT 'cawiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cawiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cawiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cawiktionary_p`.`revision_userindex` AS revs JOIN `cawiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `cawiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cawiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cawiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4867 ) UNION ( SELECT 'cbk_zamwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cbk_zamwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cbk_zamwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cbk_zamwiki_p`.`revision_userindex` AS revs JOIN `cbk_zamwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `cbk_zamwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cbk_zamwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cbk_zamwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5802 ) UNION ( SELECT 'cdowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cdowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cdowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cdowiki_p`.`revision_userindex` AS revs JOIN `cdowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `cdowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cdowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cdowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7390 ) UNION ( SELECT 'cewiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cewiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cewiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cewiki_p`.`revision_userindex` AS revs JOIN `cewiki_p`.`page` AS page ON (rev_page = page_id) JOIN `cewiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cewiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cewiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6959 ) UNION ( SELECT 'chrwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `chrwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `chrwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `chrwiki_p`.`revision_userindex` AS revs JOIN `chrwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `chrwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `chrwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `chrwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5594 ) UNION ( SELECT 'chrwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `chrwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `chrwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `chrwiktionary_p`.`revision_userindex` AS revs JOIN `chrwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `chrwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `chrwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `chrwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1673 ) UNION ( SELECT 'chwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `chwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `chwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `chwiki_p`.`revision_userindex` AS revs JOIN `chwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `chwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `chwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `chwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5183 ) UNION ( SELECT 'chywiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `chywiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `chywiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `chywiki_p`.`revision_userindex` AS revs JOIN `chywiki_p`.`page` AS page ON (rev_page = page_id) JOIN `chywiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `chywiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `chywiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3707 ) UNION ( SELECT 'ckbwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ckbwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ckbwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ckbwiki_p`.`revision_userindex` AS revs JOIN `ckbwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `ckbwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ckbwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ckbwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 11050 ) UNION ( SELECT 'cowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cowiki_p`.`revision_userindex` AS revs JOIN `cowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `cowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7878 ) UNION ( SELECT 'cowiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cowiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cowiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cowiktionary_p`.`revision_userindex` AS revs JOIN `cowiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `cowiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cowiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cowiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1443 ) UNION ( SELECT 'crhwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `crhwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `crhwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `crhwiki_p`.`revision_userindex` AS revs JOIN `crhwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `crhwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `crhwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `crhwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4595 ) UNION ( SELECT 'crwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `crwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `crwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `crwiki_p`.`revision_userindex` AS revs JOIN `crwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `crwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `crwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `crwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3675 ) UNION ( SELECT 'csbwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `csbwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `csbwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `csbwiki_p`.`revision_userindex` AS revs JOIN `csbwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `csbwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `csbwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `csbwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5578 ) UNION ( SELECT 'csbwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `csbwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `csbwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `csbwiktionary_p`.`revision_userindex` AS revs JOIN `csbwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `csbwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `csbwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `csbwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1233 ) UNION ( SELECT 'cswikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cswikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cswikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cswikibooks_p`.`revision_userindex` AS revs JOIN `cswikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `cswikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cswikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cswikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4054 ) UNION ( SELECT 'cswikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cswikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cswikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cswikinews_p`.`revision_userindex` AS revs JOIN `cswikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `cswikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cswikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cswikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2680 ) UNION ( SELECT 'cswikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cswikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cswikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cswikiquote_p`.`revision_userindex` AS revs JOIN `cswikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `cswikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cswikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cswikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6075 ) UNION ( SELECT 'cswikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cswikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cswikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cswikisource_p`.`revision_userindex` AS revs JOIN `cswikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `cswikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cswikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cswikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4756 ) UNION ( SELECT 'cswikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cswikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cswikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cswikiversity_p`.`revision_userindex` AS revs JOIN `cswikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `cswikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cswikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cswikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3751 ) UNION ( SELECT 'cswiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cswiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cswiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cswiktionary_p`.`revision_userindex` AS revs JOIN `cswiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `cswiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cswiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cswiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9989 ) UNION ( SELECT 'cuwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cuwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cuwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cuwiki_p`.`revision_userindex` AS revs JOIN `cuwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `cuwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cuwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cuwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8130 ) UNION ( SELECT 'cvwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cvwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cvwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cvwiki_p`.`revision_userindex` AS revs JOIN `cvwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `cvwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cvwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cvwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 12984 ) UNION ( SELECT 'cvwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cvwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cvwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cvwikibooks_p`.`revision_userindex` AS revs JOIN `cvwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `cvwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cvwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cvwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 996 ) UNION ( SELECT 'cywiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cywiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cywiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cywiki_p`.`revision_userindex` AS revs JOIN `cywiki_p`.`page` AS page ON (rev_page = page_id) JOIN `cywiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cywiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cywiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 25536 ) UNION ( SELECT 'cywikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cywikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cywikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cywikibooks_p`.`revision_userindex` AS revs JOIN `cywikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `cywikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cywikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cywikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 921 ) UNION ( SELECT 'cywikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cywikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cywikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cywikiquote_p`.`revision_userindex` AS revs JOIN `cywikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `cywikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cywikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cywikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1030 ) UNION ( SELECT 'cywikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cywikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cywikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cywikisource_p`.`revision_userindex` AS revs JOIN `cywikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `cywikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cywikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cywikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1241 ) UNION ( SELECT 'cywiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `cywiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `cywiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `cywiktionary_p`.`revision_userindex` AS revs JOIN `cywiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `cywiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `cywiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `cywiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1686 ) UNION ( SELECT 'dawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dawiki_p`.`revision_userindex` AS revs JOIN `dawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `dawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 162551 ) UNION ( SELECT 'dawikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dawikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dawikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dawikibooks_p`.`revision_userindex` AS revs JOIN `dawikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `dawikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dawikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dawikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2213 ) UNION ( SELECT 'dawikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dawikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dawikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dawikiquote_p`.`revision_userindex` AS revs JOIN `dawikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `dawikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dawikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dawikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2234 ) UNION ( SELECT 'dawikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dawikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dawikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dawikisource_p`.`revision_userindex` AS revs JOIN `dawikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `dawikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dawikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dawikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2400 ) UNION ( SELECT 'dawiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dawiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dawiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dawiktionary_p`.`revision_userindex` AS revs JOIN `dawiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `dawiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dawiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dawiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4115 ) UNION ( SELECT 'dewikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dewikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dewikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dewikibooks_p`.`revision_userindex` AS revs JOIN `dewikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `dewikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dewikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dewikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 43891 ) UNION ( SELECT 'dewikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dewikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dewikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dewikinews_p`.`revision_userindex` AS revs JOIN `dewikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `dewikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dewikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dewikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 15731 ) UNION ( SELECT 'dewikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dewikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dewikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dewikiquote_p`.`revision_userindex` AS revs JOIN `dewikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `dewikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dewikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dewikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 25324 ) UNION ( SELECT 'dewikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dewikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dewikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dewikisource_p`.`revision_userindex` AS revs JOIN `dewikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `dewikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dewikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dewikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 24636 ) UNION ( SELECT 'dewikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dewikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dewikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dewikiversity_p`.`revision_userindex` AS revs JOIN `dewikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `dewikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dewikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dewikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 15472 ) UNION ( SELECT 'dewikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dewikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dewikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dewikivoyage_p`.`revision_userindex` AS revs JOIN `dewikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `dewikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dewikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dewikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8270 ) UNION ( SELECT 'dewiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dewiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dewiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dewiktionary_p`.`revision_userindex` AS revs JOIN `dewiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `dewiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dewiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dewiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 64427 ) UNION ( SELECT 'dinwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dinwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dinwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dinwiki_p`.`revision_userindex` AS revs JOIN `dinwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `dinwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dinwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dinwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 799 ) UNION ( SELECT 'diqwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `diqwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `diqwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `diqwiki_p`.`revision_userindex` AS revs JOIN `diqwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `diqwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `diqwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `diqwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9075 ) UNION ( SELECT 'dsbwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dsbwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dsbwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dsbwiki_p`.`revision_userindex` AS revs JOIN `dsbwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `dsbwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dsbwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dsbwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6664 ) UNION ( SELECT 'dtywiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dtywiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dtywiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dtywiki_p`.`revision_userindex` AS revs JOIN `dtywiki_p`.`page` AS page ON (rev_page = page_id) JOIN `dtywiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dtywiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dtywiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7699 ) UNION ( SELECT 'dvwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dvwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dvwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dvwiki_p`.`revision_userindex` AS revs JOIN `dvwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `dvwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dvwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dvwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10410 ) UNION ( SELECT 'dvwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dvwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dvwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dvwiktionary_p`.`revision_userindex` AS revs JOIN `dvwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `dvwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dvwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dvwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1014 ) UNION ( SELECT 'dzwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `dzwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `dzwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `dzwiki_p`.`revision_userindex` AS revs JOIN `dzwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `dzwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `dzwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `dzwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3367 ) UNION ( SELECT 'eewiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `eewiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `eewiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `eewiki_p`.`revision_userindex` AS revs JOIN `eewiki_p`.`page` AS page ON (rev_page = page_id) JOIN `eewiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `eewiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `eewiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4397 ) UNION ( SELECT 'elwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `elwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `elwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `elwiki_p`.`revision_userindex` AS revs JOIN `elwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `elwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `elwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `elwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 108408 ) UNION ( SELECT 'elwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `elwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `elwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `elwikibooks_p`.`revision_userindex` AS revs JOIN `elwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `elwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `elwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `elwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3130 ) UNION ( SELECT 'elwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `elwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `elwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `elwikinews_p`.`revision_userindex` AS revs JOIN `elwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `elwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `elwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `elwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1166 ) UNION ( SELECT 'elwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `elwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `elwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `elwikiquote_p`.`revision_userindex` AS revs JOIN `elwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `elwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `elwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `elwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3030 ) UNION ( SELECT 'elwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `elwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `elwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `elwikisource_p`.`revision_userindex` AS revs JOIN `elwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `elwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `elwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `elwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5685 ) UNION ( SELECT 'elwikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `elwikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `elwikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `elwikiversity_p`.`revision_userindex` AS revs JOIN `elwikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `elwikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `elwikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `elwikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2795 ) UNION ( SELECT 'elwikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `elwikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `elwikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `elwikivoyage_p`.`revision_userindex` AS revs JOIN `elwikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `elwikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `elwikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `elwikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 702 ) UNION ( SELECT 'elwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `elwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `elwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `elwiktionary_p`.`revision_userindex` AS revs JOIN `elwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `elwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `elwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `elwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 13425 ) UNION ( SELECT 'emlwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `emlwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `emlwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `emlwiki_p`.`revision_userindex` AS revs JOIN `emlwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `emlwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `emlwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `emlwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7875 ) UNION ( SELECT 'enwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `enwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `enwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `enwikibooks_p`.`revision_userindex` AS revs JOIN `enwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `enwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `enwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `enwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 490138 ) UNION ( SELECT 'enwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `enwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `enwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `enwikinews_p`.`revision_userindex` AS revs JOIN `enwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `enwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `enwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `enwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 331093 ) UNION ( SELECT 'enwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `enwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `enwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `enwikisource_p`.`revision_userindex` AS revs JOIN `enwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `enwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `enwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `enwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9754 ) UNION ( SELECT 'enwikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `enwikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `enwikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `enwikiversity_p`.`revision_userindex` AS revs JOIN `enwikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `enwikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `enwikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `enwikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 322700 ) UNION ( SELECT 'eowikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `eowikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `eowikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `eowikibooks_p`.`revision_userindex` AS revs JOIN `eowikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `eowikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `eowikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `eowikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1847 ) UNION ( SELECT 'eowikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `eowikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `eowikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `eowikinews_p`.`revision_userindex` AS revs JOIN `eowikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `eowikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `eowikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `eowikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1287 ) UNION ( SELECT 'eowikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `eowikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `eowikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `eowikiquote_p`.`revision_userindex` AS revs JOIN `eowikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `eowikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `eowikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `eowikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2250 ) UNION ( SELECT 'eowikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `eowikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `eowikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `eowikisource_p`.`revision_userindex` AS revs JOIN `eowikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `eowikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `eowikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `eowikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1045 ) UNION ( SELECT 'eowiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `eowiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `eowiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `eowiktionary_p`.`revision_userindex` AS revs JOIN `eowiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `eowiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `eowiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `eowiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2920 ) UNION ( SELECT 'eswikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `eswikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `eswikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `eswikibooks_p`.`revision_userindex` AS revs JOIN `eswikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `eswikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `eswikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `eswikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 55038 ) UNION ( SELECT 'eswikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `eswikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `eswikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `eswikinews_p`.`revision_userindex` AS revs JOIN `eswikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `eswikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `eswikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `eswikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 17651 ) UNION ( SELECT 'eswikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `eswikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `eswikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `eswikiquote_p`.`revision_userindex` AS revs JOIN `eswikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `eswikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `eswikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `eswikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 35031 ) UNION ( SELECT 'eswikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `eswikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `eswikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `eswikisource_p`.`revision_userindex` AS revs JOIN `eswikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `eswikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `eswikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `eswikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 30866 ) UNION ( SELECT 'eswikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `eswikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `eswikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `eswikiversity_p`.`revision_userindex` AS revs JOIN `eswikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `eswikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `eswikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `eswikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 23058 ) UNION ( SELECT 'eswikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `eswikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `eswikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `eswikivoyage_p`.`revision_userindex` AS revs JOIN `eswikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `eswikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `eswikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `eswikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1408 ) UNION ( SELECT 'eswiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `eswiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `eswiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `eswiktionary_p`.`revision_userindex` AS revs JOIN `eswiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `eswiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `eswiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `eswiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 48373 ) UNION ( SELECT 'etwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `etwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `etwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `etwiki_p`.`revision_userindex` AS revs JOIN `etwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `etwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `etwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `etwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5955 ) UNION ( SELECT 'etwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `etwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `etwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `etwikibooks_p`.`revision_userindex` AS revs JOIN `etwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `etwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `etwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `etwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1308 ) UNION ( SELECT 'etwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `etwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `etwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `etwikiquote_p`.`revision_userindex` AS revs JOIN `etwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `etwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `etwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `etwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1455 ) UNION ( SELECT 'etwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `etwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `etwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `etwikisource_p`.`revision_userindex` AS revs JOIN `etwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `etwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `etwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `etwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1274 ) UNION ( SELECT 'etwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `etwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `etwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `etwiktionary_p`.`revision_userindex` AS revs JOIN `etwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `etwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `etwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `etwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3642 ) UNION ( SELECT 'euwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `euwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `euwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `euwiki_p`.`revision_userindex` AS revs JOIN `euwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `euwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `euwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `euwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 49785 ) UNION ( SELECT 'euwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `euwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `euwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `euwikibooks_p`.`revision_userindex` AS revs JOIN `euwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `euwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `euwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `euwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 949 ) UNION ( SELECT 'euwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `euwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `euwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `euwikiquote_p`.`revision_userindex` AS revs JOIN `euwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `euwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `euwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `euwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1164 ) UNION ( SELECT 'euwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `euwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `euwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `euwiktionary_p`.`revision_userindex` AS revs JOIN `euwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `euwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `euwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `euwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1834 ) UNION ( SELECT 'extwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `extwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `extwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `extwiki_p`.`revision_userindex` AS revs JOIN `extwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `extwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `extwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `extwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6775 ) UNION ( SELECT 'fawikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fawikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fawikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fawikibooks_p`.`revision_userindex` AS revs JOIN `fawikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `fawikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fawikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fawikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6414 ) UNION ( SELECT 'fawikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fawikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fawikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fawikinews_p`.`revision_userindex` AS revs JOIN `fawikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `fawikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fawikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fawikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2893 ) UNION ( SELECT 'fawikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fawikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fawikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fawikiquote_p`.`revision_userindex` AS revs JOIN `fawikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `fawikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fawikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fawikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6979 ) UNION ( SELECT 'fawikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fawikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fawikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fawikisource_p`.`revision_userindex` AS revs JOIN `fawikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `fawikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fawikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fawikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6852 ) UNION ( SELECT 'fawikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fawikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fawikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fawikivoyage_p`.`revision_userindex` AS revs JOIN `fawikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `fawikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fawikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fawikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1868 ) UNION ( SELECT 'fawiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fawiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fawiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fawiktionary_p`.`revision_userindex` AS revs JOIN `fawiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `fawiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fawiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fawiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8482 ) UNION ( SELECT 'ffwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ffwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ffwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ffwiki_p`.`revision_userindex` AS revs JOIN `ffwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `ffwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ffwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ffwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2908 ) UNION ( SELECT 'fiu_vrowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fiu_vrowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fiu_vrowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fiu_vrowiki_p`.`revision_userindex` AS revs JOIN `fiu_vrowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `fiu_vrowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fiu_vrowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fiu_vrowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5500 ) UNION ( SELECT 'fiwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fiwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fiwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fiwikibooks_p`.`revision_userindex` AS revs JOIN `fiwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `fiwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fiwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fiwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5247 ) UNION ( SELECT 'fiwikimedia' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fiwikimedia_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fiwikimedia_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fiwikimedia_p`.`revision_userindex` AS revs JOIN `fiwikimedia_p`.`page` AS page ON (rev_page = page_id) JOIN `fiwikimedia_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fiwikimedia_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fiwikimedia_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 249 ) UNION ( SELECT 'fiwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fiwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fiwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fiwikinews_p`.`revision_userindex` AS revs JOIN `fiwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `fiwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fiwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fiwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2328 ) UNION ( SELECT 'fiwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fiwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fiwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fiwikiquote_p`.`revision_userindex` AS revs JOIN `fiwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `fiwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fiwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fiwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3789 ) UNION ( SELECT 'fiwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fiwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fiwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fiwikisource_p`.`revision_userindex` AS revs JOIN `fiwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `fiwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fiwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fiwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2647 ) UNION ( SELECT 'fiwikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fiwikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fiwikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fiwikiversity_p`.`revision_userindex` AS revs JOIN `fiwikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `fiwikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fiwikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fiwikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2205 ) UNION ( SELECT 'fiwikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fiwikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fiwikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fiwikivoyage_p`.`revision_userindex` AS revs JOIN `fiwikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `fiwikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fiwikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fiwikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 976 ) UNION ( SELECT 'fiwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fiwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fiwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fiwiktionary_p`.`revision_userindex` AS revs JOIN `fiwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `fiwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fiwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fiwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 19333 ) UNION ( SELECT 'fjwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fjwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fjwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fjwiki_p`.`revision_userindex` AS revs JOIN `fjwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `fjwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fjwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fjwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3388 ) UNION ( SELECT 'fjwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fjwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fjwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fjwiktionary_p`.`revision_userindex` AS revs JOIN `fjwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `fjwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fjwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fjwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1130 ) UNION ( SELECT 'foundationwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `foundationwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `foundationwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `foundationwiki_p`.`revision_userindex` AS revs JOIN `foundationwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `foundationwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `foundationwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `foundationwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 625 ) UNION ( SELECT 'fowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fowiki_p`.`revision_userindex` AS revs JOIN `fowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `fowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10357 ) UNION ( SELECT 'fowikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fowikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fowikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fowikisource_p`.`revision_userindex` AS revs JOIN `fowikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `fowikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fowikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fowikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 988 ) UNION ( SELECT 'fowiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fowiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fowiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fowiktionary_p`.`revision_userindex` AS revs JOIN `fowiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `fowiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fowiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fowiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1166 ) UNION ( SELECT 'frpwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `frpwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `frpwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `frpwiki_p`.`revision_userindex` AS revs JOIN `frpwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `frpwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `frpwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `frpwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5859 ) UNION ( SELECT 'frrwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `frrwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `frrwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `frrwiki_p`.`revision_userindex` AS revs JOIN `frrwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `frrwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `frrwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `frrwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4847 ) UNION ( SELECT 'frwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `frwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `frwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `frwikibooks_p`.`revision_userindex` AS revs JOIN `frwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `frwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `frwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `frwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 29377 ) UNION ( SELECT 'frwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `frwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `frwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `frwikinews_p`.`revision_userindex` AS revs JOIN `frwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `frwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `frwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `frwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 16089 ) UNION ( SELECT 'frwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `frwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `frwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `frwikiquote_p`.`revision_userindex` AS revs JOIN `frwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `frwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `frwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `frwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 16432 ) UNION ( SELECT 'frwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `frwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `frwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `frwikisource_p`.`revision_userindex` AS revs JOIN `frwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `frwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `frwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `frwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 27632 ) UNION ( SELECT 'frwikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `frwikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `frwikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `frwikiversity_p`.`revision_userindex` AS revs JOIN `frwikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `frwikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `frwikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `frwikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 20129 ) UNION ( SELECT 'frwikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `frwikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `frwikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `frwikivoyage_p`.`revision_userindex` AS revs JOIN `frwikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `frwikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `frwikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `frwikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6747 ) UNION ( SELECT 'furwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `furwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `furwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `furwiki_p`.`revision_userindex` AS revs JOIN `furwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `furwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `furwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `furwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5859 ) UNION ( SELECT 'fywiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fywiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fywiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fywiki_p`.`revision_userindex` AS revs JOIN `fywiki_p`.`page` AS page ON (rev_page = page_id) JOIN `fywiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fywiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fywiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 15543 ) UNION ( SELECT 'fywikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fywikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fywikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fywikibooks_p`.`revision_userindex` AS revs JOIN `fywikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `fywikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fywikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fywikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 911 ) UNION ( SELECT 'fywiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `fywiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `fywiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `fywiktionary_p`.`revision_userindex` AS revs JOIN `fywiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `fywiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `fywiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `fywiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1569 ) UNION ( SELECT 'gagwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `gagwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `gagwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `gagwiki_p`.`revision_userindex` AS revs JOIN `gagwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `gagwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `gagwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `gagwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3298 ) UNION ( SELECT 'ganwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ganwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ganwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ganwiki_p`.`revision_userindex` AS revs JOIN `ganwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `ganwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ganwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ganwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 12174 ) UNION ( SELECT 'gawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `gawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `gawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `gawiki_p`.`revision_userindex` AS revs JOIN `gawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `gawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `gawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `gawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 14910 ) UNION ( SELECT 'gawiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `gawiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `gawiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `gawiktionary_p`.`revision_userindex` AS revs JOIN `gawiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `gawiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `gawiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `gawiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2765 ) UNION ( SELECT 'gdwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `gdwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `gdwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `gdwiki_p`.`revision_userindex` AS revs JOIN `gdwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `gdwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `gdwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `gdwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10708 ) UNION ( SELECT 'gdwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `gdwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `gdwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `gdwiktionary_p`.`revision_userindex` AS revs JOIN `gdwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `gdwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `gdwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `gdwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1185 ) UNION ( SELECT 'glkwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `glkwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `glkwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `glkwiki_p`.`revision_userindex` AS revs JOIN `glkwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `glkwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `glkwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `glkwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5112 ) UNION ( SELECT 'glwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `glwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `glwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `glwiki_p`.`revision_userindex` AS revs JOIN `glwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `glwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `glwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `glwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 49867 ) UNION ( SELECT 'glwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `glwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `glwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `glwikibooks_p`.`revision_userindex` AS revs JOIN `glwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `glwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `glwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `glwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1214 ) UNION ( SELECT 'glwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `glwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `glwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `glwikiquote_p`.`revision_userindex` AS revs JOIN `glwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `glwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `glwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `glwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1699 ) UNION ( SELECT 'glwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `glwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `glwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `glwikisource_p`.`revision_userindex` AS revs JOIN `glwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `glwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `glwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `glwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1431 ) UNION ( SELECT 'glwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `glwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `glwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `glwiktionary_p`.`revision_userindex` AS revs JOIN `glwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `glwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `glwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `glwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2678 ) UNION ( SELECT 'gnwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `gnwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `gnwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `gnwiki_p`.`revision_userindex` AS revs JOIN `gnwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `gnwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `gnwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `gnwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6022 ) UNION ( SELECT 'gnwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `gnwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `gnwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `gnwiktionary_p`.`revision_userindex` AS revs JOIN `gnwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `gnwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `gnwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `gnwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1075 ) UNION ( SELECT 'gomwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `gomwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `gomwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `gomwiki_p`.`revision_userindex` AS revs JOIN `gomwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `gomwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `gomwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `gomwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 741 ) UNION ( SELECT 'gotwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `gotwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `gotwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `gotwiki_p`.`revision_userindex` AS revs JOIN `gotwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `gotwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `gotwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `gotwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6283 ) UNION ( SELECT 'guwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `guwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `guwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `guwiki_p`.`revision_userindex` AS revs JOIN `guwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `guwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `guwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `guwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 18374 ) UNION ( SELECT 'guwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `guwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `guwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `guwikiquote_p`.`revision_userindex` AS revs JOIN `guwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `guwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `guwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `guwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 873 ) UNION ( SELECT 'guwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `guwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `guwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `guwikisource_p`.`revision_userindex` AS revs JOIN `guwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `guwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `guwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `guwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 532 ) UNION ( SELECT 'guwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `guwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `guwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `guwiktionary_p`.`revision_userindex` AS revs JOIN `guwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `guwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `guwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `guwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1433 ) UNION ( SELECT 'gvwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `gvwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `gvwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `gvwiki_p`.`revision_userindex` AS revs JOIN `gvwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `gvwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `gvwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `gvwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7738 ) UNION ( SELECT 'gvwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `gvwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `gvwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `gvwiktionary_p`.`revision_userindex` AS revs JOIN `gvwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `gvwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `gvwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `gvwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 960 ) UNION ( SELECT 'hakwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hakwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hakwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hakwiki_p`.`revision_userindex` AS revs JOIN `hakwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `hakwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hakwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hakwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9673 ) UNION ( SELECT 'hawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hawiki_p`.`revision_userindex` AS revs JOIN `hawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `hawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4292 ) UNION ( SELECT 'hawiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hawiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hawiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hawiktionary_p`.`revision_userindex` AS revs JOIN `hawiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `hawiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hawiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hawiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1042 ) UNION ( SELECT 'hawwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hawwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hawwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hawwiki_p`.`revision_userindex` AS revs JOIN `hawwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `hawwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hawwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hawwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5229 ) UNION ( SELECT 'hewikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hewikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hewikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hewikibooks_p`.`revision_userindex` AS revs JOIN `hewikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `hewikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hewikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hewikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7282 ) UNION ( SELECT 'hewikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hewikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hewikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hewikinews_p`.`revision_userindex` AS revs JOIN `hewikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `hewikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hewikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hewikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2188 ) UNION ( SELECT 'hewikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hewikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hewikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hewikiquote_p`.`revision_userindex` AS revs JOIN `hewikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `hewikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hewikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hewikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6932 ) UNION ( SELECT 'hewikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hewikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hewikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hewikisource_p`.`revision_userindex` AS revs JOIN `hewikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `hewikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hewikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hewikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7142 ) UNION ( SELECT 'hewiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hewiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hewiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hewiktionary_p`.`revision_userindex` AS revs JOIN `hewiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `hewiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hewiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hewiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9975 ) UNION ( SELECT 'hifwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hifwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hifwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hifwiki_p`.`revision_userindex` AS revs JOIN `hifwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `hifwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hifwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hifwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8305 ) UNION ( SELECT 'hiwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hiwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hiwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hiwiki_p`.`revision_userindex` AS revs JOIN `hiwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `hiwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hiwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hiwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 82255 ) UNION ( SELECT 'hiwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hiwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hiwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hiwikibooks_p`.`revision_userindex` AS revs JOIN `hiwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `hiwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hiwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hiwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2224 ) UNION ( SELECT 'hiwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hiwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hiwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hiwikiquote_p`.`revision_userindex` AS revs JOIN `hiwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `hiwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hiwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hiwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1441 ) UNION ( SELECT 'hiwikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hiwikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hiwikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hiwikiversity_p`.`revision_userindex` AS revs JOIN `hiwikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `hiwikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hiwikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hiwikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 354 ) UNION ( SELECT 'hiwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hiwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hiwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hiwiktionary_p`.`revision_userindex` AS revs JOIN `hiwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `hiwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hiwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hiwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4995 ) UNION ( SELECT 'hrwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hrwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hrwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hrwiki_p`.`revision_userindex` AS revs JOIN `hrwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `hrwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hrwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hrwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5596 ) UNION ( SELECT 'hrwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hrwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hrwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hrwikibooks_p`.`revision_userindex` AS revs JOIN `hrwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `hrwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hrwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hrwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2161 ) UNION ( SELECT 'hrwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hrwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hrwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hrwikiquote_p`.`revision_userindex` AS revs JOIN `hrwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `hrwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hrwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hrwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2308 ) UNION ( SELECT 'hrwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hrwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hrwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hrwikisource_p`.`revision_userindex` AS revs JOIN `hrwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `hrwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hrwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hrwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2570 ) UNION ( SELECT 'hrwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hrwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hrwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hrwiktionary_p`.`revision_userindex` AS revs JOIN `hrwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `hrwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hrwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hrwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2991 ) UNION ( SELECT 'hsbwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hsbwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hsbwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hsbwiki_p`.`revision_userindex` AS revs JOIN `hsbwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `hsbwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hsbwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hsbwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9882 ) UNION ( SELECT 'hsbwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hsbwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hsbwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hsbwiktionary_p`.`revision_userindex` AS revs JOIN `hsbwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `hsbwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hsbwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hsbwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1193 ) UNION ( SELECT 'htwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `htwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `htwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `htwiki_p`.`revision_userindex` AS revs JOIN `htwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `htwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `htwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `htwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 11431 ) UNION ( SELECT 'huwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `huwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `huwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `huwikibooks_p`.`revision_userindex` AS revs JOIN `huwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `huwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `huwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `huwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5196 ) UNION ( SELECT 'huwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `huwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `huwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `huwikiquote_p`.`revision_userindex` AS revs JOIN `huwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `huwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `huwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `huwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4506 ) UNION ( SELECT 'huwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `huwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `huwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `huwikisource_p`.`revision_userindex` AS revs JOIN `huwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `huwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `huwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `huwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3802 ) UNION ( SELECT 'huwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `huwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `huwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `huwiktionary_p`.`revision_userindex` AS revs JOIN `huwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `huwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `huwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `huwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10844 ) UNION ( SELECT 'hywiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hywiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hywiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hywiki_p`.`revision_userindex` AS revs JOIN `hywiki_p`.`page` AS page ON (rev_page = page_id) JOIN `hywiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hywiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hywiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5411 ) UNION ( SELECT 'hywikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hywikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hywikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hywikibooks_p`.`revision_userindex` AS revs JOIN `hywikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `hywikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hywikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hywikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1136 ) UNION ( SELECT 'hywikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hywikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hywikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hywikiquote_p`.`revision_userindex` AS revs JOIN `hywikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `hywikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hywikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hywikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1935 ) UNION ( SELECT 'hywikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hywikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hywikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hywikisource_p`.`revision_userindex` AS revs JOIN `hywikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `hywikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hywikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hywikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2115 ) UNION ( SELECT 'hywiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `hywiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `hywiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `hywiktionary_p`.`revision_userindex` AS revs JOIN `hywiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `hywiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `hywiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `hywiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2118 ) UNION ( SELECT 'iawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `iawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `iawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `iawiki_p`.`revision_userindex` AS revs JOIN `iawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `iawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `iawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `iawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 14536 ) UNION ( SELECT 'iawikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `iawikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `iawikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `iawikibooks_p`.`revision_userindex` AS revs JOIN `iawikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `iawikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `iawikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `iawikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 962 ) UNION ( SELECT 'iawiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `iawiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `iawiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `iawiktionary_p`.`revision_userindex` AS revs JOIN `iawiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `iawiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `iawiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `iawiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1537 ) UNION ( SELECT 'idwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `idwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `idwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `idwikibooks_p`.`revision_userindex` AS revs JOIN `idwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `idwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `idwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `idwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 12454 ) UNION ( SELECT 'idwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `idwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `idwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `idwikiquote_p`.`revision_userindex` AS revs JOIN `idwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `idwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `idwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `idwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4723 ) UNION ( SELECT 'idwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `idwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `idwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `idwikisource_p`.`revision_userindex` AS revs JOIN `idwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `idwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `idwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `idwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5971 ) UNION ( SELECT 'idwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `idwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `idwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `idwiktionary_p`.`revision_userindex` AS revs JOIN `idwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `idwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `idwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `idwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8047 ) UNION ( SELECT 'iewiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `iewiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `iewiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `iewiki_p`.`revision_userindex` AS revs JOIN `iewiki_p`.`page` AS page ON (rev_page = page_id) JOIN `iewiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `iewiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `iewiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5652 ) UNION ( SELECT 'iewikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `iewikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `iewikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `iewikibooks_p`.`revision_userindex` AS revs JOIN `iewikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `iewikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `iewikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `iewikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 815 ) UNION ( SELECT 'iewiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `iewiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `iewiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `iewiktionary_p`.`revision_userindex` AS revs JOIN `iewiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `iewiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `iewiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `iewiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1060 ) UNION ( SELECT 'igwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `igwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `igwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `igwiki_p`.`revision_userindex` AS revs JOIN `igwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `igwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `igwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `igwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4457 ) UNION ( SELECT 'ikwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ikwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ikwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ikwiki_p`.`revision_userindex` AS revs JOIN `ikwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `ikwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ikwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ikwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2969 ) UNION ( SELECT 'ikwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ikwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ikwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ikwiktionary_p`.`revision_userindex` AS revs JOIN `ikwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `ikwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ikwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ikwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 992 ) UNION ( SELECT 'ilowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ilowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ilowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ilowiki_p`.`revision_userindex` AS revs JOIN `ilowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `ilowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ilowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ilowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6979 ) UNION ( SELECT 'incubatorwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `incubatorwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `incubatorwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `incubatorwiki_p`.`revision_userindex` AS revs JOIN `incubatorwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `incubatorwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `incubatorwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `incubatorwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 20997 ) UNION ( SELECT 'inhwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `inhwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `inhwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `inhwiki_p`.`revision_userindex` AS revs JOIN `inhwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `inhwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `inhwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `inhwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 662 ) UNION ( SELECT 'iowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `iowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `iowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `iowiki_p`.`revision_userindex` AS revs JOIN `iowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `iowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `iowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `iowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 14993 ) UNION ( SELECT 'iowiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `iowiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `iowiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `iowiktionary_p`.`revision_userindex` AS revs JOIN `iowiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `iowiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `iowiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `iowiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3499 ) UNION ( SELECT 'iswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `iswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `iswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `iswiki_p`.`revision_userindex` AS revs JOIN `iswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `iswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `iswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `iswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 33752 ) UNION ( SELECT 'iswikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `iswikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `iswikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `iswikibooks_p`.`revision_userindex` AS revs JOIN `iswikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `iswikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `iswikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `iswikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1964 ) UNION ( SELECT 'iswikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `iswikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `iswikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `iswikiquote_p`.`revision_userindex` AS revs JOIN `iswikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `iswikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `iswikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `iswikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1158 ) UNION ( SELECT 'iswikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `iswikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `iswikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `iswikisource_p`.`revision_userindex` AS revs JOIN `iswikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `iswikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `iswikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `iswikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1229 ) UNION ( SELECT 'iswiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `iswiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `iswiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `iswiktionary_p`.`revision_userindex` AS revs JOIN `iswiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `iswiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `iswiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `iswiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3022 ) UNION ( SELECT 'itwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `itwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `itwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `itwikibooks_p`.`revision_userindex` AS revs JOIN `itwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `itwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `itwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `itwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 18361 ) UNION ( SELECT 'itwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `itwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `itwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `itwikinews_p`.`revision_userindex` AS revs JOIN `itwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `itwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `itwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `itwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 11230 ) UNION ( SELECT 'itwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `itwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `itwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `itwikiquote_p`.`revision_userindex` AS revs JOIN `itwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `itwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `itwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `itwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 30938 ) UNION ( SELECT 'itwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `itwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `itwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `itwikisource_p`.`revision_userindex` AS revs JOIN `itwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `itwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `itwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `itwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 16572 ) UNION ( SELECT 'itwikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `itwikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `itwikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `itwikiversity_p`.`revision_userindex` AS revs JOIN `itwikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `itwikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `itwikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `itwikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 11021 ) UNION ( SELECT 'itwikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `itwikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `itwikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `itwikivoyage_p`.`revision_userindex` AS revs JOIN `itwikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `itwikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `itwikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `itwikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5576 ) UNION ( SELECT 'itwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `itwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `itwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `itwiktionary_p`.`revision_userindex` AS revs JOIN `itwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `itwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `itwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `itwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 23741 ) UNION ( SELECT 'iuwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `iuwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `iuwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `iuwiki_p`.`revision_userindex` AS revs JOIN `iuwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `iuwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `iuwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `iuwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6349 ) UNION ( SELECT 'iuwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `iuwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `iuwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `iuwiktionary_p`.`revision_userindex` AS revs JOIN `iuwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `iuwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `iuwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `iuwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1024 ) UNION ( SELECT 'jamwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `jamwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `jamwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `jamwiki_p`.`revision_userindex` AS revs JOIN `jamwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `jamwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `jamwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `jamwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1035 ) UNION ( SELECT 'jawikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `jawikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `jawikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `jawikibooks_p`.`revision_userindex` AS revs JOIN `jawikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `jawikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `jawikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `jawikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 12874 ) UNION ( SELECT 'jawikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `jawikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `jawikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `jawikinews_p`.`revision_userindex` AS revs JOIN `jawikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `jawikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `jawikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `jawikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6463 ) UNION ( SELECT 'jawikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `jawikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `jawikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `jawikiquote_p`.`revision_userindex` AS revs JOIN `jawikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `jawikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `jawikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `jawikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4835 ) UNION ( SELECT 'jawikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `jawikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `jawikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `jawikisource_p`.`revision_userindex` AS revs JOIN `jawikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `jawikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `jawikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `jawikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6639 ) UNION ( SELECT 'jawikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `jawikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `jawikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `jawikiversity_p`.`revision_userindex` AS revs JOIN `jawikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `jawikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `jawikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `jawikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3202 ) UNION ( SELECT 'jawiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `jawiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `jawiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `jawiktionary_p`.`revision_userindex` AS revs JOIN `jawiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `jawiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `jawiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `jawiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 16178 ) UNION ( SELECT 'jbowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `jbowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `jbowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `jbowiki_p`.`revision_userindex` AS revs JOIN `jbowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `jbowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `jbowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `jbowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5971 ) UNION ( SELECT 'jbowiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `jbowiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `jbowiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `jbowiktionary_p`.`revision_userindex` AS revs JOIN `jbowiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `jbowiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `jbowiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `jbowiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 984 ) UNION ( SELECT 'jvwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `jvwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `jvwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `jvwiki_p`.`revision_userindex` AS revs JOIN `jvwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `jvwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `jvwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `jvwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 14489 ) UNION ( SELECT 'jvwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `jvwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `jvwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `jvwiktionary_p`.`revision_userindex` AS revs JOIN `jvwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `jvwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `jvwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `jvwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 999 ) UNION ( SELECT 'kaawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kaawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kaawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kaawiki_p`.`revision_userindex` AS revs JOIN `kaawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `kaawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kaawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kaawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4032 ) UNION ( SELECT 'kabwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kabwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kabwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kabwiki_p`.`revision_userindex` AS revs JOIN `kabwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `kabwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kabwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kabwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4173 ) UNION ( SELECT 'kawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kawiki_p`.`revision_userindex` AS revs JOIN `kawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `kawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6001 ) UNION ( SELECT 'kawikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kawikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kawikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kawikibooks_p`.`revision_userindex` AS revs JOIN `kawikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `kawikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kawikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kawikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2449 ) UNION ( SELECT 'kawikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kawikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kawikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kawikiquote_p`.`revision_userindex` AS revs JOIN `kawikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `kawikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kawikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kawikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1987 ) UNION ( SELECT 'kawiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kawiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kawiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kawiktionary_p`.`revision_userindex` AS revs JOIN `kawiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `kawiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kawiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kawiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2112 ) UNION ( SELECT 'kbdwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kbdwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kbdwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kbdwiki_p`.`revision_userindex` AS revs JOIN `kbdwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `kbdwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kbdwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kbdwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2585 ) UNION ( SELECT 'kbpwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kbpwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kbpwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kbpwiki_p`.`revision_userindex` AS revs JOIN `kbpwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `kbpwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kbpwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kbpwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 948 ) UNION ( SELECT 'kgwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kgwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kgwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kgwiki_p`.`revision_userindex` AS revs JOIN `kgwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `kgwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kgwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kgwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3528 ) UNION ( SELECT 'kiwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kiwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kiwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kiwiki_p`.`revision_userindex` AS revs JOIN `kiwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `kiwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kiwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kiwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2752 ) UNION ( SELECT 'kkwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kkwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kkwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kkwiki_p`.`revision_userindex` AS revs JOIN `kkwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `kkwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kkwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kkwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 18344 ) UNION ( SELECT 'kkwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kkwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kkwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kkwikibooks_p`.`revision_userindex` AS revs JOIN `kkwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `kkwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kkwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kkwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1013 ) UNION ( SELECT 'kkwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kkwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kkwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kkwiktionary_p`.`revision_userindex` AS revs JOIN `kkwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `kkwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kkwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kkwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1350 ) UNION ( SELECT 'klwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `klwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `klwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `klwiki_p`.`revision_userindex` AS revs JOIN `klwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `klwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `klwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `klwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5203 ) UNION ( SELECT 'klwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `klwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `klwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `klwiktionary_p`.`revision_userindex` AS revs JOIN `klwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `klwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `klwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `klwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1144 ) UNION ( SELECT 'kmwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kmwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kmwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kmwiki_p`.`revision_userindex` AS revs JOIN `kmwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `kmwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kmwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kmwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9111 ) UNION ( SELECT 'kmwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kmwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kmwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kmwikibooks_p`.`revision_userindex` AS revs JOIN `kmwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `kmwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kmwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kmwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1075 ) UNION ( SELECT 'kmwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kmwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kmwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kmwiktionary_p`.`revision_userindex` AS revs JOIN `kmwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `kmwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kmwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kmwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1325 ) UNION ( SELECT 'knwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `knwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `knwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `knwiki_p`.`revision_userindex` AS revs JOIN `knwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `knwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `knwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `knwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 16488 ) UNION ( SELECT 'knwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `knwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `knwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `knwikiquote_p`.`revision_userindex` AS revs JOIN `knwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `knwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `knwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `knwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 811 ) UNION ( SELECT 'knwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `knwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `knwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `knwikisource_p`.`revision_userindex` AS revs JOIN `knwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `knwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `knwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `knwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1189 ) UNION ( SELECT 'knwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `knwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `knwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `knwiktionary_p`.`revision_userindex` AS revs JOIN `knwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `knwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `knwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `knwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1960 ) UNION ( SELECT 'koiwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `koiwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `koiwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `koiwiki_p`.`revision_userindex` AS revs JOIN `koiwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `koiwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `koiwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `koiwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2724 ) UNION ( SELECT 'kowikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kowikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kowikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kowikibooks_p`.`revision_userindex` AS revs JOIN `kowikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `kowikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kowikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kowikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3999 ) UNION ( SELECT 'kowikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kowikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kowikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kowikinews_p`.`revision_userindex` AS revs JOIN `kowikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `kowikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kowikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kowikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1466 ) UNION ( SELECT 'kowikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kowikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kowikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kowikiquote_p`.`revision_userindex` AS revs JOIN `kowikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `kowikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kowikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kowikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2413 ) UNION ( SELECT 'kowikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kowikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kowikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kowikisource_p`.`revision_userindex` AS revs JOIN `kowikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `kowikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kowikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kowikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4247 ) UNION ( SELECT 'kowikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kowikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kowikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kowikiversity_p`.`revision_userindex` AS revs JOIN `kowikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `kowikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kowikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kowikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 264 ) UNION ( SELECT 'kowiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kowiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kowiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kowiktionary_p`.`revision_userindex` AS revs JOIN `kowiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `kowiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kowiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kowiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6784 ) UNION ( SELECT 'krcwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `krcwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `krcwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `krcwiki_p`.`revision_userindex` AS revs JOIN `krcwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `krcwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `krcwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `krcwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2194 ) UNION ( SELECT 'kshwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kshwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kshwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kshwiki_p`.`revision_userindex` AS revs JOIN `kshwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `kshwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kshwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kshwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10555 ) UNION ( SELECT 'kswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kswiki_p`.`revision_userindex` AS revs JOIN `kswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `kswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3538 ) UNION ( SELECT 'kswiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kswiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kswiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kswiktionary_p`.`revision_userindex` AS revs JOIN `kswiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `kswiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kswiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kswiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 850 ) UNION ( SELECT 'kuwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kuwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kuwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kuwiki_p`.`revision_userindex` AS revs JOIN `kuwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `kuwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kuwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kuwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 17855 ) UNION ( SELECT 'kuwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kuwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kuwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kuwikibooks_p`.`revision_userindex` AS revs JOIN `kuwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `kuwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kuwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kuwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 869 ) UNION ( SELECT 'kuwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kuwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kuwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kuwikiquote_p`.`revision_userindex` AS revs JOIN `kuwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `kuwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kuwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kuwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1468 ) UNION ( SELECT 'kuwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kuwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kuwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kuwiktionary_p`.`revision_userindex` AS revs JOIN `kuwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `kuwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kuwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kuwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2804 ) UNION ( SELECT 'kvwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kvwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kvwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kvwiki_p`.`revision_userindex` AS revs JOIN `kvwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `kvwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kvwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kvwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5412 ) UNION ( SELECT 'kwwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kwwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kwwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kwwiki_p`.`revision_userindex` AS revs JOIN `kwwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `kwwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kwwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kwwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5692 ) UNION ( SELECT 'kwwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kwwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kwwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kwwiktionary_p`.`revision_userindex` AS revs JOIN `kwwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `kwwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kwwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kwwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 936 ) UNION ( SELECT 'kywiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kywiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kywiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kywiki_p`.`revision_userindex` AS revs JOIN `kywiki_p`.`page` AS page ON (rev_page = page_id) JOIN `kywiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kywiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kywiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8952 ) UNION ( SELECT 'kywikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kywikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kywikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kywikibooks_p`.`revision_userindex` AS revs JOIN `kywikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `kywikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kywikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kywikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 824 ) UNION ( SELECT 'kywikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kywikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kywikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kywikiquote_p`.`revision_userindex` AS revs JOIN `kywikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `kywikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kywikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kywikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 703 ) UNION ( SELECT 'kywiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `kywiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `kywiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `kywiktionary_p`.`revision_userindex` AS revs JOIN `kywiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `kywiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `kywiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `kywiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6424 ) UNION ( SELECT 'ladwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ladwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ladwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ladwiki_p`.`revision_userindex` AS revs JOIN `ladwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `ladwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ladwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ladwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7869 ) UNION ( SELECT 'lawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lawiki_p`.`revision_userindex` AS revs JOIN `lawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `lawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 44939 ) UNION ( SELECT 'lawikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lawikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lawikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lawikibooks_p`.`revision_userindex` AS revs JOIN `lawikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `lawikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lawikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lawikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1281 ) UNION ( SELECT 'lawikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lawikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lawikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lawikiquote_p`.`revision_userindex` AS revs JOIN `lawikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `lawikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lawikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lawikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1663 ) UNION ( SELECT 'lawikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lawikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lawikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lawikisource_p`.`revision_userindex` AS revs JOIN `lawikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `lawikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lawikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lawikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7080 ) UNION ( SELECT 'lawiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lawiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lawiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lawiktionary_p`.`revision_userindex` AS revs JOIN `lawiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `lawiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lawiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lawiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4692 ) UNION ( SELECT 'lbewiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lbewiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lbewiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lbewiki_p`.`revision_userindex` AS revs JOIN `lbewiki_p`.`page` AS page ON (rev_page = page_id) JOIN `lbewiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lbewiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lbewiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3603 ) UNION ( SELECT 'lbwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lbwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lbwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lbwiki_p`.`revision_userindex` AS revs JOIN `lbwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `lbwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lbwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lbwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 18777 ) UNION ( SELECT 'lbwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lbwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lbwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lbwiktionary_p`.`revision_userindex` AS revs JOIN `lbwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `lbwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lbwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lbwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1302 ) UNION ( SELECT 'lezwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lezwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lezwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lezwiki_p`.`revision_userindex` AS revs JOIN `lezwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `lezwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lezwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lezwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2282 ) UNION ( SELECT 'lgwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lgwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lgwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lgwiki_p`.`revision_userindex` AS revs JOIN `lgwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `lgwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lgwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lgwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2434 ) UNION ( SELECT 'lijwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lijwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lijwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lijwiki_p`.`revision_userindex` AS revs JOIN `lijwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `lijwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lijwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lijwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5220 ) UNION ( SELECT 'liwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `liwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `liwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `liwiki_p`.`revision_userindex` AS revs JOIN `liwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `liwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `liwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `liwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10834 ) UNION ( SELECT 'liwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `liwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `liwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `liwikibooks_p`.`revision_userindex` AS revs JOIN `liwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `liwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `liwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `liwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 482 ) UNION ( SELECT 'liwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `liwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `liwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `liwikiquote_p`.`revision_userindex` AS revs JOIN `liwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `liwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `liwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `liwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 973 ) UNION ( SELECT 'liwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `liwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `liwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `liwikisource_p`.`revision_userindex` AS revs JOIN `liwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `liwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `liwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `liwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 821 ) UNION ( SELECT 'liwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `liwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `liwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `liwiktionary_p`.`revision_userindex` AS revs JOIN `liwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `liwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `liwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `liwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1962 ) UNION ( SELECT 'lmowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lmowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lmowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lmowiki_p`.`revision_userindex` AS revs JOIN `lmowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `lmowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lmowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lmowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 11649 ) UNION ( SELECT 'lnwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lnwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lnwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lnwiki_p`.`revision_userindex` AS revs JOIN `lnwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `lnwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lnwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lnwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4602 ) UNION ( SELECT 'lnwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lnwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lnwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lnwiktionary_p`.`revision_userindex` AS revs JOIN `lnwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `lnwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lnwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lnwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 941 ) UNION ( SELECT 'lowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lowiki_p`.`revision_userindex` AS revs JOIN `lowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `lowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5281 ) UNION ( SELECT 'lrcwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lrcwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lrcwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lrcwiki_p`.`revision_userindex` AS revs JOIN `lrcwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `lrcwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lrcwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lrcwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 861 ) UNION ( SELECT 'ltgwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ltgwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ltgwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ltgwiki_p`.`revision_userindex` AS revs JOIN `ltgwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `ltgwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ltgwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ltgwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1392 ) UNION ( SELECT 'ltwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ltwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ltwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ltwiki_p`.`revision_userindex` AS revs JOIN `ltwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `ltwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ltwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ltwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4355 ) UNION ( SELECT 'ltwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ltwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ltwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ltwikibooks_p`.`revision_userindex` AS revs JOIN `ltwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `ltwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ltwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ltwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1531 ) UNION ( SELECT 'ltwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ltwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ltwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ltwikiquote_p`.`revision_userindex` AS revs JOIN `ltwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `ltwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ltwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ltwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2370 ) UNION ( SELECT 'ltwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ltwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ltwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ltwikisource_p`.`revision_userindex` AS revs JOIN `ltwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `ltwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ltwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ltwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1375 ) UNION ( SELECT 'ltwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ltwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ltwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ltwiktionary_p`.`revision_userindex` AS revs JOIN `ltwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `ltwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ltwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ltwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4389 ) UNION ( SELECT 'lvwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lvwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lvwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lvwiki_p`.`revision_userindex` AS revs JOIN `lvwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `lvwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lvwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lvwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 43143 ) UNION ( SELECT 'lvwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `lvwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `lvwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `lvwiktionary_p`.`revision_userindex` AS revs JOIN `lvwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `lvwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `lvwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `lvwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1650 ) UNION ( SELECT 'maiwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `maiwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `maiwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `maiwiki_p`.`revision_userindex` AS revs JOIN `maiwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `maiwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `maiwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `maiwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2544 ) UNION ( SELECT 'map_bmswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `map_bmswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `map_bmswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `map_bmswiki_p`.`revision_userindex` AS revs JOIN `map_bmswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `map_bmswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `map_bmswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `map_bmswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5978 ) UNION ( SELECT 'mdfwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mdfwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mdfwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mdfwiki_p`.`revision_userindex` AS revs JOIN `mdfwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `mdfwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mdfwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mdfwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3544 ) UNION ( SELECT 'mediawikiwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mediawikiwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mediawikiwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mediawikiwiki_p`.`revision_userindex` AS revs JOIN `mediawikiwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `mediawikiwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mediawikiwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mediawikiwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1086956 ) UNION ( SELECT 'mgwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mgwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mgwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mgwiki_p`.`revision_userindex` AS revs JOIN `mgwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `mgwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mgwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mgwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9121 ) UNION ( SELECT 'mgwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mgwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mgwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mgwikibooks_p`.`revision_userindex` AS revs JOIN `mgwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `mgwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mgwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mgwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 768 ) UNION ( SELECT 'mhrwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mhrwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mhrwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mhrwiki_p`.`revision_userindex` AS revs JOIN `mhrwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `mhrwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mhrwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mhrwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5005 ) UNION ( SELECT 'minwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `minwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `minwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `minwiki_p`.`revision_userindex` AS revs JOIN `minwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `minwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `minwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `minwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 907 ) UNION ( SELECT 'miwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `miwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `miwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `miwiki_p`.`revision_userindex` AS revs JOIN `miwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `miwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `miwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `miwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4633 ) UNION ( SELECT 'miwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `miwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `miwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `miwiktionary_p`.`revision_userindex` AS revs JOIN `miwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `miwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `miwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `miwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1070 ) UNION ( SELECT 'mkwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mkwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mkwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mkwiki_p`.`revision_userindex` AS revs JOIN `mkwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `mkwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mkwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mkwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 33167 ) UNION ( SELECT 'mkwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mkwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mkwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mkwikibooks_p`.`revision_userindex` AS revs JOIN `mkwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `mkwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mkwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mkwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1513 ) UNION ( SELECT 'mkwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mkwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mkwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mkwikisource_p`.`revision_userindex` AS revs JOIN `mkwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `mkwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mkwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mkwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1281 ) UNION ( SELECT 'mkwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mkwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mkwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mkwiktionary_p`.`revision_userindex` AS revs JOIN `mkwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `mkwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mkwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mkwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1322 ) UNION ( SELECT 'mlwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mlwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mlwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mlwiki_p`.`revision_userindex` AS revs JOIN `mlwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `mlwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mlwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mlwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 115424 ) UNION ( SELECT 'mlwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mlwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mlwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mlwikibooks_p`.`revision_userindex` AS revs JOIN `mlwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `mlwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mlwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mlwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1723 ) UNION ( SELECT 'mlwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mlwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mlwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mlwikiquote_p`.`revision_userindex` AS revs JOIN `mlwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `mlwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mlwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mlwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1637 ) UNION ( SELECT 'mlwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mlwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mlwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mlwikisource_p`.`revision_userindex` AS revs JOIN `mlwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `mlwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mlwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mlwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3137 ) UNION ( SELECT 'mlwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mlwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mlwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mlwiktionary_p`.`revision_userindex` AS revs JOIN `mlwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `mlwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mlwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mlwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2709 ) UNION ( SELECT 'mnwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mnwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mnwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mnwiki_p`.`revision_userindex` AS revs JOIN `mnwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `mnwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mnwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mnwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 23569 ) UNION ( SELECT 'mnwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mnwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mnwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mnwiktionary_p`.`revision_userindex` AS revs JOIN `mnwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `mnwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mnwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mnwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1317 ) UNION ( SELECT 'mrjwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mrjwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mrjwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mrjwiki_p`.`revision_userindex` AS revs JOIN `mrjwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `mrjwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mrjwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mrjwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3390 ) UNION ( SELECT 'mrwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mrwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mrwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mrwiki_p`.`revision_userindex` AS revs JOIN `mrwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `mrwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mrwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mrwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 35928 ) UNION ( SELECT 'mrwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mrwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mrwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mrwikibooks_p`.`revision_userindex` AS revs JOIN `mrwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `mrwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mrwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mrwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1452 ) UNION ( SELECT 'mrwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mrwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mrwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mrwikiquote_p`.`revision_userindex` AS revs JOIN `mrwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `mrwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mrwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mrwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1010 ) UNION ( SELECT 'mrwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mrwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mrwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mrwikisource_p`.`revision_userindex` AS revs JOIN `mrwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `mrwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mrwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mrwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 707 ) UNION ( SELECT 'mrwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mrwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mrwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mrwiktionary_p`.`revision_userindex` AS revs JOIN `mrwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `mrwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mrwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mrwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1524 ) UNION ( SELECT 'mswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mswiki_p`.`revision_userindex` AS revs JOIN `mswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `mswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 106442 ) UNION ( SELECT 'mswikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mswikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mswikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mswikibooks_p`.`revision_userindex` AS revs JOIN `mswikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `mswikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mswikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mswikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1362 ) UNION ( SELECT 'mswiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mswiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mswiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mswiktionary_p`.`revision_userindex` AS revs JOIN `mswiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `mswiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mswiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mswiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2116 ) UNION ( SELECT 'mtwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mtwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mtwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mtwiki_p`.`revision_userindex` AS revs JOIN `mtwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `mtwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mtwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mtwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8001 ) UNION ( SELECT 'mtwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mtwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mtwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mtwiktionary_p`.`revision_userindex` AS revs JOIN `mtwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `mtwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mtwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mtwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1023 ) UNION ( SELECT 'mwlwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mwlwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mwlwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mwlwiki_p`.`revision_userindex` AS revs JOIN `mwlwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `mwlwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mwlwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mwlwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4720 ) UNION ( SELECT 'myvwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `myvwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `myvwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `myvwiki_p`.`revision_userindex` AS revs JOIN `myvwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `myvwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `myvwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `myvwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4601 ) UNION ( SELECT 'mywiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mywiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mywiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mywiki_p`.`revision_userindex` AS revs JOIN `mywiki_p`.`page` AS page ON (rev_page = page_id) JOIN `mywiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mywiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mywiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 11690 ) UNION ( SELECT 'mywiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mywiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mywiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mywiktionary_p`.`revision_userindex` AS revs JOIN `mywiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `mywiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mywiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mywiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2275 ) UNION ( SELECT 'mznwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `mznwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `mznwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `mznwiki_p`.`revision_userindex` AS revs JOIN `mznwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `mznwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `mznwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `mznwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7100 ) UNION ( SELECT 'nahwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nahwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nahwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nahwiki_p`.`revision_userindex` AS revs JOIN `nahwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `nahwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nahwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nahwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9330 ) UNION ( SELECT 'nahwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nahwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nahwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nahwiktionary_p`.`revision_userindex` AS revs JOIN `nahwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `nahwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nahwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nahwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1087 ) UNION ( SELECT 'napwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `napwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `napwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `napwiki_p`.`revision_userindex` AS revs JOIN `napwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `napwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `napwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `napwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10357 ) UNION ( SELECT 'nawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nawiki_p`.`revision_userindex` AS revs JOIN `nawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `nawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4116 ) UNION ( SELECT 'nawiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nawiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nawiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nawiktionary_p`.`revision_userindex` AS revs JOIN `nawiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `nawiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nawiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nawiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1202 ) UNION ( SELECT 'nds_nlwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nds_nlwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nds_nlwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nds_nlwiki_p`.`revision_userindex` AS revs JOIN `nds_nlwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `nds_nlwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nds_nlwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nds_nlwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9738 ) UNION ( SELECT 'ndswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ndswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ndswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ndswiki_p`.`revision_userindex` AS revs JOIN `ndswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `ndswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ndswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ndswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 19689 ) UNION ( SELECT 'ndswiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ndswiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ndswiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ndswiktionary_p`.`revision_userindex` AS revs JOIN `ndswiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `ndswiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ndswiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ndswiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1362 ) UNION ( SELECT 'newiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `newiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `newiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `newiki_p`.`revision_userindex` AS revs JOIN `newiki_p`.`page` AS page ON (rev_page = page_id) JOIN `newiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `newiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `newiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 15038 ) UNION ( SELECT 'newikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `newikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `newikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `newikibooks_p`.`revision_userindex` AS revs JOIN `newikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `newikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `newikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `newikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1123 ) UNION ( SELECT 'newiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `newiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `newiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `newiktionary_p`.`revision_userindex` AS revs JOIN `newiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `newiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `newiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `newiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5675 ) UNION ( SELECT 'newwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `newwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `newwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `newwiki_p`.`revision_userindex` AS revs JOIN `newwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `newwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `newwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `newwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10056 ) UNION ( SELECT 'nlwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nlwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nlwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nlwikibooks_p`.`revision_userindex` AS revs JOIN `nlwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `nlwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nlwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nlwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10656 ) UNION ( SELECT 'nlwikimedia' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nlwikimedia_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nlwikimedia_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nlwikimedia_p`.`revision_userindex` AS revs JOIN `nlwikimedia_p`.`page` AS page ON (rev_page = page_id) JOIN `nlwikimedia_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nlwikimedia_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nlwikimedia_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2774 ) UNION ( SELECT 'nlwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nlwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nlwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nlwikinews_p`.`revision_userindex` AS revs JOIN `nlwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `nlwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nlwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nlwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2967 ) UNION ( SELECT 'nlwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nlwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nlwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nlwikiquote_p`.`revision_userindex` AS revs JOIN `nlwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `nlwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nlwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nlwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4838 ) UNION ( SELECT 'nlwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nlwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nlwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nlwikisource_p`.`revision_userindex` AS revs JOIN `nlwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `nlwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nlwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nlwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4136 ) UNION ( SELECT 'nlwikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nlwikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nlwikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nlwikivoyage_p`.`revision_userindex` AS revs JOIN `nlwikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `nlwikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nlwikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nlwikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3596 ) UNION ( SELECT 'nlwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nlwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nlwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nlwiktionary_p`.`revision_userindex` AS revs JOIN `nlwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `nlwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nlwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nlwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 11783 ) UNION ( SELECT 'nnwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nnwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nnwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nnwiki_p`.`revision_userindex` AS revs JOIN `nnwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `nnwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nnwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nnwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 49189 ) UNION ( SELECT 'nnwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nnwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nnwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nnwikiquote_p`.`revision_userindex` AS revs JOIN `nnwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `nnwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nnwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nnwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1333 ) UNION ( SELECT 'nnwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nnwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nnwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nnwiktionary_p`.`revision_userindex` AS revs JOIN `nnwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `nnwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nnwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nnwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1335 ) UNION ( SELECT 'novwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `novwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `novwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `novwiki_p`.`revision_userindex` AS revs JOIN `novwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `novwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `novwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `novwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4403 ) UNION ( SELECT 'nowikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nowikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nowikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nowikibooks_p`.`revision_userindex` AS revs JOIN `nowikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `nowikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nowikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nowikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3005 ) UNION ( SELECT 'nowikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nowikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nowikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nowikinews_p`.`revision_userindex` AS revs JOIN `nowikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `nowikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nowikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nowikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1970 ) UNION ( SELECT 'nowikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nowikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nowikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nowikiquote_p`.`revision_userindex` AS revs JOIN `nowikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `nowikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nowikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nowikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2441 ) UNION ( SELECT 'nowikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nowikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nowikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nowikisource_p`.`revision_userindex` AS revs JOIN `nowikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `nowikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nowikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nowikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2030 ) UNION ( SELECT 'nowiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nowiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nowiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nowiktionary_p`.`revision_userindex` AS revs JOIN `nowiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `nowiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nowiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nowiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5200 ) UNION ( SELECT 'nqowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nqowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nqowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nqowiki_p`.`revision_userindex` AS revs JOIN `nqowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `nqowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nqowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nqowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 171 ) UNION ( SELECT 'nrmwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nrmwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nrmwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nrmwiki_p`.`revision_userindex` AS revs JOIN `nrmwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `nrmwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nrmwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nrmwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5548 ) UNION ( SELECT 'nsowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nsowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nsowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nsowiki_p`.`revision_userindex` AS revs JOIN `nsowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `nsowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nsowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nsowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1317 ) UNION ( SELECT 'nvwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nvwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nvwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nvwiki_p`.`revision_userindex` AS revs JOIN `nvwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `nvwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nvwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nvwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5999 ) UNION ( SELECT 'nywiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `nywiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `nywiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `nywiki_p`.`revision_userindex` AS revs JOIN `nywiki_p`.`page` AS page ON (rev_page = page_id) JOIN `nywiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `nywiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `nywiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2782 ) UNION ( SELECT 'ocwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ocwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ocwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ocwiki_p`.`revision_userindex` AS revs JOIN `ocwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `ocwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ocwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ocwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 17757 ) UNION ( SELECT 'ocwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ocwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ocwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ocwikibooks_p`.`revision_userindex` AS revs JOIN `ocwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `ocwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ocwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ocwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 894 ) UNION ( SELECT 'ocwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ocwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ocwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ocwiktionary_p`.`revision_userindex` AS revs JOIN `ocwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `ocwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ocwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ocwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1829 ) UNION ( SELECT 'olowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `olowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `olowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `olowiki_p`.`revision_userindex` AS revs JOIN `olowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `olowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `olowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `olowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1858 ) UNION ( SELECT 'omwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `omwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `omwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `omwiki_p`.`revision_userindex` AS revs JOIN `omwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `omwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `omwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `omwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2983 ) UNION ( SELECT 'omwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `omwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `omwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `omwiktionary_p`.`revision_userindex` AS revs JOIN `omwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `omwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `omwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `omwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 952 ) UNION ( SELECT 'orwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `orwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `orwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `orwiki_p`.`revision_userindex` AS revs JOIN `orwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `orwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `orwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `orwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6754 ) UNION ( SELECT 'orwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `orwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `orwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `orwikisource_p`.`revision_userindex` AS revs JOIN `orwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `orwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `orwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `orwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 261 ) UNION ( SELECT 'orwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `orwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `orwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `orwiktionary_p`.`revision_userindex` AS revs JOIN `orwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `orwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `orwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `orwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 784 ) UNION ( SELECT 'oswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `oswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `oswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `oswiki_p`.`revision_userindex` AS revs JOIN `oswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `oswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `oswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `oswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7959 ) UNION ( SELECT 'outreachwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `outreachwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `outreachwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `outreachwiki_p`.`revision_userindex` AS revs JOIN `outreachwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `outreachwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `outreachwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `outreachwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5084 ) UNION ( SELECT 'pagwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pagwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pagwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pagwiki_p`.`revision_userindex` AS revs JOIN `pagwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `pagwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pagwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pagwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3121 ) UNION ( SELECT 'pamwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pamwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pamwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pamwiki_p`.`revision_userindex` AS revs JOIN `pamwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `pamwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pamwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pamwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8614 ) UNION ( SELECT 'papwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `papwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `papwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `papwiki_p`.`revision_userindex` AS revs JOIN `papwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `papwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `papwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `papwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4910 ) UNION ( SELECT 'pawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pawiki_p`.`revision_userindex` AS revs JOIN `pawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `pawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8019 ) UNION ( SELECT 'pawikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pawikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pawikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pawikibooks_p`.`revision_userindex` AS revs JOIN `pawikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `pawikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pawikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pawikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 869 ) UNION ( SELECT 'pawikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pawikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pawikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pawikisource_p`.`revision_userindex` AS revs JOIN `pawikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `pawikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pawikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pawikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 413 ) UNION ( SELECT 'pawiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pawiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pawiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pawiktionary_p`.`revision_userindex` AS revs JOIN `pawiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `pawiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pawiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pawiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 976 ) UNION ( SELECT 'pcdwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pcdwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pcdwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pcdwiki_p`.`revision_userindex` AS revs JOIN `pcdwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `pcdwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pcdwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pcdwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4135 ) UNION ( SELECT 'pdcwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pdcwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pdcwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pdcwiki_p`.`revision_userindex` AS revs JOIN `pdcwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `pdcwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pdcwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pdcwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 12310 ) UNION ( SELECT 'pflwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pflwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pflwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pflwiki_p`.`revision_userindex` AS revs JOIN `pflwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `pflwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pflwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pflwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3197 ) UNION ( SELECT 'pihwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pihwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pihwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pihwiki_p`.`revision_userindex` AS revs JOIN `pihwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `pihwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pihwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pihwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3794 ) UNION ( SELECT 'piwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `piwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `piwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `piwiki_p`.`revision_userindex` AS revs JOIN `piwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `piwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `piwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `piwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2641 ) UNION ( SELECT 'plwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `plwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `plwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `plwikibooks_p`.`revision_userindex` AS revs JOIN `plwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `plwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `plwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `plwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 17124 ) UNION ( SELECT 'plwikimedia' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `plwikimedia_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `plwikimedia_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `plwikimedia_p`.`revision_userindex` AS revs JOIN `plwikimedia_p`.`page` AS page ON (rev_page = page_id) JOIN `plwikimedia_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `plwikimedia_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `plwikimedia_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3069 ) UNION ( SELECT 'plwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `plwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `plwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `plwikinews_p`.`revision_userindex` AS revs JOIN `plwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `plwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `plwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `plwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8912 ) UNION ( SELECT 'plwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `plwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `plwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `plwikiquote_p`.`revision_userindex` AS revs JOIN `plwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `plwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `plwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `plwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 20791 ) UNION ( SELECT 'plwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `plwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `plwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `plwikisource_p`.`revision_userindex` AS revs JOIN `plwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `plwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `plwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `plwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 12511 ) UNION ( SELECT 'plwikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `plwikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `plwikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `plwikivoyage_p`.`revision_userindex` AS revs JOIN `plwikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `plwikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `plwikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `plwikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1700 ) UNION ( SELECT 'plwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `plwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `plwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `plwiktionary_p`.`revision_userindex` AS revs JOIN `plwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `plwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `plwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `plwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 22990 ) UNION ( SELECT 'pmswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pmswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pmswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pmswiki_p`.`revision_userindex` AS revs JOIN `pmswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `pmswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pmswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pmswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10958 ) UNION ( SELECT 'pnbwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pnbwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pnbwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pnbwiki_p`.`revision_userindex` AS revs JOIN `pnbwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `pnbwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pnbwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pnbwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10412 ) UNION ( SELECT 'pnbwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pnbwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pnbwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pnbwiktionary_p`.`revision_userindex` AS revs JOIN `pnbwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `pnbwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pnbwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pnbwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 399 ) UNION ( SELECT 'pntwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pntwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pntwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pntwiki_p`.`revision_userindex` AS revs JOIN `pntwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `pntwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pntwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pntwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3019 ) UNION ( SELECT 'pswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pswiki_p`.`revision_userindex` AS revs JOIN `pswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `pswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7589 ) UNION ( SELECT 'pswiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `pswiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `pswiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `pswiktionary_p`.`revision_userindex` AS revs JOIN `pswiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `pswiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `pswiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `pswiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 959 ) UNION ( SELECT 'ptwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ptwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ptwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ptwikibooks_p`.`revision_userindex` AS revs JOIN `ptwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `ptwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ptwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ptwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 21475 ) UNION ( SELECT 'ptwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ptwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ptwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ptwikinews_p`.`revision_userindex` AS revs JOIN `ptwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `ptwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ptwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ptwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7730 ) UNION ( SELECT 'ptwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ptwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ptwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ptwikiquote_p`.`revision_userindex` AS revs JOIN `ptwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `ptwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ptwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ptwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 13170 ) UNION ( SELECT 'ptwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ptwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ptwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ptwikisource_p`.`revision_userindex` AS revs JOIN `ptwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `ptwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ptwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ptwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10904 ) UNION ( SELECT 'ptwikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ptwikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ptwikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ptwikiversity_p`.`revision_userindex` AS revs JOIN `ptwikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `ptwikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ptwikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ptwikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8011 ) UNION ( SELECT 'ptwikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ptwikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ptwikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ptwikivoyage_p`.`revision_userindex` AS revs JOIN `ptwikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `ptwikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ptwikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ptwikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1184 ) UNION ( SELECT 'ptwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ptwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ptwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ptwiktionary_p`.`revision_userindex` AS revs JOIN `ptwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `ptwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ptwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ptwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 37066 ) UNION ( SELECT 'quwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `quwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `quwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `quwiki_p`.`revision_userindex` AS revs JOIN `quwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `quwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `quwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `quwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10507 ) UNION ( SELECT 'quwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `quwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `quwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `quwiktionary_p`.`revision_userindex` AS revs JOIN `quwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `quwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `quwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `quwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 979 ) UNION ( SELECT 'rmwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `rmwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `rmwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `rmwiki_p`.`revision_userindex` AS revs JOIN `rmwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `rmwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `rmwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `rmwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7003 ) UNION ( SELECT 'rmywiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `rmywiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `rmywiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `rmywiki_p`.`revision_userindex` AS revs JOIN `rmywiki_p`.`page` AS page ON (rev_page = page_id) JOIN `rmywiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `rmywiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `rmywiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6818 ) UNION ( SELECT 'rnwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `rnwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `rnwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `rnwiki_p`.`revision_userindex` AS revs JOIN `rnwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `rnwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `rnwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `rnwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3060 ) UNION ( SELECT 'roa_rupwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `roa_rupwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `roa_rupwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `roa_rupwiki_p`.`revision_userindex` AS revs JOIN `roa_rupwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `roa_rupwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `roa_rupwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `roa_rupwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6480 ) UNION ( SELECT 'roa_rupwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `roa_rupwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `roa_rupwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `roa_rupwiktionary_p`.`revision_userindex` AS revs JOIN `roa_rupwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `roa_rupwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `roa_rupwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `roa_rupwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 978 ) UNION ( SELECT 'roa_tarawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `roa_tarawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `roa_tarawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `roa_tarawiki_p`.`revision_userindex` AS revs JOIN `roa_tarawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `roa_tarawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `roa_tarawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `roa_tarawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4820 ) UNION ( SELECT 'rowikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `rowikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `rowikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `rowikibooks_p`.`revision_userindex` AS revs JOIN `rowikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `rowikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `rowikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `rowikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3925 ) UNION ( SELECT 'rowikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `rowikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `rowikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `rowikinews_p`.`revision_userindex` AS revs JOIN `rowikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `rowikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `rowikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `rowikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4998 ) UNION ( SELECT 'rowikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `rowikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `rowikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `rowikiquote_p`.`revision_userindex` AS revs JOIN `rowikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `rowikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `rowikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `rowikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3222 ) UNION ( SELECT 'rowikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `rowikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `rowikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `rowikisource_p`.`revision_userindex` AS revs JOIN `rowikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `rowikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `rowikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `rowikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8676 ) UNION ( SELECT 'rowikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `rowikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `rowikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `rowikivoyage_p`.`revision_userindex` AS revs JOIN `rowikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `rowikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `rowikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `rowikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 446 ) UNION ( SELECT 'rowiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `rowiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `rowiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `rowiktionary_p`.`revision_userindex` AS revs JOIN `rowiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `rowiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `rowiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `rowiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7657 ) UNION ( SELECT 'ruewiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ruewiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ruewiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ruewiki_p`.`revision_userindex` AS revs JOIN `ruewiki_p`.`page` AS page ON (rev_page = page_id) JOIN `ruewiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ruewiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ruewiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5037 ) UNION ( SELECT 'ruwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ruwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ruwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ruwikibooks_p`.`revision_userindex` AS revs JOIN `ruwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `ruwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ruwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ruwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 24326 ) UNION ( SELECT 'ruwikimedia' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ruwikimedia_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ruwikimedia_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ruwikimedia_p`.`revision_userindex` AS revs JOIN `ruwikimedia_p`.`page` AS page ON (rev_page = page_id) JOIN `ruwikimedia_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ruwikimedia_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ruwikimedia_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1296 ) UNION ( SELECT 'ruwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ruwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ruwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ruwikinews_p`.`revision_userindex` AS revs JOIN `ruwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `ruwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ruwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ruwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 17614 ) UNION ( SELECT 'ruwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ruwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ruwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ruwikiquote_p`.`revision_userindex` AS revs JOIN `ruwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `ruwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ruwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ruwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 30412 ) UNION ( SELECT 'ruwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ruwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ruwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ruwikisource_p`.`revision_userindex` AS revs JOIN `ruwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `ruwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ruwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ruwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 27435 ) UNION ( SELECT 'ruwikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ruwikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ruwikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ruwikiversity_p`.`revision_userindex` AS revs JOIN `ruwikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `ruwikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ruwikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ruwikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7911 ) UNION ( SELECT 'ruwikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ruwikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ruwikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ruwikivoyage_p`.`revision_userindex` AS revs JOIN `ruwikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `ruwikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ruwikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ruwikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4071 ) UNION ( SELECT 'ruwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ruwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ruwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ruwiktionary_p`.`revision_userindex` AS revs JOIN `ruwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `ruwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ruwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ruwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 53062 ) UNION ( SELECT 'rwwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `rwwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `rwwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `rwwiki_p`.`revision_userindex` AS revs JOIN `rwwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `rwwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `rwwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `rwwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4054 ) UNION ( SELECT 'rwwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `rwwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `rwwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `rwwiktionary_p`.`revision_userindex` AS revs JOIN `rwwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `rwwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `rwwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `rwwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1008 ) UNION ( SELECT 'sahwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sahwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sahwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sahwiki_p`.`revision_userindex` AS revs JOIN `sahwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `sahwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sahwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sahwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8327 ) UNION ( SELECT 'sahwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sahwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sahwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sahwikiquote_p`.`revision_userindex` AS revs JOIN `sahwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `sahwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sahwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sahwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1303 ) UNION ( SELECT 'sahwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sahwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sahwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sahwikisource_p`.`revision_userindex` AS revs JOIN `sahwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `sahwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sahwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sahwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 602 ) UNION ( SELECT 'sawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sawiki_p`.`revision_userindex` AS revs JOIN `sawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `sawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9486 ) UNION ( SELECT 'sawikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sawikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sawikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sawikibooks_p`.`revision_userindex` AS revs JOIN `sawikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `sawikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sawikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sawikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1005 ) UNION ( SELECT 'sawikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sawikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sawikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sawikiquote_p`.`revision_userindex` AS revs JOIN `sawikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `sawikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sawikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sawikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 142 ) UNION ( SELECT 'sawikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sawikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sawikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sawikisource_p`.`revision_userindex` AS revs JOIN `sawikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `sawikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sawikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sawikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1390 ) UNION ( SELECT 'sawiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sawiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sawiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sawiktionary_p`.`revision_userindex` AS revs JOIN `sawiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `sawiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sawiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sawiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1434 ) UNION ( SELECT 'scnwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `scnwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `scnwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `scnwiki_p`.`revision_userindex` AS revs JOIN `scnwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `scnwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `scnwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `scnwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 16737 ) UNION ( SELECT 'scnwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `scnwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `scnwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `scnwiktionary_p`.`revision_userindex` AS revs JOIN `scnwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `scnwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `scnwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `scnwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1924 ) UNION ( SELECT 'scowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `scowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `scowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `scowiki_p`.`revision_userindex` AS revs JOIN `scowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `scowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `scowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `scowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 17816 ) UNION ( SELECT 'scwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `scwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `scwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `scwiki_p`.`revision_userindex` AS revs JOIN `scwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `scwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `scwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `scwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7566 ) UNION ( SELECT 'sdwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sdwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sdwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sdwiki_p`.`revision_userindex` AS revs JOIN `sdwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `sdwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sdwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sdwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4718 ) UNION ( SELECT 'sdwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sdwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sdwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sdwiktionary_p`.`revision_userindex` AS revs JOIN `sdwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `sdwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sdwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sdwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 993 ) UNION ( SELECT 'sewiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sewiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sewiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sewiki_p`.`revision_userindex` AS revs JOIN `sewiki_p`.`page` AS page ON (rev_page = page_id) JOIN `sewiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sewiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sewiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9186 ) UNION ( SELECT 'sgwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sgwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sgwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sgwiki_p`.`revision_userindex` AS revs JOIN `sgwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `sgwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sgwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sgwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2496 ) UNION ( SELECT 'sgwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sgwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sgwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sgwiktionary_p`.`revision_userindex` AS revs JOIN `sgwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `sgwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sgwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sgwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 897 ) UNION ( SELECT 'shwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `shwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `shwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `shwiktionary_p`.`revision_userindex` AS revs JOIN `shwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `shwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `shwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `shwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1306 ) UNION ( SELECT 'simplewiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `simplewiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `simplewiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `simplewiki_p`.`revision_userindex` AS revs JOIN `simplewiki_p`.`page` AS page ON (rev_page = page_id) JOIN `simplewiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `simplewiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `simplewiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 212280 ) UNION ( SELECT 'simplewiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `simplewiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `simplewiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `simplewiktionary_p`.`revision_userindex` AS revs JOIN `simplewiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `simplewiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `simplewiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `simplewiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9708 ) UNION ( SELECT 'siwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `siwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `siwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `siwiki_p`.`revision_userindex` AS revs JOIN `siwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `siwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `siwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `siwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1837 ) UNION ( SELECT 'siwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `siwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `siwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `siwikibooks_p`.`revision_userindex` AS revs JOIN `siwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `siwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `siwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `siwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1123 ) UNION ( SELECT 'siwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `siwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `siwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `siwiktionary_p`.`revision_userindex` AS revs JOIN `siwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `siwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `siwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `siwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1106 ) UNION ( SELECT 'skwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `skwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `skwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `skwiki_p`.`revision_userindex` AS revs JOIN `skwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `skwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `skwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `skwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 81772 ) UNION ( SELECT 'skwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `skwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `skwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `skwikibooks_p`.`revision_userindex` AS revs JOIN `skwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `skwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `skwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `skwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1740 ) UNION ( SELECT 'skwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `skwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `skwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `skwikiquote_p`.`revision_userindex` AS revs JOIN `skwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `skwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `skwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `skwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3611 ) UNION ( SELECT 'skwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `skwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `skwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `skwikisource_p`.`revision_userindex` AS revs JOIN `skwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `skwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `skwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `skwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1379 ) UNION ( SELECT 'skwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `skwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `skwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `skwiktionary_p`.`revision_userindex` AS revs JOIN `skwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `skwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `skwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `skwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2336 ) UNION ( SELECT 'slwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `slwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `slwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `slwiki_p`.`revision_userindex` AS revs JOIN `slwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `slwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `slwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `slwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10604 ) UNION ( SELECT 'slwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `slwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `slwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `slwikibooks_p`.`revision_userindex` AS revs JOIN `slwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `slwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `slwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `slwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1595 ) UNION ( SELECT 'slwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `slwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `slwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `slwikiquote_p`.`revision_userindex` AS revs JOIN `slwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `slwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `slwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `slwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2777 ) UNION ( SELECT 'slwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `slwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `slwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `slwikisource_p`.`revision_userindex` AS revs JOIN `slwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `slwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `slwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `slwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4189 ) UNION ( SELECT 'slwikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `slwikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `slwikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `slwikiversity_p`.`revision_userindex` AS revs JOIN `slwikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `slwikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `slwikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `slwikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 869 ) UNION ( SELECT 'slwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `slwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `slwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `slwiktionary_p`.`revision_userindex` AS revs JOIN `slwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `slwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `slwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `slwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3152 ) UNION ( SELECT 'smwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `smwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `smwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `smwiki_p`.`revision_userindex` AS revs JOIN `smwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `smwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `smwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `smwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3176 ) UNION ( SELECT 'smwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `smwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `smwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `smwiktionary_p`.`revision_userindex` AS revs JOIN `smwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `smwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `smwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `smwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 935 ) UNION ( SELECT 'snwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `snwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `snwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `snwiki_p`.`revision_userindex` AS revs JOIN `snwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `snwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `snwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `snwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4103 ) UNION ( SELECT 'sourceswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sourceswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sourceswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sourceswiki_p`.`revision_userindex` AS revs JOIN `sourceswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `sourceswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sourceswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sourceswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 36523 ) UNION ( SELECT 'sowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sowiki_p`.`revision_userindex` AS revs JOIN `sowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `sowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8296 ) UNION ( SELECT 'sowiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sowiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sowiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sowiktionary_p`.`revision_userindex` AS revs JOIN `sowiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `sowiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sowiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sowiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 988 ) UNION ( SELECT 'specieswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `specieswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `specieswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `specieswiki_p`.`revision_userindex` AS revs JOIN `specieswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `specieswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `specieswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `specieswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 229999 ) UNION ( SELECT 'sqwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sqwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sqwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sqwiki_p`.`revision_userindex` AS revs JOIN `sqwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `sqwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sqwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sqwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 36099 ) UNION ( SELECT 'sqwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sqwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sqwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sqwikibooks_p`.`revision_userindex` AS revs JOIN `sqwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `sqwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sqwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sqwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2418 ) UNION ( SELECT 'sqwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sqwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sqwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sqwikinews_p`.`revision_userindex` AS revs JOIN `sqwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `sqwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sqwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sqwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 827 ) UNION ( SELECT 'sqwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sqwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sqwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sqwikiquote_p`.`revision_userindex` AS revs JOIN `sqwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `sqwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sqwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sqwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1126 ) UNION ( SELECT 'sqwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sqwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sqwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sqwiktionary_p`.`revision_userindex` AS revs JOIN `sqwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `sqwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sqwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sqwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2089 ) UNION ( SELECT 'srnwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `srnwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `srnwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `srnwiki_p`.`revision_userindex` AS revs JOIN `srnwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `srnwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `srnwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `srnwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2725 ) UNION ( SELECT 'srwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `srwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `srwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `srwikibooks_p`.`revision_userindex` AS revs JOIN `srwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `srwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `srwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `srwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2392 ) UNION ( SELECT 'srwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `srwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `srwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `srwikinews_p`.`revision_userindex` AS revs JOIN `srwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `srwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `srwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `srwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3422 ) UNION ( SELECT 'srwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `srwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `srwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `srwikiquote_p`.`revision_userindex` AS revs JOIN `srwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `srwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `srwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `srwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2393 ) UNION ( SELECT 'srwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `srwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `srwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `srwikisource_p`.`revision_userindex` AS revs JOIN `srwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `srwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `srwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `srwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3680 ) UNION ( SELECT 'srwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `srwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `srwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `srwiktionary_p`.`revision_userindex` AS revs JOIN `srwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `srwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `srwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `srwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3548 ) UNION ( SELECT 'sswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sswiki_p`.`revision_userindex` AS revs JOIN `sswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `sswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3044 ) UNION ( SELECT 'sswiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `sswiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `sswiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `sswiktionary_p`.`revision_userindex` AS revs JOIN `sswiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `sswiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `sswiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `sswiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 971 ) UNION ( SELECT 'stqwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `stqwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `stqwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `stqwiki_p`.`revision_userindex` AS revs JOIN `stqwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `stqwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `stqwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `stqwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5460 ) UNION ( SELECT 'stwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `stwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `stwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `stwiki_p`.`revision_userindex` AS revs JOIN `stwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `stwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `stwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `stwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3498 ) UNION ( SELECT 'stwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `stwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `stwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `stwiktionary_p`.`revision_userindex` AS revs JOIN `stwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `stwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `stwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `stwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1453 ) UNION ( SELECT 'suwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `suwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `suwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `suwiki_p`.`revision_userindex` AS revs JOIN `suwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `suwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `suwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `suwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10788 ) UNION ( SELECT 'suwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `suwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `suwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `suwikiquote_p`.`revision_userindex` AS revs JOIN `suwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `suwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `suwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `suwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 803 ) UNION ( SELECT 'suwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `suwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `suwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `suwiktionary_p`.`revision_userindex` AS revs JOIN `suwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `suwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `suwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `suwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 943 ) UNION ( SELECT 'svwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `svwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `svwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `svwikibooks_p`.`revision_userindex` AS revs JOIN `svwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `svwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `svwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `svwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4035 ) UNION ( SELECT 'svwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `svwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `svwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `svwikinews_p`.`revision_userindex` AS revs JOIN `svwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `svwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `svwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `svwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2797 ) UNION ( SELECT 'svwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `svwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `svwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `svwikiquote_p`.`revision_userindex` AS revs JOIN `svwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `svwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `svwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `svwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3694 ) UNION ( SELECT 'svwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `svwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `svwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `svwikisource_p`.`revision_userindex` AS revs JOIN `svwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `svwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `svwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `svwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3897 ) UNION ( SELECT 'svwikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `svwikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `svwikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `svwikiversity_p`.`revision_userindex` AS revs JOIN `svwikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `svwikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `svwikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `svwikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1833 ) UNION ( SELECT 'svwikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `svwikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `svwikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `svwikivoyage_p`.`revision_userindex` AS revs JOIN `svwikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `svwikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `svwikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `svwikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3013 ) UNION ( SELECT 'svwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `svwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `svwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `svwiktionary_p`.`revision_userindex` AS revs JOIN `svwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `svwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `svwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `svwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 19013 ) UNION ( SELECT 'swwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `swwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `swwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `swwiki_p`.`revision_userindex` AS revs JOIN `swwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `swwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `swwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `swwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 16815 ) UNION ( SELECT 'swwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `swwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `swwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `swwiktionary_p`.`revision_userindex` AS revs JOIN `swwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `swwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `swwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `swwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1567 ) UNION ( SELECT 'szlwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `szlwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `szlwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `szlwiki_p`.`revision_userindex` AS revs JOIN `szlwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `szlwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `szlwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `szlwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8719 ) UNION ( SELECT 'tawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tawiki_p`.`revision_userindex` AS revs JOIN `tawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `tawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 46176 ) UNION ( SELECT 'tawikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tawikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tawikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tawikibooks_p`.`revision_userindex` AS revs JOIN `tawikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `tawikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tawikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tawikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2210 ) UNION ( SELECT 'tawikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tawikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tawikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tawikinews_p`.`revision_userindex` AS revs JOIN `tawikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `tawikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tawikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tawikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2375 ) UNION ( SELECT 'tawikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tawikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tawikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tawikiquote_p`.`revision_userindex` AS revs JOIN `tawikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `tawikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tawikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tawikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1465 ) UNION ( SELECT 'tawikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tawikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tawikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tawikisource_p`.`revision_userindex` AS revs JOIN `tawikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `tawikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tawikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tawikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2204 ) UNION ( SELECT 'tawiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tawiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tawiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tawiktionary_p`.`revision_userindex` AS revs JOIN `tawiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `tawiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tawiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tawiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5741 ) UNION ( SELECT 'tcywiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tcywiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tcywiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tcywiki_p`.`revision_userindex` AS revs JOIN `tcywiki_p`.`page` AS page ON (rev_page = page_id) JOIN `tcywiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tcywiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tcywiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2615 ) UNION ( SELECT 'test2wiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `test2wiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `test2wiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `test2wiki_p`.`revision_userindex` AS revs JOIN `test2wiki_p`.`page` AS page ON (rev_page = page_id) JOIN `test2wiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `test2wiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `test2wiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1939 ) UNION ( SELECT 'testwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `testwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `testwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `testwiki_p`.`revision_userindex` AS revs JOIN `testwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `testwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `testwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `testwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 20239 ) UNION ( SELECT 'testwikidatawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `testwikidatawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `testwikidatawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `testwikidatawiki_p`.`revision_userindex` AS revs JOIN `testwikidatawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `testwikidatawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `testwikidatawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `testwikidatawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7891 ) UNION ( SELECT 'tetwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tetwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tetwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tetwiki_p`.`revision_userindex` AS revs JOIN `tetwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `tetwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tetwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tetwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3241 ) UNION ( SELECT 'tewiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tewiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tewiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tewiki_p`.`revision_userindex` AS revs JOIN `tewiki_p`.`page` AS page ON (rev_page = page_id) JOIN `tewiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tewiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tewiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 38019 ) UNION ( SELECT 'tewikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tewikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tewikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tewikibooks_p`.`revision_userindex` AS revs JOIN `tewikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `tewikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tewikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tewikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1185 ) UNION ( SELECT 'tewikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tewikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tewikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tewikiquote_p`.`revision_userindex` AS revs JOIN `tewikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `tewikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tewikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tewikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1051 ) UNION ( SELECT 'tewikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tewikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tewikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tewikisource_p`.`revision_userindex` AS revs JOIN `tewikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `tewikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tewikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tewikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1586 ) UNION ( SELECT 'tewiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tewiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tewiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tewiktionary_p`.`revision_userindex` AS revs JOIN `tewiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `tewiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tewiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tewiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2135 ) UNION ( SELECT 'tgwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tgwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tgwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tgwiki_p`.`revision_userindex` AS revs JOIN `tgwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `tgwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tgwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tgwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 11049 ) UNION ( SELECT 'tgwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tgwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tgwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tgwikibooks_p`.`revision_userindex` AS revs JOIN `tgwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `tgwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tgwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tgwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 773 ) UNION ( SELECT 'tgwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tgwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tgwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tgwiktionary_p`.`revision_userindex` AS revs JOIN `tgwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `tgwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tgwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tgwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1030 ) UNION ( SELECT 'thwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `thwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `thwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `thwikibooks_p`.`revision_userindex` AS revs JOIN `thwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `thwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `thwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `thwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3607 ) UNION ( SELECT 'thwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `thwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `thwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `thwikiquote_p`.`revision_userindex` AS revs JOIN `thwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `thwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `thwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `thwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2040 ) UNION ( SELECT 'thwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `thwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `thwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `thwikisource_p`.`revision_userindex` AS revs JOIN `thwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `thwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `thwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `thwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3124 ) UNION ( SELECT 'thwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `thwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `thwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `thwiktionary_p`.`revision_userindex` AS revs JOIN `thwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `thwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `thwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `thwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3535 ) UNION ( SELECT 'tiwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tiwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tiwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tiwiki_p`.`revision_userindex` AS revs JOIN `tiwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `tiwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tiwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tiwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2939 ) UNION ( SELECT 'tiwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tiwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tiwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tiwiktionary_p`.`revision_userindex` AS revs JOIN `tiwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `tiwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tiwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tiwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 898 ) UNION ( SELECT 'tkwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tkwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tkwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tkwiki_p`.`revision_userindex` AS revs JOIN `tkwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `tkwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tkwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tkwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7931 ) UNION ( SELECT 'tkwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tkwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tkwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tkwiktionary_p`.`revision_userindex` AS revs JOIN `tkwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `tkwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tkwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tkwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1072 ) UNION ( SELECT 'tlwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tlwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tlwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tlwiki_p`.`revision_userindex` AS revs JOIN `tlwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `tlwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tlwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tlwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 48053 ) UNION ( SELECT 'tlwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tlwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tlwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tlwikibooks_p`.`revision_userindex` AS revs JOIN `tlwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `tlwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tlwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tlwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1886 ) UNION ( SELECT 'tlwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tlwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tlwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tlwiktionary_p`.`revision_userindex` AS revs JOIN `tlwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `tlwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tlwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tlwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1653 ) UNION ( SELECT 'tnwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tnwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tnwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tnwiki_p`.`revision_userindex` AS revs JOIN `tnwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `tnwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tnwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tnwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3139 ) UNION ( SELECT 'tnwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tnwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tnwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tnwiktionary_p`.`revision_userindex` AS revs JOIN `tnwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `tnwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tnwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tnwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 903 ) UNION ( SELECT 'towiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `towiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `towiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `towiki_p`.`revision_userindex` AS revs JOIN `towiki_p`.`page` AS page ON (rev_page = page_id) JOIN `towiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `towiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `towiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3470 ) UNION ( SELECT 'tpiwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tpiwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tpiwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tpiwiki_p`.`revision_userindex` AS revs JOIN `tpiwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `tpiwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tpiwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tpiwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5017 ) UNION ( SELECT 'tpiwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tpiwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tpiwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tpiwiktionary_p`.`revision_userindex` AS revs JOIN `tpiwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `tpiwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tpiwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tpiwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1094 ) UNION ( SELECT 'trwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `trwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `trwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `trwikibooks_p`.`revision_userindex` AS revs JOIN `trwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `trwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `trwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `trwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8540 ) UNION ( SELECT 'trwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `trwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `trwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `trwikinews_p`.`revision_userindex` AS revs JOIN `trwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `trwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `trwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `trwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2445 ) UNION ( SELECT 'trwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `trwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `trwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `trwikiquote_p`.`revision_userindex` AS revs JOIN `trwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `trwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `trwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `trwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 11416 ) UNION ( SELECT 'trwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `trwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `trwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `trwikisource_p`.`revision_userindex` AS revs JOIN `trwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `trwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `trwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `trwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 7858 ) UNION ( SELECT 'trwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `trwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `trwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `trwiktionary_p`.`revision_userindex` AS revs JOIN `trwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `trwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `trwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `trwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 24630 ) UNION ( SELECT 'tswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tswiki_p`.`revision_userindex` AS revs JOIN `tswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `tswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3234 ) UNION ( SELECT 'tswiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tswiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tswiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tswiktionary_p`.`revision_userindex` AS revs JOIN `tswiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `tswiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tswiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tswiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1052 ) UNION ( SELECT 'ttwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ttwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ttwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ttwiki_p`.`revision_userindex` AS revs JOIN `ttwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `ttwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ttwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ttwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 13765 ) UNION ( SELECT 'ttwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ttwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ttwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ttwikibooks_p`.`revision_userindex` AS revs JOIN `ttwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `ttwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ttwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ttwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 905 ) UNION ( SELECT 'ttwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ttwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ttwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ttwiktionary_p`.`revision_userindex` AS revs JOIN `ttwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `ttwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ttwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ttwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1215 ) UNION ( SELECT 'tumwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tumwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tumwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tumwiki_p`.`revision_userindex` AS revs JOIN `tumwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `tumwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tumwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tumwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2489 ) UNION ( SELECT 'twwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `twwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `twwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `twwiki_p`.`revision_userindex` AS revs JOIN `twwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `twwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `twwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `twwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4129 ) UNION ( SELECT 'tyvwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tyvwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tyvwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tyvwiki_p`.`revision_userindex` AS revs JOIN `tyvwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `tyvwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tyvwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tyvwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 836 ) UNION ( SELECT 'tywiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `tywiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `tywiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `tywiki_p`.`revision_userindex` AS revs JOIN `tywiki_p`.`page` AS page ON (rev_page = page_id) JOIN `tywiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `tywiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `tywiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3010 ) UNION ( SELECT 'uawikimedia' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `uawikimedia_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `uawikimedia_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `uawikimedia_p`.`revision_userindex` AS revs JOIN `uawikimedia_p`.`page` AS page ON (rev_page = page_id) JOIN `uawikimedia_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `uawikimedia_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `uawikimedia_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 40 ) UNION ( SELECT 'udmwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `udmwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `udmwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `udmwiki_p`.`revision_userindex` AS revs JOIN `udmwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `udmwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `udmwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `udmwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4033 ) UNION ( SELECT 'ugwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ugwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ugwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ugwiki_p`.`revision_userindex` AS revs JOIN `ugwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `ugwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ugwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ugwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 6321 ) UNION ( SELECT 'ugwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ugwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ugwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ugwiktionary_p`.`revision_userindex` AS revs JOIN `ugwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `ugwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ugwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ugwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1022 ) UNION ( SELECT 'ukwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ukwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ukwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ukwikibooks_p`.`revision_userindex` AS revs JOIN `ukwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `ukwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ukwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ukwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1922 ) UNION ( SELECT 'ukwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ukwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ukwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ukwikinews_p`.`revision_userindex` AS revs JOIN `ukwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `ukwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ukwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ukwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1634 ) UNION ( SELECT 'ukwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ukwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ukwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ukwikiquote_p`.`revision_userindex` AS revs JOIN `ukwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `ukwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ukwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ukwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3703 ) UNION ( SELECT 'ukwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ukwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ukwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ukwikisource_p`.`revision_userindex` AS revs JOIN `ukwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `ukwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ukwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ukwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2622 ) UNION ( SELECT 'ukwikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ukwikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ukwikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ukwikivoyage_p`.`revision_userindex` AS revs JOIN `ukwikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `ukwikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ukwikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ukwikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 643 ) UNION ( SELECT 'ukwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `ukwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `ukwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `ukwiktionary_p`.`revision_userindex` AS revs JOIN `ukwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `ukwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `ukwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `ukwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5016 ) UNION ( SELECT 'urwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `urwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `urwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `urwiki_p`.`revision_userindex` AS revs JOIN `urwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `urwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `urwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `urwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 30310 ) UNION ( SELECT 'urwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `urwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `urwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `urwikibooks_p`.`revision_userindex` AS revs JOIN `urwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `urwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `urwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `urwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1457 ) UNION ( SELECT 'urwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `urwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `urwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `urwikiquote_p`.`revision_userindex` AS revs JOIN `urwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `urwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `urwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `urwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1005 ) UNION ( SELECT 'urwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `urwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `urwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `urwiktionary_p`.`revision_userindex` AS revs JOIN `urwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `urwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `urwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `urwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1649 ) UNION ( SELECT 'uzwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `uzwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `uzwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `uzwiki_p`.`revision_userindex` AS revs JOIN `uzwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `uzwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `uzwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `uzwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 15409 ) UNION ( SELECT 'uzwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `uzwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `uzwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `uzwikibooks_p`.`revision_userindex` AS revs JOIN `uzwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `uzwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `uzwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `uzwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 758 ) UNION ( SELECT 'uzwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `uzwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `uzwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `uzwikiquote_p`.`revision_userindex` AS revs JOIN `uzwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `uzwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `uzwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `uzwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 751 ) UNION ( SELECT 'uzwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `uzwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `uzwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `uzwiktionary_p`.`revision_userindex` AS revs JOIN `uzwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `uzwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `uzwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `uzwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1062 ) UNION ( SELECT 'vecwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `vecwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `vecwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `vecwiki_p`.`revision_userindex` AS revs JOIN `vecwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `vecwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `vecwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `vecwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 11964 ) UNION ( SELECT 'vecwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `vecwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `vecwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `vecwikisource_p`.`revision_userindex` AS revs JOIN `vecwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `vecwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `vecwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `vecwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1142 ) UNION ( SELECT 'vepwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `vepwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `vepwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `vepwiki_p`.`revision_userindex` AS revs JOIN `vepwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `vepwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `vepwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `vepwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3556 ) UNION ( SELECT 'vewiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `vewiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `vewiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `vewiki_p`.`revision_userindex` AS revs JOIN `vewiki_p`.`page` AS page ON (rev_page = page_id) JOIN `vewiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `vewiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `vewiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2541 ) UNION ( SELECT 'viwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `viwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `viwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `viwikibooks_p`.`revision_userindex` AS revs JOIN `viwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `viwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `viwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `viwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 18056 ) UNION ( SELECT 'viwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `viwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `viwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `viwikiquote_p`.`revision_userindex` AS revs JOIN `viwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `viwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `viwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `viwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5005 ) UNION ( SELECT 'viwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `viwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `viwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `viwikisource_p`.`revision_userindex` AS revs JOIN `viwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `viwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `viwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `viwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5822 ) UNION ( SELECT 'viwikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `viwikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `viwikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `viwikivoyage_p`.`revision_userindex` AS revs JOIN `viwikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `viwikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `viwikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `viwikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1080 ) UNION ( SELECT 'viwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `viwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `viwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `viwiktionary_p`.`revision_userindex` AS revs JOIN `viwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `viwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `viwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `viwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 18305 ) UNION ( SELECT 'vlswiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `vlswiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `vlswiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `vlswiki_p`.`revision_userindex` AS revs JOIN `vlswiki_p`.`page` AS page ON (rev_page = page_id) JOIN `vlswiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `vlswiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `vlswiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 9522 ) UNION ( SELECT 'vowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `vowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `vowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `vowiki_p`.`revision_userindex` AS revs JOIN `vowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `vowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `vowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `vowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 17378 ) UNION ( SELECT 'vowiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `vowiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `vowiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `vowiktionary_p`.`revision_userindex` AS revs JOIN `vowiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `vowiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `vowiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `vowiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1439 ) UNION ( SELECT 'warwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `warwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `warwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `warwiki_p`.`revision_userindex` AS revs JOIN `warwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `warwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `warwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `warwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 17564 ) UNION ( SELECT 'wawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `wawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `wawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `wawiki_p`.`revision_userindex` AS revs JOIN `wawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `wawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `wawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `wawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 8075 ) UNION ( SELECT 'wawiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `wawiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `wawiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `wawiktionary_p`.`revision_userindex` AS revs JOIN `wawiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `wawiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `wawiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `wawiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1343 ) UNION ( SELECT 'wikimania2014wiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `wikimania2014wiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `wikimania2014wiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `wikimania2014wiki_p`.`revision_userindex` AS revs JOIN `wikimania2014wiki_p`.`page` AS page ON (rev_page = page_id) JOIN `wikimania2014wiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `wikimania2014wiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `wikimania2014wiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 83 ) UNION ( SELECT 'wikimania2015wiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `wikimania2015wiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `wikimania2015wiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `wikimania2015wiki_p`.`revision_userindex` AS revs JOIN `wikimania2015wiki_p`.`page` AS page ON (rev_page = page_id) JOIN `wikimania2015wiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `wikimania2015wiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `wikimania2015wiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 26 ) UNION ( SELECT 'wikimania2016wiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `wikimania2016wiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `wikimania2016wiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `wikimania2016wiki_p`.`revision_userindex` AS revs JOIN `wikimania2016wiki_p`.`page` AS page ON (rev_page = page_id) JOIN `wikimania2016wiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `wikimania2016wiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `wikimania2016wiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 108 ) UNION ( SELECT 'wikimania2017wiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `wikimania2017wiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `wikimania2017wiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `wikimania2017wiki_p`.`revision_userindex` AS revs JOIN `wikimania2017wiki_p`.`page` AS page ON (rev_page = page_id) JOIN `wikimania2017wiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `wikimania2017wiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `wikimania2017wiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 66 ) UNION ( SELECT 'wikimania2018wiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `wikimania2018wiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `wikimania2018wiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `wikimania2018wiki_p`.`revision_userindex` AS revs JOIN `wikimania2018wiki_p`.`page` AS page ON (rev_page = page_id) JOIN `wikimania2018wiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `wikimania2018wiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `wikimania2018wiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 289 ) UNION ( SELECT 'wikimaniawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `wikimaniawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `wikimaniawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `wikimaniawiki_p`.`revision_userindex` AS revs JOIN `wikimaniawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `wikimaniawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `wikimaniawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `wikimaniawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 259 ) UNION ( SELECT 'wowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `wowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `wowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `wowiki_p`.`revision_userindex` AS revs JOIN `wowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `wowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `wowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `wowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5934 ) UNION ( SELECT 'wowikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `wowikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `wowikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `wowikiquote_p`.`revision_userindex` AS revs JOIN `wowikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `wowikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `wowikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `wowikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 694 ) UNION ( SELECT 'wowiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `wowiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `wowiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `wowiktionary_p`.`revision_userindex` AS revs JOIN `wowiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `wowiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `wowiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `wowiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1055 ) UNION ( SELECT 'wuuwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `wuuwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `wuuwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `wuuwiki_p`.`revision_userindex` AS revs JOIN `wuuwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `wuuwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `wuuwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `wuuwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 19092 ) UNION ( SELECT 'xalwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `xalwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `xalwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `xalwiki_p`.`revision_userindex` AS revs JOIN `xalwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `xalwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `xalwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `xalwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4129 ) UNION ( SELECT 'xhwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `xhwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `xhwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `xhwiki_p`.`revision_userindex` AS revs JOIN `xhwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `xhwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `xhwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `xhwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3490 ) UNION ( SELECT 'xmfwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `xmfwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `xmfwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `xmfwiki_p`.`revision_userindex` AS revs JOIN `xmfwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `xmfwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `xmfwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `xmfwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4343 ) UNION ( SELECT 'yiwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `yiwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `yiwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `yiwiki_p`.`revision_userindex` AS revs JOIN `yiwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `yiwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `yiwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `yiwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 15677 ) UNION ( SELECT 'yiwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `yiwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `yiwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `yiwikisource_p`.`revision_userindex` AS revs JOIN `yiwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `yiwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `yiwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `yiwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1159 ) UNION ( SELECT 'yiwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `yiwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `yiwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `yiwiktionary_p`.`revision_userindex` AS revs JOIN `yiwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `yiwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `yiwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `yiwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 2868 ) UNION ( SELECT 'yowiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `yowiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `yowiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `yowiki_p`.`revision_userindex` AS revs JOIN `yowiki_p`.`page` AS page ON (rev_page = page_id) JOIN `yowiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `yowiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `yowiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 10140 ) UNION ( SELECT 'zawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zawiki_p`.`revision_userindex` AS revs JOIN `zawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `zawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 3660 ) UNION ( SELECT 'zeawiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zeawiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zeawiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zeawiki_p`.`revision_userindex` AS revs JOIN `zeawiki_p`.`page` AS page ON (rev_page = page_id) JOIN `zeawiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zeawiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zeawiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 4661 ) UNION ( SELECT 'zh_classicalwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zh_classicalwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zh_classicalwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zh_classicalwiki_p`.`revision_userindex` AS revs JOIN `zh_classicalwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `zh_classicalwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zh_classicalwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zh_classicalwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 25424 ) UNION ( SELECT 'zh_min_nanwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zh_min_nanwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zh_min_nanwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zh_min_nanwiki_p`.`revision_userindex` AS revs JOIN `zh_min_nanwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `zh_min_nanwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zh_min_nanwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zh_min_nanwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 14298 ) UNION ( SELECT 'zh_min_nanwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zh_min_nanwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zh_min_nanwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zh_min_nanwikiquote_p`.`revision_userindex` AS revs JOIN `zh_min_nanwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `zh_min_nanwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zh_min_nanwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zh_min_nanwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 704 ) UNION ( SELECT 'zh_min_nanwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zh_min_nanwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zh_min_nanwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zh_min_nanwikisource_p`.`revision_userindex` AS revs JOIN `zh_min_nanwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `zh_min_nanwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zh_min_nanwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zh_min_nanwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1024 ) UNION ( SELECT 'zh_min_nanwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zh_min_nanwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zh_min_nanwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zh_min_nanwiktionary_p`.`revision_userindex` AS revs JOIN `zh_min_nanwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `zh_min_nanwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zh_min_nanwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zh_min_nanwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1216 ) UNION ( SELECT 'zh_yuewiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zh_yuewiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zh_yuewiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zh_yuewiki_p`.`revision_userindex` AS revs JOIN `zh_yuewiki_p`.`page` AS page ON (rev_page = page_id) JOIN `zh_yuewiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zh_yuewiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zh_yuewiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 59630 ) UNION ( SELECT 'zhwikibooks' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zhwikibooks_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zhwikibooks_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zhwikibooks_p`.`revision_userindex` AS revs JOIN `zhwikibooks_p`.`page` AS page ON (rev_page = page_id) JOIN `zhwikibooks_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zhwikibooks_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zhwikibooks_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 24921 ) UNION ( SELECT 'zhwikinews' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zhwikinews_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zhwikinews_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zhwikinews_p`.`revision_userindex` AS revs JOIN `zhwikinews_p`.`page` AS page ON (rev_page = page_id) JOIN `zhwikinews_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zhwikinews_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zhwikinews_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 14724 ) UNION ( SELECT 'zhwikiquote' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zhwikiquote_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zhwikiquote_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zhwikiquote_p`.`revision_userindex` AS revs JOIN `zhwikiquote_p`.`page` AS page ON (rev_page = page_id) JOIN `zhwikiquote_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zhwikiquote_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zhwikiquote_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 17274 ) UNION ( SELECT 'zhwikisource' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zhwikisource_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zhwikisource_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zhwikisource_p`.`revision_userindex` AS revs JOIN `zhwikisource_p`.`page` AS page ON (rev_page = page_id) JOIN `zhwikisource_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zhwikisource_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zhwikisource_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 30402 ) UNION ( SELECT 'zhwikiversity' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zhwikiversity_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zhwikiversity_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zhwikiversity_p`.`revision_userindex` AS revs JOIN `zhwikiversity_p`.`page` AS page ON (rev_page = page_id) JOIN `zhwikiversity_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zhwikiversity_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zhwikiversity_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 26228 ) UNION ( SELECT 'zhwikivoyage' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zhwikivoyage_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zhwikivoyage_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zhwikivoyage_p`.`revision_userindex` AS revs JOIN `zhwikivoyage_p`.`page` AS page ON (rev_page = page_id) JOIN `zhwikivoyage_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zhwikivoyage_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zhwikivoyage_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1861 ) UNION ( SELECT 'zhwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zhwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zhwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zhwiktionary_p`.`revision_userindex` AS revs JOIN `zhwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `zhwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zhwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zhwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 21316 ) UNION ( SELECT 'zuwiki' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zuwiki_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zuwiki_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zuwiki_p`.`revision_userindex` AS revs JOIN `zuwiki_p`.`page` AS page ON (rev_page = page_id) JOIN `zuwiki_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zuwiki_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zuwiki_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 5770 ) UNION ( SELECT 'zuwiktionary' AS dbName, revs.rev_id AS id, revs.rev_timestamp AS `timestamp`, UNIX_TIMESTAMP(revs.rev_timestamp) AS `unix_timestamp`, revs.rev_minor_edit AS `minor`, revs.rev_deleted AS `deleted`, revs.rev_len AS `length`, (CAST(revs.rev_len AS SIGNED) - IFNULL(parentrevs.rev_len, 0)) AS `length_change`, revs.rev_parent_id AS `parent_id`, 'Base' AS `username`, page.page_title, page.page_namespace AS `namespace`, comment_text AS `comment`, ( SELECT 1 FROM `zuwiktionary_p`.`change_tag` WHERE ct_rev_id = revs.rev_id AND ct_tag_id = ( SELECT ctd_id FROM `zuwiktionary_p`.`change_tag_def` WHERE ctd_name = 'mw-reverted' ) LIMIT 1 ) AS reverted FROM `zuwiktionary_p`.`revision_userindex` AS revs JOIN `zuwiktionary_p`.`page` AS page ON (rev_page = page_id) JOIN `zuwiktionary_p`.`actor_revision` ON (actor_id = revs.rev_actor) LEFT JOIN `zuwiktionary_p`.`revision_userindex` AS parentrevs ON (revs.rev_parent_id = parentrevs.rev_id) LEFT OUTER JOIN `zuwiktionary_p`.`comment_revision` ON revs.rev_comment_id = comment_id WHERE revs.rev_actor = 1134 )) a ORDER BY timestamp DESC LIMIT 51