Client API Query: added history opt-out option
Doc: added Query doc