Reimplement query to obtain user competencies to fix xolp.user_get_competencies automated test
Personal perplexities:
- why do we specify the competency_set_id on the indicator facts? If one fact can be e.g. an exam, this might be related with multiple competency sets
- should we take into account also the validity of an activity?