What is the {automobile marque} with the {MIN(net profit)} whose {stock exchange} is {NASDAQ}  ?
What automobile marque has the lowest profit on the NASDAQ stock exchange?
What is the lowest profit automobile marque whose stock exchange is NASDAQ.
SELECT ?r WHERE { ?r rdf:type ontology:Q17412622 . ?r property:stock_exchange resource:NASDAQ . ?r property:net_profit ?v }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q17412622>.

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

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q17412622 . ?ent wdt:P2295 ?obj . ?ent wdt:P414 wd:Q82059} ORDER BY ASC(?obj)LIMIT 5 