query-0cefee607291775b47fde42c5931499f
any help is welcome, please be kind and explain to me the process, I'd like to get better at sparqling : ) 18:00, 10 June 2019 (UTC)) talk (Divudi85bye --tried this, but it doesn't print me out the ?start, the column is blank, don't understand why
Use at
- https://query.wikidata.org/sparql
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 ?human ?humanLabel ?start WHERE {
?human wdt:P31 wd:Q5;
p:P27 [ps:P27 wd:Q38]
OPTIONAL {?human pq:P580 ?start}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?human"):::projected
v2("?start"):::projected
a1((" "))
c4(["wd:Q38"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;"]):::literal
c2(["wd:Q5"]):::iri
v1 --"p:direct/P31"--> c2
a1 --"p:statement/P27"--> c4
v1 --"p:P27"--> a1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:qualifier/P580".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end