What is the {human spaceflight} with the {MAX(orbits completed)} whose {instance of} is {spacecraft}  ?
What spacecraft did the most amount of orbits?
What is the name of the {spacecraft} which has carried {man} and completed the {largest number of orbits}?
SELECT ?p WHERE { ?p rdf:type ontology:human_spaceflight . ?p property:orbits_completed ?r . ?p rdf:type ontology:spacecraft }
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/P1418>.
?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/P31> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q40218> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q752783 . ?ent wdt:P1418 ?obj . ?ent wdt:P31 wd:Q40218 } ORDER BY DESC(?obj)LIMIT 5 
Apollo 8