Qazi Muhammad ( 1893-1947 ) was the Nationalist and Religious Kurdish leader and the Head of Republic of Mahabad ( Republic of Kurdistan ) , the second modern Kurdish state in the Middle East ( after Republic of Ararat ) . Ù â Ø or QazÃ Mihemmed ) ( 1893-1947 ) was a nationalist and religious Kurdish leader and the Head of the Republic of Kurdistan , ( Republic of Mahabad ) the second modern Kurdish state in the Middle East ( after the Republic of Ararat ) .