pgMagic is a tiny postgres client for mac that understands natural language. You can do everything you would expect from a regular db client, but you can also ask questions in plain English and have the generated SQL run immediately.
identifier "xyz.hill.pgMagic" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = "2L228K3KB4"