query-2d5396b5ef64a8cd37e28c00102e281e

rq turtle/ttl

Propertiesinstance of (P31)country of citizenship (P27)

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT * WHERE {
  ?item wdt:P31 wd:Q5; wdt:P27 wd:Q159; rdfs:label ?enLabel, ?huLabel.
  FILTER(lang(?enLabel)="en")
  FILTER(lang(?huLabel)="hu")
  FILTER(str(?enLabel) = str(?huLabel))
  OPTIONAL{ [] schema:about ?item; schema:isPartOf <https://hu.wikipedia.org/>; schema:name ?huwiki }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?enLabel"):::projected v2("?huLabel"):::projected v4("?huwiki"):::projected v3("?item"):::projected a1((" ")) c6(["wd:Q159"]):::iri c10([https://hu.wikipedia.org/]):::iri c4(["wd:Q5"]):::iri f0[["str(?enLabel) = str(?huLabel)"]] f0 --> v1 f0 --> v2 f1[["?huLabel = 'hu'"]] f1 --> v2 f2[["?enLabel = 'en'"]] f2 --> v1 v3 --"wdt:P31"--> c4 v3 --"wdt:P27"--> c6 v3 --"rdfs:label"--> v1 v3 --"rdfs:label"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; a1 -."schema:about".-> v3 a1 --"schema:isPartOf"--> c10 a1 --"schema:name"--> v4 end