Hi, good morning. I have this query here:
[:find ?track (count ?lessons) :where [?t :track/name ?track] [?lessons :lesson/track ?t] ] A lesson has a track (so a track can be on multiple lessons), and with this query I can return the track names and the number of lessons where this track is being used, all good here. But I would like to use this count information to filter, and return only tracks that are present in more than one lesson, I tried: [:find ?track (count ?lessons) :where [?t :track/name ?track] [?lessons :lesson/track ?t] [(> (count ?lessons) 1)] ] Also tried: [:find ?track ?lc :where [?t :track/name ?track] [?lessons :lesson/track ?t] [(count ?lessons) ?lc] [(> ?lc 1)] ] But I feel like I'm going on the wrong direction... How can I make this query works? Thanks. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.