query-7d3cc6067887499b33b44775b68d5177
Classical philologists without Open Library SELECT ?item ?itemLabel ?birth ?death ?linkcount WHERE { ?item wdt:P31 wd:Q5 . ?item wdt:P106 wd:Q16267607 . OPTIONAL { ?item wdt:P569 ?birth . } OPTIONAL { ?item wdt:P570 ?death . } MINUS { ?item wdt:P648 ?op . } ?item wikibase:sitelinks ?linkcount . FILTER (?linkcount >= 1) . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY DESC(?linkcount)
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#>
#Classical philologists without Open Library
SELECT ?item ?itemLabel ?birth ?death ?linkcount
WHERE {
?item wdt:P31 wd:Q5 .
?item wdt:P106 wd:Q16267607 .
OPTIONAL { ?item wdt:P569 ?birth . }
OPTIONAL { ?item wdt:P570 ?death . }
MINUS { ?item wdt:P648 ?op . }
?item wikibase:sitelinks ?linkcount . FILTER (?linkcount >= 1) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?linkcount)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?birth"):::projected
v4("?death"):::projected
v2("?item"):::projected
v1("?linkcount"):::projected
v5("?op")
c11(["bd:serviceParam"]):::iri
c5(["wd:Q16267607"]):::iri
c3(["wd:Q5"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?linkcount >= '1^^xsd:integer'"]]
f0 --> v1
v2 --"wdt:P31"--> c3
v2 --"wdt:P106"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P570".-> v4
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P648"--> v5
end
v2 --"wikibase:sitelinks"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end