Implemented query_result type.