what is the {Discogs artist ID} for {Aphex Twin} has {pseudonym} as {GAK} ?
What is Aphex Twin's Discogs artist ID that has the pseudonym GAK?
What is the Discogs artist ID for Aphex Twin that has the pseudonym GAK?
SELECT ?u WHERE { FILTER ( CONTAINS ( ?d , 'GAK' ) ) . ?a property:Discogs_artist_ID ?u . resource:Aphex_Twin property:pseudonym ?a . ?a property:pseudonym ?d }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q223161> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P742> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <GAK> .
?statement <http://www.wikidata.org/entity/P1953> ?value. 
} 

SELECT ?value WHERE { wd:Q223161 p:P742 ?s . ?s ps:P742 ?x filter(contains(?x , 'GAK')) . ?s pq:P1953 ?value}