SMW 2.3 and #ask format=template
From semantic-mediawiki.org
Fragment of a discussion from Semantic MediaWiki Community Portal
I suspect this relates to [0] which has been fixed and will be released with 2.3.1.
Cheers
[0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/1255