What is the {Japanese TV series} with the {MAX(number of seasons)} whose {original language of work} is {Japanese}  ?
Of all Japanese TV series originally aired in Japanese, which has the most seasons?
What Japanese TV series has the most number of seasons and was originally aired in Japanese?
SELECT ?e WHERE { ?e property:original_language_of_film_or_TV_show resource:Japanese . ?e rdf:type ontology:Japanese_TV_series . ?e property:number_of_seasons ?q }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q21191019>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q21191019 . ?ent wdt:P2437 ?obj . ?ent wdt:P364 wd:Q5287 } ORDER BY DESC(?obj)LIMIT 5 
Aibō Wataru Seken wa Oni Bakari Kunoichi Sanbiki ga Kiru! Majisuka Gakuen