What is the {rolling stock class} with the {MAX(total produced)} whose {operator} is {New York City Subway}  ?
Give me the name of the most-produced rolling stock class operated by the New York City Subway.
Name the most-produced rolling stock class operated by the New York City Subway ?
SELECT ?x WHERE { ?x rdf:type ontology:rolling_stock_class . ?x property:operator resource:New_York_City_Subway . ?x property:total_produced ?q }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q811704>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q811704 . ?ent wdt:P1092 ?obj . ?ent wdt:P137 wd:Q7733 } ORDER BY DESC(?obj)LIMIT 5 
R142 R62A R46 R188 R22