What is the {human spaceflight} with the {MIN(apoapsis)} whose {location of landing} is {Kazakhstan}  ?
What is the human spaceflight with the lowest apoapsis whose vicinity of landing is Kazakhstan ?
What is the human spaceflight with the lowest apoapsis whose location of landing is Kazakhstan ?
SELECT ?d WHERE { ?d property:location_of_landing resource:Kazakhstan . ?d rdf:type ontology:human_spaceflight . ?d property:apoapsis ?q }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q752783>.

?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/P2243>.
?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 ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q752783 . ?ent wdt:P2243 ?obj . ?ent wdt:P1158 wd:Q232} ORDER BY ASC(?obj)LIMIT 5 
Vostok 5 Soyuz 3 Vostok 4 Soyuz 5 Soyuz TM-15