Num_view should be called in query