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
Li Song
.
Toggle Highlighting
SQL
use zhwiki_p; SELECT DISTINCT tl_from, page_title, pp_value, rev_id, el_to FROM externallinks, templatelinks, page, page_props, revision WHERE externallinks.el_from = page.page_id AND tl_from_namespace=0 AND tl_namespace=10 AND tl_title = "Douban_people" AND pp_propname = "wikibase_item" AND pp_page = tl_from AND page_id = tl_from AND page_latest = revision.rev_id AND (lower(el_to) LIKE 'https://movie.douban.com/celebrity/%/') LIMIT 100000 # SELECT DISTINCT tl_from, page_title, pp_value FROM templatelinks, page, page_props WHERE tl_from_namespace='.$namespace.' AND tl_namespace=10 AND tl_title = "'.$template.'" AND pp_propname = "wikibase_item" AND pp_page = tl_from AND page_id = tl_from ORDER BY page_latest DESC
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...