Linear Programs with Conjunctive Database Queries (Logical Methods in Computer Science, 2024)