Maybe you can try this, which I found in the official search for tutorial documentation.

iscompleted:0
iscompleted:1

More here:Joplin - an open source note taking and to-do application with synchronisation capabilities

2 Likes