What is the {tram-train} with the {MAX(patronage)} whose {vehicle normally used} is {ERROR1}  ?
Which tram - train is normally used as ERROR1 with the maximum capacity?
Which tram-train, with the maximum capacity, is normally used as ERROR1?
SELECT ?z WHERE { ?z property:vehicle_normally_used resource:GT8-100C/2S . ?z rdf:type ontology:tram-train . ?z property:patronage ?y }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q844054>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q844054 . ?ent wdt:P3872 ?obj . ?ent wdt:P3438 wd:Q1487246 } ORDER BY DESC(?obj)LIMIT 5 