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
Egomezalc
.
Toggle Highlighting
SQL
USE wikidatawiki_p; SELECT term_entity_id, term_text AS writer, COUNT(term_text) AS writercount FROM page JOIN pagelinks AS colllink ON page_id=colllink.pl_from AND colllink.pl_from_namespace=0 AND colllink.pl_namespace=0 AND colllink.pl_title='Q5' LEFT JOIN pagelinks AS creatorlink ON page_id=creatorlink.pl_from AND creatorlink.pl_from_namespace=0 AND /*creatorlink.pl_namespace=120 AND*/ creatorlink.pl_title='P50' JOIN wb_terms ON page_title=term_full_entity_id AND term_entity_type='item' AND term_language='en' AND term_type='description' /*AND term_text LIKE 'writing by %'*/ WHERE term_text="Douglas Adams" AND page_namespace=0 AND page_is_redirect=0 AND creatorlink.pl_from IS NULL GROUP BY term_text ORDER BY COUNT(term_text) DESC, writer LIMIT 300;
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...