My code is
\documentclass{article}
\usepackage{amssymb,bm}
\begin{equation}
\nabla_{\theta} \bm{J}(\theta) =
\mathbb{E}_{s \sim T^{\bm{\pi}}, a \sim \bm{\pi}_{\theta}}
[\nabla_{\theta} \log \bm{\pi}(a | s ) \cdot Q(s, a) ],
\end{equation}
\end{document}
And I want to break {s \sim T^{\bm{\pi}}, a \sim \bm{\pi}_{\theta}} into two lines, not put it under \mathbb{E}. In the picture below, how to move the second part after the comma and stack under the first part?
How can I do that? Thank you in advance.


\nablaand\thetasymbols, consider writing\nabla_{\!\theta}. The\!(negative thinspace) directive moves the subscript term to the left, i.e., closer to the\nablasymbol. – Mico Feb 23 '19 at 06:34