query-6883d3d93c2c6832c5a9284f51fa179c

rq turtle/ttl

Potential duplicates (ORCID vs ZooBank imports)

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?itemA ?itemALabel ?itemB ?itemBLabel
WHERE {
{
  SELECT DISTINCT ?itemA ?itemB ?itemALabel ?itemBLabel
    WHERE {
      {
        SELECT ?itemA ?itemB
        WHERE {
          hint:Query hint:optimizer "None" .

          ?itemA wdt:P2006 ?zoobankA .
          ?itemA wdt:P735 ?givenA .
          FILTER(?givenA NOT IN (
            wd:Q4925477, # John (male)
            wd:Q4927937 # Robert (male)
          ))
          ?itemA wdt:P734 ?familyA .
          FILTER(?familyA NOT IN (
            wd:Q1158446 # Smith
          ))
          OPTIONAL { ?itemA wdt:P496 ?orcidA . }
          FILTER(!BOUND(?orcidA))
          OPTIONAL { ?itemA wdt:P569 ?dobA . }
          FILTER(!BOUND(?dobA)|

Query found at