diff --git a/microsoft-sdk-soap/microsoft-sdk-soap-tests.ts b/microsoft-sdk-soap/microsoft-sdk-soap-tests.ts
index 78deb50fb..5ac7601c9 100644
--- a/microsoft-sdk-soap/microsoft-sdk-soap-tests.ts
+++ b/microsoft-sdk-soap/microsoft-sdk-soap-tests.ts
@@ -1,11 +1,21 @@
-///
+///
-var query = new Sdk.Query.QueryByAttribute( "account" );
-query.addColumn( "accountnumber" );
-query.addAttributeValue( new Sdk.String( "name", "acme" ) );
-Sdk.Q.retrieveMultiple( query ).then( entityCollection =>
+// QueryByAttribute
+var queryByAttribute = new Sdk.Query.QueryByAttribute( "account" );
+queryByAttribute.addColumn( "accountnumber" );
+queryByAttribute.addAttributeValue( new Sdk.String( "name", "acme" ) );
+Sdk.Q.retrieveMultiple( queryByAttribute ).then( entityCollection =>
{
var first = entityCollection.getEntities().getByIndex( 0 );
var accountNumber = first.getAttributes().getAttributeByName( "accountnumber" );
console.log( "Account 'acme' has the Account Number '" + accountNumber + "'" );
-} );
\ No newline at end of file
+} );
+
+// QueryExpression
+var queryExpression = new Sdk.Query.QueryExpression( "account" );
+queryExpression.setColumnSet( new Sdk.ColumnSet( true ) );
+queryExpression.addCondition( "account", "accountname", Sdk.Query.ConditionOperator.BeginsWith, new Sdk.Query.Strings( [ "abc", "xyz" ] ) );
+Sdk.Q.retrieveMultiple( queryExpression ).then( entityCollection =>
+{
+ console.log( "Query matches " + entityCollection.getTotalRecordCount() + " records." );
+} );
\ No newline at end of file