private void findIndexUsageForSingle(TablePairActivity tablePair) {
		for (Query query : queries) {
			List<String> queryRelations = query.getRelations();
			Set<QueryFilter> queryFilters = query.getSelections();

			String tableA = tablePair.getNameOfTableA();

			if (tablePair.isSingle() && queryRelations.contains(tableA)) {
				// Check queries that use that table
				if (queryRelations.size() == 1) {
					// if the table is used in a query as the only table,
					// then account as index usage to prevent deletion
					tablePair.addUsageIndexA(query.getTimesUsed());
				} else {
					// if the table is used in a query, in conjunction with
					// other tables, and its index is used
					for (QueryFilter qf : queryFilters) {
						QueryAttribute qa = qf.getLeftAttribute();

						// TODO: unique or just key?
						if (db.isUniqueKey(qa.getTableName(),
								qa.getColumnName())) {
							if (qa.getTableName().equals(tableA)) {
								tablePair.addUsageIndexA(query.getTimesUsed());
							}
						}
					}
				}
			}
		}
	}