in your case, q0 is the ‘root queue’ and q1 is the leaf queue. Jobs are allowed to run only on leaf nodes.
You can read more details about capacity scheduler here – http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.1.5/bk_system-admin-guide/content/setting_up_queues.html