Rationally powered group of nilpotency class two