Question: Which properties are linked to Uwe Bewersdorf more than once in Wikidata?

SELECT ?property (COUNT(?item) AS ?count) WHERE { ?item ?property wd:Q530898 . } GROUP BY ?property HAVING (?count > 1) ORDER BY DESC(?count)

How many times are properties like "together with" and "schema:about" used to connect other entities to Uwe Bewersdorf?

Show me the properties that relate other items to Uwe Bewersdorf, along with their usage counts, but only include those used more than once, sorted by frequency.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q530898> . 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: Which properties link to Noël Haskins Murphy more than once?

SELECT ?property (COUNT(?resource) AS ?count) WHERE { ?resource ?property wd:Q46840692 . } GROUP BY ?property HAVING (?count > 1) ORDER BY DESC(?count)

How many properties are used to connect other resources to Noël Haskins Murphy, and which ones appear more than once?

Show me the properties that are used to link at least two different resources to the Wikidata item for Noël Haskins Murphy.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q46840692> . 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: Most used direct property linking to HTML entity property

SELECT ?property (COUNT(?property) AS ?count) WHERE { ?item ?property wd:P4575 . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) } GROUP BY ?property ORDER BY DESC(?count) LIMIT 1

Which direct property is most frequently used to assign the HTML entity property as a value?

Show me the property that is most commonly used to link items to the HTML entity property (P4575).

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/P4575> . ?var1 <http://wikiba.se/ontology#directClaim> ?var4 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 10000 } } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 1


Question: What property is most commonly used to describe the island Hòn Bịp in Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?propertyLabel(COUNT(?property) AS ?count) WHERE {
  wd:Q32197278 ?property ?value .
  ?propertyEntity wikibase:directClaim ?property .
  ?propertyEntity rdfs:label ?propertyLabel .
  FILTER(LANG(?propertyLabel) = "en")
}
GROUP BY ?property ?propertyLabel
ORDER BY DESC(?count)
LIMIT 1

Which statement type appears most frequently for Hòn Bịp?

Show the most frequently used property linking Hòn Bịp to other data in Wikidata.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q32197278> . ?var1 <http://wikiba.se/ontology#directClaim> ?var4 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 10000 } } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 1


Question: German labels and descriptions of properties related to the property "name" (P2561).

PREFIX schema: <http://schema.org/>
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 ?relatedProperty ?label ?description WHERE {
  wd:P2561 wdt:P1659 ?relatedProperty .
  ?relatedProperty rdfs:label ?label .
  ?relatedProperty schema:description ?description .
  FILTER ( LANG( ?label ) = "de" ) .
  FILTER ( LANG( ?description ) = "de" ) .
}

Which properties related to "name" have German labels and descriptions?

Show me the German names and descriptions of all properties that are semantically related to the property "name" (P2561), such as "first name", "pseudonym", or "official name".

SELECT ?var1 ?var2Label ?var3 WHERE { BIND ( <http://www.wikidata.org/prop/direct/P2561> AS ?var4 ). ?var5 ?var6 ?var4 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <http://www.wikidata.org/prop/direct/P1659> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "de" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "de" ) ) ) . }


Question: How many Wikipedia articles are about American ice dancer Colleen O'Connor?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ( COUNT( ?item ) AS ?count ) WHERE {
  ?item ?property wd:Q457775 .
}
GROUP BY ?property
HAVING ( ?count > 1 )
ORDER BY DESC ( ?count )

Which property links the most items to Colleen O'Connor on Wikidata, and how many times is it used?

Show me the properties that connect more than one item to Colleen O'Connor, ordered by frequency.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q457775> . 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: What are the properties and values associated with Yakub Kolas?

SELECT ?property ?value WHERE { wd:Q483709 ?property ?value . } LIMIT 25

Show me all the information known about the Belarusian poet Yakub Kolas.

List the facts about Yakub Kolas from Wikidata.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 ?var2 <wd:Q483709> . } LIMIT 25


Question: Dutch labels of properties and values for Sicco Mansholt

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?propertyLabel ?var2 ?value ?property WHERE {
  wd:Q364219 ?property ?value .
  BIND(IRI(CONCAT("http://www.wikidata.org/entity/" , SUBSTR(STR(?property) , 37))) AS ?propertyItem)
  .
  ?propertyItem rdfs:label ?propertyLabel .
  FILTER(LANG(?propertyLabel) = "nl")
  OPTIONAL {
    ?value rdfs:label ?valueLabel .
    FILTER(LANG(?valueLabel) = "nl")
  }
  BIND(COALESCE(?valueLabel , ?value) AS ?var2)
}
LIMIT 100

What are the Dutch labels of the properties and their values for the Dutch politician Sicco Mansholt?

