Fixed Query generation and Table generation

Fixed the naive query generation, the error was in linking columns.
Fixed to changing that each edge with a sharing node occurs in the
equlity.

Completed table generation
Added and changed queries

Some queries were added for testing purpouses and others were needed for
creating or cleaning tables