Pattern MyPattern
  Return-Graph
  | > Return-RdfIriNodeImpl ComplexNode 1 [4]
  | > RdfIriNodeImpl Element 3 [5]
  | > RdfLiteralNodeImpl PrimitiveNode 2 [6]
  | ~ RdfPredicateImpl [3] from 4 to 5 rdfpath [1] -(<>|!<>) 
  | ~ RdfPredicateImpl [4] from 4 to 6 rdfpath [2] -(<>|!<>) 
  | OperatorList [2]
  | - COMP [1] UNSPECIFIED:BOOLEAN (RdfLiteralNodeImpl [6] =[3] IriParamImpl [4])
  TRUE
  ParameterList
    : comp [3] =
    : type [5] UNSPECIFIED
    : iri [4] ?country
    : irilist [6] ( )
    : rdfpath [1] -(<>|!<>) 
    : irilist [7] ( )
    : rdfpath [2] -(<>|!<>) 
__

SELECT
  ?var4
WHERE {
  ?var4 (<>|!<>) ?var5.
  ?var4 (<>|!<>) ?country.
}
__
#TEMPLATE={"template":"Presidents of ?country and their spouses ","variables":{ "?country":{}}}

SELECT
  ?var4
WHERE {
  BIND(wd:Q30 AS ?country).
  ?var4 (<>|!<>) ?var5.
  ?var4 (<>|!<>) ?country.
}
