query: bigdata/namespace/wdq/sparql?explain&query=PREFIX wd: <http://www.wikidata.org/entity/>
  PREFIX wdt: <http://www.wikidata.org/prop/direct/>
  PREFIX wikibase: <http://wikiba.se/ontology#>
  PREFIX p: <http://www.wikidata.org/prop/>
  PREFIX v: <http://www.wikidata.org/prop/statement/>
  PREFIX q: <http://www.wikidata.org/prop/qualifier/>
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  PREFIX ps: <http://www.wikidata.org/prop/statement/>
  PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
  
     # 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 ?birth_date ?death_date (COUNT(DISTINCT ?a) AS ?count) WHERE {
     BIND (wdt:P27 AS ?property) .
     BIND (wd:Q142 AS ?value) .
     ?a wdt:P31 wd:Q5 .
     ?a ?property ?value . 
    
     ?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 p:P570 ?death_date_statement .
     ?death_date_statement psv:P570 ?death_date_node .
     ?death_date_node wikibase:timeValue ?death_date.
     ?death_date_node wikibase:timePrecision "11"^^xsd:integer .
  
  } 
  GROUP BY ?birth_date ?death_date
  HAVING (?count > 1)
  ORDER BY DESC(?count) ?birth_date
  # LIMIT 10