[INST] Here is a database schema:
customers :
CustomerID [ INTEGER ] primary_key
Segment [ TEXT ]
Currency [ TEXT ]

gasstations :
GasStationID [ INTEGER ] primary_key
ChainID [ INTEGER ]
Country [ TEXT ]
Segment [ TEXT ]

products :
ProductID [ INTEGER ] primary_key
Description [ TEXT ]

transactions_1k :
TransactionID [ INTEGER ] primary_key
Date [ DATE ]
Time [ TEXT ]
CustomerID [ INTEGER ]
CardID [ INTEGER ]
GasStationID [ INTEGER ]
ProductID [ INTEGER ]
Amount [ INTEGER ]
Price [ REAL ]

yearmonth :
CustomerID [ INTEGER ] yearmonth.CustomerID = customers.CustomerID
Date [ TEXT ]
Consumption [ REAL ]

Please write me a SQL statement that answers the following question: What is the difference in the annual average consumption of the customers with the least amount of consumption paid in CZK for 2013 between SME and LAM, LAM and KAM, and KAM and SME? [/INST]
SELECT CAST(SUM(IIF(T1.Segment = 'SME', T2.Consumption, 0)) AS FLOAT) / COUNT(T1.CustomerID) - CAST(SUM(IIF(T1.Segment = 'LAM', T2.Consumption, 0)) AS FLOAT) / COUNT(T1.CustomerID) , CAST(SUM(IIF(T1.Segment = 'LAM', T2.Consumption, 0)) AS FLOAT) / COUNT(T1.CustomerID) - CAST(SUM(IIF(T1.Segment = 'KAM', T2.Consumption, 0)) AS FLOAT) / COUNT(T1.CustomerID) , CAST(SUM(IIF(T1.Segment = 'KAM', T2.Consumption, 0)) AS FLOAT) / COUNT(T1.CustomerID) - CAST(SUM(IIF(T1.Segment = 'SME', T2.Consumption, 0)) AS FLOAT) / COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency = 'CZK' AND T2.Consumption = ( SELECT MIN(Consumption) FROM yearmonth ) AND T2.Date >= 201301;