Complex sentence: Until she was five years old Minaj lived with her grandmother in Saint James and was occasionally visited by her mother, with whom she later moved to Queens, New York.
Split into simpler sentences: Until she was five years old, Minaj lived with her grandmother in Saint James, and was occasionally visited by her mother. She and her mother later moved to Queens, New York.