qnli question: What is one subject that Ibn SIna specialized in? sentence: Ibn Sīnā wrote extensively on early Islamic philosophy, especially the subjects logic, ethics, and metaphysics, including treatises named Logic and Metaphysics.