In short when i dump the query result it just shows the session
variable name as it is [#Session.Matter_space_Name#] instead of
showing the actual session value of that variable.
It simply comes down to this: you have stored the string
"#Session.Matter_space_Name#" as data in the the parameterValue
column. If that is not what you intended, go back to the code that
inserted the data and change the value. Or perhaps, you intended to
store the string Session.Matter_space_Name as parameterValue so
that you can later get the value with
evaluate(qSendNotification.ParameterValue).