What is the {star} with the {MIN(proper motion)} whose {companion of} is {Alpha Centauri B}  ?
Of Alpha Centauri B, what star has the least proper motion and is also a companion?
which star is companion of Alpha Centauri B and have least proper motion?
SELECT ?z WHERE { ?z rdf:type ontology:star . ?z property:proper_motion ?c . ?z property:companion_of resource:Alpha_Centauri_B }
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 ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q523 . ?ent wdt:P2215 ?obj . ?ent wdt:P399 wd:Q1052548} ORDER BY ASC(?obj)LIMIT 5 
Alpha Centauri A Alpha Centauri A