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
Jura1
.
Toggle Highlighting
SQL
use wikidatawiki_p; SELECT NOW(); SELECT NOW(); SELECT COUNT(*) FROM page, page_props WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_id = pp_page AND pp_propname="wb-sitelinks" AND pp_sortkey = 0; SELECT NOW(); SELECT COUNT(*) FROM page, page_props WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_id = pp_page AND pp_propname="wb-sitelinks" AND (pp_sortkey = 0 OR pp_sortkey is null) ; SELECT NOW(); SELECT COUNT(*) FROM page, page_props WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_id = pp_page AND pp_propname="wb-sitelinks" AND pp_sortkey is null ; SELECT NOW(); SELECT COUNT(*) FROM page, page_props WHERE page_namespace = 0 AND page_is_redirect = 0 AND page_id = pp_page AND pp_propname="wb-sitelinks" AND pp_value = "0"; SELECT NOW(); SELECT NOW();
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...