query: PREFIX p: <http://www.wikidata.org/prop/>
  PREFIX v: <http://www.wikidata.org/prop/statement/>
  PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
  
  SELECT ?cabinet ?cabinetLabel ?stateLabel ?chairmanLabel ?start ?end ?previousLabel ?nextLabel ?previous ?next WHERE {
    ?cabinet p:P31 ?cabinetStatement .
    ?cabinetStatement v:P31 wd:Q314729 .
    OPTIONAL{?cabinetStatement pq:P642 ?state}
    OPTIONAL{?cabinetStatement pq:P580 ?start}
    OPTIONAL{?cabinetStatement pq:P582 ?end}
    OPTIONAL{?cabinet wdt:P488 ?chairman}
    OPTIONAL{?cabinet wdt:P155 ?previous}
    OPTIONAL{?cabinet wdt:P156 ?next}
    SERVICE wikibase:label {bd:serviceParam wikibase:language "de"}
  }
  ORDER BY ?stateLabel ?start