If you would like to filter a RIGHT OUTER JOIN, e.g.
Table_1 RIGHT OUTER JOIN Table_2
then you have to put Table_1 columns in ON clause and Table_2 in WHERE clause, e.g.
Table_1 RIGHT OUTER JOIN Table_2 ON Table_1.num = Table_2.num AND Table_2.name = "Ahmed" WHERE Table_1.name = "Ali"
If you swapped it or put all conditions in WHERE clause then it is as if you are doing INNER JOIN.
Resource: WHERE conditions on a LEFT JOIN