Example 9.28: creating datasets from tables