DB/osm2pgsql: relationship queries