Show me all statements about Sicco Mansholt in Dutch, including the property names and whether the values are entities or literals.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { { <http://www.wikidata.org/entity/Q364219> ?var4 ?var3 . ?var5 ?var6 ?var4 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "nl" ) ) ) . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "nl" ) ) ) . } UNION { <http://www.wikidata.org/entity/Q364219> ?var4 ?var2 . ?var5 ?var6 ?var4 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . FILTER ( ( isLITERAL ( ?var2 ) ) ) . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "nl" ) ) ) . } } LIMIT 100


Question: Wikidata properties with Spanish labels and descriptions

SELECT ?item ?label ?description WHERE { ?item rdfs:label ?label . ?item schema:description ?description . FILTER(LANG(?label) = "es") . FILTER(LANG(?description) = "es") . } LIMIT 100

Which Wikidata properties have Spanish-language labels and descriptions?

Show me up to 100 Wikidata properties that have both a Spanish label and a Spanish description.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <https://query.wikidata.org/bigdata/namespace/wdq/?p> ?var1 . } 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 are the most common properties linking other entities to Meryl Davis?

SELECT ?property (COUNT(?item) AS ?count) WHERE { ?item ?property wd:Q242921 . } GROUP BY ?property HAVING (?count > 1) ORDER BY DESC(?count)

Which relationships are most frequently used to connect other items to the ice dancer Meryl Davis, and how often do they occur?

Show me the top properties that connect other entities to Meryl Davis, excluding those used only once, sorted by frequency.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q242921> . 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: What are the mathematical sets that are subclasses of quaternions?

SELECT ?subclassOfQuaternion ?subclassOfQuaternionLabel ?directSuperclassLabel WHERE {  ?subclassOfQuaternion wdt:P279* wd:Q173853 .  ?subclassOfQuaternion wdt:P31 wd:Q36161 .  ?subclassOfQuaternion rdfs:label ?subclassOfQuaternionLabel .  FILTER(LANG(?subclassOfQuaternionLabel) = "en")  OPTIONAL {    ?subclassOfQuaternion wdt:P279 ?directSuperclass .    ?directSuperclass rdfs:label ?directSuperclassLabel .    FILTER(LANG(?directSuperclassLabel) = "en")  }  }

Which sets are directly subclassed from quaternions in mathematics?

Can you list any mathematical sets that are considered subclasses of quaternions, and what is their immediate superclass?

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q173853> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q36161> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P279> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Which property is most commonly used to link items to the 'related to' property in Wikidata?

SELECT ?property (COUNT(?property) AS ?count) WHERE { ?item ?prop wd:P739 . ?property wikibase:directClaim ?prop . } GROUP BY ?property ORDER BY DESC(?count) LIMIT 1

What property is used most often to associate items with the property 'related to' (P739)?

Show me the property that is most frequently used to point to P739 (related to) in Wikidata statements.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/P739> . ?var1 <http://wikiba.se/ontology#directClaim> ?var4 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 10000 } } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 1


Question: What is the Wikidata property that corresponds to the RDF property rdf:type?

SELECT ?propLabel WHERE { wd:P31 rdfs:label ?propLabel . FILTER(LANG(?propLabel) = "en") }

What is the label of the Wikidata property used to express "instance of"?

How is the concept of "type" represented in Wikidata?

SELECT DISTINCT * WHERE { { ?var1 <http://www.w3.org/2002/07/owl#equivalentProperty> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> . } } LIMIT 10


Question: What are the main properties associated with each property item in Wikidata?

SELECT DISTINCT ?propertyItem ?mainProperty WHERE { ?propertyItem p:P1687 ?statement . ?statement ps:P1687 ?mainProperty . } LIMIT 101

Which actual Wikidata properties correspond to conceptual property items like "Facebook page" or "family name"?

Show me the mapping between property concepts and their corresponding direct properties in Wikidata.

SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/P1687> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P1687> ?var2 . } LIMIT 101


Question: What are the properties and values associated with Albert Einstein in Wikidata, along with their English labels?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?propertyLabel(COALESCE(?valueLabel , STR(?value)) AS ?valueDisplay) WHERE {
  wd:Q937 ?property ?value .
  BIND(STR(?property) AS ?propertyStr)
  BIND(SUBSTR(?propertyStr , 44) AS ?propId)
  BIND(IRI(CONCAT("http://www.wikidata.org/entity/" , ?propId)) AS ?propertyEntity)
  OPTIONAL {
    ?propertyEntity rdfs:label ?propertyLabel .
    FILTER(LANG(?propertyLabel) = "en")
  }
  OPTIONAL {
    ?value rdfs:label ?valueLabel .
    FILTER(LANG(?valueLabel) = "en")
  }
}

Show me all the information known about Albert Einstein, including property names and their values in English.

For Albert Einstein, list each property (like occupation or date of birth) and its corresponding value, using English labels where available.

SELECT ?var1Label ?var2Label WHERE { ?var3 ?var1 ?var2 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the properties of Louis de Bourbon, Bishop of Liège, along with their English labels, how many values each has, and what those values are called in English?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?propertyLabel(COUNT(?value) AS ?valueCount)(GROUP_CONCAT(?valueLabel ; SEPARATOR = ", ") AS ?valueLabels) WHERE {
  wd:Q1875296 ?property ?value .
  ?value rdfs:label ?valueLabel .
  FILTER(LANG(?valueLabel) = "en")
  ?propertyItem wikibase:directClaim ?property .
  ?propertyItem rdfs:label ?propertyLabel .
  FILTER(LANG(?propertyLabel) = "en")
}
GROUP BY ?property ?propertyLabel

Show me all the properties and their English names for Louis de Bourbon, Bishop of Liège, including the count of values and the English labels of those values.

For Louis de Bourbon, Bishop of Liège, list each property, its English description, the number of associated values, and the English names of those values.

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 )( GROUP_CONCAT ( ?var5 ; SEPARATOR = ", " ) AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q1875296> ?var1 ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "en" ) ) ) . ?var6 <http://wikiba.se/ontology#directClaim> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } GROUP BY ?var1


Question: What are the types or categories related to question answering within two steps in the Wikidata hierarchy?

SELECT DISTINCT ?entity ?entityLabel ?instanceType WHERE { { wd:Q1074173 wdt:P31 ?entity . } UNION { ?entity wdt:P31 wd:Q1074173 . } UNION { wd:Q1074173 wdt:P31 ?mid . ?mid wdt:P31 ?entity . } UNION { ?entity wdt:P31 ?mid . ?mid wdt:P31 wd:Q1074173 . } OPTIONAL { ?entity rdfs:label ?entityLabel . FILTER(LANG(?entityLabel) = "en") } OPTIONAL { ?entity wdt:P31 ?instanceType } FILTER(?entity != wd:Q1074173) }

What software feature is question answering an instance of, and what other entities are connected to it through instance-of relationships up to two levels away?

Show all entities that are either instances of question answering, or that question answering is an instance of, or are two steps removed via type relationships.

SELECT ?var1 ?var1Label ?var2 WHERE { { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q1074173> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "2"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P31> . } } UNION { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q1074173> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Reverse"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "2"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P31> . } } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: English idioms listed in Wikidata

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 ?idiom ?label WHERE {
  ?idiom wdt:P31 wd:Q184511 .
  ?idiom rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}
LIMIT 50

What are some English idioms documented in Wikidata?

Show me 50 English idioms from Wikidata.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q184511> <http://www.wikidata.org/prop/direct/P2354> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } LIMIT 50


Question: What are all the properties and their values for the character Porpentina Goldstein in the Harry Potter universe, along with the count and English labels of those values?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?property ?propertyLabel ( COUNT( ?value ) AS ?valueCount ) ( GROUP_CONCAT( ?valueLabel ; SEPARATOR = ", " ) AS ?valueLabels ) WHERE {
  wd:Q27925259 ?property ?value .
  ?value rdfs:label ?valueLabel .
  FILTER ( LANG( ?valueLabel ) = "en" ) .
  ?propertyItem wikibase:directClaim ?property .
  ?propertyItem rdfs:label ?propertyLabel .
  FILTER ( LANG( ?propertyLabel ) = "en" ) .
}
GROUP BY ?property ?propertyLabel

Show me the occupation, employer, and other attributes of Tina Goldstein, including how many values each has and what they are in English.

List all the English-labeled properties of Porpentina Goldstein and the values they point to, grouped by property.

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 )( GROUP_CONCAT ( ?var5 ; SEPARATOR = ", " ) AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q27925259> ?var1 ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "en" ) ) ) . ?var6 <http://wikiba.se/ontology#directClaim> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } GROUP BY ?var1


Question: What are the English labels and descriptions of properties used to describe Albert Einstein in Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?property ?propertyLabel ?propertyDescription WHERE {
  wd:Q937 ?statement ?value .
  ?property wikibase:directClaim ?statement .
  ?property a wikibase:Property .
  ?property rdfs:label ?propertyLabel .
  ?property schema:description ?propertyDescription .
  FILTER(LANG(?propertyLabel) = "en")
  FILTER(LANG(?propertyDescription) = "en")
}
LIMIT 100

List the properties and their English descriptions that are associated with Albert Einstein’s Wikidata entry.

Which properties describe Albert Einstein, and what do they mean in English?

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/Q> . ?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 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100


Question: What are 50 entities and their labels in this knowledge graph?

SELECT ?item ?itemLabel WHERE { ?item rdfs:label ?itemLabel . } LIMIT 50

Show me up to 50 items with their human-readable labels.

List entities and their labels in any language from the knowledge graph.

SELECT * WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } LIMIT 50


Question: What are the German labels and descriptions of properties that are related to the native label property in Wikidata?

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/>
PREFIX schema: <http://schema.org/>
SELECT ?property ?label ?description WHERE {
  wd:P1705 wdt:P1659 ?property .
  ?property rdfs:label ?label .
  ?property schema:description ?description .
  FILTER(LANG(?label) = "de")
  FILTER(LANG(?description) = "de")
}

Which properties in Wikidata are considered related to native labels, and what are their German names and descriptions?

List the German labels and descriptions of properties such as official name, title, and birth name that are linked to the concept of a native label.

SELECT ?var1 ?var2Label ?var3 WHERE { BIND ( <http://www.wikidata.org/prop/direct/P1705> AS ?var4 ). ?var5 ?var6 ?var4 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <http://www.wikidata.org/prop/direct/P1659> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "de" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "de" ) ) ) . }


Question: Items with English abbreviations or acronyms

SELECT ?item ?shortName ?itemLabel WHERE { ?item p:P1813 ?statement . ?statement ps:P1813 ?shortName ; pq:P407 wd:Q1860 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 10

Which organizations or entities have English-language short names in Wikidata?

Show me a list of items along with their English abbreviations and full names.

SELECT ?var1 ?var2 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1813> ?var2 . ?var2 <http://www.w3.org/2004/02/skos/core#language> "en". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 10


Question: What are all the direct properties and values associated with Albert Einstein on Wikidata?

SELECT ?property ?value WHERE { wd:Q937 ?property ?value . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) }

List all the facts (properties and their values) known about Albert Einstein in Wikidata.

Show me all the direct statements about Albert Einstein, such as his occupations, awards, and affiliations.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/statement/Q30230798-C629D3B6-CF5D-4FA5-9E6C-3C05CEE1068A> ?var1 ?var2 . }


Question: What are all the superclass categories of 'type of number' in Wikidata?

SELECT DISTINCT ?superclass WHERE { wd:Q47460393 wdt:P279* ?superclass . }

What classes does 'type of number' belong to, including indirect parent classes?

List all the higher-level categories that 'type of number' is a subclass of, directly or indirectly.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q47460393> AS ?var2 ). ?var2 <http://www.wikidata.org/prop/direct/P279> * ?var1 . }


Question: What properties are associated with Amüge, and what are the values and counts of those properties in English?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ( SAMPLE( ?propertyLabel ) AS ?sampledPropertyLabel ) ( COUNT( ?value ) AS ?valueCount ) ( GROUP_CONCAT( ?valueLabel ; SEPARATOR = ", " ) AS ?valueLabels ) WHERE {
  wd:Q7076342 ?property ?value .
  ?value rdfs:label ?valueLabel .
  FILTER ( LANG( ?valueLabel ) = "en" ) .
  ?propertyItem wikibase:directClaim ?property .
  ?propertyItem rdfs:label ?propertyLabel .
  FILTER ( LANG( ?propertyLabel ) = "en" ) .
}
GROUP BY ?property

For the Yuan dynasty person Amüge, what are the English labels of the properties connecting him to other entities, how many values does each property have, and what are those values?

List all properties linked to Amüge with their English labels, the number of values each has, and the English labels of those values.

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 )( GROUP_CONCAT ( ?var5 ; SEPARATOR = ", " ) AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q7076342> ?var1 ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "en" ) ) ) . ?var6 <http://wikiba.se/ontology#directClaim> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } GROUP BY ?var1


