SELECT fname, children
FROM tutorial
WHERE ANY child IN tutorial.children SATISFIES child.age > 10 END
{
"results": [
{
"children": [
{
"age": 17,
"fname": "Aiden",
"gender": "m"
},
{
"age": 2,
"fname": "Bill",
"gender": "f"
}
],
"fname": "Dave"
},
{
"children": [
{
"age": 17,
"fname": "Xena",
"gender": "f"
},
{
"age": 2,
"fname": "Yuri",
"gender": "m"
}
],
"fname": "Earl"
},
{
"children": [
{
"age": 17,
"fname": "Abama",
"gender": "m"
},
{
"age": 21,
"fname": "Bebama",
"gender": "m"
}
],
"fname": "Ian"
}
]
}
SELECT fname, children
FROM tutorial
WHERE EVERY child IN tutorial.children SATISFIES child.age > 10 END
{
"results": [
{
"children": [
{
"age": 17,
"fname": "Abama",
"gender": "m"
},
{
"age": 21,
"fname": "Bebama",
"gender": "m"
}
],
"fname": "Ian"
}
]
}