from paws.TweetsFactsAndQueries.replaceQualifiers import *

query='''
SELECT DISTINCT ?item WHERE {
  ?item p:P2694/pq:P1327 ?partner.
}
'''

replaceQualifiers(query, 'P2694', 'P1327', 'P4070')