Question: How many times is the Babelio author ID (P3630) used in Wikidata statements, references, and qualifiers, broken down by rank?

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?usageType ?rank ?count WHERE {
  {
    SELECT(wikibase:statementProperty AS ?usageType) ?rank(COUNT(DISTINCT ?item) AS ?count) WHERE {
      ?item p:P3630 ?stmt .
      OPTIONAL {
        ?stmt wikibase:rank ?rank
      }
    }
    GROUP BY ?rank
  } UNION {
    SELECT(wikibase:reference AS ?usageType) ?rank(COUNT(DISTINCT ?item) AS ?count) WHERE {
      ?item pr:P3630 ?ref .
      BIND(xsd:string("") AS ?rank)
    }
    GROUP BY ?rank
  } UNION {
    SELECT(wikibase:qualifier AS ?usageType) ?rank(COUNT(DISTINCT ?item) AS ?count) WHERE {
      ?item pq:P3630 ?qual .
      BIND(xsd:string("") AS ?rank)
    }
    GROUP BY ?rank
  }
}
ORDER BY DESC(?usageType) DESC(?count) ASC(?rank)

What is the distribution of Babelio author ID (P3630) usage across Wikidata statements (by rank), references, and qualifiers?

Show me the count of distinct items using the Babelio author ID (P3630) as a statement (grouped by rank), as a reference, and as a qualifier.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { { SELECT( <http://wikiba.se/ontology#statementProperty> AS ?var1 )( COUNT ( DISTINCT ?var5 ) AS ?var3 )( COUNT ( ?var6 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/P3630> ?var6 . } } UNION { SELECT( <http://wikiba.se/ontology#statementProperty> AS ?var1 )( <http://wikiba.se/ontology#BestRank> AS ?var2 )( COUNT ( DISTINCT ?var5 ) AS ?var3 )( COUNT ( ?var7 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P3630> ?var7 . } } UNION { SELECT( <http://wikiba.se/ontology#statementProperty> AS ?var1 ) ?var2 ( COUNT ( DISTINCT ?var5 ) AS ?var3 )( COUNT ( ?var8 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/P3630> ?var8 . ?var8 <http://wikiba.se/ontology#rank> ?var2 . } GROUP BY ?var2 } UNION { SELECT( <http://wikiba.se/ontology#reference> AS ?var1 )( COUNT ( DISTINCT ?var5 ) AS ?var3 )( COUNT ( ?var6 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/reference/P3630> ?var6 . } } UNION { SELECT( <http://wikiba.se/ontology#qualifier> AS ?var1 )( COUNT ( DISTINCT ?var5 ) AS ?var3 )( COUNT ( ?var6 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/qualifier/P3630> ?var6 . } } } ORDER BY DESC( ?var1 ) DESC( ?var3 )ASC( ?var2 )


Question: Public libraries in Australia

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?library ?libraryLabel WHERE {
  ?library wdt:P31 wd:Q28564 .
  ?library wdt:P17 wd:Q408 .
  ?library rdfs:label ?libraryLabel .
  FILTER ( LANGMATCHES( LANG( ?libraryLabel ) , "en" ) )
}

What are the names of all public libraries in Australia?

List all public libraries located in Australia with their English names.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q28564> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q408> . }


Question: Books and their titles from Wikidata

SELECT ?book ?title WHERE { ?book wdt:P31 wd:Q571 ; rdfs:label ?title . } LIMIT 10

What are 10 books and their titles in Wikidata?

Show me 10 examples of books along with their titles.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q571> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } } LIMIT 10


Question: Most common properties linking items to lakes in Wikidata

SELECT ?propItem ?label (COUNT(?item) AS ?count) WHERE { ?item ?property wd:Q23397 . ?propItem wikibase:directClaim ?property . ?propItem rdfs:label ?label . FILTER(LANG(?label) = "en") } GROUP BY ?propItem ?label HAVING (?count > 1) ORDER BY DESC(?count)

