query api gives correct workload