query-6cb9cf7522f8db2303a66cfed248488e

rq turtle/ttl

Boiling points of alkanes

SELECT DISTINCT ?comp ?compLabel ?formula ?bp ?bpUnit ?bpUnitLabel WHERE { ?comp wdt:P31/wdt:P279* wd:Q41581 ; wdt:P274 ?formula ; p:P2102 [ ps:P2102 ?bp ; psv:P2102/wikibase:quantityUnit ?bpUnit ] . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY DESC(?bpUnit) ASC(?bp)

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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Boiling points of alkanes

SELECT DISTINCT ?comp ?compLabel ?formula ?bp ?bpUnit ?bpUnitLabel WHERE {
  ?comp wdt:P31/wdt:P279* wd:Q41581 ;
        wdt:P274 ?formula ;
        p:P2102 [
          ps:P2102 ?bp ;
          psv:P2102/wikibase:quantityUnit ?bpUnit
        ] .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY DESC(?bpUnit) ASC(?bp)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?bp"):::projected v1("?bpUnit"):::projected v3("?comp"):::projected v4("?formula"):::projected a1((" ")) a2((" ")) a3((" ")) c10(["bd:serviceParam"]):::iri c3(["wd:Q41581"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal v3 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c3 v3 --"p:direct/P274"--> v4 a2 --"p:statement/P2102"--> v2 a2 --"p:statement/value/P2102"--> a3 a3 --"wikibase:quantityUnit"--> v1 v3 --"p:P2102"--> a2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end