HTML buttons inside of retool table trigger query

There is an advanced technique for doing this which is working for me (though with <a> links rather than buttons but it should not matter.)