Reading query in mapper.