What is the {literary work} with the {MIN(units sold)} whose {author} is {J. K. Rowling}  ?
Which of J.K. Rowling's books has been purchased the least?
Can you name the J.K. Rowling book that has sold the least copies?
SELECT ?n WHERE { ?n rdf:type ontology:literary_work . ?n property:units_sold ?r . ?n property:author resource:J._K._Rowling }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q7725634>.

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

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q7725634 . ?ent wdt:P2664 ?obj . ?ent wdt:P50 wd:Q34660} ORDER BY ASC(?obj)LIMIT 5 
Harry Potter and the Philosopher's Stone