generated examples for api-query.js