##Instruction:
Database: debit_card_specializing
Total Tables: 5
Total Columns: 21

Table Schemas:

Database: debit_card_specializing
Total Tables: 5
Total Columns: 21

Table Schemas:

Table: customers (3 columns)
----------------------------
• CustomerID (integer): identification of the customer
• Segment (text): client segment
• Currency (text): Currency

Table: gasstations (4 columns)
------------------------------
• GasStationID (integer): Gas Station ID
• ChainID (integer): Chain ID
• Country (text)
• Segment (text): chain segment

Table: products (2 columns)
---------------------------
• ProductID (integer): Product ID
• Description (text): Description

Table: transactions_1k (9 columns)
----------------------------------
• TransactionID (integer): Transaction ID
• Date (date): Date
• Time (text): Time
• CustomerID (integer): Customer ID
• CardID (integer): Card ID
• GasStationID (integer): Gas Station ID
• ProductID (integer): Product ID
• Amount (integer): Amount
• Price (real): Price
  Values: commonsense evidence:

total price = Amount x Price

Table: yearmonth (3 columns)
----------------------------
• CustomerID (integer): Customer ID
• Date (text): Date
• Consumption (real): consumption

##Evidence:
annual average consumption of customer with the lowest consumption in each segment = total consumption per year / the number of customer with lowest consumption in each segment; Difference in annual average = SME's annual average - LAM's annual average; Difference in annual average = LAM's annual average - KAM's annual average; Year 2013 can be presented as Between 201301 And 201312; The first 4 strings of the Date values in the yearmonth table can represent year.

##Role Access Policy (Column-Level):
Role: FinancialAnalyst
Accessible Columns: transactions_1k: TransactionID, Date, CustomerID, GasStationID, ProductID, Amount, Price; customers: CustomerID, Segment; gasstations: GasStationID, ChainID, Country, Segment; products: ProductID, Description; yearmonth: CustomerID, Date, Consumption

Based on the above schema and your role's column-level access policy, generate a SQL query to answer the question. If your role does not have access to the required columns, respond with: "Sorry, I cannot answer."


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?
Evidence: annual average consumption of customer with the lowest consumption in each segment = total consumption per year / the number of customer with lowest consumption in each segment; Difference in annual average = SME's annual average - LAM's annual average; Difference in annual average = LAM's annual average - KAM's annual average; Year 2013 can be presented as Between 201301 And 201312; The first 4 strings of the Date values in the yearmonth table can represent year.
Answer: Sorry, I cannot answer.
Permission: denied (Missing column permissions: customers: Currency)
Gold SQL: SELECT CAST(SUM(IIF(T1.Segment = 'SME', T2.Consumption, 0)) AS REAL) / COUNT(T1.CustomerID) - CAST(SUM(IIF(T1.Segment = 'LAM', T2.Consumption, 0)) AS REAL) / COUNT(T1.CustomerID),
       CAST(SUM(IIF(T1.Segment = 'LAM', T2.Consumption, 0)) AS REAL) / COUNT(T1.CustomerID) - CAST(SUM(IIF(T1.Segment = 'KAM', T2.Consumption, 0)) AS REAL) / COUNT(T1.CustomerID),
       CAST(SUM(IIF(T1.Segment = 'KAM', T2.Consumption, 0)) AS REAL) / COUNT(T1.CustomerID) - CAST(SUM(IIF(T1.Segment = 'SME', T2.Consumption, 0)) AS REAL) / 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 BETWEEN 201301 AND 201312;