I had some success with the SQL action, starting here:
https://www.reddit.com/r/tasker/comments/o9wghn/how_to_get_detailed_info_about/I have a task using SQL Query action with Mode URI Formatted and URI content://call_log/calls/ and it is working. I want to add a LIMIT clause, so I have to rewrite to use Mode Raw, because that way I can enter the full SQL statement.
In Raw mode I cannot locate the file.
I get this error:
file not found
storage/emulated/0/content://call_log/
After some research, it looks like Raw mode needs to be pointed to a db file, which I do not have; but URI mode can use a URI, which I have. However, it would be great to have a URI mode that allows the Query to be entered as a full SQL statement, so that other SQL directives besides SELECT, WHERE can be used, like LIMIT.