Text this: Foundations of Rule−Based Query Answering