query: SELECT ?item ?party ?district ?start ?end ?pred ?succ ?elec ?term ?endreason
  WHERE 
  {
    ?item p:P39 ?statement .
    ?statement ps:P39 wd:Q42712844.
    OPTIONAL { ?statement pq:P2937 ?term }
    OPTIONAL { ?statement pq:P580 ?start }
    OPTIONAL { ?statement pq:P582 ?end }
    OPTIONAL { ?statement pq:P1365 ?pred }
    OPTIONAL { ?statement pq:P1366 ?succ }
    OPTIONAL { ?statement pq:P768 ?district }
    OPTIONAL { ?statement pq:P4100 ?party }
    OPTIONAL { ?statement pq:P2715 ?elec }
    OPTIONAL { ?statement pq:P1534 ?endreason }
  }
  ORDER BY ?district