What is the {funicular} with the {MIN(maximum gradient)} whose {instance of} is {funicular}  ?
Give me the name of the funiculars with the least maximum gradient.
Which funicular has the smallest maximum gradient?
SELECT ?s WHERE { ?s property:maximum_gradient ?v . ?s rdf:type ontology:funicular . . ?s rdf:type ontology:funicular }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q142031>.

?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/P2595>.
?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/P31> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q142031> .

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q142031 . ?ent wdt:P2595 ?obj . ?ent wdt:P31 wd:Q142031. } ORDER BY ASC(?obj)LIMIT 5 
Ebbw Vale Garden Festival Funicular Dorfbahn Serfaus Tünel Ascensor da Glória Funicular de Montjuïc