@VTHive
Assuming you have a table named your_table with a column named condition, you can extract the variable names using SQL:
SELECT
SUBSTRING_INDEX(SUBSTRING_INDEX(condition, '=', 1), ' ', -1) AS variable_name
FROM
your_table
UNION
SELECT
SUBSTRING_INDEX(SUBSTRING_INDEX(condition, ' in ', 1), ' ', -1) AS variable_name
FROM
your_table
WHERE
condition LIKE '% in %'
UNION
SELECT
TRIM(SUBSTRING_INDEX(SUBSTRING_INDEX(condition, '=', 1), ' ', -1)) AS variable_name
FROM
your_table
WHERE
condition LIKE '% ne %';
The query will extract the variable names from the conditions in the condition column of your table. It handles conditions with =, in, and ne operators. Adjust the table and column names accordingly to fit your actual schema