query-7623d6908ba82bd4f83ba7f714973247

rq turtle/ttl

Dewar Cabinet (many were of later incarnations of the post — it's going to be cleaner to have them as distinct items): (P39)position held I've ensured all the positions exist, and the holders have the correct | Query: Recent changes | Find images | TABernacle | PetScan | WDQS . Manual changes to the list will be removed on the next update! a botThis list is periodically updated by Manually update list 2000-10-11 1999-05-17 Sarah Boyack Minister for Transport and the Environment 2000-10-11 1999-05-19 Wendy Alexander Minister for Social Inclusion, Local Government and Housing 2000-10-11 1999-05-19 Ross Finnie Minister for Rural Affairs 2003-05-21 1999-05-19 Jim Wallace, Baron Wallace of Tankerness Minister for Justice 2000-10-11 1999-05-17 Susan Deacon Minister for Health and Community Care 2000-10-26 1999-05-17 Jack McConnell Minister for Finance 2000-10-26 1999-05-17 Henry McLeish Minister for Enterprise and Lifelong Learning 2000-10-11 1999-05-17 Sam Galbraith Minister for Children and Education 2000-02-01 2006-10-04 1997-01-01 2000-02-24 Andrew Hardie, Baron HardieColin Boyd, Baron Boyd of Duncansby Lord Advocate 2000-10-11 1999-05-13 Donald Dewar First Minister of Scotland 2005-06-23 1999-05-19 Jim Wallace, Baron Wallace of Tankerness Deputy First Minister of Scotland 2000-10-11 1999-05-17 Tom McCabe Chief Whip and Government Business Manager ?mem_end ?mem_start ?who Article End of automatically generated list.--- The underlying query behind this report is:

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#>
SELECT DISTINCT ?position ?positionLabel ?cabinet_start ?cabinet_end ?who ?whoLabel ?mem_start ?mem_end {
  wd:Q3112009 wdt:P2670 ?position ; wdt:P571 ?cabinet_start; wdt:P576 ?cabinet_end .
  OPTIONAL { 
    ?who p:P39 [ ps:P39 ?position ; pq:P580 ?mem_start; pq:P582 ?mem_end ] .
    FILTER ( (?mem_end > ?cabinet_start) && (?mem_start < ?cabinet_end) )
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
} 
ORDER BY ?positionLabel ?mem_start

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?cabinet_end"):::projected v4("?cabinet_start"):::projected v3("?mem_end"):::projected v2("?mem_start"):::projected v6("?position"):::projected v1("?positionLabel"):::projected v7("?who"):::projected a1((" ")) c10(["bd:serviceParam"]):::iri c1(["wd:Q3112009"]):::iri c12(["en"]):::literal c1 --"p:direct/P2670"--> v6 c1 --"p:direct/P571"--> v4 c1 --"p:direct/P576"--> v5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; a1 -."p:statement/P39".-> v6 a1 --"p:qualifier/P580"--> v2 a1 --"p:qualifier/P582"--> v3 v7 --"p:P39"--> a1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end