private String[] parseLabels(String sql) {
		if (isShowTables(sql)) {
			return new String[]{"Tables_in_test"};
		}
		String upperSql = sql.toUpperCase();
		String select = "SELECT";
		sql = sql.substring(upperSql.indexOf(select) + select.length());
		upperSql = sql.toUpperCase();
		String from = "FROM";
		sql = sql.substring(0, upperSql.indexOf(from));
		String[] labels = sql.split(",");
		for (int i = 0; i < labels.length; i++) {
			String label = labels[i];
			if (label.contains("`")) {
				label = label.replaceAll("`", "");
			}
			if (label.toLowerCase().contains("as")) {
				labels[i] = label.substring(label.toLowerCase().indexOf("as")+2).trim();
			} else if (label.contains(".")) {
				labels[i] = label.substring(label.indexOf(".")+1).trim();
			} else {
				labels[i] = label.trim();
			}
		}
		return labels;
	}