query-9422e06da7e9f6c2cbad06007e057b59

rq turtle/ttl

2013 előtt elhunyt albánok legalább öt wikilinkkel, de huwiki nélkül

Use at

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 ?alban ?albanLabel ?albanDescription (COUNT(distinct ?sitelink) AS ?sitelinks) WHERE {
    { ?alban wdt:P172 wd:Q179248 } UNION { ?alban wdt:P27 wd:Q222 }
    ?alban wdt:P570 ?death .
    OPTIONAL { ?sitelink schema:about ?alban FILTER REGEX(STR(?sitelink), ".wikipedia.org/wiki/") } .
    FILTER (?death < "2013-01-01T00:00:00Z"^^xsd:dateTime) .
    FILTER NOT EXISTS { [] schema:about ?alban; schema:isPartOf <https://hu.wikipedia.org/> } .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "hu,en" }
}
GROUP BY ?alban ?albanLabel ?albanDescription
HAVING (?sitelinks > 4)
ORDER BY DESC (?sitelinks)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?alban"):::projected v3("?death") v4("?sitelink"):::projected v5("?sitelinks") a1((" ")) c15(["hu,en"]):::literal c4([https://hu.wikipedia.org/]):::iri c13(["bd:serviceParam"]):::iri c10(["wd:Q222"]):::iri c8(["wd:Q179248"]):::iri f0[["?sitelinks > '4^^xsd:integer'"]] f0 --> v5 f1[["not "]] subgraph f1e0["Exists Clause"] e0a1 --"schema:about"--> e0v1 e0a1 --"schema:isPartOf"--> e0c3 e0v1("?alban"):::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[["?death < '2013-01-01T00:00:00Z^^xsd:dateTime'"]] f2 --> v3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P27"--> c10 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P172"--> c8 end union0r <== or ==> union0l end v2 --"wdt:P570"--> 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; c13 --"wikibase:language"--> c15 end bind4[/"count(?sitelink)"/] v4 --o bind4 bind4 --as--o v5