query: SELECT DISTINCT ?item ?itemLabel ?cities ?position ?electoraldistrict ?edtype ?starttime ?parliametarygroup ?parliametaryterm ?fbid WHERE { 
      VALUES ?authority_types { wd:Q211690 wd:Q1136601 wd:Q15060255 wd:Q15979307 wd:Q1002812 wd:Q17364572 wd:Q180673 }
      VALUES ?legislator_types { wd:Q708492 wd:Q4175034 }
      ?cities wdt:P31 ?authority_types .
      ?cities wdt:P194 ?council .
      ?council wdt:P1001 ?cities .
      ?member wdt:P361 ?council ;
              wdt:P279 ?legislator_types . 
      MINUS {?member wdt:P576 [] }
      MINUS { ?region wdt:P576 [] }
      MINUS { ?council wdt:P576 [] }
      ?node ps:P39 ?member
      OPTIONAL { ?node pq:P4100 ?parliametarygroup }
      OPTIONAL { ?node pq:P2937 ?parliametaryterm }
      OPTIONAL { ?node pq:P580 ?starttime }
      OPTIONAL { ?node pq:P768 ?electoraldistrict .
                 ?electoraldistrict wdt:P31 ?edtype }
      MINUS { ?node pq:P582 []}
      ?node ps:P39 ?position .
      ?item p:P39 ?node .
      OPTIONAL { ?item wdt:P2013 ?fbid }
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  }
  ORDER BY ?item