get_data function

Select variables and filter data