Watir supports type attributes data-as locators (i.e. no need to use xpath). Just replace the dashes with underscores and add a colon to the beginning.
You can get the div using the following (note the locator format for the attribute: data-loc-type →: data_loc_type):
browser.div(:class => 'location_picker_type_level', :data_loc_type => '1')
If it is expected that there is one div of this type, you can check that it has a table by doing:
div = browser.div(:class => 'location_picker_type_level', :data_loc_type => '1')
puts div.table.exists?
#=> true
divs, , , , any? divs:
divs = browser.divs(:class => 'location_picker_type_level', :data_loc_type => '1')
puts divs.any?{ |d| d.table.exists? }
div = divs.find{ |d| d.table.exists? }