public boolean isColumnUsedInTheSameQueryWithTable(String tableA,
			String columnA, String tableB) {
		for (Query q : queries) {
			List<String> relations = q.getRelations();

			if (relations.size() > 1) {
				if (relations.contains(tableA) && relations.contains(tableB)) {
					List<QueryAttribute> projections = q.getProjections();

					for (QueryAttribute qa : projections) {
						if (qa.getTableName().equals(tableA)
								&& qa.getColumnName().equals(columnA)) {
							return true;
						}
					}

				}
			}
		}

		return false;
	}