documented S3 method query and exporting it