// add the first operations of the inference operator graph to the operator graph of the query
for(final OperatorIDTuple rootChild: new LinkedList<OperatorIDTuple>(rootInference.getSucceedingOperators())){
rootInference.removeSucceedingOperator(rootChild);
final BasicOperator rootChildOperator = rootChild.getOperator();
rootChildOperator.removePrecedingOperator(rootInference);
rootChildOperator.addPrecedingOperator(rootQuery);
if(rootChildOperator instanceof InsertIndexScan) {
// these operators are used to insert facts/triples => should occur as leftmost operators after the root such that they are evaluated first!
final LinkedList<OperatorIDTuple> list = new LinkedList<OperatorIDTuple>(rootQuery.getSucceedingOperators());
list.addFirst(rootChild);