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
MPopov (WMF)
.
A random sample, for help with Phab:T233168
Toggle Highlighting
SQL
SET STATEMENT max_statement_time = 120 FOR USE enwiki_p; SELECT page_id, page_title, page_random, SUM(IF(pp_propname = 'wikibase_item', 1, 0)) > 0 AS wikidata_linked FROM page LEFT JOIN page_props ON page.page_id = page_props.pp_page WHERE page_namespace = 0 AND NOT page_is_redirect GROUP BY page_id, page_title, page_random HAVING NOT wikidata_linked ORDER BY page_random LIMIT 1000;
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...