Search for Contraint linked data

I want to add a contraint on a search for that is linked data…

I have a Data Type Runs and a Data Type Classes.

Classes has a class date field.
Runs has a Run_Class field which is a class.

I want to have pie charts for run data filtered by year, so I was trying to add an additional contraint to the serach for on the Run’s Class’s class date but I can’t access this in the contraints?

Any advice on how I can filter the data for the pie chart?