Detection of 20-30 h^-^1 Mpc-scale galaxy structures embedded in 100 h^-^1 Mpc-scale structures of quasars and MgII absorbers at z 0.8 and z 1.2