Question: What properties and values are associated with Albert Einstein?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?value WHERE {
  wd:Q937 ?property ?value .
}

Show all information known about Albert Einstein in Wikidata.

What are the attributes of Albert Einstein as recorded in Wikidata?

SELECT ?var1 ?var2 WHERE { ?var1 ?var2 <https://query.wikidata.org/bigdata/namespace/wdq/undefined> . }


Question: What are the subclasses and superclasses of continuous function up to five levels deep in the mathematical hierarchy?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel WHERE {
  {
    wd:Q170058 wdt:P279 ?item1 .
    BIND( ?item1 AS ?item )
  } UNION {
    wd:Q170058 wdt:P279 ?item1 .
    ?item1 wdt:P279 ?item2 .
    BIND( ?item2 AS ?item )
  } UNION {
    wd:Q170058 wdt:P279 ?item1 .
    ?item1 wdt:P279 ?item2 .
    ?item2 wdt:P279 ?item3 .
    BIND( ?item3 AS ?item )
  } UNION {
    wd:Q170058 wdt:P279 ?item1 .
    ?item1 wdt:P279 ?item2 .
    ?item2 wdt:P279 ?item3 .
    ?item3 wdt:P279 ?item4 .
    BIND( ?item4 AS ?item )
  } UNION {
    wd:Q170058 wdt:P279 ?item1 .
    ?item1 wdt:P279 ?item2 .
    ?item2 wdt:P279 ?item3 .
    ?item3 wdt:P279 ?item4 .
    ?item4 wdt:P279 ?item5 .
    BIND( ?item5 AS ?item )
  } UNION {
    ?item1 wdt:P279 wd:Q170058 .
    BIND( ?item1 AS ?item )
  } UNION {
    ?item2 wdt:P279 ?item1 .
    ?item1 wdt:P279 wd:Q170058 .
    BIND( ?item2 AS ?item )
  } UNION {
    ?item3 wdt:P279 ?item2 .
    ?item2 wdt:P279 ?item1 .
    ?item1 wdt:P279 wd:Q170058 .
    BIND( ?item3 AS ?item )
  } UNION {
    ?item4 wdt:P279 ?item3 .
    ?item3 wdt:P279 ?item2 .
    ?item2 wdt:P279 ?item1 .
    ?item1 wdt:P279 wd:Q170058 .
    BIND( ?item4 AS ?item )
  } UNION {
    ?item5 wdt:P279 ?item4 .
    ?item4 wdt:P279 ?item3 .
    ?item3 wdt:P279 ?item2 .
    ?item2 wdt:P279 ?item1 .
    ?item1 wdt:P279 wd:Q170058 .
    BIND( ?item5 AS ?item )
  }
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}

List all mathematical concepts related to continuous functions, including broader and narrower terms, within five steps in the subclass hierarchy.

Show me the taxonomy of continuous functions — what are the types that are more specific or more general than continuous functions, up to five levels away?

SELECT ?var1 ?var1Label ?var2 WHERE { { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q170058> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "5"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#maxVisited> "5"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } UNION { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q170058> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Reverse"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "5"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#maxVisited> "5"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P279> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pt". } }


Question: What are all the properties and values associated with Albert Einstein in Wikidata?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?value WHERE {
  wd:Q937 ?property ?value .
}

Can you show me everything Wikidata knows about Albert Einstein?

List all the facts known about Albert Einstein, including his properties and their values.

SELECT * WHERE { VALUES ( ?var1 ) { ( <http://wikidata.org/entity/Q3426243> ) } ?var1 ?var2 ?var3 . }


Question: List Wikidata property types (not under proposal) and their associated topics.

SELECT ?property (str(?propertyLabel) AS ?propertyLabelClean) ?facet WHERE { ?property wdt:P31 wd:Q107649491 . OPTIONAL { ?property wdt:P1269 ?facet . } FILTER NOT EXISTS { ?property wdt:P3254 [] . } ?property rdfs:label ?propertyLabel . FILTER(LANGMATCHES(LANG(?propertyLabel), 'en')) } LIMIT 100

What are the categories of Wikidata properties that have been officially adopted (not proposed), and what broader topics do they relate to?

Show me the names of Wikidata property types (like “related to ethnic groups”) that are not under discussion, along with the main topics they describe.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P279> / <http://www.wikidata.org/prop/direct/P31> *) <http://www.wikidata.org/entity/Q18616576> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ar,en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1269> ?var3 . } FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P3254> ?var4 . } ) ) . } LIMIT 100


Question: All properties and values for Albert Einstein

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?value WHERE {
  wd:Q937 ?property ?value .
}

What are all the properties and their values associated with Albert Einstein on Wikidata?

Show me all the data available for Albert Einstein in Wikidata.

SELECT * WHERE { <https://www.wikidata.org/wiki/Q655311> ?var1 ?var2 . } LIMIT 100


Question: What are the Italian names for grammatical categories used to classify lexemes in Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?lexeme ?category ?italianLabel WHERE {
  ?lexeme wdt:P31 ?category .
  ?category rdfs:label ?italianLabel .
  FILTER ( LANG( ?italianLabel ) = "it" )
}
LIMIT 100

Can you list the Italian-language labels for the types of words (like nouns or adjectives) in Wikidata’s lexemes?

Which grammatical categories in Italian are associated with Wikidata lexemes?

SELECT DISTINCT * WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "it" ) ) ) . } } LIMIT 100


Question: What properties are used by J. Newman & Co., and what are their English labels, usage counts, and object labels?

SELECT ?property (SAMPLE(?propLabel) AS ?propertyLabel) (COUNT(?object) AS ?count) (GROUP_CONCAT(?objectLabel; SEPARATOR=", ") AS ?objectLabels) WHERE { wd:Q23649201 ?property ?object . ?propertyItem wikibase:directClaim ?property . ?propertyItem rdfs:label ?propLabel . FILTER(LANG(?propLabel) = "en") . ?object rdfs:label ?objectLabel . FILTER(LANG(?objectLabel) = "en") } GROUP BY ?property

For each property linked to J. Newman & Co., show its English name, how many times it's used, and the English labels of its values.

List the English labels of properties connected to J. Newman & Co., along with how many times each property appears and what their object values are in English.

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 )( GROUP_CONCAT ( ?var5 ; SEPARATOR = ", " ) AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q23649201> ?var1 ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "en" ) ) ) . ?var6 <http://wikiba.se/ontology#directClaim> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } GROUP BY ?var1


Question: Czech labels and descriptions of properties related to "instance of" (P31)

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?prop ?propLabel ?propDescription WHERE {
  wd:P31 wdt:P1659 ?prop .
  ?prop rdfs:label ?propLabel .
  ?prop schema:description ?propDescription .
  FILTER ( LANG( ?propLabel ) = "cs" ) FILTER ( LANG( ?propDescription ) = "cs" )
}

What are the Czech labels and descriptions of properties that are related to the "instance of" property?

Show me the Czech-language labels and descriptions of properties linked via "related property" to the "instance of" property.

SELECT ?var1 ?var2Label ?var3 WHERE { BIND ( <http://www.wikidata.org/prop/statement/P31> AS ?var4 ). ?var5 ?var6 ?var4 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <http://www.wikidata.org/prop/direct/P1659> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "cs" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "cs" ) ) ) . }


Question: Find lexemes with labels containing "einn" in any language.

SELECT ?lexeme ?label WHERE { ?lexeme rdfs:label ?label . FILTER (CONTAINS(LCASE(?label), "einn")) } LIMIT 10

Which lexemes in Wikidata have labels that include the substring "einn"?

Show me up to 10 lexemes whose labels contain the letters "einn", regardless of language.

SELECT ?var1 ?var2Label WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( CONTAINS ( LCASE ( ?var2Label ) , "einn"@en ) ) ) . } LIMIT 10


Question: Type of property P159 in Wikidata

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?type WHERE {
  wd:P159 rdf:type ?type .
}
LIMIT 100

What is the RDF type of the property "place of residence" (P159) on Wikidata?

Tell me the class or type that the property P159 belongs to in Wikidata.

