Refer to question with variable

I have a question with a variable, let’s say

select * from booking where year = {{year}}

Now I would like to reference this question in another question, something like

select * from product join {{#-previous-question {year=2024}}}

where I specify somehow the value of the variable from the previous question.

Is this actually possible in some way?

This is similar to Using a saved question with variable to build another question

No, it’s not possible in a question to set another question’s variables. It will use the default value of the variable.