which branch of military have both prince george and john hamilton served ?
SELECT DISTINCT var_uri where brack_open dbr_Prince_George,_Duke_of_Cambridge dbp_branch var_uri sep_dot dbr_John_Hamilton_ attr_open artist attr_close dbp_branch var_uri sep_dot var_uri a dbo_MilitaryUnit brack_close