dynamic Query Distribution Algo: abstract