Give me {contract} that {collection} {Lincoln Cathedral} and which contains the word {carta} in their name
Tell me the Lincoln Cathedral collection contract containing the word carta in its name?
Tell me the contract of the collection of Lincoln Cathedral that contains the word carta in it's name?
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:contract . ?p property:collection resource:Lincoln_Cathedral . FILTER ( CONTAINS ( LCASE ( ?p ) , 'carta' ) ) }
SELECT DISTINCT ?sbj ?sbj_label { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sbj . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P31> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q93288>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sbj . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P195> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q390169>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'carta')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q93288 . ?sbj wdt:P195 wd:Q390169 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'carta')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
Magna Carta Magna Carta