In order to make flow or code importable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```
)
```
code goes here
```
You can edit and correct your post by clicking the pencil icon.
See this post for more details - How to share code or flow json
However, if the problem is that you are having difficulty getting the right query, and you are creating the query in a function node, then just post the code of the function node, and show us what is going into the function node, and what is coming out of it. There is no need to post a large flow.