prompt
stringlengths
1.16k
1.64k
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How many heat exchangers are there <|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT COUNT(DISTINCT HeatExID) AS NumberOfHeatExchangers FROM HeatExchanger;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>Heat exchangers present <|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT DISTINCT HeatExID AS NumberOfHeatExchangers FROM HeatExchanger;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the average hot flow for E32713 in the last 24 hours?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT AVG(hot_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-1 day') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the maximum cold outlet temperature for E32713 in the last week?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT MAX(cold_outlet_temp) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-7 days') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the minimum UA value for E32713 in the last month?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT MIN(UA) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-1 month') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the average LMTD for E32713 in the last quarter?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT AVG(LMTD) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-3 month') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the total temperature difference for E32713 in the last year?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT SUM(Temp_diff) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-1 year') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the average hot flow for E32713 between 8 AM and 5 PM today?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT AVG(hot_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', 'localtime', 'start of day', '+8 hours') AND datetime('now', 'localtime', 'start of day', '+17 hours');<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the highest LMTD and corresponding temperature difference for E32713 in the last 30 days?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT MAX(LMTD), MAX(Temp_diff) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-30 days') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the range of hot inlet temperatures and the corresponding average UA for E32713 in the last year?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT MIN(hot_inlet_temp), MAX(hot_inlet_temp), AVG(UA) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-1 year') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What were the minimum and maximum LMTD values for E32713 in the last 6 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT MIN(LMTD), MAX(LMTD) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-6 month') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the average hot flow and average LMTD for E32713 in the last month, grouped by week?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT strftime('%W', time) AS week_number, AVG(hot_flow), AVG(LMTD) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-1 month') AND 'now' GROUP BY week_number;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the minimum UA value for E32713 in the month of January 2024?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT MIN(UA) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN '2024-01-01 00:00:00' AND '2024-01-31 23:59:59';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the average LMTD for E32713 in the first quarter of 2024?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT AVG(LMTD) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN '2024-01-01 00:00:00' AND '2024-03-31 23:59:59';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What were the minimum and maximum cold flow values for E32713 in the last year?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT MIN(cold_flow), MAX(cold_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-1 year') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the daily average cold flow for E32713 in the last 3 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT DATE(time) AS day, AVG(cold_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-3 month') AND 'now' GROUP BY day;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What is the hourly trend of cold flow for E32713 in the past week?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT strftime('%Y-%m-%d %H:00:00', time) AS hour, AVG(cold_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-7 day') AND 'now' GROUP BY hour;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What is the correlation between cold flow and LMTD for E32713 in the last 6 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT cold_flow, LMTD FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-6 month') AND 'now'; (Perform correlation in Python or external tools)<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the peak cold flow value recorded for E32713 in the last month and when did it occur?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT MAX(cold_flow), time FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-1 month') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How has the weekly average cold flow varied for E32713 in the past year?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT strftime('%W', time) AS week, AVG(cold_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-1 year') AND 'now' GROUP BY week;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the cold flow for E32713 during operational hours (8 AM to 8 PM) in the last 2 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT AVG(cold_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-2 month') AND 'now' AND strftime('%H', time) BETWEEN '08' AND '20';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>Which day in the past month had the highest average cold flow for E32713?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT DATE(time) AS day, AVG(cold_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-1 month') AND 'now' GROUP BY day ORDER BY AVG(cold_flow) DESC LIMIT 1;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How many instances were there when the cold flow exceeded 500 for E32713 in the past quarter?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT COUNT(*) FROM HeatExchanger WHERE HeatExID = 'E32713' AND cold_flow > 500 AND time BETWEEN datetime('now', '-3 month') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the standard deviation of cold flow for E32713 in the last year?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT STDDEV(cold_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-1 year') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the cold flow trend (increasing or decreasing) for E32713 over the last 6 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT strftime('%m', time) AS month, AVG(cold_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-6 month') AND 'now' GROUP BY month;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How many hours in the last week recorded cold flow below 100 for E32713?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT COUNT(*) FROM HeatExchanger WHERE HeatExID = 'E32713' AND cold_flow < 100 AND time BETWEEN datetime('now', '-7 day') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the highest cold flow recorded for E32713 in each quarter of the past year?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT strftime('%Y-Q%q', time) AS quarter, MAX(cold_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-1 year') AND 'now' GROUP BY quarter;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the total cumulative cold flow for E32713 in the past 30 days?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT SUM(cold_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-30 day') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>On which days in the last 6 months did the cold flow for E32713 exceed the average by more than 25%?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT DATE(time) AS day, cold_flow FROM HeatExchanger WHERE HeatExID = 'E32713' AND cold_flow > (SELECT AVG(cold_flow)*1.25 FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-6 month') AND 'now') AND time BETWEEN datetime('now', '-6 month') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What is the monthly average cold flow for E32713 in the current year?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT strftime('%Y-%m', time) AS month, AVG(cold_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND strftime('%Y', time) = strftime('%Y', 'now') GROUP BY month;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the cold flow difference between weekdays and weekends for E32713 in the past month?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT CASE WHEN strftime('%w', time) IN ('1', '2', '3', '4', '5') THEN 'Weekday' ELSE 'Weekend' END AS day_type, AVG(cold_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-1 month') AND 'now' GROUP BY day_type;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What percentage of time did the cold flow stay within a range of 200-400 for E32713 in the past 6 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT (COUNT(*) * 1.0 / (SELECT COUNT(*) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-6 month') AND 'now')) * 100 AS percentage FROM HeatExchanger WHERE HeatExID = 'E32713' AND cold_flow BETWEEN 200 AND 400 AND time BETWEEN datetime('now', '-6 month') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How does the average cold flow for E32713 vary by shift (morning, afternoon, night) over the past 2 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT CASE WHEN strftime('%H', time) BETWEEN '06' AND '14' THEN 'Morning' WHEN strftime('%H', time) BETWEEN '14' AND '22' THEN 'Afternoon' ELSE 'Night' END AS shift, AVG(cold_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-2 month') AND 'now' GROUP BY shift;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What were the minimum and maximum hot flow values for E32713 in the last year?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT MIN(hot_flow), MAX(hot_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-1 year') AND 'now';<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the daily average hot flow for E32713 in the last 3 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT DATE(time) AS day, AVG(hot_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-3 month') AND 'now' GROUP BY day;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the correlation between hot flow and UA for E32713 over the last 6 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT hot_flow, UA FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-6 month') AND 'now'; (Perform correlation in Python or external tools)<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>Which day in the last quarter recorded the highest average hot flow for E32713?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT DATE(time) AS day, AVG(hot_flow) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-3 month') AND 'now' GROUP BY day ORDER BY AVG(hot_flow) DESC LIMIT 1;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the standard deviation of LMTD for E32713 over the last 12 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, SQRT(AVG((LMTD - (SELECT AVG(LMTD) FROM HeatExchanger WHERE time BETWEEN datetime('now', '-3 month') AND 'now' AND HeatExID = heatex.HeatExID)) * (LMTD - (SELECT AVG(LMTD) FROM HeatExchanger WHERE time BETWEEN datetime('now', '-3 month') AND 'now' AND HeatExID = heatex.HeatExID)))) AS stddev_LMTD FROM HeatExchanger heatex WHERE time BETWEEN datetime('now', '-3 month') AND 'now' GROUP BY HeatExID ORDER BY stddev_LMTD ASC LIMIT 1;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How did UA values for E32713 vary across different shifts (morning, afternoon, night) in the last 3 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>nan<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What was the hourly trend of temperature differences for E32713 over the last 10 days?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT strftime('%Y-%m-%d %H:00:00', time) AS hour, AVG(temp_diff) FROM HeatExchanger WHERE HeatExID = 'E32713' AND time BETWEEN datetime('now', '-10 day') AND 'now' GROUP BY hour;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>Which heat exchanger had the highest average UA value in the last year?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, AVG(UA) AS avg_UA FROM HeatExchanger WHERE time BETWEEN datetime('now', '-1 year') AND 'now' GROUP BY HeatExID ORDER BY avg_UA DESC LIMIT 1;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What is the correlation between hot flow and cold flow for all heat exchangers in the last 6 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, hot_flow, cold_flow FROM HeatExchanger WHERE time BETWEEN datetime('now', '-6 month') AND 'now'; (Perform correlation in Python or external tools, grouped by HeatExID)<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>Which heat exchanger had the most stable LMTD (lowest standard deviation) over the past quarter?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, SQRT(AVG((LMTD - (SELECT AVG(LMTD) FROM HeatExchanger WHERE time BETWEEN datetime('now', '-3 month') AND 'now' AND HeatExID = heatex.HeatExID)) * (LMTD - (SELECT AVG(LMTD) FROM HeatExchanger WHERE time BETWEEN datetime('now', '-3 month') AND 'now' AND HeatExID = heatex.HeatExID)))) AS stddev_LMTD FROM HeatExchanger heatex WHERE time BETWEEN datetime('now', '-3 month') AND 'now' GROUP BY HeatExID ORDER BY stddev_LMTD ASC LIMIT 1;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How does the average hot flow vary across all heat exchangers in the last month?<|eot_id|><|start_header_id|>assistant<|end_header_id|>nan<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>Which heat exchanger recorded the highest peak temperature difference in the past year?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, MAX(temp_diff) AS max_temp_diff FROM HeatExchanger WHERE time BETWEEN datetime('now', '-1 year') AND 'now' GROUP BY HeatExID ORDER BY max_temp_diff DESC LIMIT 1;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What is the distribution of cold flow values for all heat exchangers over the last 3 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, cold_flow FROM HeatExchanger WHERE time BETWEEN datetime('now', '-3 month') AND 'now'; (Perform distribution analysis in Python or external tools, grouped by HeatExID)<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>Which heat exchanger had the longest duration of operation with UA above a threshold of 300 in the last 6 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, COUNT(*) AS duration FROM HeatExchanger WHERE UA > 300 AND time BETWEEN datetime('now', '-6 month') AND 'now' GROUP BY HeatExID ORDER BY duration DESC LIMIT 1;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How do the daily average temperature differences compare among all heat exchangers in the past week?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, DATE(time) AS day, AVG(temp_diff) AS avg_temp_diff FROM HeatExchanger WHERE time BETWEEN datetime('now', '-7 day') AND 'now' GROUP BY HeatExID, day;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>Which heat exchanger has shown the steepest increase in LMTD over the last 2 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, strftime('%Y-%m-%d', time) AS day, AVG(LMTD) AS avg_LMTD FROM HeatExchanger WHERE time BETWEEN datetime('now', '-2 month') AND 'now' GROUP BY HeatExID, day; (Calculate the slope of LMTD trends for each HeatExID in Python or external tools)<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>What percentage of operational time did each heat exchanger have cold flow below 100 in the past year?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, (COUNT(*) * 1.0 / (SELECT COUNT(*) FROM HeatExchanger WHERE HeatExID = heatex.HeatExID AND time BETWEEN datetime('now', '-1 year') AND 'now')) * 100 AS percentage FROM HeatExchanger heatex WHERE cold_flow < 100 AND time BETWEEN datetime('now', '-1 year') AND 'now' GROUP BY HeatExID;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>Which heat exchanger had the highest variability in hot flow during the last quarter?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, SQRT(AVG((hot_flow - (SELECT AVG(hot_flow) FROM HeatExchanger WHERE time BETWEEN datetime('now', '-3 month') AND 'now' AND HeatExID = heatex.HeatExID)) * (hot_flow - (SELECT AVG(hot_flow) FROM HeatExchanger WHERE time BETWEEN datetime('now', '-3 month') AND 'now' AND HeatExID = heatex.HeatExID)))) AS stddev_hot_flow FROM HeatExchanger heatex WHERE time BETWEEN datetime('now', '-3 month') AND 'now' GROUP BY HeatExID ORDER BY stddev_hot_flow DESC LIMIT 1;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How do the peak values of UA compare for all heat exchangers over the last 6 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, MAX(UA) AS max_UA FROM HeatExchanger WHERE time BETWEEN datetime('now', '-6 month') AND 'now' GROUP BY HeatExID;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>Which heat exchanger had the lowest average LMTD during night shifts (10 PM to 6 AM) in the last 2 months?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, AVG(LMTD) AS avg_LMTD FROM HeatExchanger WHERE time BETWEEN datetime('now', '-2 month') AND 'now' AND (strftime('%H', time) >= '22' OR strftime('%H', time) < '06') GROUP BY HeatExID ORDER BY avg_LMTD ASC LIMIT 1;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How to get the average hot inlet temperature for each heat exchanger?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, AVG(hot_inlet_temp) AS AvgHotInletTemp FROM HeatExchanger GROUP BY HeatExID;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How to find the maximum hot flow for each heat exchanger?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, MAX(hot_flow) AS MaxHotFlow FROM HeatExchanger GROUP BY HeatExID;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How to determine the minimum cold outlet temperature for each heat exchanger?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, MIN(cold_outlet_temp) AS MinColdOutletTemp FROM HeatExchanger GROUP BY HeatExID;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How to calculate the average LMTD for each heat exchanger?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, AVG(LMTD) AS AvgLMTD FROM HeatExchanger GROUP BY HeatExID;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How to find the maximum UA value for each heat exchanger?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, MAX(UA) AS MaxUA FROM HeatExchanger GROUP BY HeatExID;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How to determine the minimum clean date for each heat exchanger?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, MIN(clean_date) AS MinCleanDate FROM HeatExchanger GROUP BY HeatExID;<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>you are a AI assitant which generates SQLite queries from user text. The database schema is TABLE HeatExchanger ( HeatExID TEXT, workshop TEXT, batch_system INTEGER, min_hot_inlet_temp DOUBLE, max_hot_inlet_temp DOUBLE, min_hot_outlet_temp DOUBLE, max_hot_outlet_temp DOUBLE, min_cold_inlet_temp DOUBLE, max_cold_inlet_temp DOUBLE, min_cold_outlet_temp DOUBLE, max_cold_outlet_temp DOUBLE, min_hot_flow DOUBLE, max_hot_flow DOUBLE, min_cold_flow DOUBLE, max_cold_flow DOUBLE, ref_hot_inlet_temp DOUBLE, ref_hot_outlet_temp DOUBLE, ref_cold_inlet_temp DOUBLE, ref_cold_outlet_temp DOUBLE, ref_hot_flow DOUBLE, ref_cold_flow DOUBLE, interval INTEGER, mode INTEGER, critical INTEGER, time TEXT, hot_inlet_temp DOUBLE, hot_outlet_temp DOUBLE, cold_inlet_temp DOUBLE, cold_outlet_temp DOUBLE, hot_flow DOUBLE, cold_flow DOUBLE, UA DOUBLE, LMTD DOUBLE, Temp_diff DOUBLE, clean_date TEXT, data_anomaly INTEGER )<|eot_id|><|start_header_id|>user<|end_header_id|>How to calculate the average of all temperature differences for each heat exchanger?<|eot_id|><|start_header_id|>assistant<|end_header_id|>SELECT HeatExID, AVG(Temp_diff) AS AvgTempDiff FROM HeatExchanger GROUP BY HeatExID;<|eot_id|>
README.md exists but content is empty.
Downloads last month
42