intersection queries have Duplicate query conditions error. unfixed as yet. refactored queries into another file