query-3cf05c867f0c39529f28f05ceb2f09c5
1850 és 1920 között született albán politikusok legalább öt wikilinkkel, de huwiki nélkül
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?politik ?politikLabel ?politikDescription (COUNT(distinct ?sitelink) AS ?sitelinks) WHERE {
?politik wdt:P106 wd:Q82955 .
?politik wdt:P27 wd:Q222 .
?politik wdt:P569 ?birth .
OPTIONAL { ?sitelink schema:about ?politik FILTER REGEX(STR(?sitelink), ".wikipedia.org/wiki/") } .
FILTER (?birth < "1920-01-01T00:00:00Z"^^xsd:dateTime) .
FILTER (?birth > "1850-01-01T00:00:00Z"^^xsd:dateTime) .
FILTER NOT EXISTS { [] schema:about ?politik; schema:isPartOf <https://hu.wikipedia.org/> } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "hu,en" }
}
GROUP BY ?politik ?politikLabel ?politikDescription
HAVING (?sitelinks > 4)
ORDER BY DESC (?sitelinks)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?birth")
v2("?politik"):::projected
v4("?sitelink"):::projected
v5("?sitelinks")
a1((" "))
c16(["hu,en"]):::literal
c9(["wd:Q82955"]):::iri
c4([https://hu.wikipedia.org/]):::iri
c14(["bd:serviceParam"]):::iri
c11(["wd:Q222"]):::iri
f0[["?sitelinks > '4^^xsd:integer'"]]
f0 --> v5
f1[["not "]]
subgraph f1e0["Exists Clause"]
e0a1 --"schema:about"--> e0v1
e0a1 --"schema:isPartOf"--> e0c3
e0v1("?politik"):::projected
e0a1((" ")):::projected
e0c3([https://hu.wikipedia.org/]):::iri
end
f1--EXISTS--> f1e0
f1 --> a1
f1 --> c2
f1 --> v2
f1 --> c3
f1 --> c4
a1 --"schema:about"--> v2
a1 --"schema:isPartOf"--> c4
f2[["?birth > '1850-01-01T00:00:00Z^^xsd:dateTime'"]]
f2 --> v3
f3[["?birth < '1920-01-01T00:00:00Z^^xsd:dateTime'"]]
f3 --> v3
v2 --"wdt:P106"--> c9
v2 --"wdt:P27"--> c11
v2 --"wdt:P569"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:about".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end
bind5[/"count(?sitelink)"/]
v4 --o bind5
bind5 --as--o v5