GoalAnswer questions that need two rules or a comparison of numbers.
New words
condition · a rule that a record must match to be in the answermore than · bigger than: 5 is more than 3 but 3 is not more than 3less than · smaller than: 2 is less than 3 but 3 is not less than 3
Explanation
Some questions have two conditions. First find the records that match the first condition. Then look only at those records and keep the ones that also match the second condition. With a number field you can ask “more than” or “less than”. Take care at the edges: “younger than 3” means ages 0, 1 and 2, but not 3. Always say which field you read to give the answer. When you have found the answer, read through the whole table once more to check that you did not miss a record.
Name
Animal
Age
Vaccinated
Room
Bella
dog
3
Yes
A
Max
cat
1
No
B
Coco
rabbit
2
Yes
B
Rex
dog
5
Yes
A
Luna
cat
4
Yes
C
Tiko
rabbit
1
No
C
Worked examples
Name
Animal
Vaccinated
Bella
dog
Yes
Rex
dog
Yes
Question: Which dogs are vaccinated? Step 1: keep only the records with Animal = dog. Step 2: of these, keep the records with Vaccinated = Yes. Both dogs are vaccinated, so the answer is Bella and Rex.
Name
Age
Less than 3?
Bella
3
no
Max
1
yes
Coco
2
yes
Rex
5
no
Luna
4
no
Tiko
1
yes
Question: Which animals are younger than 3 years? We test every record in the Age field. 3 is not less than 3, so Bella is not in the answer. The answer is Max, Coco and Tiko.
Question: Which rabbits are in Room A? Step 1 finds Coco and Tiko. Step 2 keeps the ones in Room A, and neither is there. The answer is none.
Class activity
Two-rule hunt (in pairs): draw a table of six pets or toys with four fields, including one number field. Write four questions that need two rules, for example “Which toys are red and cost more than 5?”. Swap tables with your partner and answer each other’s questions. To check an answer, cross out every record that does not match the first rule, then the second rule. What is left is the answer.
Practice
1
Use the pet-shelter table. Which animals are in Room C and are not vaccinated?
Tiko. Room C has Luna and Tiko, and only Tiko has Vaccinated = No.
2
Which plants in Bed 1 need sun? Which plants are taller than 30 cm? Take care at the edge.
Plant
Height (cm)
Needs sun
Bed
Tomato
60
Yes
1
Mint
25
No
2
Bean
45
Yes
2
Fern
30
No
1
Sunflower
150
Yes
1
Lettuce
20
Yes
2
Bed 1 and needs sun: Tomato and Sunflower. Taller than 30 cm: Tomato (60), Bean (45) and Sunflower (150). The fern is exactly 30, which is not more than 30.
3
How many story books have more than 60 pages? Which two fields did you use?
Title
Type
Pages
On shelf
Moon Garden
story
48
Yes
Bridges
facts
64
No
Rain Song
story
120
Yes
Bees
facts
32
Yes
Night Train
story
96
No
2 books: Rain Song (120) and Night Train (96). Moon Garden is a story book but has only 48 pages. You used the fields Type and Pages.
4
Use the pet-shelter table. Write a question that has the answer “Coco” and needs two fields.
For example: “Which rabbit is vaccinated?” The fields Animal and Vaccinated give only Coco, because Tiko is not vaccinated.