query: # Query to find any multiple humans with matching 
     # day-specific dates of birth and dates of death,
     # subject to ?property = P27 having ?value = Q142
     # Query generated by [[Template:MatchingBirthDeath]]
  
  SELECT DISTINCT ?item ?itemLabel ?birth_date ?count WHERE {
    hint:Query hint:optimizer "None" . 
    {
      SELECT DISTINCT ?birth_date (COUNT(DISTINCT ?a) AS ?count) WHERE {
         ?a wdt:P6379 ?collectie . 
         ?a wdt:P9152 ?g1.
  
         ?a p:P569 ?birth_date_statement .
         ?birth_date_statement psv:P569 ?birth_date_node .
         ?birth_date_node wikibase:timeValue ?birth_date .
         ?birth_date_node wikibase:timePrecision "11"^^xsd:integer .
  
         ?a wdt:P31 wd:Q5 .
  
      } 
      GROUP BY ?birth_date 
      HAVING (?count > 1)
    }
    ?item wdt:P569 ?birth_date .
    ?item wdt:P6379 ?collectie2 .  
    ?item wdt:P9152 ?g2 .  
    ?item wdt:P31 wd:Q5 .
  
    SERVICE wikibase:label {
      bd:serviceParam wikibase:language "en" .
    }
  }
  ORDER BY DESC(?count) ?birth_date