query-46c85784c704f319a9aa0ca22c86363f

rq turtle/ttl

Birthplaces of women composers born before 1800

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#>
#defaultView:Map
SELECT ?item ?itemLabel ?image ?placeOfBirth ?placeOfBirthLabel ?coordinates
WHERE {
  ?item wdt:P21 wd:Q6581072;
        wdt:P106/wdt:P279* wd:Q36834;
        wdt:P19 ?placeOfBirth;
        wdt:P569 ?birthdate .
  OPTIONAL {?item wdt:P18 ?image}
  ?placeOfBirth wdt:P625 ?coordinates .
  FILTER(YEAR(?birthdate) < 1800)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?birthdate") v5("?coordinates"):::projected v4("?image"):::projected v2("?item"):::projected v3("?placeOfBirth"):::projected a1((" ")) c3(["wd:Q6581072"]):::iri c12(["bd:serviceParam"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal c6(["wd:Q36834"]):::iri f0[["year-from-dateTime(?birthdate) < '1800^^xsd:integer'"]] f0 --> v1 v2 --"wdt:P21"--> c3 v2 --"wdt:P106"--> a1 a1 --"wdt:P279"--> c6 v2 --"wdt:P19"--> v3 v2 --"wdt:P569"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> v4 end v3 --"wdt:P625"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end