What is the {steam locomotive} with the {MAX(number of cylinders)} ?
Which locomotive has the most cylinders?
Which locomotive has the most cylinders?
SELECT ?v WHERE { ?v rdf:type ontology:steam_locomotive . ?v property:number_of_cylinders ?c }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q171043>.
?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/P1100>.
?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:Q171043 . ?ent wdt:P1100 ?obj } ORDER BY DESC(?obj)LIMIT 5 
NS 6100 LMS Sentinel 7192 LNER Class W1 SR West Country class 21C127 “Taw Valley” LNER Class W1