Query multiple spatial coordinates

Hello, I wish to make a list of coordinates tuple to query in order to save connections to server time.

Those coordinates are individuals.

I tried to define a variable of coordinates with no success.

Afterwards I thought about go through them with a for-each statement and my query:

way(around:10, .tuples)->.allways;
foreach .allways → .currentway(
(.allways; - .currentway;)->.allotherways;
(._ ; .result;) → .result;
.result out meta;