global index query