1. A method for querying data in a database for a computer system comprising the database, a central processing unit (CPU) and a graphics processing unit (GPU), comprising: generating, by the CPU, a block index set based on original data in the database and storing the block index set into a global memory of the GPU; receiving, by the CPU, a query instruction comprising one or more query conditions; determining, by the GPU, a status of each block index of the block index set stored in the global memory of the GPU, wherein determining the status of each block index comprises determining whether the block index is in a synchronous state or an asynchronous state; and starting, by the GPU in response to every block index in the global memory of the GPU being in an asynchronous state, one or more GPU processes to filter the block index set in the global memory of the GPU according to the one or more query conditions, to obtain a first block index query result for determining a data query result based on the first block index query result and one or more other block index query results.