With Grew, this representation can be computed from the surface syntax in two steps:

A general representation (called deep_and_surf) encodes both surface and deep syntax in the same structure.

A projection from the deep_and_surf to the deep structure

Building the mixed structure

The GRS used to build the mixed deep_and_surf structure can be obtained by:

git clone https://gitlab.inria.fr/grew/SSQtoDSQ.git

The input of the GRS which produced the deep_and_surf structure is the surf structure.
We recall here the surface structure (see Dependency parsing page) for our example sentence and we suppose that the file test.surf.conll contains the CoNLL description below: