query-372ec2d0a0d3db19c17d44427941f452
Propertiesinstance of (P31)chemical structure (P117)
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?s ?sLabel ?linkcount
WHERE {
?s wdt:P31 wd:Q11173 ;
wikibase:sitelinks ?linkcount .
MINUS { ?s wdt:P117 ?structure }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
ORDER BY DESC(?linkcount)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?linkcount"):::projected
v2("?s"):::projected
v3("?structure")
c6(["bd:serviceParam"]):::iri
c2(["wd:Q11173"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> c2
v2 --"wikibase:sitelinks"--> v1
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P117"--> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end