Found 30 patterns:

 1. spark_filter_eq: .filter(col("status") == "Active"
 2. spark_filter_eq: .where(col("Type") == "ACR"
 3. spark_filter_sql: .filter("status == 'Active'"
 4. spark_filter_sql: .where("flag == 'Y'"
 5. spark_sql_where_hardcoded: spark.sql("SELECT * FROM table WHERE status = 'Active'
 6. spark_sql_where_in_hardcoded: spark.sql("SELECT * FROM table WHERE col IN ('a','b','c
 7. filter_col_eq_numeric: .filter(col("count") == 123)
 8. filter_col_neq_string: .filter(col("status") != "Inactive"
 9. filter_lower_col_eq_string: .filter(lower(col("name")) == "john"
10. filter_trim_col_eq_string: .filter(trim(col("code")) == "ABC"
11. filter_lower_trim_col_eq_string: .filter(lower(trim(col("field"))) == "test"
12. filter_trim_lower_col_eq_string: .filter(trim(lower(col("field"))) == "test2"
13. filter_with_isin: .filter(col("RelativeYear").isin("CY", "CY-1", "CY-2"))
14. where_col_eq_numeric: .where(col("id") == 999)
15. where_lower_col_eq_string: .where(lower(col("category")) == "sales"
