What is the {inferior planet} with the {MAX(synodic period)} ?
The longest synodic period is possessed by which inferior planet?
Which inferior planet has the longest synodic period?
SELECT ?x WHERE { ?x rdf:type ontology:inferior_planet . ?x property:synodic_period ?j }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3901935>.
?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/P4341>.
?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:Q3901935 . ?ent wdt:P4341 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Venus Mercury