Give me {fruit} that {natural product of taxon} {Citrullus lanatus} and which contains the word {watermelon} in their name
Name a fruit that contains Citrullus lanatus that contains the phrase "watermelon" in its name
Name a fruit that contains Citrullus lanatus that contains the word "watermelon" in its name
SELECT DISTINCT ?o WHERE { FILTER ( CONTAINS ( LCASE ( ?o ) , 'watermelon' ) ) . ?o rdf:type ontology:fruit . ?o property:natural_product_of_taxon resource:Citrullus_lanatus }
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/Q1364>. ?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/P1582> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q17507129>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'watermelon')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q1364 . ?sbj wdt:P1582 wd:Q17507129 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'watermelon')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 