.output sensy.txt
.headers off

select lemat, sens_ozn, sens_zweryf_count, nowy from (sensy_leksemu natural join (select distinct lemat, leksem_id from leksem natural join sensy_leksemu sl where sl.nowy='t')) natural join sensy;

.output stdout
