According to https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-instruct-Splunk-to-not-add-quotes-wh... I have try to do the same thing with data model search but I have encountered to error that unable to query ....
| inputlookup internalcheck.csv
| fields check
| map maxsearches=100 search="$check$"
However search with raw SPL will not be invalid
search="| tstats count from datamodel=Endpoint.Registry ..."
Can I have some solutions about doing multiple search queries from data model?
Are you absolutely sure about the contents of your csv? The error message suggests you have extra single quotes. That would effectively make your search not
| tstats something something
but
'| tstats something something'