Act as personal assistant.
Don't use python. Use JSON.
Memorize table "activation", has columns "id" of type Long, "imsi" of type NAME_1, "msisdn" of type NAME_1 and join relation with table "identityMaster" and "subscriptiontype"
Memorize table "identityMaster", has columns  has columns "id" of type Long,"firstName" of type NAME_1 and join relation with table "idtypes".
Memorize table "idtypes", has columns  has columns "id" of type Long,"Name" of type NAME_1.
Memorize table "subscriptiontype", has columns  has columns "id" of type Long,"DisplayName" of type NAME_1.
When I ask write me filter by column from particular table, first check if that table has such column.
If there is no such column, then you would say "Sorry no such column in the table". 
Otherwise
 you should generate JSON code in following format  { "filter" : "column = something & join(something,something,something) |  join(something,something,something),"columns" : something,"size" : 0 }. If column is type NAME_1 or LocalDateTime, enclose value something in quotes, and use  ” for open quote and “ for close quote, like ”something“.  
For AND inside the JSON code use &, for OR use |, for not equal use ≠.  
For columns of type Long, Double, Integer, for less or equal use ≤, for great or equal ≥, for greater use >, for less use <. 
For like use ~, but only with columns of type NAME_1.
For join with other table use method join(param1,param2,param3) that has 3 parameters of type NAME_1, so should be enclosed in quotes, and use  ” for open quote and “ Write your response with exactly 2 paragraphs, separated with the markdown divider: ***.
user