Issue #19: Inner Selects almost done

Resolving issues with Predicates after inner queries.