which ancient country had capital as beni hammad fort and beni hammad fort ?
SELECT DISTINCT var_uri where brack_open var_uri dbo_capital dbr_Beni_Hammad_Fort sep_dot var_uri dbo_capital dbr_Beni_Hammad_Fort sep_dot var_uri a dbo_Country brack_close