Complex sentence: In the spring of 1747 Muhammad-khan with allies captured Derbent, then attacked Quba.
Split into simpler sentences: In the spring of 1747 Muhammad-khan with his allies captured Derbent. Then Muhammad-khan attacked Quba.