diff --git a/e2e-test/src/main/resources/model/expense-model.xml b/e2e-test/src/main/resources/model/expense-model.xml
new file mode 100644
index 000000000..5f2a668f9
--- /dev/null
+++ b/e2e-test/src/main/resources/model/expense-model.xml
@@ -0,0 +1,123 @@
+
+
+ Administrator
+
+
+
+
+
+
+
+
+
+
+
+ expenseReport
+ cm:content
+
+
+ ExchangeRate
+ d:double
+ false
+
+ TRUE
+ true
+
+
+
+ RecordedAt
+ d:datetime
+ false
+
+ TRUE
+ true
+
+
+
+ ExpenseDate
+ d:date
+ false
+
+ TRUE
+ true
+
+
+
+ EmpNo
+ d:long
+ false
+
+ TRUE
+ true
+
+
+
+ Currency
+ d:text
+ false
+
+ FALSE
+ true
+
+
+
+ Amount
+ d:float
+ false
+
+ TRUE
+ true
+
+
+
+ Approved
+ d:boolean
+ false
+
+ TRUE
+
+
+
+ id
+ d:int
+ true
+
+ TRUE
+ true
+
+
+
+ Notes
+ d:mltext
+ false
+
+ BOTH
+ false
+
+
+
+ Location
+ d:text
+ false
+
+ BOTH
+ true
+
+
+
+ CostCentre
+ d:text
+ false
+
+ BOTH
+ true
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/e2e-test/src/test/java/org/alfresco/service/search/e2e/insightEngine/sql/SelectStarTest.java b/e2e-test/src/test/java/org/alfresco/service/search/e2e/insightEngine/sql/SelectStarTest.java
new file mode 100644
index 000000000..353bedf54
--- /dev/null
+++ b/e2e-test/src/test/java/org/alfresco/service/search/e2e/insightEngine/sql/SelectStarTest.java
@@ -0,0 +1,565 @@
+/*
+ * Copyright 2019 Alfresco Software, Ltd. All rights reserved.
+ * License rights for this program may be obtained from Alfresco Software, Ltd.
+ * pursuant to a written agreement and any use of this program without such an
+ * agreement is prohibited.
+ */
+
+package org.alfresco.service.search.e2e.insightEngine.sql;
+
+import java.time.LocalDateTime;
+import java.time.ZoneOffset;
+import java.time.ZonedDateTime;
+import java.time.format.DateTimeFormatter;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.alfresco.rest.core.RestResponse;
+import org.alfresco.rest.search.SearchSqlRequest;
+import org.alfresco.service.search.AbstractSearchServiceE2E;
+import org.alfresco.utility.LogFactory;
+import org.alfresco.utility.data.DataContent;
+import org.alfresco.utility.data.DataSite;
+import org.alfresco.utility.model.FileModel;
+import org.alfresco.utility.model.FileType;
+import org.alfresco.utility.model.FolderModel;
+import org.alfresco.utility.model.TestGroup;
+import org.apache.chemistry.opencmis.commons.PropertyIds;
+import org.apache.chemistry.opencmis.commons.enums.VersioningState;
+import org.hamcrest.Matchers;
+import org.slf4j.Logger;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.HttpStatus;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+
+/**
+ * Purpose of this TestClass is to test that the variants of