query-af0dfda8cdeb0fcedec6c7454c75ed9e
Based on the query in the section above, I got
Use at
- https://query.wikidata.org/sparql
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
?item ?itemLabel
?bp ?bpunit ?bpunitLabel
WHERE
{
?item wdt:P31* / wdt:P279* wd:Q170744 .
OPTIONAL { ?item p:P2102/psv:P2102 [ wikibase:quantityAmount ?bp ; wikibase:quantityUnit ?bpunit ] }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?bp"):::projected
v3("?bpunit"):::projected
v1("?item"):::projected
a1((" "))
a3((" "))
a2((" "))
c9(["bd:serviceParam"]):::iri
c3(["wd:Q170744"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
a2 -."wikibase:quantityAmount".-> v2
a2 --"wikibase:quantityUnit"--> v3
v1 --"p:P2102"--> a3
a3 --"p:statement/value/P2102"--> a2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end