Read input, filter columns with ratings, find rows in trng data with same columns