With MapReduce, each document (or key/value) is processed in parallel and the result of each process is aggregated and returned to the user.
A map () and reduce () function can be written to determine the distribution the languages of the people in the database.