Query tags that starts with x?

Hi, I have tags like EMNLP2019, EMNLP2020 etc. And I would like to see all such tags that start with EMNLP.

What would be the query? Sorry I am still new to the query.

Thanks!

1 Like

Have a look here:

You can replace starts-with with includes or ends-with.

#+BEGIN_QUERY
{:query [:find (pull ?b [*])
         :in $ ?s
         :where
         [?b :block/original-name ?n]
         [(clojure.string/starts-with? ?n ?s)]]
 :inputs [ "task.myName." ]
 }
#+END_QUERY
1 Like