The query code and query:
ps = conn.prepareStatement(\"select instance_id, ? from eam_measurement where resource_id in (select RESOURCE_ID from eam_res_grp_r
This should work:
"\'" + "?" + "\'"