function isSubquery(str, parenthesisLevel) {
	return  parenthesisLevel - (str.replace(/\(/g,'').length - str.replace(/\)/g,'').length )
}
function isSubquery(str, parenthesisLevel) {
	return  parenthesisLevel - (str.replace(/\(/g,'').length - str.replace(/\)/g,'').length )
}
function isSubquery ( str , parenthesisLevel ) { return parenthesisLevel - ( str . replace ( / \( / g , '' ) . length - str . replace ( / \) / g , '' ) . length ) }
----------------------------------------------------------------------------
----------------------------------------------------------------------------
Returns true if str is a subquery of parenthesisLevel