manual query edit