query-e5c64e62f4242a2fda0dea78c33d345d

rq turtle/ttl

Astres du systeme solaire et leurs inspirations(requĂȘte pas de moi)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT distinct ?planet ?planetLabel ?satellite ?satelliteLabel ?named ?namedLabel ?namedDescription WHERE {
  ?planet wdt:P31/wdt:P279* wd:Q13205267.
  ?satellite wdt:P31/wdt:P279* wd:Q2537.
  ?satellite wdt:P397 ?planet.
  ?satellite wdt:P138 ?named.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?planet p:P2244/psv:P2244 ?statement.
      ?statement wikibase:quantityUnit ?unit.
      ?statement wikibase:quantityAmount ?distance.
      ?statement wikibase:quantityNormalized/wikibase:quantityAmount ?distanceNormalized. # convert to normalized unit (meter)
      BIND (?distanceNormalized / 9460800000000000  AS ?lightyears)
}
ORDER BY ?lightyears

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?distance") v8("?distanceNormalized") v9("?lightyears") v4("?named"):::projected v2("?planet"):::projected v3("?satellite"):::projected v5("?statement") v6("?unit") a1((" ")) a2((" ")) a3((" ")) a4((" ")) c4(["wd:Q2537"]):::iri c3(["wd:Q13205267"]):::iri c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c3 v3 --"p:direct/P31"--> a2 a2 --"p:direct/P279"--> c4 v3 --"p:direct/P397"--> v2 v3 --"p:direct/P138"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end v2 --"p:P2244"--> a3 a3 --"p:statement/value/P2244"--> v5 v5 --"wikibase:quantityUnit"--> v6 v5 --"wikibase:quantityAmount"--> v7 v5 --"wikibase:quantityNormalized"--> a4 a4 --"wikibase:quantityAmount"--> v8 bind0[/"?distanceNormalized / '9460800000000000^^xsd:integer'"/] v8 --o bind0 bind0 --as--o v9