What is the {television series} with the {MAX(number of works)} ?
What TV series has the most episodes?
Which television series has the highest number of episodes?
SELECT ?n WHERE { ?n rdf:type ontology:television_series . ?n property:number_of_works ?l }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q5398426>.
?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/P3740>.
?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:Q5398426 . ?ent wdt:P3740 ?obj } ORDER BY DESC(?obj)LIMIT 5 
School