SELECT ?var1 WHERE { <http://www.wikidata.org/prop/direct/P159> ?var2 ?var1 . } LIMIT 100


Question: What are the most common types of entities in Wikidata with their English labels and descriptions?

SELECT ?class ?classLabel ?classDescription WHERE { ?item wdt:P31 ?class . ?class rdfs:label ?classLabel . ?class schema:description ?classDescription . FILTER (LANG(?classLabel) = "en") FILTER (LANG(?classDescription) = "en") } GROUP BY ?class ?classLabel ?classDescription ORDER BY DESC(COUNT(?item)) LIMIT 100

Which classes are most frequently used as types for entities in Wikidata, and what are their English labels and descriptions?

Show me the top 100 most common entity types in Wikidata along with their English names and descriptions.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/Q05Q21503252> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100


Question: German labels of properties and their values for Albert Einstein

SELECT ?property (SAMPLE(?propLabel) AS ?propertyLabel) (COUNT(?value) AS ?valueCount) (GROUP_CONCAT(?valLabel; SEPARATOR=', ') AS ?valueLabels)
WHERE {
  wd:Q937 ?directClaim ?value .
  ?property wikibase:directClaim ?directClaim .
  ?property rdfs:label ?propLabel .
  ?value rdfs:label ?valLabel .
  FILTER(LANG(?propLabel) = 'de')
  FILTER(LANG(?valLabel) = 'de')
}
GROUP BY ?property

What are the German labels of Albert Einstein’s properties and the German labels of the values associated with each property?

List all properties of Albert Einstein in German, along with how many values each has and what those values are labeled in German.

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 )( GROUP_CONCAT ( ?var5 ; SEPARATOR = ", " ) AS ?var5 ) WHERE { <http://www.wikidata.org/entity/statement/Q165721-6F0B4540-90F9-4501-B9BE-B2AE8FEC6E6A> ?var1 ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "de" ) ) ) . ?var6 <http://wikiba.se/ontology#directClaim> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "de" ) ) ) . } GROUP BY ?var1


Question: Japanese labels and descriptions of Wikidata classes that have instances.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT ?class ?label ?description WHERE {
  ?item wdt:P31 ?class .
  ?class rdfs:label ?label .
  ?class schema:description ?description .
  FILTER(LANG(?label) = "ja")
  .
  FILTER(LANG(?description) = "ja")
}
LIMIT 100

What classes in Wikidata have both a Japanese label and a Japanese description, and are used to classify real-world items?

Show me the Japanese names and descriptions of all types (classes) in Wikidata that have at least one instance.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/P31> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "ja" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "ja" ) ) ) . } LIMIT 100


Question: What is the German label, description, and type of the Wikidata property P2541?

SELECT DISTINCT ?propertyLabel ?description ?propertyType WHERE { wd:P2541 rdfs:label ?propertyLabel . FILTER (LANG(?propertyLabel) = "de") . wd:P2541 wikibase:propertyType ?propertyType . wd:P2541 schema:description ?description . FILTER (LANG(?description) = "de") .}

In German, what does property P2541 (service area) mean, and what kind of values does it link to?

Can you show me the German description and property type of the "service area" property on Wikidata?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { BIND ( <http://www.wikidata.org/entity/P2541> AS ?var1 ). ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "de" ) ) ) . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var1 <http://wikiba.se/ontology#propertyType> ?var3 . ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "de" ) ) ) . }


Question: English-labeled classes used as instance-of values in Wikidata

SELECT ?class ?classLabel ?classDescription WHERE { { SELECT DISTINCT ?class WHERE { ?item wdt:P31 ?class . } LIMIT 100 } ?class rdfs:label ?classLabel . ?class schema:description ?classDescription . FILTER (LANG(?classLabel) = "en") FILTER (LANG(?classDescription) = "en") } LIMIT 100

What are the top 100 classes in English that items in Wikidata are instances of?

List up to 100 classes in English with their descriptions that are used as values for the 'instance of' property in Wikidata.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/entity/Q21503252> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100


Question: What is the Wikidata property for "Untertitel" in German, and what type of data does it store?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?property ?propertyLabel ?propertyType WHERE {
  ?property rdfs:label ?propertyLabel .
  FILTER(LANG(?propertyLabel) = 'de')
  .
  FILTER(STR(?propertyLabel) = "Untertitel")
  .
  ?property rdf:type wikibase:Property .
  ?property wikibase:propertyType ?propertyType .
}

Which property in Wikidata has the German label "Untertitel", and what is its property type?

Tell me about the Wikidata property used to represent subtitles in German — what is its identifier and data type?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Untertitel"@de . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var1 <http://wikiba.se/ontology#propertyType> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: Wikidata items with no instance of or subclass of statements

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT(COUNT(*) AS ?count) WHERE {
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P31 ?type .
  }
  FILTER(! BOUND(?type))
  OPTIONAL {
    ?item wdt:P279 ?subclass .
  }
  FILTER(! BOUND(?subclass))
}

How many items in Wikidata are not classified as instances or subclasses of any class?

List the count of unclassified Wikidata entities that have no P31 (instance of) or P279 (subclass of) properties.

SELECT( COUNT (* ) AS ?var1 ) WHERE { OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P31> ?var4 . } FILTER ( ( !( BOUND ( ?var4 ) ) ) ) . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P279> ?var5 . } FILTER ( ( !( BOUND ( ?var5 ) ) ) ) . }


Question: What are the German labels of the properties associated with Denise Slenter, along with the values they point to in German and how many values each has?

SELECT ?property (COUNT(?value) AS ?valueCount) (GROUP_CONCAT(?valueLabel; SEPARATOR=", ") AS ?valueLabelsConcat) ?propertyLabel WHERE { wd:Q43744369 ?property ?value . ?value rdfs:label ?valueLabel . FILTER(LANG(?valueLabel) = "de") . ?propertyItem wikibase:directClaim ?property . ?propertyItem rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "de") . } GROUP BY ?property ?propertyLabel

Show me Denise Slenter’s German-language property values (like occupation, employer, etc.) grouped by property, including how many values each property has and the property names in German.

List all the German labels of Denise Slenter’s Wikidata properties and the German names of the things they link to, combining multiple values into comma-separated lists.

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 )( GROUP_CONCAT ( ?var5 ; SEPARATOR = ", " ) AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q43744369> ?var1 ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "de" ) ) ) . ?var6 <http://wikiba.se/ontology#directClaim> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "de" ) ) ) . } GROUP BY ?var1


Question: What are Anders Krogh’s properties, their labels, how many values each has, and what are those values in English?

SELECT ?property (SAMPLE(?propItemLabel) AS ?propertyLabel) (COUNT(?value) AS ?valueCount) (GROUP_CONCAT(?valueLabel; SEPARATOR=", ") AS ?valueLabels) WHERE { wd:Q4753847 ?property ?value . ?value rdfs:label ?valueLabel . FILTER(LANG(?valueLabel) = "en") . ?propItem wikibase:directClaim ?property . ?propItem rdfs:label ?propItemLabel . FILTER(LANG(?propItemLabel) = "en") . } GROUP BY ?property

For Anders Krogh, which properties are used, what are their English names, how many values do they have, and what are those values?

List all properties associated with Anders Krogh, along with their English labels, the number of values each has, and the English labels of those values.

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 )( GROUP_CONCAT ( ?var5 ; SEPARATOR = ", " ) AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q4753847> ?var1 ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "en" ) ) ) . ?var6 <http://wikiba.se/ontology#directClaim> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } GROUP BY ?var1


Question: Direct properties of the number 5 in Wikidata.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT DISTINCT ?property WHERE {
  wd:Q203 ?property ?value .
  ?prop wikibase:directClaim ?property .
}

What properties are directly associated with the number 5 on Wikidata?

List all direct properties that describe the number 5 in Wikidata.

