Give me {civic building} that {located on street} {Pennsylvania Avenue} and which contains the word {house} in their name
Tell me the civic building that is located in the avenue of Pennsylvania Avenue and whose title incorporates the phrase house.
Tell me the civic building that is located in the street of Pennsylvania Avenue and whose name contains the word house.
SELECT DISTINCT ?p WHERE { FILTER ( CONTAINS ( LCASE ( ?p ) , 'house' ) ) . ?p property:located_on_street resource:Pennsylvania_Avenue . ?p rdf:type ontology:civic_building }
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/Q52177058>. ?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/P669> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1455053>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'house')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q52177058 . ?sbj wdt:P669 wd:Q1455053 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'house')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
White House White House