Which properties are most frequently used to associate items with the concept of a lake, and how often are they used?

Show me the properties that connect items to lakes, ordered by how often they appear, with their English labels and counts.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q23397> . OPTIONAL { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . } } GROUP BY ?var1 HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ORDER BY DESC( ?var3 )


Question: Danish word forms in the "120 Danish words" catalog

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?lexeme ?lexemeLabel WHERE {
  ?lexeme wdt:P972 wd:Q66809857 .
  ?lexeme rdfs:label ?lexemeLabel .
}
LIMIT 11

Which Danish words are included in the "120 Danish words" catalog?

List the Danish lexemes cataloged under "120 Danish words" along with their forms.

SELECT ?var1 ?var1Label WHERE { { SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P972> _:bnode . } LIMIT 11 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "undefined". } }


Question: What properties are used to describe the house cat in Spanish on Wikidata?

SELECT ?property ?propertyLabel ?propertyDescription WHERE { ?item ?property wd:Q146 . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) . BIND(IRI(REPLACE(STR(?property), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?propertyEntity) . ?propertyEntity rdfs:label ?propertyLabel . ?propertyEntity schema:description ?propertyDescription . FILTER(LANG(?propertyLabel) = "es") . FILTER(LANG(?propertyDescription) = "es") } LIMIT 100

Can you list the Spanish labels and descriptions of all properties that are associated with the house cat (wd:Q146)?

Show me the Spanish-language labels and descriptions of properties that have the house cat as an object in their statements.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q146> . ?var1 ?var6 ?var5 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "es" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "es" ) ) ) . } LIMIT 100


Question: What materials are produced according to Wikidata’s production statistics?

SELECT DISTINCT ?producedGood ?producedGoodLabel WHERE { ?producer wdt:P2746 ?producedGood . ?producedGood rdfs:label ?producedGoodLabel . FILTER(LANG(?producedGoodLabel) = "en") } LIMIT 21

Which goods have been recorded as produced in Wikidata, and what are their names?

List up to 21 substances or products that are produced, along with their English labels.