SELECT DISTINCT ?var1 WHERE { ?var2 <http://www.wikidata.org/entity/Q6422240> ? <http://www.wikidata.org/entity/Q203> . ?var2 ?var1 ?var3 . <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var4 <http://wikiba.se/ontology#directClaim> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are some examples of types or categories that entities in Wikidata belong to?

SELECT ?type (STR(?label) AS ?typeLabel) WHERE { ?item wdt:P31 ?type . ?type rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 100

Can you list some classes (like "Universe" or "metasyntactic variable") that are used to classify items in Wikidata?

Show me a sample of the different kinds of things that can be assigned as types to Wikidata items using the "instance of" property.

SELECT ?var1 ?var2 ?var2Label WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) ( <http://www.wikidata.org/entity/null> ) } ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: List all Wikidata properties, including their subclasses and images.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?propertyLabel ?image ?subclass ?subclassLabel WHERE {
  ?property wdt:P31 wd:Q18616576 .
  OPTIONAL {
    ?property wdt:P279 ?subclass
  }
  .
  OPTIONAL {
    ?property wdt:P18 ?image
  }
}

What are the Wikidata properties, and do any of them have images or parent classes?

Show me the list of items that are Wikidata properties, along with any associated images and their superclass relationships.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1687> <http://www.wikidata.org/entity/P1806> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P279> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } }


Question: Instances of subclasses of abstract

SELECT ?item ?itemLabel WHERE { ?item wdt:P31 ?subclass . ?subclass wdt:P279* wd:Q333291 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 1000

What are some examples of documents that are abstracts or types of abstracts?

List all English-labeled items that are instances of any subclass of an abstract.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q23766486> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 10000


Question: Which Wikidata properties are symmetric?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?property WHERE {
  ?property wdt:P2302 wd:Q21510862 .
}

What properties in Wikidata have the symmetric constraint?

List all properties in Wikidata that are defined as symmetric, meaning if A is related to B, then B is also related to A.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#SymmetricProperty> . }


Question: What properties are used to link entities to the concept "concept" in Wikidata, and what are their English labels, counts, and the French labels of the linked entities?

SELECT ?property (SAMPLE(?propLabel) AS ?propertyLabel) (COUNT(?object) AS ?count) (GROUP_CONCAT(?objLabel; SEPARATOR=", ") AS ?objectLabels) WHERE { wd:Q151885 ?property ?object . ?propertyItem wikibase:directClaim ?property . ?propertyItem rdfs:label ?propLabel . ?object rdfs:label ?objLabel . FILTER(LANG(?propLabel) = "en") FILTER(LANG(?objLabel) = "fr") } GROUP BY ?property

List all properties that connect to the abstract concept "concept", showing their English names, how many times they're used, and the French names of the entities they link to.

For each property that has "concept" as an object, retrieve its English label, the number of connections, and the French labels of the connected entities.

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 )( GROUP_CONCAT ( ?var5 ; SEPARATOR = ", " ) AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q151885> ?var1 ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "fr" ) ) ) . ?var6 <http://wikiba.se/ontology#directClaim> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "fr" ) ) ) . } GROUP BY ?var1


Question: What properties are used to link entities to Cincinnati?

SELECT DISTINCT ?property ?propertyLabel ?propertyDescription WHERE { ?subject ?prop wd:Q43196 . BIND(IRI(REPLACE(STR(?prop), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?property) . ?property a wikibase:Property . ?property rdfs:label ?propertyLabel . ?property schema:description ?propertyDescription . FILTER(LANG(?propertyLabel) = "en") FILTER(LANG(?propertyDescription) = "en") } LIMIT 100

Which properties have Cincinnati as their object in Wikidata, and what are their English labels and descriptions?

Show me the English labels and descriptions of all properties that have Cincinnati as their object in Wikidata.

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/Q43196> . ?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 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100


Question: What classes in Wikidata are instances of themselves?

SELECT ?metaClass WHERE { ?metaClass wdt:P31 ?metaClass } LIMIT 5

Which entities in Wikidata are both a class and an instance of that same class?

Show me any classes in Wikidata that are self-instances, meaning they are typed by themselves.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var1 . } LIMIT 5


Question: What properties and values are associated with the concept of "thing" in Wikidata?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?property ?value WHERE {
  wd:Q35120 ?property ?value .
}
ORDER BY ASC(?property)

What are all the properties and their corresponding values for the Wikidata item representing "thing"?

List all the external identifiers and multilingual descriptions linked to the ontological concept of "thing" (Q35120) in Wikidata, sorted by property name.

SELECT DISTINCT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q35120> ?var1 ?var2 . } ORDER BY ASC( ?var1 )


Question: What properties are used to link entities to Bosnia and Herzegovina in Wikidata, along with their English labels and descriptions?

SELECT DISTINCT ?propEntity ?propEntityLabel ?propEntityDescription WHERE { ?item ?property wd:Q225 . BIND( IRI( REPLACE( STR(?property), "prop/direct/", "entity/" ) ) AS ?propEntity ) . ?propEntity a wikibase:Property . ?propEntity rdfs:label ?propEntityLabel . ?propEntity schema:description ?propEntityDescription . FILTER(LANG(?propEntityLabel) = "en") FILTER(LANG(?propEntityDescription) = "en") } ORDER BY ?propEntityLabel LIMIT 100

Which properties in Wikidata have Bosnia and Herzegovina as their object, and what are their English labels and descriptions?

List all English-labeled properties in Wikidata that are used to connect other items to Bosnia and Herzegovina, including their descriptions.

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/Q225> . ?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 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100


Question: List all Wikidata properties that store string values.

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?property WHERE {
  ?property rdf:type wikibase:Property ; wikibase:propertyType wikibase:String .
}
ORDER BY ?property

Which Wikidata properties have string-type values?

Show me all the properties in Wikidata that are used to store text strings, sorted alphabetically.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> ; <http://wikiba.se/ontology#propertyType> <http://wikiba.se/ontology#String> . } ORDER BY ASC( ?var1 )


Question: What is the English label of the property "Australian Heritage Database Place ID"?

SELECT (SAMPLE(?label) AS ?propertyLabel) WHERE { wd:P3008 rdfs:label ?label . FILTER(LANGMATCHES(LANG(?label), "en")) }

Can you tell me the name of property P3008 in English?

What does the Wikidata property P3008 mean in English?

