query-0824bb4f01136114f35f4fe8fd821b6f

rq turtle/ttl

Norwegian women 19:47, 26 August 2021 (UTC)) talk (PmtMay I have a list of all norwegian women in WD with date of birth and place of birth? Breg.

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 DISTINCT ?item ?itemLabel ?itemDescription ?dob ?dod ?pob ?pobLabel ?pod ?podLabel 
{
    ?item wdt:P27 wd:Q20 .
    # for place of birth in Norway, use
    # ?item wdt:P19/wdt:P17 wd:Q20 .
    # for either:
    # { ?item wdt:P19/wdt:P17 wd:Q20 } UNION { ?item wdt:P27 wd:Q20 }
    ?item wdt:P21 wd:Q6581072 .
    ?item wdt:P31 wd:Q5 .
    OPTIONAL { ?item wdt:P569 ?dob }
    OPTIONAL { ?item wdt:P570 ?dod }
    OPTIONAL { ?item wdt:P19 ?pob }
    OPTIONAL { ?item wdt:P20 ?pod }  
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nn,nb,en,sv,fi". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?dob"):::projected v3("?dod"):::projected v1("?item"):::projected v4("?pob"):::projected v5("?pod"):::projected c2(["wd:Q20"]):::iri c4(["wd:Q6581072"]):::iri c14(["#91;AUTO_LANGUAGE#93;,nn,nb,en,sv,fi"]):::literal c12(["bd:serviceParam"]):::iri c6(["wd:Q5"]):::iri v1 --"wdt:P27"--> c2 v1 --"wdt:P21"--> c4 v1 --"wdt:P31"--> c6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P569".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P570".-> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P19".-> v4 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P20".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end