import sqlite3

DB_PATH = "/app/companies_v3_fixed_2.db"
conn = sqlite3.connect(DB_PATH)
cursor = conn.cursor()

cursor.execute("SELECT name, ai_opener, ai_opener_secondary, industry_ai FROM companies WHERE name LIKE '%Klinikum Landkreis Erding%'")
row = cursor.fetchone()
if row:
    print(f"Company: {row[0]}")
    print(f"Industry: {row[3]}")
    print(f"Opener Primary: {row[1]}")
    print(f"Opener Secondary: {row[2]}")
else:
    print("Company not found.")
conn.close()
