what is the fictional character which belongs to families of gertrude and ghost ?
SELECT DISTINCT var_uri where brack_open var_uri dbp_family dbr_Gertrude_ attr_open Hamlet attr_close sep_dot var_uri dbp_family dbr_Ghost_ attr_open Hamlet attr_close sep_dot var_uri a dbo_FictionalCharacter brack_close