name of WITH query needs to be normalized to be case-insensitive

I found that this query fails:

```
with AB as (select 1) select * from AB
```

with this error message:

```
  Query 20141119_211516_04211_iz8i5 failed: Table td-presto.sfdb.ab does not exist
```

But this query succeeds:
```
with ab as (select 1) select * from ab
```

This pull-request fixes the issue by normalizing name of WITH query so that TupleAnalyzer.visitTable can find the name using a part of QualifiedName.