query topology