Fix sql query for highway vs tree, by inverting calculation of in_relation