SELECT( SAMPLE ( ?var1 ) AS ?var2Label ) WHERE { <http://www.wikidata.org/prop/novalue/P3008> <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( LANGMATCHES ( LANG ( ?var1 ) , "en" ) ) ) . }


Question: What are the different language labels for property P123 in Wikidata?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?label WHERE {
  wd:P123 rdfs:label ?label .
}
ORDER BY ?label

In which languages is the property P123 labeled?

Show all the labels of property P123 sorted alphabetically.

SELECT ?var1 WHERE { BIND ( LANG ( ?var2Label ) AS ?var1 ). <http://www.wikidata.org/entity/P123> <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } ORDER BY ASC( ?var1 )


Question: What are all the subclasses in Wikidata?

SELECT ?subclass WHERE { ?subclass wdt:P279 ?parent . }

List all entities that are classified as subclasses of other entities.

Which items in Wikidata are defined as subclasses of something else?

SELECT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/P279> / <http://www.wikidata.org/prop/qualifier/P2439> ) [] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: What are the subclasses of "thing" (wd:Q35120), and what are their own subclasses?

SELECT ?subclass (GROUP_CONCAT(?subsubclass; separator=", ") AS ?subclasses) WHERE { ?subclass wdt:P279 wd:Q35120 . ?subsubclass wdt:P279 ?subclass . } GROUP BY ?subclass

List each abstract category under "entity" and the categories that fall under it in Wikidata.

Show me the two-level hierarchy starting from "thing" — which categories are directly under it, and what categories are under those?

SELECT DISTINCT ?var1 ( GROUP_CONCAT ( ?var2 ) AS ?var3 ) WHERE { { BIND ( ?var2 AS ?var1 ). ?var2 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q35120> . } UNION { BIND ( ?var3 AS ?var1 ). ?var3 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q35120> . ?var2 <http://www.wikidata.org/prop/direct/P279> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1


Question: List all organizations and their types in English.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?organizationInstanceLabel ?organizationClassLabel WHERE {
  ?organizationInstance wdt:P31 ?organizationClass .
  ?organizationClass rdfs:subClassOf * wd:Q43229 .
  ?organizationInstance rdfs:label ?organizationInstanceLabel .
  ?organizationClass rdfs:label ?organizationClassLabel .
  FILTER ( LANG( ?organizationInstanceLabel ) = "en" ) FILTER ( LANG( ?organizationClassLabel ) = "en" )
}

What are some examples of organizations and what class do they belong to in Wikidata?

Show me entities that are instances of organization or its subclasses, along with their English labels.

SELECT ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#subClassOf> * <http://www.wikidata.org/entity/Q43229> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en, fr". } }


Question: What image is associated with James Heath, identified by the SNAC ARK ID w6c2527s?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image WHERE {
  ?item wdt:P3430 "w6c2527s" .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
}

Image of James Heath (SNAC ARK ID: w6c2527s)

Show me the Wikimedia Commons image for the person with SNAC ARK ID w6c2527s.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w6c2527s". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Which Wikidata item has the IMDb character ID ch0010348?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item WHERE {
  ?item wdt:P345 "ch0010348"
}

Who is the character in Wikidata associated with the IMDb ID ch0010348?

Find the Wikidata entity for the IMDb character ID ch0010348.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "string1". }


Question: What films were released in 2016, and what are their IMDb IDs, countries of origin, and Polish Wikipedia page titles?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ( GROUP_CONCAT( DISTINCT ?imdb ; SEPARATOR = ", " ) AS ?imdb_ids ) ?filmPolskiId ?countryLabel ?polishWikipediaTitle WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film wdt:P577 ?pubDate .
  BIND( YEAR( ?pubDate ) AS ?year ) FILTER ( ?year = 2016 ) OPTIONAL {
    ?film wdt:P345 ?imdb
  }
  OPTIONAL {
    ?film wdt:P3495 ?filmPolskiId
  }
  OPTIONAL {
    ?film wdt:P495 ?country .
    ?country rdfs:label ?countryLabel .
    FILTER ( LANG( ?countryLabel ) = "en" )
  }
  OPTIONAL {
    ?polishPage schema:about ?film ; schema:isPartOf <https://pl.wikipedia.org/> .
    BIND( REPLACE( STR( ?polishPage ) , "https://pl.wikipedia.org/wiki/" , "" ) AS ?polishWikipediaTitle )
  }
}
GROUP BY ?imdb ?filmPolskiId ?countryLabel ?polishWikipediaTitle
ORDER BY ASC ( ?imdb )
LIMIT 200

Show me 2016 movies with their country of origin and Polish Wikipedia links — include IMDb IDs and FilmPolski.pl identifiers if available.

List films from 2016 that have Polish Wikipedia articles, along with their production countries and IMDb numbers.

SELECT( GROUP_CONCAT ( DISTINCT ?var1 ) AS ?var2 ) ?var3 ?var4 ?var5 ?var6 ( GROUP_CONCAT ( DISTINCT ?var7 ; SEPARATOR = ", " ) AS ?var8 )( GROUP_CONCAT ( DISTINCT ?var9 ; SEPARATOR = ", " ) AS ?var10 )( GROUP_CONCAT ( DISTINCT ?var11 ; SEPARATOR = ", " ) AS ?var12 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . OPTIONAL { ?var5 <http://www.wikidata.org/prop/direct/P3495> ?var4 . } OPTIONAL { ?var5 <http://www.wikidata.org/prop/direct/P57> ?var13 . } OPTIONAL { ?var5 <http://www.wikidata.org/prop/direct/P345> ?var1 . } OPTIONAL { ?var5 <http://www.wikidata.org/prop/direct/P495> ?var14 . } BIND ( YEAR ( ?var15 ) AS ?var3 ). ?var5 <http://www.wikidata.org/prop/direct/P577> ?var15 . FILTER ( ( ( ?var3 = "2016"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . OPTIONAL { ?var6 <http://schema.org/about> ?var5 . ?var6 <http://schema.org/isPartOf> <https://pl.wikipedia.org/> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var13 <http://www.w3.org/2000/01/rdf-schema#label> ?var9 . ?var14 <http://www.w3.org/2000/01/rdf-schema#label> ?var11 . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var7 . } } GROUP BY ?var3 ?var6 ?var4 ?var5 ORDER BY ASC( ?var1 ) LIMIT 200


Question: What are the Spanish Wiktionary entries that link to Wikidata items without any description or type classification?

SELECT ?item ?itemLabel WHERE { ?page schema:about ?item ; schema:isPartOf <https://es.wiktionary.org/> . MINUS { ?item wdt:P31 [] . } OPTIONAL { ?item schema:description ?desc . } FILTER ( !BOUND(?desc) ) ?item rdfs:label ?itemLabel . FILTER (LANG(?itemLabel) = "es") }

Show me Wikidata items linked from Spanish Wiktionary that lack both a description and an instance-of (P31) statement.

Which incomplete Wikidata items (with no type or description) are referenced by pages on the Spanish Wiktionary?

SELECT ?var1 ?var1Label WHERE { ?var2 <http://schema.org/about> ?var1 ; <http://schema.org/isPartOf> <https://es.wiktionary.org/> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> [] . } OPTIONAL { ?var1 <http://schema.org/description> ?var3 . } FILTER ( ( !( BOUND ( ?var3 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } } GROUP BY ?var1 ?var1Label


Question: Film with AllMovie ID v166465

SELECT ?film WHERE { ?film wdt:P1562 "v166465" .}

What film is identified by the AllMovie title ID v166465?

Find the Wikidata item for the film with AllMovie ID v166465.

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


Question: What are some male given names?

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 ?name ?nameLabel WHERE {
  ?name wdt:P31 wd:Q12308941 .
  FILTER ( STRSTARTS( STR( ?name ) , "http://www.wikidata.org/entity/Q" ) ) .
  ?name rdfs:label ?nameLabel .
  FILTER ( LANG( ?nameLabel ) = "en" )
}

Can you list the male given names that have English labels?

Which entities are classified as male given names in Wikidata?

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


Question: People whose family name is represented as another person, along with their native names.

SELECT DISTINCT ?person ?personLabel ?surnamePerson ?surnamePersonLabel ?nativeName WHERE { ?person wdt:P734 ?surnamePerson . ?surnamePerson wdt:P31 wd:Q5 . OPTIONAL { ?person wdt:P1559 ?nativeName . } ?person rdfs:label ?personLabel . ?surnamePerson rdfs:label ?surnamePersonLabel . FILTER(LANG(?personLabel) = "en") FILTER(LANG(?surnamePersonLabel) = "en") }

Which people have a family name that is modeled as a separate person entity in Wikidata, and what are their native names?

List all individuals linked to a person entity as their family name, including the label of that family name person and their native name if available.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P734> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1559> ?var4 . } ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Drugs interacting with proteins encoded by genes linked to type 2 diabetes

SELECT ?drug ?drugLabel ?gene ?geneLabel ?disease ?diseaseLabel WHERE { ?drug wdt:P129 ?protein . ?gene wdt:P688 ?protein . ?disease wdt:P2293 ?gene . ?drug rdfs:label ?drugLabel . ?gene rdfs:label ?geneLabel . ?disease rdfs:label ?diseaseLabel . FILTER(LANG(?drugLabel) = "en") FILTER(LANG(?geneLabel) = "en") FILTER(LANG(?diseaseLabel) = "en") } LIMIT 100

Which drugs interact with proteins that are encoded by genes associated with genetic diseases?

List drugs, the genes they target via protein interaction, and the diseases those genes are linked to.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P129> ?var4 . ?var2 <http://www.wikidata.org/prop/direct/P688> ?var4 . ?var3 <http://www.wikidata.org/prop/direct/P2293> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: Who are some people who have won the same awards as writers?

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 ?award WHERE {
  ?writer wdt:P106 wd:Q36180 .
  ?writer wdt:P166 ?award .
  ?person wdt:P166 ?award .
  FILTER(?person != ?writer)
  .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}
LIMIT 10

Can you list individuals who received awards that were also won by writers, along with the award names?

Show me other recipients of awards that writers have received, excluding the writers themselves.

SELECT ?var1 ?var1Label ?var2 WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q36180> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "3"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#maxVisited> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P166> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P166> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the names of all cats listed as instances of house cats in Wikidata?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?cat ?catLabel WHERE {
  ?cat wdt:P31 wd:Q146 .
  ?cat rdfs:label ?catLabel .
  FILTER(LANG(?catLabel) = "en")
}

Can you list the English names of entities classified as house cats?

Show me the labels of all items that are instances of the domestic cat species.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q146> . 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/P31> <http://www.wikidata.org/entity/Q146> . }


Question: What are the cities located in current sovereign states that are not historical countries?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?city ?cityLabel ?country ?countryLabel WHERE {
  ?city wdt:P31 wd:Q515 .
  ?city wdt:P17 ?country .
  ?country wdt:P31 wd:Q3624078 .
  FILTER ( NOT EXISTS {
    ?country wdt:P31 wd:Q3024240
  }
  ) .
  ?city rdfs:label ?cityLabel .
  ?country rdfs:label ?countryLabel .
  FILTER ( LANG( ?cityLabel ) = "en" ) .
  FILTER ( LANG( ?countryLabel ) = "en" ) .
}

Show me cities and their countries, where the country is a present-day sovereign state and not a former state.

List all cities in the world that belong to existing sovereign nations, excluding those in defunct countries.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q515> . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . FILTER ( ( NOT EXISTS { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3024240> . } ) ) . ?var2 <http://www.wikidata.org/prop/direct/P155> <http://www.wikidata.org/entity/Q3624078> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the properties of Jehoiakim, their English labels, how many values each has, and what are those values in English?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?property ( SAMPLE( ?propLabel ) AS ?propertyLabel ) ( COUNT( ?value ) AS ?valueCount ) ( GROUP_CONCAT( ?valueLabel ; SEPARATOR = ", " ) AS ?valueLabels ) WHERE {
  wd:Q319034 ?property ?value .
  ?value rdfs:label ?valueLabel .
  FILTER ( LANG( ?valueLabel ) = "en" ) .
  ?propertyItem wikibase:directClaim ?property .
  ?propertyItem rdfs:label ?propLabel .
  FILTER ( LANG( ?propLabel ) = "en" ) .
}
GROUP BY ?property

For each property associated with Jehoiakim, what is its English label, how many values does it have, and what are the English labels of those values?

Show me a summary of all properties used by Jehoiakim, including their English names, the number of values, and the English labels of those values.

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 )( GROUP_CONCAT ( ?var5 ; SEPARATOR = ", " ) AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q319034> ?var1 ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "en" ) ) ) . ?var6 <http://wikiba.se/ontology#directClaim> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } GROUP BY ?var1


