Add __iter__ method to QueryProcessor

Signed-off-by: Don Naegely <naegelyd@gmail.com>