Relationship between Detector Tables and SQL samples to run queries.