What is the {human} with the {MAX(time in space)} whose {award received} is {United States Astronaut Hall of Fame}  ?
Which US Astronaut Hall of Fame member spent the longest amount of time in space?
Which United States Astronaut Hall of Fame inductee spent the most time in space ?
SELECT ?m WHERE { ?m property:time_in_space ?h . ?m rdf:type ontology:human . ?m property:award_received resource:United_States_Astronaut_Hall_of_Fame }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q5>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q5 . ?ent wdt:P2873 ?obj . ?ent wdt:P166 wd:Q742943 } ORDER BY DESC(?obj)LIMIT 5 
Michael Foale Shannon Lucid Ken Bowersox Susan J. Helms John E. Blaha