How far is it to the next village?

Literal

Next [of-の] village [until-まで] how-much exists [question-か].

どのくらい ('how much, how many, how far') is a question-word for quantity/distance. ありますか ('is/are there') here measures distance — 'how much distance is there?' Natural travel inquiry.