query-cd31eae92ddda457a83900494116f524

rq turtle/ttl

Items with (P31 = album) + amountOfStatements more statements select distinct ?item where { bind(1 as ?amountOfStatements)

filter not exists { ?item a ontolex:LexicalEntry. } filter not exists { ?item a wikibase:Property. }

###

bind(?amountOfStatements + 1 as ?correctedAmountOfStatements)

?item wikibase:statements ?correctedAmountOfStatements; wdt:P31 wd:Q482994. } limit 100 offset 0

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
#Items with (P31 = album) + amountOfStatements more statements
select distinct ?item where {
  bind(1 as ?amountOfStatements)

  filter not exists { ?item a ontolex:LexicalEntry. }
  filter not exists { ?item a wikibase:Property. }

  ###

  bind(?amountOfStatements + 1 as ?correctedAmountOfStatements)

  ?item wikibase:statements ?correctedAmountOfStatements;
        wdt:P31 wd:Q482994.
}
limit 100
offset 0

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?amountOfStatements") v3("?correctedAmountOfStatements") v1("?item"):::projected c2(["wikibase:Property"]):::iri c3(["ontolex:LexicalEntry"]):::iri c6(["wd:Q482994"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"a"--> e0c2 e0v1("?item"):::projected e0c2(["wikibase:Property"]):::iri end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> c2 v1 --"a"--> c2 f1[["not "]] subgraph f1e1["Exists Clause"] e1v1 --"a"--> e1c2 e1v1("?item"):::projected e1c2(["ontolex:LexicalEntry"]):::iri end f1--EXISTS--> f1e1 f1 --> v1 f1 --> c1 f1 --> c3 v1 --"a"--> c3 bind2[/"'1^^xsd:integer'"/] bind2 --as--o v2 bind3[/"?amountOfStatements + '1^^xsd:integer'"/] v2 --o bind3 bind3 --as--o v3 v1 --"wikibase:statements"--> v3 v1 --"wdt:P31"--> c6