What is {motto} of {Spain} that is {motto text} is {Further Beyond} ?
Name the full motto of the Spain that contained the words "Further Beyond".
What motto of Spain has the words "Further Beyond"?
SELECT ?j WHERE { resource:Spain property:motto ?m . FILTER ( CONTAINS ( ?x , 'Further Beyond' ) ) . ?m property:motto_text ?x . ?m property:motto ?j }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q29> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1546> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P1451> <Further Beyond>
} 

SELECT ?obj WHERE { wd:Q29 p:P1546 ?s . ?s ps:P1546 ?obj . ?s pq:P1451 ?x filter(contains(?x , 'Further Beyond')) }