I discovered that when I moved my motion sensors into a folder. Query does not see them. But it appears that by adding the sensors individually as lines within my query program that it is getting to them. Let me know if I'm just seeing ghosts here, but it appears to work.