query-0388f8f35953df26228f8c9ce9085eb8

rq turtle/ttl

| 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 2014-11-19 2007-05-16 Alex Salmond First Minister of Scotland 2014-11-19 2007-05-17 Nicola Sturgeon Deputy First Minister of Scotland 2011-05-18 2014-11-21 2007-05-17 2011-05-18 Richard Lochhead Cabinet Secretary for Rural Affairs and the Environment 2014-11-19 2007-05-17 Kenny MacAskill Cabinet Secretary for Justice 2011-05-19 2007-05-17 Nicola Sturgeon Cabinet Secretary for Health and Wellbeing 2011-05-19 2007-05-17 John Swinney Cabinet Secretary for Finance and Sustainable Growth 2009-12-01 2014-11-19 2007-05-17 2009-12-01 Fiona HyslopMichael Russell Cabinet Secretary for Education and Lifelong Learning ?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:Q3112446 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:Q3112446"]):::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