Suppose that event $A$ is a subset of event $B$.
Event $A$ happens with probability $p_A$ and event $B$ happens with probability $p_B$.
Here, we only know the distribution of $p_A$ and $p_B$.
In fact, we have $p_A\sim Beta(\alpha_1,\beta_1)$ and $p_B\sim Beta(\alpha_2,\beta_2)$ with a condition that $\alpha_1+\beta_1=\alpha_2+\beta_2$.
What I want to compute is to find a conditional probability of event $A$ given event $B$ (denote it by $p_{A|B}$).
If $p_A$ and $p_B$ were deterministic, we can simply have $$p_{A|B}=\frac{p_A}{p_B}.$$
However, how should I proceed if these $p_i$'s themselves are random variables? From the beta distribution and the assumption on the beta parameters, we have
$$f_{\mathbb p_A|\mathbb p_B=z}(p_A|p_B=z)=\frac{\Gamma(\alpha_2)\Gamma(\beta_2)}{\Gamma(\alpha_1)\Gamma(\beta_1)}\frac{p_A^{\alpha_1-1}(1-p_A)^{\beta_1-1}}{z^{\alpha_2-1}(1-z)^{\beta_2-1}},~p_A\leq z.$$
From this conditional probability, how to derive $p_{A|B}$? Can we proceed by setting $$E[p_{A|B}]=\int^1_0\int^z_0p_Af_{\mathbb p_A|\mathbb p_B=z}(p_A|p_B=z)f_{P_B}(z)dp_Adz?$$
If $p_A,p_B$ are both random variables here (unusual situation) then also $p_{A|B}$ must be looked at as a random variable: $p_{A\mid B}=\frac{p_A}{p_B}$ if $B\subseteq A$.
Further it is not in general true that $\mathbb E\frac{X}{Y}=\frac{\mathbb EX}{\mathbb EY}$ so it is also not guaranteed that $\mathbb Ep_{A\mid B}=\frac{\mathbb Ep_A}{\mathbb Ep_B}$