1. A computer-implemented method for generating output of relevant queries for a database, the method comprising: receiving data from a table in a database; reviewing the data and forming a K=2 graph; compacting the K=2 graph by applying a first threshold; identifying one or more cliques of up to seven nodes from the K=2 graph; for each clique that is identified, determine if the clique meets a super clique threshold; and ranking the one or more super cliques based on relevance.