replaced EQ with EX for queries