Question: Image of the person with SNAC ARK ID w6ft8z2n

SELECT ?image WHERE { ?item wdt:P3430 "w6ft8z2n" . OPTIONAL { ?item wdt:P18 ?image . } }

What is the image associated with John Bird Sumner in Wikidata?

Can you show me the Wikimedia Commons image for the Archbishop of Canterbury identified by the SNAC ARK ID w6ft8z2n?

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w6ft8z2n". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Properties used to describe railway stations in English, with their labels and descriptions.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?p ?pLabel ?pDescription WHERE {
  ?station wdt:P31 wd:Q55488 .
  ?station ?p ?value .
  BIND( IRI( REPLACE( STR( ?p ) , "http://www.wikidata.org/prop/direct/" , "http://www.wikidata.org/entity/" ) ) AS ?propItem ) .
  ?propItem rdfs:label ?pLabel .
  ?propItem schema:description ?pDescription .
  FILTER ( LANG( ?pLabel ) = "en" ) FILTER ( LANG( ?pDescription ) = "en" )
}
LIMIT 100

What properties are used to describe individual railway stations, and what are their English labels and descriptions?

List the English labels and descriptions of all properties that are used to provide information about railway stations.

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/Q55488> . ?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 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100


Question: Supermodels with English Wikipedia labels

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:P106 wd:Q865851 .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}

Who are the supermodels listed in Wikidata with English names?

