PREFIX foaf: PREFIX ex: CONSTRUCT { ex:alice ex:connectsTo ?N } FROM WHERE { ex:alice ?P ?N }