What is the {space station} with the {MAX(orbits completed)} ?
What space station has orbited the most?
Which space station has completed maximum orbits?
SELECT ?x WHERE { ?x rdf:type ontology:space_station . ?x property:orbits_completed ?n }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q25956>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1418>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .}
ORDER BY DESC(?obj)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q25956 . ?ent wdt:P1418 ?obj } ORDER BY DESC(?obj)LIMIT 5 
International Space Station Mir Salyut 7 Skylab Salyut 6