@@ -307,14 +307,14 @@ Exercise 1
307307
308308 from Person t
309309 where
310- /* 1 */ t.getHeight() > 150 and
311- /* 2 */ not t.getHairColor() = "blond" and
312- /* 3 */ exists (string c | t.getHairColor() = c) and
313- /* 4 */ not t.getAge() < 30 and
314- /* 5 */ t.getLocation() = "east" and
315- /* 6 */ (t.getHairColor() = "black" or t.getHairColor() = "brown") and
316- /* 7 */ not (t.getHeight() > 180 and t.getHeight() < 190) and
317- /* 8 */ exists(Person p | p.getAge() > t.getAge())
310+ /* 1 */ t.getHeight() > 150 and
311+ /* 2 */ not t.getHairColor() = "blond" and
312+ /* 3 */ exists (string c | t.getHairColor() = c) and
313+ /* 4 */ not t.getAge() < 30 and
314+ /* 5 */ t.getLocation() = "east" and
315+ /* 6 */ (t.getHairColor() = "black" or t.getHairColor() = "brown") and
316+ /* 7 */ not (t.getHeight() > 180 and t.getHeight() < 190) and
317+ /* 8 */ exists(Person p | p.getAge() > t.getAge())
318318 select t
319319
320320 Exercise 2
@@ -326,16 +326,16 @@ Exercise 2
326326
327327 from Person t
328328 where
329- /* 1 */ t.getHeight() > 150 and
330- /* 2 */ not t.getHairColor() = "blond" and
331- /* 3 */ exists (string c | t.getHairColor() = c) and
332- /* 4 */ not t.getAge() < 30 and
333- /* 5 */ t.getLocation() = "east" and
334- /* 6 */ (t.getHairColor() = "black" or t.getHairColor() = "brown") and
335- /* 7 */ not (t.getHeight() > 180 and t.getHeight() < 190) and
336- /* 8 */ exists(Person p | p.getAge() > t.getAge()) and
337- /* 9 */ not t = max(Person p | | p order by p.getHeight()) and
338- /* 10 */ t.getHeight() < avg(float i | exists(Person p | p.getHeight() = i) | i) and
339- /* 11 */ t = max(Person p | p.getLocation() = "east" | p order by p.getAge())
329+ /* 1 */ t.getHeight() > 150 and
330+ /* 2 */ not t.getHairColor() = "blond" and
331+ /* 3 */ exists (string c | t.getHairColor() = c) and
332+ /* 4 */ not t.getAge() < 30 and
333+ /* 5 */ t.getLocation() = "east" and
334+ /* 6 */ (t.getHairColor() = "black" or t.getHairColor() = "brown") and
335+ /* 7 */ not (t.getHeight() > 180 and t.getHeight() < 190) and
336+ /* 8 */ exists(Person p | p.getAge() > t.getAge()) and
337+ /* 9 */ not t = max(Person p | | p order by p.getHeight()) and
338+ /* 10 */ t.getHeight() < avg(float i | exists(Person p | p.getHeight() = i) | i) and
339+ /* 11 */ t = max(Person p | p.getLocation() = "east" | p order by p.getAge())
340340 select "The thief is " + t + "!"
341341
0 commit comments