What is the {dog breed} with the {MAX(life expectancy)} whose {topic's main category} is {Category:German Shepherd Dog}  ?
Which breed of German Shepherd Dog lives the longest ?
select ?ent where { ?ent wdt:P31 wd:Q39367 . ?ent wdt:P2250 ?obj . ?ent wdt:P910 wd:Q55330348 } ORDER BY DESC(?obj)LIMIT 5 
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q39367>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
Which breed of German Shepherd lives longest?