I have wished for exponentiation in relevance language before, although the use case escapes my memory.
I had never solved it until a coworker was asking about it again this weekend and I got an inspiration.
Here is one solution:
q: product of items 0 of (preceding text of first "^" of it as integer, integers in (1, following text of first "^" of it as integer)) of "11^4"
A: 14641