What is the {Soyuz-TM} with the {MAX(orbital period)} whose {location of landing} is {Kazakhstan}  ?
Name the Kazakhstan landing Soyuz-TM  with the largest orbital period.
Which Kazakhstan landing Soyuz-TM has the greatest orbital period?
SELECT ?s WHERE { ?s rdf:type ontology:Soyuz-TM . ?s property:location_of_landing resource:Kazakhstan . ?s property:orbital_period ?j }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q2705481>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q2705481 . ?ent wdt:P2146 ?obj . ?ent wdt:P1158 wd:Q232 } ORDER BY DESC(?obj)LIMIT 5 
Soyuz TM-19 Soyuz TM-20 Soyuz TM-13 Soyuz TM-12 Soyuz TM-8