                                                 FROM expression AS italiano
                                           INNER JOIN expression AS english                                 
                                                   ON english.structure @> '" json-spec "'
-                                                 AND italiano.language = 'it'
-                                                 AND english.language  = 'en'
+                                                 AND italiano.language = 'it' AND italiano.active=true
+                                                 AND english.language  = 'en' AND english.active=true
                                                  AND (italiano.structure->'synsem'->'sem') @> 
                                                      (english.structure->'synsem'->'sem')) AS pairs 
                                     ORDER BY pairs.en")


    (let [results (db/exec-raw [(str "SELECT serialized::text 
                                        FROM expression 
                                       WHERE language=? AND structure @> "
                                     "'" json-spec "'")
                                [language]]
                               :results)]

                                       WHERE target.language=?
                                         AND target.structure IS NOT NULL
                                         AND target.surface != ''
                                         AND target.structure @> '" target-json-spec "'
                                         AND target.active=true")
                                [target-language]]
                               :results)]
      (if (empty? results)
