What is the {funicular} with the {MAX(average gradient)} ?
Out of all the funiculars, which has the maximum average gradient?
WHICH IS THE FUNICULAR WITH THE MAXIMUM AERAGE GRADIENT
SELECT ?l WHERE { ?l rdf:type ontology:funicular . ?l property:average_gradient ?a }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q142031>.
?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/P2198>.
?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:Q142031 . ?ent wdt:P2198 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Ebbw Vale Garden Festival Funicular