query: # members of the 1923-24 Parliament-615 seats.
  SELECT DISTINCT ?constituency ?constituencyLabel ?members ?endMP ?endMPLabel
  {
   ?item p:P39 ?positionStatement . # report for error-checking imports from Historic Hansard
   ?positionStatement ps:P39 wd:Q41582585 . 
   ?positionStatement pq:P768 ?constituency . 
   OPTIONAL { ?constituency wdt:P31 ?type . } # find miscellaneous data about the constituency
   OPTIONAL { ?constituency wdt:P571 ?start . }
   OPTIONAL { ?constituency wdt:P576 ?end . } 
   OPTIONAL { ?constituency wdt:P1410 ?members . } 
   OPTIONAL { # find the MP in office at dissolution (may not always be one)
   ?endMP p:P39 ?positionStatement3 .
   ?positionStatement3 ps:P39 wd:Q41582585 . 
   ?positionStatement3 pq:P768 ?constituency . 
   ?positionStatement3 pq:P1534 wd:Q741182 . 
   }
   SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
  }