diff --git a/sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/WhereClause.java b/sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/WhereClause.java
index <HASH>..<HASH> 100644
--- a/sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/WhereClause.java
+++ b/sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/WhereClause.java
@@ -135,6 +135,7 @@ public class WhereClause {
         } else if (p.getBiPredicate() instanceof Existence) {
             result += prefix + "." + sqlgGraph.getSqlDialect().maybeWrapInQoutes(hasContainer.getKey());
             result += " " + p.getBiPredicate().toString();
+            return result;
         } else if (p.getBiPredicate() instanceof ArrayContains) {
             prefix += "." + sqlgGraph.getSqlDialect().maybeWrapInQoutes(hasContainer.getKey());
             result += sqlgGraph.getSqlDialect().getArrayContainsQueryText(prefix);
fix minor bug where return statement was deleted.