Another language reminiscent of Prolog is Clingo (web repl: https://potassco.org/clingo/run/).
It's a lot like Prolog, but it's based in answer set programming, which gives you nice guarantees like "doesn't matter what order you write the rules in" and "always terminates".