prefix ex:	<http://www.example.org/schema#>
prefix in:	<http://www.example.org/instance#>
prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs:	<http://www.w3.org/2000/01/rdf-schema#>

ask {
    ?property
        rdfs:range [
            rdfs:subClassOf/rdfs:subClassOf ?classC
        ] ;
        a rdf:Property ;
        rdfs:domain [
            rdfs:subClassOf/rdfs:subClassOf ?classF
        ] .
}
