Can I pass parameters through an External Query?

I’m trying to make some calculations using Gis, but Dremio doesn’t handle this data well.
I thought on use External Queries

https://docs.dremio.com/software/data-sources/external-queries/

Can I, pass through the external query the data that i want to be used.
Something like, I pass Lat and Long and get from the postgres if it is within a polygon.
The polygon data and the lat and long are on separate data sources.

@greglomb External query, the only criteria is the query inside the quotes should work as is on PG