What is the {infectious disease} with the {MAX(number of cases)} ?
What disease has had the most cases?
What infectious disease has had the most cases?
SELECT ?q WHERE { ?q property:number_of_cases ?n . ?q rdf:type ontology:infectious_disease }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q18123741>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1603>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .}
ORDER BY DESC(?obj)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q18123741 . ?ent wdt:P1603 ?obj } ORDER BY DESC(?obj)LIMIT 5 
1918-1920 flu pandemic hepatitis B hepatitis C typhoid fever hepatitis E