A set of SPARQL examples that are used in LOTUS
Chemicals with isomeric SMILES but no mass.
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
#title: Chemicals with isomeric SMILES but no mass
SELECT ?structure ?smiles WHERE {
    VALUES ?classes {
        wd:Q113145171
        wd:Q59199015
    }
    ?structure wdt:P2017 ?smiles.
    ?structure wdt:P31 ?classes.
    OPTIONAL { ?structure wdt:P2067 ?mass. }
    FILTER(!(BOUND(?mass)))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?classes")
  v1("?mass")
  v4("?smiles"):::projected 
  v3("?structure"):::projected 
  f0[["not bound(?mass)"]]
  f0 --> v1
  bind1[/VALUES ?classes/]
  bind1-->v2
  bind10(["wd:Q113145171"])
  bind10 --> bind1
  bind11(["wd:Q59199015"])
  bind11 --> bind1
  v3 --"wdt:P2017"-->  v4
  v3 --"wdt:P31"-->  v2
  subgraph optional0["(optional)"]
  style optional0 fill:#bbf,stroke-dasharray: 5 5;
    v3 -."wdt:P2067".->  v1
  end