Prolog for data science