Filtering for trait ID equal 5040