the highest imo / lr identification number belongs to which ship?
Entity
g.122blphy
null
class literal
boats.ship 0^^http://www.w3.org/2001/XMLSchema#int
boats.ship type.int
Ship 0
none argmax
boats.ship.imo_lr_identification_number
IMO / LR identification number
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 :boats.ship . 
{
SELECT (MAX(?y1) AS ?x1)  WHERE { 
?y0 :type.object.type :boats.ship . 
?y0 :boats.ship.imo_lr_identification_number ?y1 . 
FILTER ( ?y0 != ?y1  )
}
}
?x0 :boats.ship.imo_lr_identification_number ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(ARGMAX boats.ship boats.ship.imo_lr_identification_number)