Implement query element children data And Refactory query method