query: SELECT DISTINCT ?item ?region ?position ?positiontype ?electoraldistrict ?edtype ?starttime ?endtime ?parliamentarygroup ?fbid WHERE { 
       ?region wdt:P31/wdt:P279* wd:Q10864048 ; 
               wdt:P17 wd:Q408 .
      ?region wdt:P194 ?council .
      ?council wdt:P31/wdt:P279* wd:Q11204 .
      ?member wdt:P361 ?council ;
              wdt:P279* wd:Q4175034 .
      MINUS {?member wdt:P576 [] }
      MINUS { ?region wdt:P576 [] }
      MINUS { ?council wdt:P576 [] }
      OPTIONAL { ?node ps:P39 ?member .
        OPTIONAL { ?node pq:P4100 ?parliamentarygroup }
        OPTIONAL {?node pq:P580 ?starttime } 
        OPTIONAL { ?node pq:P768 ?electoraldistrict .
                 ?electoraldistrict wdt:P31 ?edtype }
        OPTIONAL { ?node pq:P582 ?endtime }
        ?node ps:P39 ?position .
        ?position wdt:P31 ?positiontype .
        ?item p:P39 ?node .
      OPTIONAL { ?item wdt:P2013 ?fbid }
    }
  }
  ORDER BY ?item