Finished query sql and result map of line item.