// also add labels with column names
// TODO refactor this and move to QuietSpreadsheetLayout
Result result = inputTable.execute();
ColumnLabels labels = result.getLabels();
String tableName = tableNamesIter.next();
ColumnNamesImpl cn = databaseSchema.schemaTable(tableName);
ColumnIndexesImpl ci = cn.asColumnIndexesLookup();
Iterator<SimpleColumn> scs = ci.iterator();
for (Column c : result.getResultRelation()) {
SimpleColumn sc = scs.next();
labels.put(c, tableName+"."+sc.name());