What is the {war cemetery} with the {MIN(quantity buried)} whose {instance of} is {memorial}  ?
What is the name of the war cemetery which has the least memorial based burials?
Which war cemetery has the least memorial based burials?
SELECT ?t WHERE { ?t property:quantity_buried ?y . ?t rdf:type ontology:war_cemetery . ?t rdf:type ontology:memorial }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q1707610>.

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

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q1707610 . ?ent wdt:P2324 ?obj . ?ent wdt:P31 wd:Q5003624} ORDER BY ASC(?obj)LIMIT 5 