{endcode}
 
 {code}
+# count_jobs_by_owner.cpf
+# aggregate by the given attributes, and return unique attrib values + count + jobids.
+SELECT UNIQUE NOSUMMARY
+   Owner       AS OWNER      WIDTH -20
+   JobCount    AS COUNT      PRINTF  %5d
+   JobStatus   AS STATUS     PRINTAS JOB_STATUS_RAW
+   JobUniverse AS "UNIVERSE "   PRINTAS JOB_UNIVERSE
+   DAGManJobID AS "   DAGID"     WIDTH 10
+   JobIDs
+GROUP BY
+   Owner
+   JobIDs
+{endcode}
+
+{code}
 # myqueue.cpf
 # produce the standard output of condor_q + the custom attribute "Progress", showing only jobs for adam
 SELECT