1. A machine-implemented method for processing a query, comprising: determining, by a microprocessor, that execution of the query involves a scan operation; in response to determining that execution of the query involves a scan operation, generating, by the microprocessor, a scan operation command that includes, as parameters of the scan operation command, address data that is used to identify input data to be read by a coprocessor and one or more values that are used to compare against the input data; wherein the microprocessor is separate from the coprocessor; causing, by the microprocessor, the scan operation command to be stored in memory; processing, by the coprocessor, the scan operation command by: reading the scan operation command from the memory; causing the input data to be read from a location that is indicated by the address data; performing a comparison between the input data with the one or more values; generating a result data based on the comparison; causing the result data to be stored.