query: # MPs with identified mythical ancestors
  
  SELECT ?mp ?mpLabel ?person ?personLabel ?born ?died ?typeLabel WHERE {
   
    ?mp p:P39 ?positionStatement .
    ?positionStatement ps:P39 wd:Q30524710 .  # this person is a member of the current parliament
    { ?mp (wdt:P25|wdt:P22)* ?person . } # mp's mother or father, or their mother or father, and so on
    filter not exists { ?person wdt:P31 wd:Q5 } . # the ancestor is not "a human"
    ?person wdt:P31 ?type .
    OPTIONAL { ?person wdt:P569 ?born } .
    OPTIONAL { ?person wdt:P570 ?died } .
  
  
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  }
  