What is the {star} with the {MAX(proper motion)} whose {companion of} is {Alpha Centauri B}  ?
What companion star of Alpha Centauri B travels at the highest rate of proper motion?
What is the star with the highest proper motion whose companion of is Alpha Centauri B ?
SELECT ?g WHERE { ?g property:companion_of resource:Alpha_Centauri_B . ?g property:proper_motion ?v . ?g rdf:type ontology:star }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q523>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q523 . ?ent wdt:P2215 ?obj . ?ent wdt:P399 wd:Q1052548 } ORDER BY DESC(?obj)LIMIT 5 
Alpha Centauri A Alpha Centauri A