# Abelian varieties attached to modular forms

Hello!

I have two questions:

How to compute the Mordell-Weil rank of an abelian variety attached to a moduar form?

How to factor a Q-simple abelian variety attached to a modular form into elliptic curves over a number field.

Thank you!