Access of current source row in SQL queries

Is it possible to access like lets say {{ table.currentSourceRow.quantity }} in SQL Queries?

Sample would be something like

select * from products
where 'material' = {{table.currentSourceRow.quantity  }} 

Yes, it is...Are you asking for a specific example?

Yes please if possible

I think what you would want is the selected Row