query-a47d423b7368577c9a368d633563ee90

rq turtle/ttl

Checking which nuclear power stations have Inception and which have Service entry

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 ?object ?objectLabel ?countryLabel ?inception ?service_entry WHERE { 
?object (wdt:P31/wdt:P279*) wd:Q134447;
   wdt:P17 ?country.
  OPTIONAL {?object wdt:P571 ?inception}
  OPTIONAL {?object wdt:P729 ?service_entry }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" }
  } ORDER BY ?countryLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?country") v1("?countryLabel"):::projected v4("?inception"):::projected v2("?object"):::projected v5("?service_entry"):::projected a1((" ")) c8(["bd:serviceParam"]):::iri c3(["wd:Q134447"]):::iri c10(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v2 --"wdt:P17"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P571".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P729".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end