i want to get cell value to pass to a where condition in sql query. below one is my dataframe ab. data frame has only distinct values
+----------+--------+ |