What is {topic of} of {history of Sierra Leone}, that has {license plate code} is {WAL} ?
"What is the subject of history in Sierra Leone, that features a Permit plate code WAL ?
"What is the topic of history in Sierra Leone, that has a License plate code WAL ?
SELECT ?u WHERE { resource:history_of_Sierra_Leone property:facet_of ?u . FILTER ( CONTAINS ( ?n , 'WAL' ) ) . ?u property:licence_plate_code ?n }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1477561> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1269>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P395> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <WAL> . }
SELECT ?answer WHERE { wd:Q1477561 wdt:P1269 ?answer . ?answer wdt:P395 ?x FILTER(contains(?x , 'WAL'))}