Abstract: Inconsistency may arise when data are integrated together with respect to a given set of integrity constraints. Many techniques can identify inconsistent data by ad-hoc ways but inconsistent data can not be managed effectively. To judge a query is rewritable, the work analyses whether the join graph for the query is directed. Also, the work presents an approach for computing tuple probabilities and a basic technique for query rewriting. The experiments use the data and queries of the TPC-H specification to compare performance for degrees of inconsistencies and the results show that the approach is effective and feasible.