Query approved tickets CLI

I am trying to create a csv export of approved tickets. Just what has been approved only. How would one do this? What would the SQL look like for this? I am using a default debian wheezy setup with RT 4.2