query-348fb6d13706f8d02f33a2e4f281fb12

rq turtle/ttl

nuclear power plant (Q134447) SELECT DISTINCT ?item ?itemLabel ?countryLabel ?service_entry ?service_retirement ?official_website WHERE { VALUES ?instances_of { wd:Q134447 } ?item (p:P31/ps:P31) ?instances_of. OPTIONAL { ?item wdt:P17 ?country. } OPTIONAL { ?item wdt:P729 ?service_entry. } OPTIONAL { ?item wdt:P730 ?service_retirement. } OPTIONAL { ?item wdt:P856 ?official_website. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de,fr,ru,es,ja,zh,ar". } } ORDER BY (?countryLabel) (?service_entry) (?service_retirement)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# nuclear power plant (Q134447)
SELECT DISTINCT ?item ?itemLabel ?countryLabel ?service_entry ?service_retirement ?official_website WHERE {
  VALUES ?instances_of {
    wd:Q134447
  }
  ?item (p:P31/ps:P31) ?instances_of.
  OPTIONAL { ?item wdt:P17 ?country. }
  OPTIONAL { ?item wdt:P729 ?service_entry. }
  OPTIONAL { ?item wdt:P730 ?service_retirement. }
  OPTIONAL { ?item wdt:P856 ?official_website. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de,fr,ru,es,ja,zh,ar". }
}
ORDER BY (?countryLabel) (?service_entry) (?service_retirement)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?country") v1("?countryLabel"):::projected v4("?instances_of") v5("?item"):::projected v7("?official_website"):::projected v2("?service_entry"):::projected v3("?service_retirement"):::projected a1((" ")) c10(["#91;AUTO_LANGUAGE#93;,en,de,fr,ru,es,ja,zh,ar"]):::literal c8(["bd:serviceParam"]):::iri bind0[/VALUES ?instances_of/] bind0-->v4 bind00(["wd:Q134447"]) bind00 --> bind0 v5 --"p:P31"--> a1 a1 --"p:statement/P31"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:direct/P17".-> v6 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:direct/P729".-> v2 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:direct/P730".-> v3 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:direct/P856".-> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end