Let $X, Y, Z$ be compact topological manifolds $f: Y \to X, g: Z \to X$ be embeddings of submanifolds meeting transversely and let $W = Y \times_X Z$: $$ \begin{array}{ccc} Y & \to^f & X \\ \uparrow^G & & \uparrow^g\\ W & \to^F & Z \\ \end{array} $$
My question is: How does one show that the two morphisms $F_! \circ G^*$ and $g^* \circ f_!$ from $H^*(Y, \mathbb Q)$ to $H^*(Z, \mathbb Q)$ coincide?
Here $F_!, f_!$ are Gysin morphisms; let us not concern ourselves with degree shift for brevity.
Using the natural morphisms ${\mathbb Q}_Y \to G_*{\mathbb Q}_W$ and ${\mathbb Q}_W \to RF^!{\mathbb Q}_Z$ and adjunction the first morphism can be represented as the composition of the following morphisms $$ RHom_Y({\mathbb Q}_Y, {\mathbb Q}_Y) \to RHom_Y({\mathbb Q}_Y, G_* {\mathbb Q}_W) \cong RHom_W(G^*{\mathbb Q}_Y,{\mathbb Q}_W) \cong RHom_W({\mathbb Q}_W,{\mathbb Q}_W) \to RHom_W({\mathbb Q}_W, RF^!{\mathbb Q}_Z) \cong RHom_Z(RF_! {\mathbb Q}_W, {\mathbb Q}_Z) \cong RHom_Z({\mathbb Q}_Z, {\mathbb Q}_Z) $$ and using the natural morphisms ${\mathbb Q}_Y \to Rf^!{\mathbb Q}_X$ and ${\mathbb Q}_X \to g_*{\mathbb Q}_Z$ the second morphism can be represented as the composition of $$ RHom_Y({\mathbb Q}_Y, {\mathbb Q}_Y) \to RHom_Y({\mathbb Q}_Y, Rf^!{\mathbb Q}_X) \cong RHom_X(Rf_!{\mathbb Q}_Y, {\mathbb Q}_X) \cong RHom_X({\mathbb Q}_X, {\mathbb Q}_X) \to RHom_X({\mathbb Q}_X, g_*{\mathbb Q}_Z) \cong RHom_Z(g^*{\mathbb Q}_X, {\mathbb Q}_Z) \cong RHom_Z({\mathbb Q}_Z, {\mathbb Q}_Z) $$
The base change theorem (Iversen, "Cohomology of sheaves" VII.2.6) gives an isomorphism of the corresponding functors, i.e. $RF_! \circ G^* \mathcal F \cong g^* \circ Rf_! \mathcal F$ functorially in the object $\mathcal F$ in the derived category. I am not sure how one aplies this statement about functors to deduce the statement about morphisms on cohomology.