What is the {locomotive class} with the {MAX(boiler pressure)} whose {track gauge} is {1435 mm track gauge}  ?
What 1435 locomotive has the most boiler pressure?
Which 1435 mm track gauge locomotive has the maximum boiler pressure?
SELECT ?i WHERE { ?i rdf:type ontology:locomotive_class . ?i property:track_gauge resource:1435_mm_track_gauge . ?i property:boiler_pressure ?d }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q19832486>.

?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P5071>.
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj1.

?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1064> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1999572> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q19832486 . ?ent wdt:P5071 ?obj . ?ent wdt:P1064 wd:Q1999572 } ORDER BY DESC(?obj)LIMIT 5 
Norfolk and Western Railway class J Great Northern Railway N-3 Great Northern Railway S-1 Great Northern Railway O-8 Great Northern Railway R-2