Add open data flag to query model