only create query locations in attached server if upstream exists