For #Logseq queries generated by the free ChatGPT (not even the GPT4 one) work very well because Logseq has "Simple Queries" that are super simple and "Advanced Queries" based on Datalog, a prominent query language.
This is another reason why adopting standard technologies is a good thing but Obsidian did so just with Markdown.