query-45817f9866520ec2b11988b5c0e6c073
Always timeoutI try for many days now to optimize this query (every # parts), but I always timeout. Someone have an idea ? Hi,
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT distinct ?item
?locLabel
?etatLabel
?paysLabel WHERE {
?item wdt:P31/wdt:P279* wd:Q486972 ;
wdt:P17 wd:Q159 ;
wdt:P17 ?pays ;
wdt:P131 ?loc ;
schema:description ?desc ; #"human settlement in Russia"@en ;
wdt:P131* ?etat .
?etat wdt:P131
#wd:Q159 .
#pays2
#filter (?pays = ?pays2)
#FILTER(LANG(?desc) IN ("en")).
#FILTER regex (?desc, "human settlement in Russia").
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
LIMIT 5000