What is the {chemical compound} with the {MAX(Scoville grade)} whose {active ingredient in} is {Qutenza}  ?
Name the chemical compounds with an active ingredient of Qutenza that has the highest Scoville grade
Which of the chemical compounds with an active ingredient of Qutenza has the highest Scoville grade?
SELECT ?u WHERE { ?u rdf:type ontology:chemical_compound . ?u property:Scoville_grade ?k . ?u property:active_ingredient_in resource:Qutenza }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q11173>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q11173 . ?ent wdt:P2658 ?obj . ?ent wdt:P3780 wd:Q29006389 } ORDER BY DESC(?obj)LIMIT 5 
capsaicin