Having the following Bayesian Network:
A -> B, A -> C, B -> D, B -> F, C -> F, C -> G
$$\begin{array}{l} A&\to&B&\to& D\\\downarrow &&\downarrow \\ C&\to&F\\\downarrow\\G \end{array}$$
With the following probabilities:
$$P(+a)=...$$ $$P(+a|+b)=..., P(+a|¬b)=...$$ $$P(+b|+a)=..., P(+b|¬a)=...$$ $$P(+d|+b)=..., P(+d|¬b)=...$$ $$P(+f|+b,+c)=..., P(+f|¬b,+c)=..., P(+f|¬b,¬c)=...$$ $$P(+g|+c)=..., P(+g|¬c)=...$$
I have to compute this $P(+d, +f, \neg g)$, that I think is:
$$P(+d, +f, \neg g) = P(+a, +d, +f, \neg g) + P(\neg a, +d, +f, \neg g).$$
My question is: how can I compute each addend?
I think is: $$P(+a, +d, +f, \neg g) = P(+a)·P(+d|+b)·P(+f|+b,+c)·P(\neg g,+c)$$
But I'm using $b$ and $c$ that there aren't in $P(+a, +d, +f, \neg g)$.
NOTE: This question is related to this one: Calculate probability using brute-force method.