less abstract query binding