Write SQL query to solve given problem: How many flights from American Airlines were cancelled due to a type A cancellation code?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(*) FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.CANCELLATION_CODE = 'A' AND T2.Description = 'American Airlines Inc.: AA' AND T1.CANCELLED = 1