How to find ID which quantity is more than half of all the IDs existing