Pagination does not work with "Query JSON with SQL"

The following query results in an error:

select *
from {{ table3.data }} s
join {{ sf_opportunities.data }} sf_op on sf_op.Id = s.survey_id
limit 10
offset {{ pagination1.value }}
Parse error on line 5: ...idlimit 10offset ? ---------------------^ Expecting 'NUMBER', got 'QUESTION'

When a number is directly entered for the offset, it executes correctly.