Open this example in the interactive library
Source code
WITH RECURSIVE f(i,a,b) AS (VALUES(0,0,1) UNION ALL SELECT i+1,b,a+b FROM f WHERE i<7) SELECT a FROM f;
Sample output
[
{
"a": 0
},
{
"a": 1
},
{
"a": 1
},
{
"a": 2
},
{
"a": 3
},
{
"a": 5
},
{
"a": 8
},
{
"a": 13
}
]