Thread:Talk:Semantic Maps/Setting semantic query output as parameter for another query/reply

You can do what you want to do using compound queries. See this example.

You can also ask on the user mailing list, perhaps there even is a better way now, I'm not sure.