If you know SQL you can pull out anything using JOINs with the /sql endpoint:
The regular endpoints donβt give a way to traverse references. You could add extra columns with formulas that prepare the data you want, and then read from those (or filter by them). The RECORD function can be useful, since it has an expand_refs level: