Wikidata Query Service/Problematic queries

This page lists queries which have some problems running in Blazegraph. Usually that means that we think they should be running fine but for one reason or another they do not. Note that this should not include queries that time out for legitimate reasons - like trying to scan repeatedly through whole database in 30 seconds or missing data triples, etc.

Hard queries
These queries time out or take a lot of time despite the fact that they should be simple. Each query should be accompanied with explanation why we think it is taking more time than it should.

Cities in Saxony
This query should return only  5970 results, and by commenting the first line out it finishes in 758 ms. Adding second path should not break it - even if each of the passes has to be traversed manually, for less than 6000 elements it should not take over 30 seconds.

Optimizer failures
These queries work well with optimizer disabled but not by default.