query-4cd1b6153086b09fb3b505c5ed408502

rq turtle/ttl

query to get politician datai want to make a query that get politician data: qcode,Name, genderLabel,country(citizenship)Label,date_of_birthLabel and i also need alternative names, and the main name in other languages this is what i made so far

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?human ?humanLabel ?genderLabel ?countryLabel ?birth_dateLabel WHERE {
?human wdt:P31 wd:Q5;
wdt:P106 wd:Q82955.
optional{ ?human wdt:P21 ?gender.}
optional{ ?human wdt:P569 ?birth_date.}
optional{ ?human wdt:P27 ?country.}
service wikibase:label { bd:serviceParam wikibase:language "en" . }


}

limit 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?birth_date") v4("?country") v2("?gender") v1("?human"):::projected c9(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c11(["en"]):::literal c4(["wd:Q82955"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P106"--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P21".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P569".-> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P27".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end