actually get subquerying working