query-2d39cc19f62eabda5762511e3cc519d1

rq turtle/ttl

One condition works fine, two time outI often have a problem when I want the intersection of two conditions that work fine in their own queries, but when combined they time out. . Asking for just one condition works fine: (Q155004)Philippe of Belgium and ascendant of (Q108316)Alexander VI For example, I want to know the people that is both descendant of

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?persona ?personaLabel
WHERE {
  wd:Q108316 wdt:P40* ?persona.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,an,eu" .
}
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?persona"):::projected c4(["bd:serviceParam"]):::iri c1(["wd:Q108316"]):::iri c6(["#91;AUTO_LANGUAGE#93;,ca,en,es,an,eu"]):::literal c1 --"wdt:P40"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end