Add scoped query