API Allow parameterised joins / subselects