query-32d5fbd077538ccf664d371e4c100d25

rq turtle/ttl

Give me all chemical compounds or elements with glass transition temperatures!

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 ?p ?pLabel ?value ?unitLabel
WHERE 
{
  {?p wdt:P31 wd:Q11173} UNION {?p wdt:P31 wd:Q11344}
  ?p          p:P5670                     ?stmnode.    # length
  ?stmnode       psv:P5670                   ?valuenode.
  ?valuenode     wikibase:quantityAmount     ?value.
  ?valuenode     wikibase:quantityUnit       ?unit.
  ?valuenode     wikibase:quantityLowerBound ?lowerbound.
  ?valuenode     wikibase:quantityUpperBound ?upperbound.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" . }
} ORDER BY ASC(?q)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?lowerbound") v2("?p"):::projected v1("?q") v3("?stmnode") v6("?unit") v8("?upperbound") v5("?value"):::projected v4("?valuenode") c11(["bd:serviceParam"]):::iri c2(["wd:Q11173"]):::iri c13(["de,en"]):::literal c3(["wd:Q11344"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"p:direct/P31"--> c3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"p:direct/P31"--> c2 end union0r <== or ==> union0l end v2 --"p:P5670"--> v3 v3 --"p:statement/value/P5670"--> v4 v4 --"wikibase:quantityAmount"--> v5 v4 --"wikibase:quantityUnit"--> v6 v4 --"wikibase:quantityLowerBound"--> v7 v4 --"wikibase:quantityUpperBound"--> v8 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end