[api] add issuePigQuery method