1 2 3
PRAGMA DisableSimpleColumns; /* postgres can not */ SELECT * FROM plato.Input2 as A JOIN plato.Input3 as B ON CAST(A.key AS INT) + 1 == CAST(B.key AS INT);