Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Jdcc-berkman
.
Toggle Highlighting
SQL
# https://en.wikipedia.org/wiki/Category:Wikipedia_objectionable_content # https://www.mediawiki.org/wiki/Manual:Categorylinks_table SELECT @min := MIN(rev_id), @max := MAX(rev_id) FROM revision; SELECT DISTINCT revision.rev_id, revision.rev_comment_id, revision.rev_timestamp, revision.rev_minor_edit, revision.rev_parent_id, revision.rev_len, page.* FROM revision JOIN page on revision.rev_page = page.page_id JOIN categorylinks ON categorylinks.cl_from = page.page_id JOIN (SELECT FLOOR(@min + (@max - @min + 1) * RAND(1)) AS rev_id FROM revision LIMIT 5000) AS random USING (rev_id) WHERE rev_deleted = 0 AND categorylinks.cl_to = "Wikipedia_objectionable_content" LIMIT 5000;
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...