Added query rank class