Graph with selectable range and reduced query size