SELECT ?var1 ?var1Label WHERE { { SELECT DISTINCT ?var1 WHERE { _:bnode <http://www.wikidata.org/prop/direct/P2746> ?var1 . FILTER ( ( isIRI ( ?var1 ) ) ) . } LIMIT 21 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Items located in Montreal without a description in Wikidata.

SELECT DISTINCT ?item ?itemLabel WHERE { ?item wdt:P131* wd:Q340 . OPTIONAL { ?item schema:description ?description . } FILTER ( !BOUND(?description) ) ?item rdfs:label ?itemLabel . FILTER (LANG(?itemLabel) = "en") } LIMIT 111

Which places or entities in Montreal do not have a Wikipedia-style description?

List all entities in Montreal that have an English label but no schema:description, so I can help add descriptions.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q340> . OPTIONAL { ?var1 <http://schema.org/description> ?var2 . } FILTER ( ( !( BOUND ( ?var2 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es". } } LIMIT 111


Question: What events occurred in 1998?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?event WHERE {
  ?event(wdt:P585 | wdt:P606 | wdt:P619 | wdt:P620 | wdt:P621 | wdt:P622 | wdt:P729 | wdt:P1191) ?date .
  FILTER(YEAR(?date) = 1998)
}

List all entities (such as sports events, spacecraft missions, or legal instruments) that had a significant date in 1998, including first performances, service entries, or spacecraft launches.

Which items in Wikidata are associated with an event that took place during the year 1998, such as a premiere, launch, landing, or service commissioning?

SELECT DISTINCT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P585> | <http://www.wikidata.org/prop/direct/P606> | <http://www.wikidata.org/prop/direct/P619> | <http://www.wikidata.org/prop/direct/P620> | <http://www.wikidata.org/prop/direct/P621> | <http://www.wikidata.org/prop/direct/P622> | <http://www.wikidata.org/prop/direct/P729> | <http://www.wikidata.org/prop/direct/P1191> ) ?var2 . FILTER ( ( ( ?var2 >= "1998-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1998-12-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: Ships and submarines belonging to classes categorized as submarine class, ship type, or ship class.

SELECT ?ship ?shipLabel ?classLabel WHERE { ?ship wdt:P31 ?class . ?class wdt:P31 ?metaClass . VALUES ?metaClass { wd:Q1428357 wd:Q2235308 wd:Q559026 } OPTIONAL { ?ship rdfs:label ?shipLabel . FILTER(LANG(?shipLabel) = "en") } OPTIONAL { ?class rdfs:label ?classLabel . FILTER(LANG(?classLabel) = "en") } } ORDER BY ?ship

What are the individual ships and submarines that are members of classes classified as submarine classes, ship types, or ship classes?

List the names of ships and submarines along with their class names, where each class is an instance of a submarine class, ship type, or ship class.

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q2235308> . } UNION { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q559026> . } UNION { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1428357> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Who is the head of state of Australia?

SELECT ?headOfState ?headOfStateLabel WHERE { wd:Q408 wdt:P35 ?headOfState . ?headOfState rdfs:label ?headOfStateLabel . FILTER(LANG(?headOfStateLabel) = "en") }

Tell me who currently serves as the head of state for Australia.

SELECT DISTINCT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q408> . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3024240> . } ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P35> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ru". } }


Question: Who are the women awarded by BBC 100 Women?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel WHERE {
  ?person wdt:P166 wd:Q16153104 .
  ?person wdt:P31 wd:Q5 .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}
ORDER BY ?personLabel

Which women have been recognized in the BBC’s 100 Women list?

List the names of all women who received the BBC 100 Women award.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P166> <http://www.wikidata.org/entity/Q16153104> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja,en". } }


Question: What is the name of the asteroid with Minor Planet Center ID 55488?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel WHERE {
  ?item wdt:P5736 "55488" .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}

Which asteroid has the identifier 55488 in the Minor Planet Center database?

Find the label of the celestial object whose Minor Planet Center ID is 55488.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/Q55488> <http://www.wikidata.org/prop/direct/P2910> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What architectural style is Early English Gothic a subclass of or part of?

SELECT DISTINCT ?subclassOrPart ?label WHERE { wd:Q578577 (wdt:P279 | wdt:P361) ?subclassOrPart . ?subclassOrPart rdfs:label ?label . FILTER (lang(?label) = "en") }

Is Early English Gothic a type of or component of English Gothic architecture?

Show me the broader architectural category that includes Early English Gothic as a subclass or part.

SELECT ?var1 ?var1Label WHERE { ?var2 ( <http://www.wikidata.org/prop/direct/P279> | <http://www.wikidata.org/prop/direct/P361> ) ?var1 . FILTER ( ( ?var2 IN ( <http://www.wikidata.org/entity/Q578577> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Books with mismatched original language (P364) and language of work (P407), excluding those by Donna Leon.

SELECT DISTINCT ?book WHERE { ?book wdt:P31 wd:Q571 ; wdt:P364 ?lang1 ; wdt:P407 ?lang2 . FILTER (?lang1 != ?lang2) . MINUS { ?book wdt:P50 wd:Q237420 . } }

Which books have a different language listed for film/TV origin (P364) than their actual language (P407), and are not written by Donna Leon?

Show me books that incorrectly use the film/TV original language property (P364) with a different value than their actual language (P407), excluding works by Donna Leon.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P364> ?var2 ; <http://www.wikidata.org/prop/direct/P407> ?var3 ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q571> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7889> . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q237420> . } FILTER ( ( ( ?var2 != ?var3 ) ) ) . }


Question: Film with AlloCiné ID 237083

SELECT ?film WHERE { ?film wdt:P1265 "237083" . }

Which film has the AlloCiné film ID 237083?

Show me the film identified by AlloCiné film ID 237083.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1265> "237083". }