I like the viewall query which allows me to print out all tasks, active (not-completed) or completed. Is there a way to query active tasks only?
The only way to print out all active tasks is through the "viewall" query. It does not display completed tasks - only active.
If you see tasks that are grayed out on this list then these are sub-tasks which stay on a task list until you complete their parent task. You can also hold the SHIFT key while checking off a sub-task and it will move it to the history right away.