select
njs.lot_number,
njs.jo_number,
nwd.finished_qty,
nwd.finished_ref_qty
from nj_job_status njs,
nj_wipgt_dtl nwd
where njs.wip_entity_id = nwd.wip_entity_id
and nwd.material_type = 'STONE'
and nwd.operation_seq_num=999
and nwd.inventory_item_id = 304