query-af54c793279e181365f4e41b5df0720e
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?mta ?link ?dob ?dod WHERE {
?item wdt:P3226 ?mta.
MINUS { ?item wdt:P2492 []. }
BIND(URI(CONCAT("https://mta.hu/koztestuleti_tagok?PersonId=", ?mta)) AS ?link).
OPTIONAL { ?item wdt:P569 ?dob. }
OPTIONAL { ?item wdt:P570 ?dod. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "hu,en". }
}
ORDER BY DESC(?dob)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?dob"):::projected
v5("?dod"):::projected
v2("?item"):::projected
v4("?link"):::projected
v3("?mta"):::projected
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["hu,en"]):::literal
v2 --"wdt:P3226"--> v3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P2492"--> a1
end
bind1[/"concat('https://mta.hu/koztestuleti_tagok?PersonId=',?mta)"/]
v3 --o bind1
bind1 --as--o v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P570".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end