Thousands of mourners including official representatives of several nations gathered in Doha.