query-3629226a0f08cbe969fe9a3a2fdbcbee
Query build by query builder not working: compounds with both melting point and boiling pointWhen I try to look for more than one property, using the query builder, i.e. I want something that has both a boiling point and a melting point, but I don't care what values these have, I use the query builder and get no answers. The query it builds is below.
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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 ?item ?itemLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
{
SELECT DISTINCT ?item WHERE {
?item p:P2102 ?statement0.
?statement0 (psv:P2102/wikibase:quantityAmount) ?numericQuantity.
?item p:P2101 ?statement1.
?statement1 (psv:P2101/wikibase:quantityAmount) ?numericQuantity.
}
LIMIT 100
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?numericQuantity")
v2("?statement0")
v4("?statement1")
a1((" "))
a2((" "))
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"p:P2102"--> v2
v2 --"p:statement/value/P2102"--> a1
a1 --"wikibase:quantityAmount"--> v3
v1 --"p:P2101"--> v4
v4 --"p:statement/value/P2101"--> a2
a2 --"wikibase:quantityAmount"--> v3