Lists all packages in the consolidation 'osnet':

pkg search -r '<set:org.opensolaris.consolidation:osnet>'

Lists all installed incorporations

pkg search -l -r '<:depend:incorporate:>'

Search for all the users delivered by packages

pkg search -r :user::