the artwork purchased with the canadian dollars is owned by whom?
Entity
m.02nhzz
Kenneth Thomson, 2nd Baron Thomson of Fleet
class class entity
visual_art.art_owner visual_art.artwork_owner_relationship m.0ptk_
visual_art.art_owner visual_art.artwork_owner_relationship finance.currency
Art owner Artwork/owner relationship canadian dollars
none none none
visual_art.art_owner.artworks_owned visual_art.artwork_owner_relationship.purchase_currency
Artworks owned Purchase currency
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :visual_art.art_owner . 
?x1 :type.object.type :visual_art.artwork_owner_relationship . 
VALUES ?x2 { :m.0ptk_ } 
?x0 :visual_art.art_owner.artworks_owned ?x1 . 
?x1 :visual_art.artwork_owner_relationship.purchase_currency ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND visual_art.art_owner (JOIN visual_art.art_owner.artworks_owned (JOIN visual_art.artwork_owner_relationship.purchase_currency m.0ptk_)))