Skip to content

Instantly share code, notes, and snippets.

@rivaros
Created August 3, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rivaros/bae4177717095f029d5d to your computer and use it in GitHub Desktop.
Save rivaros/bae4177717095f029d5d to your computer and use it in GitHub Desktop.
Model Tree
{
"type": "operator",
"name": "or",
"children": [
{
"type": "operator",
"name": "and",
"children": [
{
"type": "operator",
"name": "=",
"children": [
{
"type": "context",
"dimensions": [
{
"name": "getTaskEvent",
"arguments": [
12
]
},
{
"name": "getSurvey",
"arguments": []
},
{
"name": "getQuestion",
"arguments": [
3
]
},
{
"name": "getValue",
"arguments": []
}
]
},
{
"type": "scalar",
"value": "afro"
}
]
},
{
"type": "operator",
"name": "=",
"children": [
{
"type": "context",
"dimensions": [
{
"name": "getTaskEvent",
"arguments": [
13
]
},
{
"name": "getSurvey",
"arguments": []
},
{
"name": "getQuestion",
"arguments": [
5
]
},
{
"name": "getValue",
"arguments": []
}
]
},
{
"type": "scalar",
"value": "mail"
}
]
}
]
},
{
"type": "operator",
"name": "or",
"children": [
{
"type": "operator",
"name": "and",
"children": [
{
"type": "operator",
"name": "=",
"children": [
{
"type": "context",
"dimensions": [
{
"name": "getTaskEvent",
"arguments": [
14
]
},
{
"name": "getStatus",
"arguments": []
}
]
},
{
"type": "scalar",
"value": "complete"
}
]
},
{
"type": "operator",
"name": ">",
"children": [
{
"type": "context",
"dimensions": [
{
"name": "getSharedData",
"arguments": []
},
{
"name": "getAge",
"arguments": []
}
]
},
{
"type": "scalar",
"value": "30"
}
]
}
]
},
{
"type": "operator",
"name": ">",
"children": [
{
"type": "context",
"dimensions": [
{
"name": "getTaskEvent",
"arguments": [
15
]
},
{
"name": "getFitBitData",
"arguments": []
},
{
"name": "getHeartRate",
"arguments": []
}
]
},
{
"type": "scalar",
"value": "240"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment