If it fails, we find the corresponding English Wikipedia title via interlanguage links and then query the API with the English title.
freeBase does not contain entities in Yoruba, Bengali, and Tamil, so the first step will always fail for these three languages.