Name the barrel length for rear sight a2 for factory compensator
create table table_12834315_4 (barrel_length varchar, rear_sight varchar, muzzle_device varchar, PRIMARY KEY (barrel_length))
select barrel_length from table_12834315_4 where rear_sight = "a2" and muzzle_device = "factory compensator"