Create variable from other input

I have a query which gets :inputs like in this example:

:inputs ["Stas" "[[Stas]] #1v1"]

I’m using these inputs (?person, ?title) in the query.
Can I somehow deduce the title from the person, instead of explicitly passing it?
i.e ?title will always be the ?person, surrounded by double square brackets + " #1v1"


Try [(str "[[" ?person "]] #1v1") ?title]

1 Like