List the names of all people whose occupation is supermodel, in English.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q865851> . FILTER ( ( REGEX ( ?var1Label , "string1" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr". } }


Question: People employed by the Natural History Museum of Geneva and their birth dates

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?personLabel ?birthDate WHERE {
  ?person wdt:P108 wd:Q663025 .
  ?person rdfs:label ?personLabel .
  OPTIONAL {
    ?person wdt:P569 ?birthDate .
  }
  FILTER ( LANG( ?personLabel ) = "en" )
}

Who are the employees of the Natural History Museum of Geneva, and when were they born?

List the English names and birth dates of all people who have worked at the Natural History Museum of Geneva.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ( COUNT ( DISTINCT ?var4 ) AS ?var3 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q663025> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Reverse"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var5 ; <http://www.bigdata.com/rdf/gas#maxIterations> "1"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#maxVisited> "1"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P108> . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P569> ?var1 . } } GROUP BY ?var1 } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P108> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: People with binary gender (male or female) in Wikidata and their labels.

SELECT ?item ?itemLabel ?gender ?genderLabel ?statementType WHERE { { BIND("mainsnak" AS ?statementType) . ?item p:P21/ps:P21 ?gender . FILTER(?gender IN (wd:Q6581097, wd:Q6581072)) OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } OPTIONAL { ?gender rdfs:label ?genderLabel . FILTER(LANG(?genderLabel) = "en") } } } LIMIT 100

Which people in Wikidata are classified as male or female, and what are their labels and gender labels?

Show me up to 100 individuals from Wikidata who have a binary sex or gender (male or female), along with their English labels and the gender they are assigned to.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 WHERE { { SELECT ?var1 ?var2 ?var5 ?var3 ?var4 WHERE { { BIND ( "mainsnak" AS ?var3 ). ?var1 <http://www.wikidata.org/prop/P21> [ <http://www.wikidata.org/prop/statement/P21> ?var2 ; <http://wikiba.se/ontology#rank> ?var4 ] . } UNION { BIND ( "qualifier" AS ?var3 ). ?var6 <http://www.wikidata.org/prop/qualifier/P21> ?var2 ; <http://wikiba.se/ontology#rank> ?var4 . ?var1 ?var7 ?var6 . } UNION { BIND ( "reference" AS ?var3 ). ?var8 <http://www.wikidata.org/prop/reference/P21> ?var2 . ?var9 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var8 ; <http://wikiba.se/ontology#rank> ?var4 . ?var1 ?var10 ?var9 . } FILTER ( ( ?var2 NOT IN ( <http://www.wikidata.org/entity/Q6581097> , <http://www.wikidata.org/entity/Q6581072> , <http://www.wikidata.org/entity/Q1097630> , <http://www.wikidata.org/entity/Q303479> , <http://www.wikidata.org/entity/Q189125> , <http://www.wikidata.org/entity/Q1052281> , <http://www.wikidata.org/entity/Q2449503> , <http://www.wikidata.org/entity/Q48270> , <http://www.wikidata.org/entity/Q1399232> , <http://www.wikidata.org/entity/Q3277905> , <http://www.wikidata.org/entity/Q746411> , <http://www.wikidata.org/entity/Q350374> , <http://www.wikidata.org/entity/Q660882> , <http://www.wikidata.org/entity/Q44148> , <http://www.wikidata.org/entity/Q43445> , <http://www.wikidata.org/entity/0> , <http://www.wikidata.org/entity/1> ) ) ) . } LIMIT 100 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs, sk, en". } }


Question: Watercourses that are tributaries and have English descriptions.

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/>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?watercourse ?watercourseLabel ?description WHERE {
  ?watercourse wdt:P31 / wdt:P279 * wd:Q355304 .
  ?watercourse rdfs:label ?watercourseLabel .
  ?watercourse schema:description ?description .
  FILTER(LANG(?description) = "en")
  FILTER(LANG(?watercourseLabel) = "en")
  FILTER(REGEX(?description , "^tributary" , "i"))
}

What are the English names and descriptions of watercourses that are tributaries of other rivers?

List the names and English descriptions of all watercourses whose descriptions start with "tributary".

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q355304> . ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . FILTER ( ( REGEX ( ?var2 , "^Tributary" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: Diseases with ICD-10 codes starting with C or D and no assigned medical specialty.

SELECT DISTINCT ?disease ?diseaseLabel WHERE { ?disease wdt:P31 wd:Q12136 . ?disease wdt:P494 ?icdCode . OPTIONAL { ?disease wdt:P1995 ?specialty . } FILTER(!BOUND(?specialty)) FILTER(STRSTARTS(?icdCode, "C") || STRSTARTS(?icdCode, "D")) ?disease rdfs:label ?diseaseLabel . }

Which diseases are classified under ICD-10 codes starting with C or D but do not have a specified medical specialty?

List all diseases that have an ICD-10 code beginning with C or D and are not linked to any health specialty.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q12136> . ?var1 <http://www.wikidata.org/prop/direct/P494> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1995> ?var3 . } BIND ( SUBSTR ( ?var2 ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"2"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var4 ). FILTER ( ( !( BOUND ( ?var3 ) ) ) ) . FILTER ( ( REGEX ( ?var4 , "C|D" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the image associated with Francisco de Goya in Wikidata?

SELECT ?image WHERE { ?person wdt:P3430 "w6s46v39" . OPTIONAL { ?person wdt:P18 ?image . } }

Show the image of the person whose SNAC ARK ID is w6s46v39.

Can you find the Wikimedia Commons image linked to the Social Networks and Archival Context (SNAC) identifier w6s46v39?

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w6s46v39". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: List businesses headquartered in the Czech Republic with their total revenue, net profit, and number of employees.

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 DISTINCT ?business ?revenue ?headquarters ?businessLabel ?netProfit ?employees WHERE {
  ?business wdt:P31 / wdt:P279 * wd:Q4830453 .
  ?business wdt:P159 ?headquarters .
  ?headquarters wdt:P17 wd:Q213 .
  ?business wdt:P2139 ?revenue .
  OPTIONAL {
    ?business wdt:P2295 ?netProfit .
  }
  OPTIONAL {
    ?business wdt:P1128 ?employees .
  }
  ?business rdfs:label ?businessLabel .
  FILTER(LANG(?businessLabel) = "en")
}

What are the total revenue, net profit, and employee count of businesses based in the Czech Republic?

Show me the names, revenues, profits, and staff numbers of companies operating in the Czech Republic.

SELECT ?var1 ?var2 ?var3 ?var1Label ?var4 ?var5 ?var6 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q4830453> . ?var1 <http://www.wikidata.org/prop/direct/P159> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q213> . ?var1 <http://www.wikidata.org/prop/direct/P2139> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2295> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1128> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1278> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs, en". } }


Question: Knots with Ashley Book of Knots number but no IMDb ID

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?knot WHERE {
  ?knot wdt:P1806 [] . MINUS {
    ?knot wdt:P345 [] .
  }
}

Which knots have an Ashley Book of Knots number but are not listed on IMDb?

List all knots identified in the Ashley Book of Knots that do not have an associated IMDb identifier.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1806> [] . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P345> ?var2 . } FILTER ( ( !( BOUND ( ?var2 ) ) ) ) . }


Question: What are the roles in the United States Congress that are types of legislators?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?roleLabel WHERE {
  wd:Q11268 wdt:P527 ?part .
  ?role wdt:P361 ?part ; wdt:P279 wd:Q4175034 .
  ?role rdfs:label ?roleLabel .
  FILTER ( LANG( ?roleLabel ) = "en" )
}

Which positions within the United States Congress are considered subclasses of legislator?

List the official roles in the U.S. Congress that are held by legislators.

SELECT DISTINCT ?var1Label WHERE { <http://www.wikidata.org/entity/Q11268> <http://www.wikidata.org/prop/direct/P527> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P361> ?var2 ; <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q4175034> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the descriptions of Claudia Schiffer in different languages?

SELECT ?description WHERE { wd:Q76717 schema:description ?description . } LIMIT 10

Can you show me how Claudia Schiffer is described in various languages?

In what languages is Claudia Schiffer described as a German model or supermodel?

SELECT * WHERE { <http://www.wikidata.org/entity/Q76717> ?var1 ?var2 . } LIMIT 10


Question: All properties and values associated with Claudia Schiffer in Wikidata.

SELECT ?property ?value WHERE { wd:Q76717 ?property ?value .}

What facts and identifiers are stored in Wikidata about the German supermodel Claudia Schiffer?

Show me every piece of information Wikidata has about Claudia Schiffer, including her descriptions and external IDs.

SELECT * WHERE { <http://www.wikidata.org/entity/Q76717> ?var1 ?var2 . }


Question: What are the dog breeds from Brazil, and what images are available for them?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 (wdt:P31 | wdt:P279*) wd:Q39367 . ?var1 wdt:P495 wd:Q155 . OPTIONAL { ?var1 wdt:P18 ?var2 . } ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en" || LANG(?var1Label) = "") } LIMIT 100

Can you list Brazilian dog breeds along with their pictures from Wikimedia Commons?

Which dog breeds originate in Brazil, and do they have official images on Commons?

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q39367> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { } ?var1 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q155> . } LIMIT 100


Question: Japanese journalists by citizenship

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?journalist ?journalistLabel WHERE {
  ?journalist wdt:P106 wd:Q1930187 .
  ?journalist wdt:P27 wd:Q17 .
  ?journalist rdfs:label ?journalistLabel .
  FILTER(LANG(?journalistLabel) = "en")
}

Who are the journalists who are citizens of Japan?

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


Question: Wikipedia lists with main topic athletics competitor

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 ?list ?listLabel WHERE {
  ?list wdt:P360 wd:Q11513337 .
  ?list rdfs:label ?listLabel .
  FILTER(LANG(?listLabel) = "en")
}
LIMIT 10

What are the English-labeled Wikipedia lists that are about athletics competitors?

Show me the English names of Wikipedia lists whose main topic is an athletics competitor.

SELECT ?var1 ?var2 ( SAMPLE ( ?var3 ) AS ?var4 ) WHERE { { SELECT DISTINCT ?var1 ?var2 WHERE { ?var2 <http://www.wikidata.org/prop/statement/P360> <http://www.wikidata.org/entity/Q11513337> . ?var1 <http://www.wikidata.org/prop/P360> ?var2 . } LIMIT 101 } OPTIONAL { ?var2 ?var3 ?var5 . ?var6 <http://wikiba.se/ontology#qualifier> ?var3 . } } GROUP BY ?var1 ?var2


Question: Which film has the GECD film ID 10851?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?film WHERE {
  ?film wdt:P3367 "10851" .
}

What is the Wikidata item for the film identified by the GECD ID 10851?

I’m looking for the film in Wikidata that is assigned the identifier 10851 in the German Early Cinema Database.

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


Question: Image of James W. Davidson with SNAC ARK ID w6x94vm7

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image WHERE {
  ?item wdt:P3430 "w6x94vm7" .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
}

What is the image associated with the person having the SNAC ARK ID w6x94vm7?

Show me the Wikimedia Commons image for James W. Davidson, identified by SNAC ARK ID w6x94vm7.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w6x94vm7". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Humans who hold a profession

SELECT ?human ?humanLabel WHERE { ?human wdt:P31 wd:Q5 . ?human wdt:P39 ?position . ?position wdt:P31 wd:Q28640 . ?human rdfs:label ?humanLabel . FILTER(LANG(?humanLabel) = "en") }

Which humans have a job that is considered a profession?

List the names of people who hold professional positions.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 ( <http://www.wikidata.org/prop/direct/P39> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q28640> . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . }


Question: Churches in Brittany with French names containing "Église" and their coordinates, excluding those named after people.

SELECT ?church ?churchLabel ?coord WHERE { ?church wdt:P31 wd:Q16970 ; wdt:P131+ wd:Q12130 ; wdt:P625 ?coord . OPTIONAL { ?church rdfs:label ?churchLabel . FILTER (LANG(?churchLabel) = "fr") } FILTER (REGEX(?churchLabel, "Église", "i")) MINUS { ?church wdt:P138 [] } }

What are the French-named church buildings in Brittany that are not named after anyone, and where are they located?

List the coordinates and French labels of all church buildings in Brittany that have "Église" in their name and are not named after a person.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P131> + <http://www.wikidata.org/entity/Q12130> ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q16970> ; <http://www.wikidata.org/prop/direct/P625> ?var2 . OPTIONAL { ?var1 <http://schema.org/description> ?var3 . } FILTER ( ( ( LANG ( ?var1Label ) = "fr" ) ) ) . FILTER ( ( REGEX ( ?var1Label , "string1" ) ) ) . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P138> [] . } }


Question: What is the Wikidata item for the primate called "gibbon"?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT ?item ?description WHERE {
  ?item rdfs:label "gibbon" @en .
  FILTER ( STRSTARTS( STR( ?item ) , "http://www.wikidata.org/entity/Q" ) ) .
  OPTIONAL {
    ?item schema:description ?description .
    FILTER ( LANG( ?description ) = "en" )
  }
}

Can you tell me the description of the gibbon (the primate) in Wikidata?

Which Wikidata entity represents the gibbon, and what is its English description?

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4167410> . ?var1 <http://schema.org/description> "gibbon"@en . }


Question: Mountains in Nepal and their climbing expeditions, elevations, and topographic data

SELECT ?mountain ?mountainLabel ?elevation ?prominence ?isolation ?coordinates ?eventLabel WHERE {  ?mountain wdt:P31 wd:Q8502 ; wdt:P17 wd:Q837 .  ?mountain wdt:P793 ?event .  OPTIONAL { ?mountain wdt:P2044 ?elevation . }  OPTIONAL { ?mountain wdt:P2660 ?prominence . }  OPTIONAL { ?mountain wdt:P2659 ?isolation . }  OPTIONAL { ?mountain wdt:P625 ?coordinates . }  OPTIONAL { ?mountain rdfs:label ?mountainLabel . FILTER(LANG(?mountainLabel) = "en") }  OPTIONAL { ?event rdfs:label ?eventLabel . FILTER(LANG(?eventLabel) = "en") } }

What are the mountains in Nepal, their elevations, and which expeditions have attempted them?

List all mountains in Nepal along with their elevation, prominence, isolation, coordinates, and notable climbing expeditions.

SELECT ?var1 ?var1Label ?var2 ?var3Label ?var4Label ?var5Label ?var6Label ?var7Label ?var8Label ?var9 ?var10 ?var11 ?var12 ?var13Label ?var14 ?var15 ?var16 ?var16Label ?var17Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q8502> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q837> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P30> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P138> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P706> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P186> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2660> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2044> ?var12 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P3018> ?var13 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2659> ?var14 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P208826> ?var15 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P793> ?var16 . } OPTIONAL { ?var16 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1194369> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Most frequent properties linking items to Mold, Wales, excluding those used once.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?propertyLabel ( COUNT( ?item ) AS ?count ) WHERE {
  ?item ?property wd:Q1191195 .
  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 .
  FILTER ( LANG( ?propertyLabel ) = "en" )
}
GROUP BY ?property ?propertyLabel
HAVING ( ?count > 1 )
ORDER BY DESC ( ?count )

What are the most commonly used properties that connect items to the town of Mold in Wales, and how many times are they used?

Show me the properties (with English labels) that link resources to Mold, Wales, ordered by frequency, but only include those used more than once.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q1191195> . 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: Which property links multiple resources to the Brass Era automobile period?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property(COUNT(?item) AS ?count) WHERE {
  ?item ?property wd:Q1911677 .
}
GROUP BY ?property
HAVING(?count > 1)
ORDER BY DESC(?count)

How many web resources are associated with the Brass Era, and what property connects them?

Show me the property that is used to link more than one item to the Brass Era in Wikidata, along with the count.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q1911677> . 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 )