The definition of the infix operator as/2 dictates that the extended tabling directive should be parsed as as(table(Args),Options) but this file originally had table(as(Args,Options)); nevertheless, I left the original code in-place for the original author to review.