Efficient Evaluation of Answer Set Programs with External Sources Based on External Source Inlining