Construct a Information Scientist AI that may question db with SQL, analyze knowledge with Python, write…