I have a bit of confusion about this. I thought a gold badge is given after you get 1000 up votes in a tag for example C#, Java, PHP, etc.
I saw this user (today) with only 476 upvotes for C# tag and he was given a gold badge in C# tag and elsewhere I saw this user with 764 upvotes in PHP tag but still no gold badge.
What is the criteria for this if it is not what I thought, that is 1000 upvotes?
Or is there a query I can run (in Stack Exchange data explorer) to determine the total votes earned by a user in the specified tag?