If .. Else.. in Influx QL

Similar to Stored Procedures in RDBMS, can I have "if else " in Queries?

Example:

if(a > 10)
insert b = 15

else
insert b = 5

No, this functionality is not available in InfluxQL. You can find the complete spec here.