What is the {BMW M20} with the {MAX(torque)} whose {engine configuration} is {straight-six}  ?
Which BMW M20 has the highest straight six torque engine?
What is the BMW M20 with the highest torque whose engine configuration is straight-six ?
SELECT ?v WHERE { ?v property:torque ?m . ?v rdf:type ontology:BMW_M20 . ?v property:engine_configuration resource:straight-six }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q796558>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q796558 . ?ent wdt:P2230 ?obj . ?ent wdt:P1002 wd:Q1148385 } ORDER BY DESC(?obj)LIMIT 5 
BMW M20B20 BMW M20B20