For provenance capture for a query with self-joins (more than one reference to the table for which we compute provenance) we generate one capture rule for each reference to the table. However, these rules incorrectly all project out the variables from the same goal instead of for each of the rules.
For provenance capture for a query with self-joins (more than one reference to the table for which we compute provenance) we generate one capture rule for each reference to the table. However, these rules incorrectly all project out the variables from the same goal instead of for each of the rules.
should be rewritten as
but is rewritten as