The following solids are formed by $X,\, Y,\, Q$ and $Z$.
$X Y_{2},\, X_{2} Z,\, Q Z$ According to the above formulae,
$X, Y, Q$, and $Z$ exhibit $+2,-1,+4$, and $-4$ oxidation states respectively. Therefore, the formula of the compound formed by $Q$ and $Y$ is $Q Y_{4}$.