query-05ea68e565fb94b298f450a27607c283
TODO
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 DISTINCT ?item ?itemLabel ?person ?personLabel ?familynameLabel WHERE {
?item wdt:P5008 wd:Q117322976; # item on focus list of the LSESuffrageInterviewsProject
wdt:P31 wd:Q178651 . # item is an interview
?item p:P710 ?statement . # item has a participant statement
?statement ps:P710 ?person . # participant is ?person
?statement pq:P3831 wd:Q55534929. # qualifier object has role is interviewee
?item wdt:P921 ?person . # main subject is same as participant
OPTIONAL { ?person wdt:P734 ?familyname }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY (?familynameLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?familyname")
v1("?familynameLabel"):::projected
v2("?item"):::projected
v4("?person"):::projected
v3("?statement")
c8(["wd:Q55534929"]):::iri
c12(["bd:serviceParam"]):::iri
c2(["wd:Q117322976"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wd:Q178651"]):::iri
v2 --"p:direct/P5008"--> c2
v2 --"p:direct/P31"--> c4
v2 --"p:P710"--> v3
v3 --"p:statement/P710"--> v4
v3 --"p:qualifier/P3831"--> c8
v2 --"p:direct/P921"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:direct/P734".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end