query: # Historians with links to French Wikipedia or Wikisource, but missing VIAF id
  SELECT ?item ?itemLabel WHERE {
    ?item wdt:P31 wd:Q5 .
    ?item wdt:P106 wd:Q201788 .
    
    # Here we ask people with no VIAF id
    FILTER NOT EXISTS { ?item wdt:P214 ?viaf . }
    # But the ones we already know they don't have one show up anyway
    # so we filter out people with "No value" for VIAF id
    FILTER NOT EXISTS { ?item rdf:type wdno:P214 . }
    
    ?wikilink schema:about ?item .
    { ?wikilink schema:isPartOf <https://fr.wikisource.org/> . } UNION {
      ?wikilink schema:isPartOf <https://fr.wikipedia.org/> . }
    
    SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" . }
  }