query-f288887417c6d6aece0e3c530643f4b0

rq turtle/ttl

Nagykövetek2020. szeptember 25-én 2075 Palotabarátp:P39pq:P131ps:P39

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?nagykovet ?nagykovetLabel ?beosztas ?beosztasLabel ?hely ?helyLabel WHERE {
  ?nagykovet p:P39 ?allitas .
  ?allitas ps:P39 ?beosztas .
  ?beosztas wdt:P279* wd:Q121998 .
  ?nagykovet wdt:P27 wd:Q28 .
  OPTIONAL { ?allitas pq:P131 ?hely }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "hu" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?allitas") v3("?beosztas"):::projected v4("?hely"):::projected v1("?nagykovet"):::projected c6(["wd:Q28"]):::iri c9(["bd:serviceParam"]):::iri c4(["wd:Q121998"]):::iri c11(["hu"]):::literal v1 --"p:P39"--> v2 v2 --"p:statement/P39"--> v3 v3 --"p:direct/P279"--> c4 v1 --"p:direct/P27"--> c6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P131".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end