Yes, I am certain that this is not another defined lisp routine. I searched through every known lisp routine we have and it wasn't there. When I open the lisp file up in VLIDE the command is blue just like every other built in command. So i assumed that confirmed my suspicions of it being part of the addons API.
There are other files included with the addon. They include .ARX files, a few .DLL files and some database files. I can use Dependency Walker and see whats being called from the .DLLs but Dependency Walker wont show me any of the functions in the .ARX files.
EDIT:
If I try and run the command from the command line with no parameters (entity_query). I get an error window with the name of one of the .ARX files. Would that mean that it's definition should be in that file somewhere? If I open the .ARX up in a hex editor I cannot find the string "entity_query" within the file.