For those looking to gentle introduction to logic programming, Tarski's World was a very good book.
https://ggweb.gradegrinder.net/tarskisworld
https://web.stanford.edu/group/cslipublications/cslipublicat...
Might help, instead of jumping straight into Prolog.