score:11
It appears that both are correct. It's just that they are referring to different buildings. The term Moti Masjid simply means "Pearl Mosque".
The Moti Masjid (Agra Fort) "Pearl Mosque" in Agra was built by the Mughal emperor Shah Jahan in the 17th century.
The Moti Masjid (Lahore Fort) "Pearl Mosque" inside the Lahore Fort was built by Mughal emperor Jahangir earlier in the 17th century.
Wikipedia notes that there is also the Moti Masjid (Red Fort) "Pearl Mosque" built inside the Red Fort complex in Delhi, and which was built by the Mughal emperor Aurangzeb from 1659-1660.