A logical framework for querying and repairing inconsistent databases | Synapse