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_text AS painter, COUNT(term_text) AS paintercount 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='Q18600731' 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='P170' 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 'painting by %' WHERE page_namespace=0 AND page_is_redirect=0 AND creatorlink.pl_from IS NULL GROUP BY term_text ORDER BY COUNT(term_text) DESC, painter 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...