By performing a set of numerical relativity simulations for the merger of binary neutron stars with several mass ratios, the properties of ejected matter in dynamical and post-merger phases are investigated for the cases in which the remnant massive neutron star collapses into a black hole in 20 ms after the onset of merger. The dynamical mass ejection is investigated in three-dimensional general relativistic hydrodynamics simulations with an approximate neutrino-radiation transfer. The resulting post-merger systems are then mapped onto the axisymmetric ones and used as the initial conditions of axisymmetric long-term radiation-hydrodynamics simulations supposing that the effective viscosity should arise as a result of magnetohydrodynamical activity in the post-merger system. We show that the typical electron fraction of the dynamical ejecta is lower for the merger of more asymmetric binaries, and hence, heavier r-process nuclei are dominantly synthesized. We also show that the post-merger ejecta has only a mild neutron-richness, which results in the production of lighter r-process nuclei, irrespective of the binary mass ratio and that the ejecta mass is larger for the merger of more asymmetric binaries due to the larger disk mass. Thus, for the asymmetric merger case, the underproduction of lighter r-process nuclei can be compensated by the post-merger ejecta. As a result, by summing up both ejecta components, the solar residual r-process pattern is approximately reproduced irrespective of the binary mass ratio. Implications of our results associated with the mass distribution of compact NS binaries and the magnetar scenario of short gamma-ray bursts are discussed.