We consider the problem of the task-level robot learning from demonstration. In particular, we consider a model that uses the hierarchical control structure. For this model, we propose the problem of selection of action examples. We present a polynomial time algorithm for solution of this problem. Also, we consider some experimental results for task-level learning from demonstration.