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

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

                                                     source.structure AS structure, source.id
                                                FROM expression AS source
                                               WHERE source.language=?
                                                 AND source.active=true
                                                 AND source.structure->'synsem'->'sem' @> '"
                                     json-semantics "' LIMIT 1) AS source
                                  INNER JOIN (SELECT DISTINCT surface, target.structure->'synsem'->'sem' AS sem,
                                                              root,structure
                                                         FROM expression_with_root AS target
                                                        WHERE target.language=?
                                                          AND target.active=true
                                                          AND target.structure->'synsem'->'sem' = '" json-semantics "') AS target 
                                                           ON (source.surface IS NOT NULL) 
                                                          AND (target.surface IS NOT NULL) 
