Precomputing Datalog Evaluation Plans in Large-Scale Scenarios