What is the {railroad} with the {MAX(maximum gradient)} ?
What is the RR with the highest gradient?
WHICH IS THE RAILROAD WITH THE MAXIMUM GRADIENT
SELECT ?q WHERE { ?q property:maximum_gradient ?a . ?q rdf:type ontology:railway }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q22667>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2595>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .}
ORDER BY DESC(?obj)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q22667 . ?ent wdt:P2595 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Driving Creek Railway Rečkovská lesní dráha León-Gijón railway line Natal Railway Company