I'm not sure if this help doc would help: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//0053000000nz000000. If you have publishing questions, you might need to contact ArcGIS Server or Desktop. Our QueryTask is meant to retrieve features from a feature layer in an ArcGIS Server map service or a spatially-enabled table in SQL Server via the MapIt Spatial Data Service.