Index: trunk/data/tagchecker.cfg
===================================================================
--- trunk/data/tagchecker.cfg	(revision 4757)
+++ trunk/data/tagchecker.cfg	(revision 4777)
@@ -85,2 +85,63 @@
 *    : W : natural == water && leisure == swimming_pool       # natural water used for swimming pool
 *    : W : natural == water && amenity == swimming_pool       # natural water used for swimming pool
+
+# see ticket #5017
+# Taginfo query: select keypairs.key1, keypairs.key2, keypairs.count_all, keys.count_all, cast(keypairs.count_all as real)/keys.count_all as from_fraction_all from keys, keypairs where key1='waterway' and keys.key=keypairs.key2 and (key1<>'highway' or keypairs.count_all>12000) and (key1<>'railway' or keypairs.count_all>3000) and (key1<>'waterway' or keypairs.count_all>800) and key2 not like '%:%' and from_fraction_all>0.97 and 1 union select keypairs.key2, keypairs.key1, keypairs.count_all, keys.count_all, cast(keypairs.count_all as real)/keys.count_all as from_fraction_all from keys, keypairs where key2='waterway' and keys.key=keypairs.key1 and (key2<>'highway' or keypairs.count_all>12000) and (key2<>'railway' or keypairs.count_all>3000) and (key2<>'waterway' or keypairs.count_all>800) and key1 not like '%:%' and from_fraction_all>0.97 and 1 order by keypairs.count_all desc limit 1000;
+*    : W : incline              == * && highway != *                                   # incline without highway
+*    : W : junction             == * && highway != *                                   # junction without highway
+*    : W : lanes                == * && highway != *                                   # lanes without highway
+*    : W : lcn                  == * && highway != *                                   # lcn without highway
+*    : W : lit                  == * && highway != *                                   # lit without highway
+*    : W : living_street        == * && highway != *                                   # living_street without highway
+*    : W : maintenance          == * && highway != *                                   # maintenance without highway
+*    : W : maxspeed             == * && highway != *                                   # maxspeed without highway
+*    : W : median               == * && highway != *                                   # median without highway
+*    : W : moped                == * && highway != *                                   # moped without highway
+*    : W : motor_vehicle        == * && highway != *                                   # motor_vehicle without highway
+*    : W : motorroad            == * && highway != *                                   # motorroad without highway
+*    : W : ntd_id               == * && highway != *                                   # ntd_id without highway
+*    : W : oneway               == * && highway != *                                   # oneway without highway
+*    : W : sac_scale            == * && highway != *                                   # sac_scale without highway
+*    : W : segregated           == * && highway != *                                   # segregated without highway
+*    : W : sidewalk             == * && highway != *                                   # sidewalk without highway
+*    : W : smoothness           == * && highway != *                                   # smoothness without highway
+*    : W : snowplowing          == * && highway != *                                   # snowplowing without highway
+*    : W : step_count           == * && highway != *                                   # step_count without highway
+*    : W : surface              == * && highway != *                                   # surface without highway
+*    : W : toll                 == * && highway != *                                   # toll without highway
+*    : W : tracktype            == * && highway != *                                   # tracktype without highway
+*    : W : trail_visibility     == * && highway != *                                   # trail_visibility without highway
+*    : W : trolley_wire         == * && highway != *                                   # trolley_wire without highway
+*    : W : zip_left             == * && highway != *                                   # zip_left without highway
+*    : W : zip_right            == * && highway != *                                   # zip_right without highway
+*    : W : combined_transport_c == * && railway != *                                   # combined_transport_c without railway
+*    : W : detail               == * && railway != *                                   # detac without railway
+*    : W : eddy_current_brake   == * && railway != *                                   # eddy_current_brac without railway
+*    : W : electrified          == * && railway != *                                   # electrific without railway
+*    : W : etcs                 == * && railway != *                                   # etc without railway
+*    : W : gauge                == * && railway != *                                   # gauc without railway
+*    : W : grade_of_track       == * && railway != *                                   # grade_of_trac without railway
+*    : W : kursbuchstrecke      == * && railway != *                                   # kursbuchstrecc without railway
+*    : W : lzb                  == * && railway != *                                   # lc without railway
+*    : W : old_railway_operator == * && railway != *                                   # old_railway_operatc without railway
+*    : W : operating_procedure  == * && railway != *                                   # operating_proceduc without railway
+*    : W : pzb                  == * && railway != *                                   # pc without railway
+*    : W : radio                == * && railway != *                                   # radc without railway
+*    : W : structure_gauge      == * && railway != *                                   # structure_gauc without railway
+*    : W : tilting_technology   == * && railway != *                                   # tilting_technoloc without railway
+*    : W : track_class          == * && railway != *                                   # track_clac without railway
+*    : W : tracks               == * && railway != *                                   # tracc without railway
+*    : W : traffic_mode         == * && railway != *                                   # traffic_moc without railway
+*    : W : usage                == * && railway != *                                   # usac without railway
+*    : W : workrules            == * && railway != *                                   # workrulc without railway
+*    : W : stream               == * && waterway != *                                  # stream without waterway
+*    : W : intermittent         == * && waterway != *                                  # intermittent without waterway
+*    : W : boat                 == * && waterway != *                                  # boat without waterway
+*    : W : length_unit          == * && waterway != *                                  # length_unit without waterway
+*    : W : llid                 == * && waterway != *                                  # llid without waterway
+*    : W : canal                == * && waterway != *                                  # canal without waterway
+*    : W : have_riverbank       == * && waterway != *                                  # have_riverbank without waterway
+*    : W : tunnel               == * && highway != * && railway != * && waterway != *  # tunnel without highway/railway/waterway
+*    : W : bridge               == * && highway != * && railway != * && waterway != *  # bridge without highway/railway/waterway
+*    : W : width                == * && highway != * && railway != * && waterway != *  # width without highway/railway/waterway
+*    : W : psv                  == * && highway != * && railway != * && waterway != *  # psv without highway/railway/waterway
