select summarybed_id, s.chrom, chromend, length from bedfile b join summarybed s using(bedfile_id) join chrom_length cl on(b.genome_id = cl.genome_id AND s.chrom = cl.chrom) where bedfile_id = 150 and s.chromend > cl.length;
