Give me {regional organization} that {shares border with} {South Sudan} and which contains the word {arab} in their name
Let me know the territorial organization that offers borders with South Sudan and contains the word middle easterner in it's name?
Tell me the regional organization that shares borders with South Sudan and contains the word arab in it's name?
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:regional_organization . FILTER ( CONTAINS ( LCASE ( ?a ) , 'arab' ) ) . ?a property:shares_border_with resource:South_Sudan }
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/Q4120211>. ?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/P47> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q958>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'arab')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q4120211 . ?sbj wdt:P47 wd:Q958 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'arab')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
Arab League Arab League