String functions
String functions
You are an AI assistant tasked with generating proper JSON for a given
function with arguments. Your goal is to interpret the query and
produce the appropriate JSON structure based on the information
provided.First, you will be given a list of context variables. Then, you
will receive a query. Your task is to generate the correct JSON output for
this query.
[
{
"name": "Contains",
"descriptions": [
"Returns true if the given text contains specific
word/text/character; otherwise, false"
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "Text",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg2",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "NumberToString",
"descriptions": [
"Converts Number to String. If we take 2 as input. Output will
be \"2\""
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "number",
"valueTypes": [
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "EndsWith",
"descriptions": [
"Returns true if the given characters are found at the end of the
string; otherwise, false"
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "Text",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg2",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "FirstIndexOf",
"descriptions": [
"Returns index of first character of last occurrence of substring
inside the string or -1 if not found."
],
"valueType": "Double",
"targetField": {
"fieldType": "Number"
},
"category": "Text",
"arguments": [
{
"label": "string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "substring",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "IndexOf",
"descriptions": [
"Returns Index of the first occurrence of specified character(s) in
a string or -1 if not found."
],
"valueType": "Double",
"targetField": {
"fieldType": "Number"
},
"category": "Text",
"arguments": [
{
"label": "string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "string to find",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "StringTrim",
"descriptions": [
"Returns the string without leading and trailing whitespace."
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "StringReplace",
"descriptions": [
"Returns a new string where the specified character(s) are
replaced."
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "original string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "string to search",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "string to replace",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "ReplaceFirst",
"descriptions": [
"Returns a new string where the first occurrence of specified
character(s) is replaced."
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "original string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "string to search",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "string to replace",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "ReplaceLast",
"descriptions": [
"Returns a new string where the last occurrence of specified
character(s) is replaced."
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "original string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "string to search",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "string to replace",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "SubstringBefore",
"descriptions": [
"Returns the substring before the first occurrence of the
separator with in the operate string."
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "substring",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "SubstringAfter",
"descriptions": [
"Returns the substring after the first occurrence of the separator
with in the operate string."
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "substring",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "StringArrayJoin",
"descriptions": [
"Returns a new String composed of copies of the CharSequence
elements joined together with a copy of the specified delimiter."
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "delimiter",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "array of strings",
"valueTypes": [
{
"valueType": "[]",
"innerType": "Text"
}
],
"argumentLength": "1"
}
]
},
{
"name": "RegexMatch",
"descriptions": [
"Returns true/false based on the pattern that matches the input
string."
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "Text",
"arguments": [
{
"label": "string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "pattern to match",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "Split",
"descriptions": [
"This function contains three arguments and returns the string at
the given position of the list. The first argument will be string on which
split operation will be performed. The second argument will be a string
which will act as a separator to split the first string. A list of strings will
be generated after the split. The third argument will be the number
which will act as position in the list. Note that position will start from 1"
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg2",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg3",
"valueTypes": [
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "StartsWith",
"descriptions": [
"Returns true if the given characters are found at the beginning
of the string; otherwise, false"
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "Text",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg2",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "Append",
"descriptions": [
"Does the concatenation of multiple texts and produces single
text value"
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
},
{
"valueType": "[]",
"innerType": "Text"
}
],
"argumentLength": "N"
}
]
},
{
"name": "Capitalize",
"descriptions": [
"Converts the first character to upper case"
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "HtmlToPlainText",
"descriptions": [
"parses HTML and returns it as plain text"
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "IsNumber",
"descriptions": [
"Returns true if given string is number, false otherwise"
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "Text",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "ProperNounCase",
"descriptions": [
"Returns the string with every first word letter uppercase and
remaining characters of words in lower case."
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "Shorten",
"descriptions": [
"Takes a string, the new length, and optionally a character like ‘ ‘
or ‘X’. If not that long, does nothing. If longer, makes it only that
length. \n eg Shorten(Credit card number,6,#) will produce
Credit###########"
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg2",
"valueTypes": [
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg3",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "ToLowerCase",
"descriptions": [
"Returns the string with every letter lowercase"
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "ToUpperCase",
"descriptions": [
"Returns the string with every letter uppercase"
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "Guid",
"descriptions": [
"Returns a random unique id"
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
]
},
{
"name": "Lengthen",
"descriptions": [
"Takes a string, the new length, and optionally a character like ‘ ‘
or ‘X’. If text length is longer than provided length, does nothing. If
shorter, makes it only that length with optional third parameter. \n eg
Lengthen(Kris,6,#) will produce Kris##"
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg2",
"valueTypes": [
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg3",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "SetLength",
"descriptions": [
"Takes a string, the new length, and optionally a character like ‘ ‘
or ‘X’. If text length is equal with provided length, does nothing. If
shorter, makes it only that length with optional third parameter.If
Longer then makes it shorter"
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg2",
"valueTypes": [
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg3",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "ToPrintable",
"descriptions": [
"Returns only letters and symbols, digits, punctuation, and
whitespace characters. So newline, page breaks are removed."
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "EqualsIgnoreCase",
"descriptions": [
"This function contains two arguments. The first argument is the
first string. The second argument is the second string. This function
returns true if the two strings are the same but case insensitive"
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "Text",
"arguments": [
{
"label": "first string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "second string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "SubString",
"descriptions": [
"This function contains three arguments. The first argument is
the string from which the substring needs to be returned. The second
and the third argument is position1 and position2 between which the
string is considered. This function returns the part of the string
between the mentioned positions including the first position, and if the
first position is invalid then the empty string will be returned"
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "position1",
"valueTypes": [
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "position2",
"valueTypes": [
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "CompareTextToNumber",
"descriptions": [
"This function contains two arguments. The first argument is the
text which will be in number form. And the second argument is
number. This function returns true if the number form of text is equal
to the number"
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "Text",
"arguments": [
{
"label": "text in number form",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "number",
"valueTypes": [
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "CaseSensitiveSearch",
"descriptions": [
"This function contains two arguments. The first argument is the
main string. And the second argument is the search string that needs
to be searched in the main string. This function returns true if the
second string is present in the main string."
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "Text",
"arguments": [
{
"label": "main string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "search string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "CaseInSensitiveSearch",
"descriptions": [
"This function contains two arguments. The first argument is the
main string. And the second argument is the search string that needs
to be searched in the main string. This function returns true if the
second string is present in the main string irrespective of the letter
case"
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "Text",
"arguments": [
{
"label": "main string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "search string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "SubStringBetweenStrings",
"descriptions": [
"This function contains three arguments. The first argument is
the main string from which the substring needs to be returned. The
second argument is the first string after which the main string needs to
be considered. And the third argument is the second string before
which the main string needs to be considered. Finally, this function
returns the part of the string between the mentioned substrings
excluding both the substrings and if any of the substrings is not
present in the original string then the empty string will be returned"
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "main string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "first string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "second string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "SubStringListBetweenStrings",
"descriptions": [
"This function contains three arguments. The first argument is
the main string from which the substring needs to be returned. The
second argument is the first string after which the main string needs to
be considered. And the third argument is the second string before
which the main string needs to be considered. Finally, this function
returns the list of part of the string between the mentioned substrings
excluding both the substrings and if any of the substrings is not
present in the original string then the empty string will be returned"
],
"valueType": "[]",
"targetField": {
"fieldType": "List"
},
"category": "Text",
"arguments": [
{
"label": "main string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "first string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "second string",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "GenerateRandomString",
"descriptions": [
"This function will generate a random string with given prefix and
suffix"
],
"valueType": "Text",
"targetField": {
"fieldType": "Text"
},
"category": "Text",
"arguments": [
{
"label": "prefix",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "suffix",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
}
],
"argumentLength": "1"
}
]
}
]
Contains
Context Variables:
[
{“name”: “Address”, “type”: “Text”},
{“name”: “Name”, “type”: “Text”}
]
Query:
Check if Address contains “pune”
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Address","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,
"value”:”pune”}],”functionName":"Contains"}]}
Context Variables:
[
{“name”: “Address”, “type”: “Text”},
{“name”: “Name”, “type”: “Text”}
]
Query:
Check if contains “pune”
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"arg1","children":nul
l,"value":null},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,
"value":"pune"}],"functionName":"Contains"}]}
NumberToString
Context Variables:
[
{“name”: “Number1”, “type”: “Number”},
{“name”: “Name”, “type”: “Text”},
{“name”: ”school”, “type”: “”Text}
]
Query:
Convert Number1 to a string
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Double","argLabel":"number","childre
n":null,"scope":"current","part":
{"type":"Simple","valueType":"Double","name":"Number1","part":null}
}],"functionName":"NumberToString"}]}
Context Variables:
[
{“name”: “Number1”, “type”: “Number”},
{“name”: “Name”, “type”: “Text”},
{“name”: ”school”, “type”: “”Text}
]
Query:
Convert to a string
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Number","argLabel":"number","childr
en":null,"value":null}],"functionName":"NumberToString"}]}
EndsWith
Context Variables:
[
{“name”: “Phone Number”, “type”: “Text”},
]
Query:
Check if Phone Number ends with 540
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Phone
Number","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,
"value":"540"}],"functionName":"EndsWith"}]}
Context Variables:
[
{“name”: “Phone Number”, “type”: “Text”},
]
Query:
Use Ends with for Address
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"arg1","children":nul
l,"value":null},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,
"value":null}],"functionName":"EndsWith"}]}
FirstIndexOf
Context Variables:
[
{“name”: “Address”, “type”: “Text”},
]
Query:
Find the first occurrence of 56 within Address.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Double","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"string","children":nul
l,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Address","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"substring","children"
:null,"value":"56"}],"functionName":"FirstIndexOf"}]}
Context Variables:
[
{“name”: “Address”, “type”: “Text”},
]
Query:
Find the first occurrence of within Address.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Double","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"string","children":nul
l,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Address","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"substring","children"
:null,"value":null}],"functionName":"FirstIndexOf"}]}
IndexOf
Context Variables:
[
{“name”: “Address”, “type”: “Text”},
{“name”: “Pets Name”, “type”: “Text”}
]
Query:
Check the position of Z in my Pets Name.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Double","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"string","children":nul
l,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Pets name","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"string to
find","children":null,"value":"Z"}],"functionName":"IndexOf"}]}
Context Variables:
[
{“name”: “Address”, “type”: “Text”},
{“name”: “Pets Name”, “type”: “Text”}
]
Query:
Check the position of “Z” in my parents Account Number.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Double","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"string","children":n
ull,"value":null},
{"type":"Constant","valueType":"Text","argLabel":"string to
find","children":null,"value":"Z"}],"functionName":"IndexOf"}]}
StringTrim
Context Variables:
[
{“name”: “Credit card number”, “type”: “Text”},
{“name”: “Account number”, “type”: “Text”}
]
Query:
Remove the spaces from Credit card number
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"string","children":nul
l,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Credit card
number","part":null}}],"functionName":"StringTrim"}]}
Context Variables:
[
{“name”: “Credit card number”, “type”: “Text”},
{“name”: “Account number”, “type”: “Text”}
]
Query:
Remove the spaces
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"string","children":n
ull,"value":null}],"functionName":"StringTrim"}]}
StringReplace
Context Variables:
[
{“name”: “Greeting”, “type”: “Text”},
{“name”: “Introduction”, “type”: “Text”},
{“name”: “Biography”, “type”: “Text”}
]
Query:
Replace world with universe in Greeting.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"original
string","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Greeting","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"string to
search","children":null,"value":"world"},
{"type":"Constant","valueType":"Text","argLabel":"string to
replace","children":null,"value":"universe"}],"functionName":"StringRe
place"}]}
Context Variables:
[
{“name”: “Greeting”, “type”: “Text”},
{“name”: “Introduction”, “type”: “Text”},
{“name”: “Biography”, “type”: “Text”}
]
Query:
Replace world with null in Greeting.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"original
string","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Greeting","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"string to
search","children":null,"value":"world"},
{"type":"Constant","valueType":"Text","argLabel":"string to
replace","children":null,"value":null}],"functionName":"StringReplace"}
]}
ReplaceFirst
Context Variables:
[
{“name”: “Introduction”, “type”: “Text”},
]
Query:
Replace the first occurrence of the abbreviation “omg” with “oh my
god” in Greeting.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"original
string","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Introduction","part":null}
},{"type":"Constant","valueType":"Text","argLabel":"string to
search","children":null,"value":"omg"},
{"type":"Constant","valueType":"Text","argLabel":"string to
replace","children":null,"value":"oh my
god"}],"functionName":"ReplaceFirst"}]}
Context Variables:
[
{“name”: “Introduction”, “type”: “Text”},
]
Query:
Replace the first occurrence of .
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"original
string","children":null,"value":null},
{"type":"Constant","valueType":"Text","argLabel":"string to
search","children":null,"value":null},
{"type":"Constant","valueType":"Text","argLabel":"string to
replace","children":null,"value":null}],"functionName":"ReplaceFirst"}]}
ReplaceLast
Context Variables:
[
{“name”: “Full Name”, “type”: “Text”},
{“name”: “Initial”, “type”: “Text”},
]
Query:
Replace the last occurrence my Initial with “Sharvan” in Full Name.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"original
string","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Full Name","part":null}},
{"type":"Variable","valueType":"Text","argLabel":"string to
search","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Initial","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"string to
replace","children":null,"value":"Sharvan"}],"functionName":"ReplaceL
ast"}]}
Context Variables:
[
{“name”: “Full Name”, “type”: “Text”},
{“name”: “Initial”, “type”: “Text”},
]
Query:
Replace the last occurrence of null with “Sharvan” in Full Name.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"original
string","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Full Name","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"string to
search","children":null,"value":null},
{"type":"Constant","valueType":"Text","argLabel":"string to
replace","children":null,"value":"\"Sharvan\""}],"functionName":"Replac
eLast"}]}
SubstringBefore
Context Variables:
[
{“name”: “Email ID”, “type”: “Email”},
{“name”: “Initial”, “type”: “Text”},
{“name”: “Referral ID” : “Number”}
]
Query:
Extract the text before the “@” symbol in Email ID
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"string","children":nul
l,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Email ID","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"substring","children"
:null,"value":"@"}],"functionName":"SubstringBefore"}]}
Context Variables:
[
{“name”: “Email ID”, “type”: “Email”},
{“name”: “Initial”, “type”: “Text”},
{“name”: “Referral ID” : “Number”}
]
Query:
Extract the text before the symbol in Address
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"string","children":n
ull,"value":null},
{"type":"Constant","valueType":"Text","argLabel":"substring","children"
:null,"value":null}],"functionName":"SubstringBefore"}]}
SubstringAfter
Context Variables:
[
{“name”: “Full Name”, “type”: “Text”},
]
Query:
Get the string after the whitespace in Full Name
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"original
string","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Full Name","part":null}},
{"type":"Variable","valueType":"Text","argLabel":"string to
search","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Initial","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"string to
replace","children":null,"value":"Sharvan"}],"functionName":"ReplaceL
ast"}]}
Context Variables:
[
{“name”: “Full Name”, “type”: “Text”},
]
Query:
Get the string after the whitespace in Full Name
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"original
string","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Full Name","part":null}},
{"type":"Variable","valueType":"Text","argLabel":"string to
search","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Initial","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"string to
replace","children":null,"value":"Sharvan"}],"functionName":"ReplaceL
ast"}]}
Pattern Match
Context Variables:
[
{“name”: “Phone no”, “type”: “Text”},
{“name”: ”DOB”, “type”: “Date”}
]
Query:
Check if Phone no contains only numbers.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"string","children":nul
l,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Phone no","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"pattern to
match","children":null,"value":"/^\\d+
$/"}],"functionName":"RegexMatch"}]}
Starts With
Context Variables:
[
{“name”: “Phone no”, “type”: “Text”},
{“name”: ”DOB”, “type”: “Date”}
]
Query:
Check if Phone no starts with “9”
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Phone no","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,
"value":"9"}],"functionName":"StartsWith"}]}
Append
Context Variables:
[
{“name”: “Phone num”, “type”: “Text”},
{“name”: ”Country code”, “type”: “Text”}
]
Query:
Combine the Country code and phone num.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Country
code","part":null}},
{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,"
scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Phone
num","part":null}}],"functionName":"Append"}]}
Capitalize
Context Variables:
[
{“name”: ”Country of origin”, “type”: “Text”},
]
Query:
Capitalize the Country of origin
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Country of
origin","part":null}}],"functionName":"Capitalize"}]}
HtmlToPlainText
Context Variables:
[
{“name”: ”Web page”, “type”: “Text”},
{“name”: ”URL”, “type”: “Text”},
{“name”: ”Site details”, “type”: “Text”}
]
Query:
Convert the HTML in Web page into plain text
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Web
page","part":null}}],"functionName":"HtmlToPlainText"}]}
isNumber
Context Variables:
[
{“name”: ”Salary”, “type”: “Text”},
{“name”: ”Years of Exp”, “type”: “Text”},
{“name”: ”Job”, “type”: “Text”}
]
Query:
Check if Salary is a number
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Salary","part":null}}],"fun
ctionName":"IsNumber"}]}
ProperNounCase
Context Variables:
[
{“name”: ”Cover letter”, “type”: “Text”}
]
Query:
Convert Cover Letter to Proper Noun case
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Cover
letter","part":null}}],"functionName":"ProperNounCase"}]}
Context Variables:
[
{“name”: ”Cover letter”, “type”: “Text”}
]
Query:
Convert to proper noun case
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"arg1","children":nul
l,"value":null}],"functionName":"ProperNounCase"}]}
Shorten
Context Variables:
[
{“name”: ”Credit card no”, “type”: “Text”},
{“name”: “Bank acc no”,”type”: “Text”}
]
Query:
Shorten Credit card no to 4 digits and fill the rest with the character
“X”
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Credit card
no","part":null}},
{"type":"Constant","valueType":"Number","argLabel":"arg2","children":
null,"value":4},
{"type":"Constant","valueType":"Text","argLabel":"arg3","children":null,
"value":"X"}],"functionName":"Shorten"}]}
Context Variables:
[
{“name”: ”Credit card no”, “type”: “Text”},
{“name”: “Bank acc no”,”type”: “Text”}
]
Query:
Shorten to 4 digits and fill the rest with #
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"arg1","children":nul
l,"value":null},
{"type":"Constant","valueType":"Number","argLabel":"arg2","children":
null,"value":4},
{"type":"Constant","valueType":"Text","argLabel":"arg3","children":null,
"value":"#"}],"functionName":"Shorten"}]}
Context Variables:
[
{“name”: ”Credit card no”, “type”: “Text”},
{“name”: “Bank acc no”,”type”: “Text”}
]
Query:
Shorten Bank acc no to 8
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Bank acc
no","part":null}},
{"type":"Constant","valueType":"Number","argLabel":"arg2","children":
null,"value":8},
{"type":"Constant","valueType":"Text","argLabel":"arg3","children":null,
"value":null}],"functionName":"Shorten"}]}
toLowerCase
Context Variables:
[
{“name”: ”username”, “type”: “Text”},
{“name”: “password”,”type”: “Text”}
]
Query:
Convert username to Lower case
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"username","part":null}}],
"functionName":"ToLowerCase"}]}
Context Variables:
[
{“name”: ”username”, “type”: “Text”},
{“name”: “password”,”type”: “Text”}
]
Query:
Convert to ID Lower case
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"arg1","children":nul
l,"value":null}],"functionName":"ToLowerCase"}]}
toUpperCase
Context Variables:
[
{“name”: ”Education”, “type”: “Text”},
{“name”: “Age”,”type”: “Text”}
]
Query:
Convert Education to Upper case
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"Text","name”:”Education,”part":null}}],"
functionName":"ToUpperCase"}]}
GUID
Context Variables:
[
{“name”: ”username”, “type”: “Text”},
{“name”: “age”,”type”: “Text”}
]
Query:
Generate a random ID
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":null
,"functionName":"Guid"}]}
Lengthen
Context Variables:
[
{“name”: ”user id”, “type”: “Text”},
{“name”: “pass”,”type”: “Text”}
]
Query:
Elongate pass such that it is 8 characters long. Use $ as the filler.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"pass","part":null}},
{"type":"Constant","valueType":"Number","argLabel":"arg2","children":
null,"value":8},
{"type":"Constant","valueType":"Text","argLabel":"arg3","children":null,
"value":"$"}],"functionName":"Lengthen"}]}
Context Variables:
[
{“name”: ”user id”, “type”: “Text”},
{“name”: “pass”,”type”: “Text”}
]
Query:
Lengthen using $
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"arg1","children":nul
l,"value":null},
{"type":"Constant","valueType":"Number","argLabel":"arg2","children":
null,"value":null},
{"type":"Constant","valueType":"Text","argLabel":"arg3","children":null,
"value":"$"}],"functionName":"Lengthen"}]}
Set length
Context Variables:
[
{“name”: ”aadhar number”, “type”: “Text”},
{“name”: “address”,”type”: “Text”},
{“name”: “state”,”type”: “Text”},
]
Query:
Set the length of aadhar number to 12 using “X” as the filler character.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"aadhar
number","part":null}},
{"type":"Constant","valueType":"Number","argLabel":"arg2","children":
null,"value":12},
{"type":"Constant","valueType":"Text","argLabel":"arg3","children":null,
"value":"X"}],"functionName":"SetLength"}]}
Context Variables:
[
{“name”: ”aadhar number”, “type”: “Text”},
{“name”: “address”,”type”: “Text”},
{“name”: “state”,”type”: “Text”},
]
Query:
Make the length of Bank acc no to 12 using “X” as the filler character.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"arg1","children":nul
l,"value":null},
{"type":"Constant","valueType":"Number","argLabel":"arg2","children":
null,"value":12},
{"type":"Constant","valueType":"Text","argLabel":"arg3","children":null,
"value":"X"}],"functionName":"SetLength"}]}
To printable
Context Variables:
[
{“name”: ”aadhar number”, “type”: “Text”},
{“name”: “address”,”type”: “Text”},
{“name”: “state”,”type”: “Text”},
]
Query:
Convert address into a printable string
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"address","part":null}}],"f
unctionName":"ToPrintable"}]}
Context Variables:
[
{“name”: ”username”, “type”: “Text”},
{“name”: “confirm username”,”type”: “Text”}
]
Query:
Do a case insensitive check to see if email and confirm email are the
same.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"first
string","children":null,"value":null},
{"type":"Constant","valueType":"Text","argLabel":"second
string","children":null,"value":null}],"functionName":"EqualsIgnoreCase
"}]}
subString
Context Variables:
[
{“name”: ”aadhar”, “type”: “Text”},
{“name”: “state”,”type”: “Text”},
]
Query:
Assuming aadhar is 12 characters long, return the last 4 characters.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"string","children":nul
l,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"aadhar","part":null}},
{"type":"Constant","valueType":"Number","argLabel":"position1","child
ren":null,"value":8},
{"type":"Constant","valueType":"Number","argLabel":"position2","child
ren":null,"value":12}],"functionName":"SubString"}]}
Context Variables:
[
{“name”: ”aadhar”, “type”: “Text”},
{“name”: “state”,”type”: “Text”},
{“name”: “Bank acc no”,”type”: “Text”},
]
Query:
Return position 5 to 10 of Bank acc no
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"string","children":nul
l,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Bank acc
no","part":null}},
{"type":"Constant","valueType":"Number","argLabel":"position1","child
ren":null,"value":5},
{"type":"Constant","valueType":"Number","argLabel":"position2","child
ren":null,"value":10}],"functionName":"SubString"}]}
Context Variables:
[
{“name”: ”aadhar”, “type”: “Text”},
{“name”: “state”,”type”: “Text”},
{“name”: “Bank acc no”,”type”: “Text”},
]
Query:
Get substring of Bank acc no from the 9th character
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"string","children":nul
l,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Bank acc
no","part":null}},
{"type":"Constant","valueType":"Number","argLabel":"position1","child
ren":null,"value":9},
{"type":"Constant","valueType":"Number","argLabel":"position2","child
ren":null,"value":null}],"functionName":"SubString"}]}
Context Variables:
[
{“name”: ”user id”, “type”: “Text”},
{“name”: “password”,”type”: “Number”},
{“name”: “DOB”,”type”: “Date”},
{“name”: “Checklist”,”type”: “List”},
]
Query:
Do a case sensitive search for “qwerty” in password.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"main
string","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"password","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"search
string","children":null,"value":"qwerty"}],"functionName":"CaseSensitiv
eSearch"}]}
Context Variables:
[
{“name”: ”state”, “type”: “Text”},
{“name”: ”Full Name”, “type”: “Text”},
{“name”: ”Last Name”, “type”: “Text”},
{“name”: ”address”, “type”: “Text”},
]
Query:
Search for last name in full name while ignoring case
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"main
string","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Full Name","part":null}},
{"type":"Variable","valueType":"Text","argLabel":"search
string","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Last
Name","part":null}}],"functionName":"CaseInSensitiveSearch"}]}
Context Variables:
[
{“name”: ”state”, “type”: “Text”},
{“name”: ”Full Name”, “type”: “Text”},
{“name”: ”Last Name”, “type”: “Text”},
{“name”: ”address”, “type”: “Text”},
]
Query:
Search while ignoring case for First Name in Full Name
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"main
string","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Full Name","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"search
string","children":null,"value":null}],"functionName":"CaseInSensitiveS
earch"}]}
Context Variables:
[
{“name”: ”Birth day”, “type”: “Text”},
{“name”: ”Birth Year”, “type”: “Text”}
]
Query:
Fetch the string between birth day and birth year in full birth date
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"main
string","children":null,"value":null},
{"type":"Variable","valueType":"Text","argLabel":"first
string","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Birth day","part":null}},
{"type":"Variable","valueType":"Text","argLabel":"second
string","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Birth
year","part":null}}],"functionName":"SubStringBetweenStrings"}]}
Context Variables:
[
{“name”: ”Address”, “type”: “Text”}
]
Query:
Get the word between Bangalore and India in Address
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"main
string","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Address","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"first
string","children":null,"value":"Bangalore"},
{"type":"Constant","valueType":"Text","argLabel":"second
string","children":null,"value":"India"}],"functionName":"SubStringBetw
eenStrings"}]}
Sub string List Between Strings
Context Variables:
[
{“name”: ”Cover letter”, “type”: “Text”}
]
Query:
Fetch a list of strings between the word “Hello” and “Thank you” in
Cover letter
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"[]","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"main
string","children":null,"scope":"current","part":
{"type":"Simple","valueType":"Text","name":"Cover
letter","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"first
string","children":null,"value":"Hello"},
{"type":"Constant","valueType":"Text","argLabel":"second
string","children":null,"value":"Thank
you"}],"functionName":"SubStringListBetweenStrings"}]}
Context Variables:
[
{“name”: ”Salary”, “type”: “Text”},
{“name”: ”Years of Exp”, “type”: “Text”},
{“name”: ”Job”, “type”: “Text”}
]
Query:
Get the list of all words between Ashok and Zaid
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"[]","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"main
string","children":null,"value":null},
{"type":"Constant","valueType":"Text","argLabel":"first
string","children":null,"value":"Ashok"},
{"type":"Constant","valueType":"Text","argLabel":"second
string","children":null,"value":"Zaid"}],"functionName":"SubStringListB
etweenStrings"}]}
GenerateRandomString
Context Variables:
[
{“name”: ”Salary”, “type”: “Text”},
{“name”: ”Years of Exp”, “type”: “Text”},
{“name”: ”Job”, “type”: “Text”}
Query:
Generate a random string with the prefix “bhk” and suffix “_78x”
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"prefix","children":n
ull,"value":"bhk"},
{"type":"Constant","valueType":"Text","argLabel":"suffix","children":nul
l,"value":"_78x"}],"functionName":"GenerateRandomString"}]}
Context Variables:
[
{“name”: ”Salary”, “type”: “Text”},
{“name”: ”Years of Exp”, “type”: “Text”},
{“name”: ”Job”, “type”: “Text”}
Query:
Generate a random string
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"prefix","children":n
ull,"value":null},
{"type":"Constant","valueType":"Text","argLabel":"suffix","children":nul
l,"value":null}],"functionName":"GenerateRandomString"}]}
GenerateRandomId
Context Variables:
[
{“name”: ”Salary”, “type”: “Text”},
{“name”: ”Years of Exp”, “type”: “Text”},
{“name”: ”Job”, “type”: “Text”}
Query:
Generate a random id
Answer
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":null
,"functionName":"Guid"}]}
Context Variables
[ { "name": "Customer ID", "type": "Text" } ]
Query
Generate a random unique ID for the Customer ID.
Answer
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":null
,"functionName":"Guid"}]}
GetFileExtension
Context Variables
[ { "name": "Invoice File", "type": “File” } ]
Query
Get the file extension for Invoice File.
Answer
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"File[]","argLabel":"file","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"File[]","name":"Invoice
File","part":null}}],"functionName":"GetFileExtension"}]}
Context Variables
[ { "name": “Downloaded FIle”, "type": “File” } ]
Query
What is the type of the downloaded file.
Answer
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"File[]","argLabel":"file","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"File[]","name":"Downloaded
FIle","part":null}}],"functionName":"GetFileExtension"}]}
Context Variables
[ { "name": “Downloaded FIle”, "type": “File” } ]
Query
Get the File Extension for the bank statement.
Answer
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Constant","valueType":"File","argLabel":"file","children":null,"
value":null}],"functionName":"GetFileExtension"}]}
GetFileName
Context Variables
[ { "name": "Invoice File", "type": “File” } ]
Query
Get the file name for Invoice File.
Answer
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Variable","valueType":"File[]","argLabel":"file","children":null,
"scope":"current","part":
{"type":"Simple","valueType":"File[]","name":"Invoice
File","part":null}}],"functionName":"GetFileName"}]}
Context Variables
[ { "name": "Invoice File", "type": “File” } ]
Query
Get the file name for Salary Slip
Answer
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Text","argLabel":"arg1","children":
[{"type":"Constant","valueType":"File","argLabel":"file","children":null,"
value":null}],"functionName":"GetFileName"}]}