Mediawiki API allows to retrieve data which may be useful in queries but not easily accessible. For example, categories hierarchy:
It may be useful to access such queries from WDQS to combine them with Wikidata data. Some research is needed on feasibility and specific design.
See also this thread: https://lists.wikimedia.org/pipermail/wikidata/2016-October/thread.html#9723