 PREFIX wfdesc: <http://purl.org/wf4ever/wfdesc#> 
 PREFIX rdfs:    <http://www.w3.org/2000/01/rdf-schema#> 
 PREFIX motifs:  <http://purl.org/wf4ever/motifs.owl#>
 
 SELECT ?opA ?outA ?inB ?opB
 WHERE {
        ?opA a wfdesc:Process .
        ?opA wfdesc:hasOutput ?outA .
        ?link a wfdesc:DataLink .
        ?link wfdesc:hasSource ?outA .
        ?link wfdesc:hasSink ?inB .
        ?opB a wfdesc:Process .
        ?opB wfdesc:hasInput ?inB .
        ?opB motifs:hasOperationMotif ?m2 .
        ?m2 a motifs:OutputExtraction .
     }