"Which is candidate of Battle of Oudenarde, that has diplomatic relation is Japan ?"
SELECT ?answer WHERE { wd:Q316139 wdt:P710 ?answer . ?answer wdt:P530 wd:Q17}
battle of oudenarde: Q316139 japan: Q17