query: SELECT DISTINCT ?item ?itemLabel ?cities ?position ?electoraldistrict ?edtype ?starttime ?parliametarygroup ?fbid WHERE { 
      VALUES ?citytypes {wd:Q29045219 wd:Q482821 wd:Q16181672 wd:Q4249901 wd:Q29045252}
      ?cities wdt:P31 ?citytypes .
      MINUS {?cities wdt:P31/wdt:P279* wd:Q10864048 }
      ?cities wdt:P1082 ?population .
      FILTER (?population > 250000) .
      ?cities wdt:P1313 ?head ;
              wdt:P194 ?council .
      ?council wdt:P1001 ?cities .
      ?member wdt:P361 ?council ;
              wdt:P279 wd:Q4175034 .
      MINUS {?member wdt:P576 [] }
      MINUS { ?region wdt:P576 [] }
      MINUS { ?council wdt:P576 [] }
      { ?node ps:P39 ?member } UNION { ?node ps:P39 ?head }
      OPTIONAL { ?node pq:P4100 ?parliametarygroup }
      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