It has a rectangular prayer hall capped by 20 domes , supported by 12 great pillars compare this to the imperial mosques of Istanbul , which reflect the influence of Haghia Sophia .
The prayer hall is supported by four great pillars .