Give me {opera} that {librettist} {Giuseppe Giacosa} and which contains the word {tosca} in their name
Which is the musical drama by the librettist of Giuseppe Giacosa that contains the word tosca in it's title?
Which is the opera by the librettist of Giuseppe Giacosa that contains the word tosca in it's name?
SELECT DISTINCT ?v WHERE { ?v property:librettist resource:Giuseppe_Giacosa . FILTER ( CONTAINS ( LCASE ( ?v ) , 'tosca' ) ) . ?v rdf:type ontology:opera }
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/Q1344>. ?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/P87> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q372032>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'tosca')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q1344 . ?sbj wdt:P87 wd:Q372032 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'tosca')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
Tosca Tosca