Transform MongoDB queries into Map Reduce queries.