add query, inherit related demos