The same three-case pattern appears across different examples.
NounNominativeAccusativeGenitive, basic formإِبْرَاهِيمإِبْرَاهِيمُإِبْرَاهِيمَإِبْرَاهِيمَفَاطِمَةفَاطِمَةُفَاطِمَةَفَاطِمَةَأَكْبَرأَكْبَرُأَكْبَرَأَكْبَرَمَسَاجِدمَسَاجِدُمَسَاجِدَمَسَاجِدَ
The accusative and basic genitive look alike, so context must determine the case.