You can't edit a query from the report designer.
Report center isn’t activated in the instance and “Functional and optional Permission” is ON.
You will need to turn OFF the “Functional and optional Permission”
Now the query is editable:
Edit query, Report Designer query , KBA , LOD-SF-ANA-ORD , Online Report Designer , Problem