How to pass dynamic query into table widget

i create one variable id .

now i want to fire query ,
select * from ZZ_TEST where id = var(id)

how can i use this type of query into data source connector .
(oracle database connector)

Thanks
kandarp