query-3bf6983d5b189de0bc67391e07b3873c

rq turtle/ttl

Searching for all of a US State's faults). This is what I started with, but I don't know how to run it so it find faults in the state and/or any of its counties. (P150)contains the administrative territorial entity or any of the state's counties (which are listed as (Q1227)Nevada = (P131)located in the administrative territorial entity and (Q47089)fault = (P31)instance of I'm trying to search for all items with

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 ?fault ?faultLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?fault wdt:P31 wd:Q47089.
  ?fault wdt:P131 wd:Q108403.
}
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?fault"):::projected c6(["wd:Q47089"]):::iri c2(["bd:serviceParam"]):::iri c8(["wd:Q108403"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"wdt:P31"--> c6 v1 --"wdt:P131"--> c8