importIntoHDFS: fix multiple issues with SQL query parsing and rewriting:
  - wrong WHERE clause selected.
  - WHERE vs. AND not correctly picked.
  - Check for presence of the partitionColumn would give false positives if variables are being renamed.