What is the {F-type main-sequence star} with the {MAX(absolute magnitude)} whose {child astronomical body} is {Upsilon Andromedae e}  ?
What F-type main-sequence star from Upsilon Andromedae e's orbit has the largest absolute magnitude?
Which F-type main-sequence star that Upsilon Andromedae e orbits has the largest absolute magnitude ?
SELECT ?n WHERE { ?n property:child_astronomical_body resource:Upsilon_Andromedae_e . ?n property:absolute_magnitude ?j . ?n rdf:type ontology:F-type_main-sequence_star }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q1353952>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q1353952 . ?ent wdt:P1457 ?obj . ?ent wdt:P398 wd:Q1187138 } ORDER BY DESC(?obj)LIMIT 5 
Upsilon Andromedae