Using the like operator for page names

From semantic-mediawiki.org

I have been trying to use the ~ like operator for page names. For example, to find a page name that starts with NDC, I would do

{{#ask: [[:~NDC*]] 
|default=none found
}}

I can get the like syntax to work for parameters, but not page names. Am I using the wrong syntax or does this simply not work with page names. (Let's not argue for the moment why I would want to do such a thing in the first place :-) )

01:36, 7 November 2018

The help page on single page constaints should provide the answer. I believe it should be:

{{#ask:
 [[~NDC*]] 
 |default=none found
}}
21:54, 8 February 2019

When I start searching for #ask documentation I usually start out on Inline queries, since that's where the glossary page [[1]] takes me. From there, nothing directed me toward the single page constraints page. There seems to be some good and some bad duplication between the inline query and the semantic search pages. In the end "how to query" information is needed in both scenarios. Would it be best to break something like that out into its own and then link to it from both semantic search and from inline query? I am willing to help with this, just trying to figure out where you want to take this.

16:00, 20 March 2019