query: # members of the 1835-37 Parliament -658 seats.
  SELECT ?constituency ?constituencyLabel ?expectedNumberOfSeats (COUNT (?startMP) as ?actualNumberOfEntries) 
  {
   # find the MP elected at the general election which began the term
   wd:Q41582548 wdt:P2715 ?election .
   ?startMP p:P39 ?positionStatement2 .
   ?positionStatement2 ps:P39 wd:Q41582548 . 
   ?positionStatement2 pq:P768 ?constituency .
   ?positionStatement2 pq:P2715 ?election . 
   SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
   OPTIONAL {
     ?constituency wdt:P1410 ?expectedNumberOfSeats .
   }
  }
  GROUP BY ?constituency ?constituencyLabel ?expectedNumberOfSeats