query-81f5dacde3cfd953b0941ed0576b8e29

rq turtle/ttl

Propertiesinstance of (P31)date of birth (P569)image (P18)position held (P39)start time (P580)

Use at

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#>
#defaultView:Timeline
SELECT ?item ?itemLabel ?startdate (SAMPLE(?image) AS ?image)
WHERE
{
    ?item wdt:P31 wd:Q146.      
    ?item  p:P39 ?mouserOffice. 
    ?mouserOffice ps:P39 wd:Q198641.
    ?mouserOffice pq:P580 ?startdate .
    #?item wdt:P569 ?startdate .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
    OPTIONAL { ?item wdt:P18 ?image }
}
GROUP BY ?item ?itemLabel ?startdate

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?image"):::projected v1("?item"):::projected v2("?mouserOffice") v3("?startdate"):::projected c2(["wd:Q146"]):::iri c5(["wd:Q198641"]):::iri c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"p:direct/P31"--> c2 v1 --"p:P39"--> v2 v2 --"p:statement/P39"--> c5 v2 --"p:qualifier/P580"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P18".-> v5 end bind1[/"sample(?image)"/] v5 --o bind1 bind1 --as--o v5