range query controller