Replaced last EXISTS with the one point rule
Replaced whole query with the Shunting rule