in what court jurisdiction is the place where the latest buried person died?
Entity
m.02_286
New York City
class class literal
law.court_jurisdiction_area people.deceased_person 0^^http://www.w3.org/2001/XMLSchema#int
law.court_jurisdiction_area people.deceased_person type.datetime
Court jurisdiction area Deceased Person 0
none none argmax
people.deceased_person.place_of_death people.deceased_person.date_of_burial
Place of death Date of burial
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :law.court_jurisdiction_area . 
?x1 :type.object.type :people.deceased_person . 
{
SELECT (MAX(?y2) AS ?x2)  WHERE { 
?y0 :type.object.type :law.court_jurisdiction_area . 
?y1 :type.object.type :people.deceased_person . 
?y1 :people.deceased_person.place_of_death ?y0 . 
?y1 :people.deceased_person.date_of_burial ?y2 . 
FILTER ( ?y0 != ?y1 && ?y0 != ?y2 && ?y1 != ?y2  )
}
}
?x1 :people.deceased_person.place_of_death ?x0 . 
?x1 :people.deceased_person.date_of_burial ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(ARGMAX law.court_jurisdiction_area (JOIN (R people.deceased_person.place_of_death) people.deceased_person.date_of_burial))