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
TweetsFactsAndQueries
.
This query searches for lexemes which link to two items, which may be the language and the lexical category of the lexeme (but any other link, e. g. in statements, will also be included). Change the item IDs in lines 10 and 18 to search for different item IDs (Q188 = German, Q24905 = verb). Note that the results will be incomplete until https://phabricator.wikimedia.org/T198301 is done.
Toggle Highlighting
SQL
USE wikidatawiki_p; SELECT page.page_title AS "lexeme ID" FROM page JOIN ( SELECT pl_from FROM pagelinks WHERE pl_from_namespace = 146 AND pl_namespace = 0 AND pl_title = 'Q188' ) language ON language.pl_from = page.page_id JOIN ( SELECT pl_from FROM pagelinks WHERE pl_from_namespace = 146 AND pl_namespace = 0 AND pl_title = 'Q24905' ) lexical_category ON lexical_category.pl_from = page.page_id; 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...