An alternative to using OQL, you can setup a dataview with datasource "Listen to Widget", that will listen to a datagrid or listview. Now when a user selects a record from the list, the dataview will populate with that objects information.
Also, if you want to display information that is associated to the accounts table, you can setup lists within the dataview that will display a users associated objects. For the list, you can use data source over an association or xpath.
Hope this helps!