CREATE TABLE Person (name VARCHAR, age VARCHAR)
CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)

Find the name and age of the person who is a friend of Dan or Alice.
SELECT DISTINCT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' OR T2.friend = 'Alice'
SELECT DISTINCT "T1"."name", "T1"."age" FROM "Person" AS "T1" JOIN "PersonFriend" AS "T2" ON "T1"."name" = "T2"."name" AND ("T2"."friend" = 'Alice' OR "T2"."friend" = 'Dan')