Steps to replicate the issue (include links if applicable)
What happens?
The RTL (right to left) text is oriented for LTR (left to right) languages, which causes user interface sentences to be shown incorrectly.
What should have happened instead?
When the user interface language is an RTL (right to left) language, the user interface must be properly oriented for RTL.
Since the Query Builder is a rather technical tool, which includes a lot of code snippets that must be LTR, RTL direction should be applied only on the parts that show user interface sentences, and explicitly LTR everywhere else.
It seems that the css logical properties are not being applied properly, probably due to the direction not being set.
Screenshots
How it currently looks:
Example
How it should look when it is fixed: