Fork of Verification that comment_id = 33984 is the removal of the UploadWizard category by Guillom
This query is marked as a draft This query has been published by Guillom.

SQL

AخA
 
SELECT COUNT(DISTINCT p.page_id) -- Count unique page IDs
FROM page p
JOIN revision r ON p.page_id = r.rev_page
WHERE r.rev_comment_id = 33984 -- Find pages with the desired revision comment
  AND NOT EXISTS ( -- Ensure no disqualifying log entry exists for this page
      SELECT 1 -- Select a constant; we only care if a row exists or not
      FROM logging l
      WHERE l.log_page = p.page_id -- Link log entry to the current page being checked
        AND l.log_comment_id = 44 -- Check for the specific log comment ID to exclude
  );
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...