Sqlite: Finding the next or previous element in a table consisting of integer tuples
At the moment I try to find the next tuple with (&quot;center&quot; is (1-1-1-3))

Test
SELECT *
FROM tuples
WHERE (1,1,1,3) &lt; (a,b,c,d)
ORDER BY a,b,c,d LIMIT 1

fiddle