Question: Top 100 public companies by number of employees in Japanese

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 ?company ?companyLabelJa ( COUNT( ?employee ) AS ?employeeCount ) WHERE {
  ?company wdt:P31 wd:Q891723 .
  ?employee wdt:P108 ?company .
  OPTIONAL {
    ?company rdfs:label ?companyLabelJa .
    FILTER ( LANG( ?companyLabelJa ) = "ja" )
  }
}
GROUP BY ?company ?companyLabelJa
ORDER BY DESC ( ?employeeCount )
LIMIT 100

Which public companies have the most employees, and what are their Japanese names?

Show me the top 100 publicly traded companies ranked by how many people work for them, along with their Japanese labels.

SELECT ?var1 ?var2 ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q891723> . ?var3 <http://www.wikidata.org/prop/direct/P108> ?var1 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "ja" ) ) ) . } } GROUP BY ?var1 ?var2 ORDER BY DESC( ?var4 ) LIMIT 100


Question: Gregorian calendar years that are instances of the unit of time "year".

SELECT ?year WHERE { ?year wdt:P31 wd:Q577 ; wdt:P585 ?date . }

What are the years in the Gregorian calendar that have a defined date?

List all specific years (like 1100, 1101, etc.) that are instances of the unit "year" and have a precise date assigned.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q577> ; <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var1 <http://schema.org/description> "year"@en . } GROUP BY ?var1 HAVING ( ( COUNT ( ?var2 ) = "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) )


Question: How many humans have articles on the Italian Wikipedia?

SELECT (COUNT(?human) AS ?count) WHERE { ?human wdt:P31 wd:Q5 . ?article schema:isPartOf <https://it.wikipedia.org/> ; schema:about ?human . }

What is the number of human beings that are the subject of articles on the Italian version of Wikipedia?

Count the number of humans linked to articles on it.wikipedia.org.

SELECT( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var3 <http://schema.org/isPartOf> <https://it.wikipedia.org/> ; <http://schema.org/about> ?var1 . } LIMIT 1


Question: What is the English label and description of the asteroid with Minor Planet Center ID 146535?

SELECT ?item ?itemLabel ?description WHERE { ?item wdt:P5736 "146535" . ?item rdfs:label ?itemLabel . FILTER (LANG(?itemLabel) = "en") OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } }

Find the English name and description of the asteroid identified by the number 146535 in the Minor Planet Center database.

Show me the English label and description for the celestial object with Minor Planet Center ID 146535.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2347> "146535". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Mother of Martha Washington

SELECT ?mother ?motherLabel WHERE { wd:Q191789 wdt:P25 ?mother . ?mother rdfs:label ?motherLabel . FILTER(LANG(?motherLabel) = "en") } LIMIT 50

What is the English name of Martha Washington’s mother?

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


Question: What is the English name of Apple Inc. in Wikidata?

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

Can you tell me the label for the organization Apple Inc.?

What is the official English label for the entity Q312?

SELECT DISTINCT ?var1 ?var2Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q43229> . FILTER ( ( ( STR ( ?var1 ) = "Q312" ) ) ) . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


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 .
}

Show me all the data points (properties and their values) for the physicist Albert Einstein.

List every known fact (property-value pair) about Albert Einstein from Wikidata.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/statement/Q7130423-6F60B4FE-8239-450B-831E-966556618C6F> ?var1 ?var2 . }


Question: List all musical works by Maurice Ravel, sorted by catalog number in descending order, with their catalog codes and titles.

SELECT DISTINCT ?work ?catalogCode ?title WHERE { ?work wdt:P86 wd:Q1178 . OPTIONAL { ?work wdt:P528 ?catalogCode . } OPTIONAL { ?work wdt:P1476 ?title . } } ORDER BY DESC (?catalogCode) LIMIT 111

What are the musical compositions composed by Maurice Ravel, and what are their catalog numbers and titles, ordered from highest to lowest catalog number?

Please provide a list of Maurice Ravel’s musical works, including any known catalog codes (like M 54 or 82) and titles, sorted by catalog number in descending order — show up to 111 works.

SELECT DISTINCT ?var1 ?var2 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P86> <http://www.wikidata.org/entity/Q1178> . OPTIONAL { ?var1 <http://schema.org/description> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P528> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja,fr,en". } } ORDER BY DESC( ?var2 ) LIMIT 111


Question: Who is the person with the IMDb ID nm0366490?

SELECT ?person WHERE { ?person wdt:P345 "nm0366490" .}

What Wikidata entity corresponds to IMDb ID nm0366490?

Tell me the name of the person identified by IMDb ID nm0366490.

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


Question: Journals where Ineke van der Burgt published most frequently, with publication counts and abbreviated names if available.

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 ?publication ?publicationName(COUNT(?work) AS ?count) WHERE {
  ?work wdt:P50 wd:Q30170241 .
  ?work wdt:P1433 ?publication .
  ?publication rdfs:label ?publicationLabel .
  FILTER(LANG(?publicationLabel) = "en")
  OPTIONAL {
    ?publication wdt:P1813 ?shortName .
  }
  BIND(COALESCE(?shortName , ?publicationLabel) AS ?publicationName)
}
GROUP BY ?publication ?publicationName
ORDER BY DESC(?count)

Which journals have published the most works by Ineke van der Burgt, and what are their full names or abbreviations?

List the publications (with preferred names, using abbreviations where available) where Ineke van der Burgt has authored articles, sorted by the number of articles per journal in descending order.

SELECT ?var1 ?var2Label ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q30170241> . ?var3 <http://www.wikidata.org/prop/direct/P1433> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1813> ?var6 . } BIND ( COALESCE ( ?var6 , ?var5Label ) AS ?var2Label ). } GROUP BY ?var1 ?var2Label ORDER BY DESC( ?var4 )


Question: List all cuisines and their labels in all languages from 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 ?cuisine ?label WHERE {
  ?cuisine(wdt:P31 / wdt:P279 *) wd:Q1778821 ; rdfs:label ?label .
}
LIMIT 200

What are the cuisines and their translations in different languages stored in Wikidata?

Show me up to 200 cuisines (including subtypes like national or dish-specific cuisines) along with their labels in every language available in Wikidata.

SELECT * WHERE { { { SELECT ?var1 ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q1778821> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . } } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 200


Question: What banks are headquartered in Ohio?

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 ?bank ?bankLabel WHERE {
  ?bank wdt:P31 wd:Q22687 .
  ?bank wdt:P159 wd:Q1397 .
  ?bank rdfs:label ?bankLabel .
  FILTER ( LANG( ?bankLabel ) = "en" )
}
LIMIT 100

List the names of banks located in the state of Ohio.

Which financial institutions have their headquarters in Ohio?

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


Question: What organizations has Friederike Ehrhart been affiliated with or employed by, including start and end dates, images, and any academic degrees held during those affiliations?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image ?organization ?organizationLabel ?start ?end ?degreeLabel WHERE {
  {
    wd:Q28025534 p:P1416 ?statement .
  } UNION {
    wd:Q28025534 p:P108 ?statement .
  }
  {
    ?statement ps:P1416 ?organization .
  } UNION {
    ?statement ps:P108 ?organization .
  }
  ?organization rdfs:label ?organizationLabel .
  FILTER(LANG(?organizationLabel) = "en")
  OPTIONAL {
    ?organization wdt:P18 ?image .
  }
  OPTIONAL {
    ?statement pq:P580 ?start .
  }
  OPTIONAL {
    ?statement pq:P582 ?end .
  }
  OPTIONAL {
    ?statement pq:P512 ?degree .
    ?degree rdfs:label ?degreeLabel .
    FILTER(LANG(?degreeLabel) = "en")
  }
}

Can you list Friederike Ehrhart’s employers and affiliations, along with the time periods she worked there, any associated images, and the academic degrees she earned during those roles?

Show me all organizations Friederike Ehrhart has been connected to through employment or affiliation, with their English names, the dates of her tenure, images of the organizations, and any academic degrees she obtained while associated with them.

SELECT ?var1 ?var2 ?var3Label ?var4 ?var5 ?var6Label WHERE { { <http://www.wikidata.org/entity/Q28025534> <http://www.wikidata.org/prop/P1416> ?var7 . } UNION { <http://www.wikidata.org/entity/Q28025534> <http://www.wikidata.org/prop/P108> ?var7 . } { ?var7 <http://www.wikidata.org/prop/statement/P1416> ?var2 . } UNION { ?var7 <http://www.wikidata.org/prop/statement/P108> ?var2 . } ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P580> ?var4 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P582> ?var5 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P512> ?var8 . ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } }


Question: Wikidata properties with equivalent external properties like Dublin Core or schema.org

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

Which Wikidata properties have equivalent properties in external ontologies such as Dublin Core, and what are their English labels?

List all English-labeled Wikidata properties that are equivalent to external RDF properties like dct:medium or schema:video.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var4 <http://wikiba.se/ontology#directClaim> ?var1 ; <http://www.wikidata.org/prop/direct/equivalentProperty> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: English labels and descriptions of character roles played by actors in films or TV shows.

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?role ?roleLabel ?roleDescription WHERE {
  ?actor p:P161 ?statement .
  ?statement ps:P161 ?character .
  ?statement pq:P453 ?role .
  ?role rdfs:label ?roleLabel .
  ?role schema:description ?roleDescription .
  FILTER(LANG(?roleLabel) = "en")
  FILTER(LANG(?roleDescription) = "en")
}
LIMIT 100

What are the names and descriptions of character roles that actors have portrayed, as recorded in Wikidata with English labels?

Show me the English names and descriptions of all character roles that are specified as qualifiers in cast member statements on 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/prop/direct/P453> ?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: Entities founded, discovered, published, or officially opened in 433 AD.

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item WHERE {
  ?item ( wdt:P571 | wdt:P575 | wdt:P577 | wdt:P1619 ) ?date .
  FILTER ( ?date >= "0433-01-01T00:00:00Z" ^^ xsd:dateTime && ?date <= "0433-12-31T23:59:59Z" ^^ xsd:dateTime )
}

What works or events were created, discovered, published, or officially opened in the year 433?

List all items from Wikidata that have a date of inception, discovery, publication, or official opening in the year 433.

SELECT DISTINCT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P571> | <http://www.wikidata.org/prop/direct/P575> | <http://www.wikidata.org/prop/direct/P577> | <http://www.wikidata.org/prop/direct/P1619> ) ?var2 . FILTER ( ( ( ?var2 >= "433-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "433-12-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: List all RAL classic colors with their English names.

SELECT ?color ?colorLabel WHERE { ?color wdt:P31 wd:Q17421658 . ?color rdfs:label ?colorLabel . FILTER(LANG(?colorLabel) = "en") } LIMIT 100

What are the English labels of all items that are instances of RAL classic color?

Show me the names of all RAL classic colors in English.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q17421658> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } } LIMIT 100


Question: What are the different ways the Fields Medal is referenced in Wikidata, and what qualifiers are attached to those references?

SELECT ?recipient ?statement ?mainProperty (SAMPLE(?qualifierProperty) AS ?qualifier) WHERE { ?statement ?prop wd:Q28835 . ?recipient ?claim ?statement . ?mainProperty wikibase:statementProperty ?prop . ?mainProperty wikibase:claim ?claim . FILTER (?mainProperty != wd:P31) OPTIONAL { ?statement ?qualifierProperty ?qualifierValue . ?qualifierProperty wikibase:qualifier ?qualifierProperty . } } GROUP BY ?recipient ?statement ?mainProperty LIMIT 101

For each statement linking an entity to the Fields Medal, which property is used and what kind of qualifiers (e.g., date, occupation) are associated with it?

Show all entities connected to the Fields Medal and the properties used to link them, along with any additional details (qualifiers) provided in the statements.

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q28835> . ?var1 ?var7 ?var2 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#claim> ?var7 . FILTER ( ( ( ?var3 != <http://www.wikidata.org/entity/P31> ) ) ) . } LIMIT 101 } OPTIONAL { ?var2 ?var4 ?var8 . ?var9 <http://wikiba.se/ontology#qualifier> ?var4 . } } GROUP BY ?var1 ?var2 ?var3


Question: What are the English labels and alternative names for "postal code"?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?label WHERE {
  {
    wd:Q37447 rdfs:label ?label .
    FILTER(LANGMATCHES(LANG(?label) , 'en'))
  } UNION {
    wd:Q37447 skos:altLabel ?label .
    FILTER(LANGMATCHES(LANG(?label) , 'en'))
  }
}

List all the ways "postal code" is referred to in English, including synonyms.

What are the different terms used in English to describe a postal code?

SELECT * WHERE { <http://www.wikidata.org/entity/Q37447> <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . <http://www.wikidata.org/entity/Q37447> <http://www.w3.org/2004/02/skos/core#altLabel> ?var1 . }


Question: What country and administrative region is Bueng Khun Thale located in?

SELECT DISTINCT ?country ?admin WHERE { wd:Q35820620 wdt:P17 ?country . wd:Q35820620 wdt:P131 ?admin . }

In which country and province is Bueng Khun Thale situated?

Please tell me the country and administrative territorial entity of Bueng Khun Thale.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q35820620> AS ?var2 ). ?var2 ( <http://www.wikidata.org/prop/direct/P30> | <http://www.wikidata.org/prop/direct/P17> | <http://www.wikidata.org/prop/direct/P131> | <http://www.wikidata.org/prop/direct/P376> | <http://www.wikidata.org/prop/direct/P501> )* ?var1 . }


Question: Italian participants in Bilderberg Conference events

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 ?event ?eventLabel ?participant ?participantLabel WHERE {
  ?event wdt:P31 wd:Q184937 ; wdt:P710 ?participant .
  ?participant wdt:P27 wd:Q38 .
  OPTIONAL {
    ?event rdfs:label ?eventLabel .
    FILTER(LANG(?eventLabel) = "en")
  }
  OPTIONAL {
    ?participant rdfs:label ?participantLabel .
    FILTER(LANG(?participantLabel) = "en")
  }
}
ORDER BY DESC(?eventLabel)

Who are the Italian participants in the Bilderberg Group conferences?

List all Bilderberg Conference events and their Italian attendees, with English labels.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label ?var4 ?var5 ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q184937> ; <http://www.wikidata.org/prop/direct/P710> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q38> . OPTIONAL { ?var3 ^ <http://www.wikidata.org/prop/direct/P169> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,nl". } } ORDER BY DESC( ?var1Label )


Question: What movie has the elFilm ID 233232?

SELECT ?movie WHERE { ?movie wdt:P3143 "233232" . }

Which movie on Wikidata is identified by the elFilm film ID 233232?

Find the Wikidata item for the movie with elFilm ID 233232.

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


Question: What is the direct superclass of rice noodle, and what is its own superclass?

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 ?var1 ?var1Label ?var2 WHERE {
  wd:Q1322949 wdt:P279 ?var1 .
  ?var1 rdfs:label ?var1Label .
  FILTER(LANG(?var1Label) = "en")
  OPTIONAL {
    ?var1 wdt:P279 ?var2 .
  }
}

What category does rice noodle belong to, and what broader category includes that?

Show me the immediate parent class of rice noodle and its parent class, in English.

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/Q1322949> ; <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> "1"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#maxVisited> "14"^^<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> "en". } }


Question: Image of the person with SNAC ARK ID w64x5kmc

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

What is the Wikimedia Commons image associated with the SNAC ARK ID w64x5kmc?

Show me the image of the individual identified by the SNAC ARK ID w64x5kmc.

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


Question: Czech organizations with IČO and their English names

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?organization ?organizationLabel ?ico WHERE {
  ?organization wdt:P4156 ?ico .
  ?organization rdfs:label ?organizationLabel .
  FILTER(LANG(?organizationLabel) = "en")
}
ORDER BY ASC(?organization)
LIMIT 100

What are the Czech organizations registered with an IČO, and what are their English labels?

List up to 100 Czech organizations that have a Czech Registration ID (IČO) along with their English names.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4156> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . } ORDER BY DESC( ?var3 ) LIMIT 100 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY DESC( ?var3 )ASC( ?var1 )


Question: List all scholarly works by Karl Zilles, including co-authors, publication venues, types, and earliest publication dates.

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(MIN(?pubDate) AS ?earliestDate) ?work ?workLabel(GROUP_CONCAT(DISTINCT ?typeLabel ; SEPARATOR = ", ") AS ?types)(SAMPLE(?pages) AS ?numberOfPages) ?venue ?venueLabel(GROUP_CONCAT(DISTINCT ?authorLabel ; SEPARATOR = ", ") AS ?coAuthors) WHERE {
  ?work wdt:P50 wd:Q23015723 .
  ?work rdfs:label ?workLabel .
  FILTER(LANG(?workLabel) = "en")
  OPTIONAL {
    ?work wdt:P31 ?type .
    ?type rdfs:label ?typeLabel .
    FILTER(LANG(?typeLabel) = "en")
  }
  OPTIONAL {
    ?work wdt:P577 ?pubDate .
  }
  OPTIONAL {
    ?work wdt:P1104 ?pages .
  }
  OPTIONAL {
    ?work wdt:P1433 ?venue .
    ?venue rdfs:label ?venueLabel .
    FILTER(LANG(?venueLabel) = "en")
  }
  ?work wdt:P50 ?author .
  ?author rdfs:label ?authorLabel .
  FILTER(LANG(?authorLabel) = "en")
}
GROUP BY ?work ?workLabel ?venue ?venueLabel
ORDER BY DESC(?earliestDate)

What are all the publications authored by Karl Zilles, who are his co-authors, in which journals were they published, and when were they first released?

Please provide a comprehensive list of Karl Zilles’s publications, showing the title, publication date, journal, type (e.g., article), number of pages, and all co-authors for each work, sorted from newest to oldest.

SELECT( MIN ( ?var1 ) AS ?var2 ) ?var3 ?var3Label ( GROUP_CONCAT ( DISTINCT ?var4Label ; SEPARATOR = ", " ) AS ?var5 )( SAMPLE ( ?var6 ) AS ?var7 ) ?var8 ?var8Label ( GROUP_CONCAT ( DISTINCT ?var9Label ; SEPARATOR = ", " ) AS ?var10 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q23015723> . ?var3 <http://www.wikidata.org/prop/direct/P50> ?var11 . OPTIONAL { ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var12 . FILTER ( ( ( LANG ( ?var12 ) = "en" ) ) ) . } BIND ( COALESCE ( ?var12 , SUBSTR ( STR ( ?var11 ) ,"32"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var9Label ). OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P31> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } OPTIONAL { BIND ( <http://www.w3.org/2001/XMLSchema#date> ( ?var13 ) AS ?var1 ). ?var3 <http://www.wikidata.org/prop/direct/P577> ?var13 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1104> ?var6 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1433> ?var8 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,es,fr,jp,no,ru,sv,zh". } } GROUP BY ?var3 ?var3Label ?var8 ?var8Label ORDER BY DESC( ?var2 )


Question: What universities did Gully A.P.C. Burns attend?

SELECT ?institution ?institutionLabel ?start ?end ?degreeLabel WHERE { wd:Q35876688 p:P69 ?statement . ?statement ps:P69 ?institution . ?institution rdfs:label ?institutionLabel . FILTER(LANG(?institutionLabel) = "en") OPTIONAL { ?statement pq:P580 ?start . } OPTIONAL { ?statement pq:P582 ?end . } OPTIONAL { ?statement pq:P512 ?degree . ?degree rdfs:label ?degreeLabel . FILTER(LANG(?degreeLabel) = "en") } }

Can you list the educational institutions attended by Gully A.P.C. Burns, along with any start dates, end dates, or academic degrees associated with those attendances?

Which institutions are listed as Gully A.P.C. Burns’s alma maters in Wikidata, and what are the corresponding English labels?

SELECT ?var1 ?var2Label ?var3 ?var4 ?var5Label WHERE { <http://www.wikidata.org/entity/Q35876688> <http://www.wikidata.org/prop/P69> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P69> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var3 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var4 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P512> ?var7 . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } }


Question: What are Elon Musk’s Twitter usernames, their associated languages, and the corresponding Twitter URLs?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?account ?username ?languageCode ?url WHERE {
  VALUES(?account) {(wd:Q317521)
  }
  ?account p:P2002 ?statement .
  ?statement ps:P2002 ?username .
  OPTIONAL {
    ?statement pq:P407 ?language .
    ?language wdt:P424 ?languageCode .
  }
  BIND(IRI(CONCAT("https://twitter.com/" , ?username)) AS ?url)
}

Can you find the Twitter handles and language codes for Elon Musk’s accounts, and generate the full URLs?

Show me the Twitter accounts linked to Elon Musk on Wikidata, including the language they’re in and their web links.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/8063778> ) } ?var1 <http://www.wikidata.org/prop/P2002> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/P2002> ?var6 . OPTIONAL { ?var5 <http://www.wikidata.org/prop/qualifier/P17> ?var7 . ?var7 <http://www.wikidata.org/prop/direct/P297> ?var4 . } OPTIONAL { ?var5 ( <http://www.wikidata.org/prop/qualifier/P407> | <http://www.wikidata.org/prop/qualifier/P2439> | <http://www.wikidata.org/prop/qualifier/P424> | <http://www.wikidata.org/prop/qualifier/P364> | <http://www.wikidata.org/prop/qualifier/P37> | <http://www.wikidata.org/prop/qualifier/P1412> ) ?var8 . ?var8 <http://www.wikidata.org/prop/direct/P424> ?var3 . } BIND ( IRI ( CONCAT ( "string1", ?var6 ) ) AS ?var2 ). }


Question: What Wikidata item has the IMDb ID tt6668932?

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

Which film on Wikidata is identified by the IMDb identifier tt6668932?

I’m looking for the Wikidata entry for the movie with IMDb ID tt6668932 — can you find it?

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


Question: What are the type localities for known minerals and stratigraphic units in geology?

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

Which minerals have their type locality defined in Wikidata, and where are those locations?

List the English names of places where geological specimens were first identified, along with the mineral or rock unit they define.

SELECT ?var1 ?var2 ?var2Label WHERE { 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/P2695> ?var2 . } }


Question: What places are located within the municipality of Grafenau, Germany?

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 ?place ?placeLabel WHERE {
  ?place wdt:P131 wd:Q507945 .
  OPTIONAL {
    ?place rdfs:label ?placeLabel .
    FILTER ( LANG( ?placeLabel ) = "en" )
  }
}

Which buildings or locations are administratively part of Grafenau in Bavaria?

List all the places in Grafenau, including buildings and local features, that fall under its administrative territory.

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


Question: People who worked in Madrid

SELECT ?person ?personLabel WHERE { ?person p:P937 ?statement . ?statement ps:P937 wd:Q2807 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = 'en') } LIMIT 101

Who are the people that have worked in Madrid?

List up to 101 individuals whose work location is Madrid, along with their English names.

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


Question: What papers or articles are about dynamic programming?

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 ?item ?itemLabel WHERE {
  ?item wdt:P921 wd:Q380679 .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
ORDER BY ?itemLabel

Which academic works have dynamic programming as their main subject?

List the English-language titles of works that focus on dynamic programming.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q380679> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var2 )ASC( ?var3 )


Question: What are the key details about Michael Jackson, such as his birth date, death date, occupation, and genre?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?var1 ?var2 ?var3Label ?var4 WHERE {
  VALUES ?var1 {
    wd:Q2831
  }
  ?var1 wdt:P31 wd:Q5 .
  VALUES ?var2 {
    wdt:P19 wdt:P20 wdt:P569 wdt:P570 wdt:P106 wdt:P17 wdt:P195 wdt:P136
  }
  ?var1 ?var2 ?var4 .
  OPTIONAL {
    ?var3 wikibase:directClaim ?var2 .
    ?var3 rdfs:label ?var3Label .
    FILTER ( LANG( ?var3Label ) = "en" )
  }
}
ORDER BY ASC ( ?var3Label )
LIMIT 100

Can you list Michael Jackson’s occupation, place of birth, date of death, and musical genres, along with the English labels of these properties?

Show me Michael Jackson’s main attributes like where he was born, when he was born and died, what he did for a living, and what music genres he’s associated with, with property names in English.

SELECT ?var1 ?var2 ?var3Label ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q2831> AS ?var5 ). ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "string1"@en . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . { ?var1 ?var2 ?var4 . FILTER ( ( isLITERAL ( ?var4 ) && ( LANG ( ?var4 ) = "" ) || LANGMATCHES ( LANG ( ?var4 ) , "EN" ) ) ) . OPTIONAL { ?var3 <http://wikiba.se/ontology#directClaim> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } } UNION { ?var1 ?var2 ?var6 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( !( isLITERAL ( ?var6 ) ) ) ) . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . OPTIONAL { ?var3 <http://wikiba.se/ontology#directClaim> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } } } ORDER BY ASC( ?var3Label ) LIMIT 1000


Question: What are the details of the joint list "Fri samverkan Gemensam lista, Vapaa Yhteistoiminta Yhteislista" in the 2017 Finnish municipal elections, including its type, chairperson, member count, and official website?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?jointList ?jointListLabel ?shortName ?logo ?website ?color ?inception ?chairperson ?chairpersonLabel ?startDate ?endDate ?memberCount ?memberCountDate WHERE {
  BIND(wd:Q29370166 AS ?jointList)
  OPTIONAL {
    ?jointList rdfs:label ?jointListLabel .
  }
  OPTIONAL {
    ?jointList wdt:P1813 ?shortName .
  }
  ?jointList p:P31 ?statement1 .
  ?statement1 ps:P31 ?instanceOf .
  OPTIONAL {
    ?instanceOf rdfs:label ?instanceOfLabel .
  }
  OPTIONAL {
    ?jointList p:P154 ?statement2 .
    ?statement2 ps:P154 ?logo .
  }
  OPTIONAL {
    ?jointList p:P856 ?statement3 .
    ?statement3 ps:P856 ?website .
  }
  OPTIONAL {
    ?jointList wdt:P465 ?color .
  }
  OPTIONAL {
    ?jointList wdt:P571 ?inception .
  }
  OPTIONAL {
    ?jointList p:P488 ?chairStatement .
    ?chairStatement ps:P488 ?chairperson .
    OPTIONAL {
      ?chairperson rdfs:label ?chairpersonLabel .
    }
    OPTIONAL {
      ?chairStatement pq:P580 ?startDate .
    }
    OPTIONAL {
      ?chairStatement pq:P582 ?endDate .
    }
  }
  OPTIONAL {
    ?jointList p:P2124 ?memberStatement .
    ?memberStatement ps:P2124 ?memberCount .
    ?memberStatement pq:P585 ?memberCountDate .
  }
}

Can you tell me about the organization "Fri samverkan Gemensam lista, Vapaa Yhteistoiminta Yhteislista" — what is its short name, color, logo, and when was it founded?

Who chaired the Finnish municipal election joint list "Fri samverkan Gemensam lista, Vapaa Yhteistoiminta Yhteislista", and during what time period? Also, how many members did it have and when was that recorded?

CONSTRUCT { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label ; <http://www.wikidata.org/prop/direct/P1813> ?var2 ; <http://www.wikidata.org/prop/statement/P31> ?var3 ; <http://www.wikidata.org/prop/statement/P154> ?var4 ; <http://www.wikidata.org/prop/statement/P856> ?var5 ; <http://www.wikidata.org/prop/direct/P465> ?var6 ; <http://www.wikidata.org/prop/direct/P571> ?var7 . ?var1 <http://www.wikidata.org/prop/P488> ?var8 . ?var8 <http://www.wikidata.org/prop/statement/P488> ?var9 . ?var9 <http://www.w3.org/2000/01/rdf-schema#label> ?var9Label . ?var8 <http://www.wikidata.org/prop/qualifier/P580> ?var10 . ?var8 <http://www.wikidata.org/prop/qualifier/P582> ?var11 . ?var1 <http://www.wikidata.org/prop/P2124> ?var12 . ?var12 <http://www.wikidata.org/prop/qualifier/P585> ?var13 . ?var12 <http://www.wikidata.org/prop/statement/P2124> ?var14 } WHERE { BIND ( <http://www.wikidata.org/entity/Q20252009> AS ?var15 ). BIND ( <http://www.wikidata.org/entity/Q29370166> AS ?var1 ). ?var16 <http://www.wikidata.org/prop/direct/P361> ?var15 . ?var16 <http://www.wikidata.org/prop/direct/P726> ?var1 . ?var1 <http://www.wikidata.org/prop/P31> [ <http://www.wikidata.org/prop/statement/P31> ?var3 ] . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1813> ?var2 . } ?var16 <http://www.wikidata.org/prop/direct/P1001> ?var17 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fi". } }


Question: Which property is most commonly used to classify entities as operators?

SELECT ?propertyItem (COUNT(?item) AS ?count) WHERE { ?item ?property wd:Q131030 . ?propertyItem wikibase:directClaim ?property . ?propertyItem a wikibase:Property . } GROUP BY ?propertyItem ORDER BY DESC(?count) LIMIT 1

What property is used the most times to indicate that something is an operator in Wikidata?

Show me the property that is used to classify the most entities as operators, along with how many times it's used.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q131030> . ?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: Human settlements in Anglesey that are part of the United Kingdom.

Which villages in Anglesey are located within the United Kingdom?

List all the human settlements from this list of Anglesey locations that are in the UK.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q486972> . ?var1 <http://www.wikidata.org/prop/direct/P131> * ?var3 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13406463> . } FILTER ( ( ?var3 IN ( <http://www.wikidata.org/entity/Q145> ) ) ) . FILTER ( ( ?var1 IN ( <http://www.wikidata.org/entity/Q168159> , <http://www.wikidata.org/entity/Q5177811> , <http://www.wikidata.org/entity/Q3021583> , <http://www.wikidata.org/entity/Q708421> , <http://www.wikidata.org/entity/Q335133> , <http://www.wikidata.org/entity/Q3439729> , <http://www.wikidata.org/entity/Q4862480> , <http://www.wikidata.org/entity/Q3097335> , <http://www.wikidata.org/entity/Q4763395> , <http://www.wikidata.org/entity/Q6128760> , <http://www.wikidata.org/entity/Q3675975> , <http://www.wikidata.org/entity/Q7201721> , <http://www.wikidata.org/entity/Q7498813> , <http://www.wikidata.org/entity/Q5081465> , <http://www.wikidata.org/entity/Q20734117> , <http://www.wikidata.org/entity/Q4996547> , <http://www.wikidata.org/entity/Q3402701> , <http://www.wikidata.org/entity/Q914316> , <http://www.wikidata.org/entity/Q18535824> , <http://www.wikidata.org/entity/Q26717999> , <http://www.wikidata.org/entity/Q5113362> , <http://www.wikidata.org/entity/Q2407951> , <http://www.wikidata.org/entity/Q4763399> , <http://www.wikidata.org/entity/Q4797828> , <http://www.wikidata.org/entity/Q23304247> , <http://www.wikidata.org/entity/Q540512> , <http://www.wikidata.org/entity/Q19609495> , <http://www.wikidata.org/entity/Q33652535> , <http://www.wikidata.org/entity/Q6219152> , <http://www.wikidata.org/entity/Q7719140> , <http://www.wikidata.org/entity/Q13644942> , <http://www.wikidata.org/entity/Q4763389> , <http://www.wikidata.org/entity/Q3401534> , <http://www.wikidata.org/entity/Q5726659> , <http://www.wikidata.org/entity/Q6679509> , <http://www.wikidata.org/entity/Q7323750> , <http://www.wikidata.org/entity/Q3945679> , <http://www.wikidata.org/entity/Q6633550> , <http://www.wikidata.org/entity/Q4763387> , <http://www.wikidata.org/entity/Q6083890> , <http://www.wikidata.org/entity/Q18708797> , <http://www.wikidata.org/entity/Q13582500> , <http://www.wikidata.org/entity/Q17742135> , <http://www.wikidata.org/entity/Q9001581> , <http://www.wikidata.org/entity/Q5756682> , <http://www.wikidata.org/entity/Q24636564> , <http://www.wikidata.org/entity/Q25080041> , <http://www.wikidata.org/entity/Q31068449> , <http://www.wikidata.org/entity/Q23700423> , <http://www.wikidata.org/entity/Q7592986> ) ) ) . }


Question: Total citations to publications by Laurentian University employees, grouped by year and author.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?year ( SUM( ?citationRatio ) AS ?totalCitations ) ?authorLabel WHERE {
  {
    SELECT ?authorLabel ?publication ?year ( COUNT( ?citation ) AS ?citationRatio ) WHERE {
      ?author wdt:P108 wd:Q3551432 .
      ?publication wdt:P50 ?author .
      ?publication wdt:P577 ?date .
      FILTER ( BOUND( ?date ) ) BIND( YEAR( ?date ) AS ?year ) ?citation wdt:P2860 ?publication .
      ?author rdfs:label ?authorLabel .
      FILTER ( LANG( ?authorLabel ) = "en" )
    }
    GROUP BY ?publication ?authorLabel ?year
  }
}
GROUP BY ?year ?authorLabel
ORDER BY ASC ( ?year )

How many citations did each author affiliated with Laurentian University receive per year for their publications?

Show me the total number of citations received by each Laurentian University-affiliated author in each year, along with their names in English.

SELECT ?var1 ( SUM ( ?var2 ) AS ?var3 ) ?var4Label WHERE { { SELECT ?var4Label ?var5 ?var1 ( ( COUNT ( DISTINCT ?var6 )/COUNT ( DISTINCT ?var7 ) ) AS ?var2 ) WHERE { { ?var8 <http://www.wikidata.org/prop/direct/P108> <http://www.wikidata.org/entity/Q3551432> . } UNION { ?var8 <http://www.wikidata.org/prop/direct/P1416> [ <http://www.wikidata.org/prop/direct/P361> * <http://www.wikidata.org/entity/Q3551432> ] . } BIND ( STR ( YEAR ( ?var9 ) ) AS ?var1 ). ?var5 ( <http://www.wikidata.org/prop/direct/P50> | <http://www.wikidata.org/prop/direct/P2093> ) ?var7 . ?var5 <http://www.wikidata.org/prop/direct/P50> ?var8 . ?var6 <http://www.wikidata.org/prop/direct/P2860> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P577> ?var9 . ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } GROUP BY ?var5 ?var4Label ?var1 } } GROUP BY ?var1 ?var4Label ORDER BY ASC( ?var1 )


Question: Main subjects of works by Richard Talbert, with counts

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 ?count ?subjectLabel WHERE {
  {
    SELECT ?subject(COUNT(?work) AS ?count) WHERE {
      ?work wdt:P50 wd:Q3891594 .
      ?work wdt:P921 ?subject .
    }
    GROUP BY ?subject
    ORDER BY DESC(?count)
  }
  ?subject rdfs:label ?subjectLabel .
  FILTER(LANG(?subjectLabel) = "en")
}

What are the main topics of the books and articles written by Richard Talbert, and how many works are there for each topic?

Show me the English labels of the main subjects of Richard Talbert’s works, along with how many works each subject appears in, sorted by most frequent first.

SELECT ?var1 ?var2Label ?var3Label WHERE { { SELECT ?var4 ( COUNT ( ?var5 ) AS ?var1 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q3891594> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . } GROUP BY ?var4 ORDER BY DESC( ?var1 ) } BIND ( SUBSTR ( ?var6Label ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"60"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3Label ). ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q3891594> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . }


Question: What are all the national roads in mainland France with defined endpoints, sorted by their road number in numerical order?

SELECT DISTINCT ?road ?roadLabel WHERE { ?road wdt:P31 wd:Q1426271 . MINUS { VALUES ?territory { wd:Q17012 wd:Q17054 wd:Q3769 wd:Q17070 wd:Q34617 wd:Q17063 wd:Q25362 wd:Q126125 } ?road wdt:P131 ?territory . } ?road wdt:P609 [] . OPTIONAL { ?road wdt:P1824 ?roadNumber . } BIND( STRLEN( STR( ?roadNumber ) ) AS ?len ) . BIND( SUBSTR( STR( ?roadNumber ) , 1 , 1 ) AS ?prefix ) . BIND( SUBSTR( STR( ?roadNumber ) , 2 , ?len - 1 ) AS ?numberPart ) . BIND( REPLACE( SUBSTR( ?numberPart , 1 , 4 ) , "[A-Za-z ]" , "" ) AS ?cleanNumber ) . BIND( STRLEN( ?cleanNumber ) AS ?numLen ) . BIND( CONCAT( IF( ?numLen = 1 , "000" , IF( ?numLen = 2 , "00" , IF( ?numLen = 3 , "0" , "" ) ) ) , ?cleanNumber ) AS ?paddedNumber ) . BIND( CONCAT( ?prefix , ?paddedNumber ) AS ?sortKey ) . BIND( CONCAT( ?sortKey , SUBSTR( ?roadNumber , ?numLen + 2 , ?len - ?numLen - 1 ) ) AS ?fullSortKey ) . ?road rdfs:label ?roadLabel . FILTER( LANGMATCHES( LANG( ?roadLabel ) , "fr" ) ) } ORDER BY ASC(?fullSortKey)

List French national roads excluding overseas territories, ordered by their route number (e.g., N1, N10, N100) in correct numeric sequence.

Show me the list of route nationale roads in France (not in Guadeloupe, Martinique, etc.) that have a start and end point, sorted by their number as if it were a number, not text.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P16> <http://www.wikidata.org/entity/Q1426271> . MINUS { VALUES ( ?var2 ) { ( <http://www.wikidata.org/entity/Q17012> ) ( <http://www.wikidata.org/entity/Q17054> ) ( <http://www.wikidata.org/entity/Q3769> ) ( <http://www.wikidata.org/entity/Q17070> ) ( <http://www.wikidata.org/entity/Q34617> ) ( <http://www.wikidata.org/entity/Q17063> ) ( <http://www.wikidata.org/entity/Q25362> ) ( <http://www.wikidata.org/entity/Q126125> ) } ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . } ?var1 <http://www.wikidata.org/prop/direct/P609> [] . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1824> ?var3 . } BIND ( STRLEN ( STR ( ?var3 ) ) AS ?var4 ). BIND ( SUBSTR ( STR ( ?var3 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var5 ). BIND ( SUBSTR ( STR ( ?var3 ) ,"2"^^<http://www.w3.org/2001/XMLSchema#integer> , ( ?var4 -"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var6 ). BIND ( REPLACE ( SUBSTR ( STR ( ?var6 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"4"^^<http://www.w3.org/2001/XMLSchema#integer> ) , "[A-Za-z ]", "" ) AS ?var7 ). BIND ( STRLEN ( STR ( ?var7 ) ) AS ?var8 ). BIND ( CONCAT ( IF ( ( ?var8 = "1"^^<http://www.w3.org/2001/XMLSchema#integer> ), "000", IF ( ( ?var8 = "2"^^<http://www.w3.org/2001/XMLSchema#integer> ), "00", IF ( ( ?var8 = "3"^^<http://www.w3.org/2001/XMLSchema#integer> ), "0", "" ) ) ) , STR ( ?var7 ) ) AS ?var9 ). BIND ( CONCAT ( STR ( ?var5 ) , STR ( ?var7 ) ) AS ?var10 ). BIND ( STRLEN ( STR ( ?var10 ) ) AS ?var11 ). BIND ( ( ?var4 - ?var11 ) AS ?var12 ). BIND ( SUBSTR ( STR ( ?var3 ) , ( ?var11 +"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) , ?var12 ) AS ?var13 ). BIND ( CONCAT ( STR ( ?var5 ) , STR ( ?var9 ) , STR ( ?var13 ) ) AS ?var14 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } } ORDER BY ASC( ?var14 )


Question: What are all the broader categories that collecting belongs to, including indirect parent classes?

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

What classes is the activity of collecting a subclass of?

Can you list all the superclasses of collecting in the Wikidata ontology?

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


Question: Who is the Czech Olympic Committee athlete with ID 3794, and what is their description?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT ?athlete ?athleteLabel ?description WHERE {
  ?athlete wdt:P4062 "3794" .
  OPTIONAL {
    ?athlete rdfs:label ?athleteLabel .
    FILTER(LANG(?athleteLabel) = "en")
  }
  OPTIONAL {
    ?athlete schema:description ?description .
    FILTER(LANG(?description) = "en")
  }
}

What is the name and English description of the athlete with Czech Olympic Committee ID 3794?

Please provide the name and English description of the athlete identified by the Czech Olympic Committee ID 3794.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4062> "3794". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What properties are used to describe William Brewster in Wikidata?

SELECT ?propertyLabel ?description WHERE { wd:Q2119625 ?prop ?value . 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 ?description . FILTER(LANG(?propertyLabel) = "en") FILTER(LANG(?description) = "en") } ORDER BY ?propertyLabel

Can you list the English labels and descriptions of all properties associated with the ornithologist William Brewster?

What do we know about William Brewster? Show the English labels and descriptions of the Wikidata properties that describe him.

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/Q2119625> . ?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 Wikidata item has the IMDb ID tt1792812?

SELECT ?movie WHERE { ?movie wdt:P345 "tt1792812" . }

Which movie on Wikidata is identified by the IMDb identifier tt1792812?

Find the Wikidata entity for the film with IMDb ID tt1792812.

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


Question: Spanish poets born between 1900 and 1980

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?poet ?poetLabel ?birthDate WHERE {
  ?poet wdt:P106 wd:Q49757 .
  ?poet wdt:P27 wd:Q29 .
  ?poet wdt:P569 ?birthDate .
  FILTER ( ?birthDate > "1900-01-01" ^^ xsd:date && ?birthDate < "1980-06-30" ^^ xsd:date ) .
  ?poet rdfs:label ?poetLabel .
  FILTER ( lang( ?poetLabel ) = "en" )
}
LIMIT 100

Who are the Spanish poets born after January 1, 1900, and before June 30, 1980?

List the names and birth dates of poets from Spain who were born in the first 80 years of the 20th century, with English labels.

SELECT ?var1 ?var1Label ?var2 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,es". } ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q49757> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q29> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . FILTER ( ( ( ?var2 > "1900-01-1"^^<http://www.w3.org/2001/XMLSchema#date> ) && ( ?var3 < "1980-06-30"^^<http://www.w3.org/2001/XMLSchema#date> ) ) ) . } LIMIT 100


Question: List all musical ensembles and their English labels.

SELECT ?ensemble ?label WHERE { ?ensemble (wdt:P31/wdt:P279*) wd:Q2088357 . ?ensemble rdfs:label ?label . FILTER(LANG(?label) = "en") }

What are the English names of all musical ensembles and their subclasses?

Show me the names in English of all groups that are musical ensembles or subtypes of musical ensembles.

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


Question: Chemical compounds and their chemistry-related property values

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?compound ?value ?property WHERE {
  ?propertyItem wdt:P31 wd:Q21294996 .
  ?propertyItem wikibase:directClaim ?property .
  {
    ?compound wdt:P279 wd:Q11173 .
  } UNION {
    ?compound wdt:P31 wd:Q11173 .
  }
  ?compound ?property ?value .
}
LIMIT 10000

What are the chemical compounds and the values of properties related to chemistry that are associated with them?

List all chemical compounds along with the values of any chemistry-related properties assigned to them.

SELECT ?var1 ?var2 ?var3 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q21294996> . ?var4 <http://wikiba.se/ontology#directClaim> ?var3 . { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q11173> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11173> . } ?var1 ?var3 ?var2 . } GROUP BY ?var1 ?var3 ?var2 LIMIT 10000


Question: People and the languages they speak, written, or signed

SELECT ?person ?language WHERE { ?person wdt:P1412 ?language . } LIMIT 100

Which languages do people speak, write, or sign according to Wikidata?

List people along with the languages they use, including native and non-native languages.

SELECT ?var1 ?var2 ?var2Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "atj". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1412> ?var2 . } } LIMIT 100


Question: Zoos with their English names and images from Wikimedia Commons.

SELECT ?zoo ?zooLabel ?image WHERE { ?zoo wdt:P31 wd:Q43501 . OPTIONAL { ?zoo wdt:P18 ?image . } OPTIONAL { ?zoo rdfs:label ?zooLabel . FILTER(LANG(?zooLabel) = "en") } } LIMIT 100

What are the names of zoos and which ones have images on Wikimedia Commons?

Show me a list of zoos, their English names, and any available images.

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


Question: What property is most commonly used to classify items as museums in Wikidata?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?property(COUNT(?item) AS ?count) WHERE {
  ?item ?propertyClaim wd:Q33506 .
  ?property wikibase:directClaim ?propertyClaim .
  ?property rdf:type wikibase:Property .
}
GROUP BY ?property
ORDER BY DESC(?count)
LIMIT 1

Which Wikidata property has the highest number of statements asserting that something is a museum?

How is the museum entity (Q33506) most frequently typed in Wikidata, and which property is used for it?

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q33506> . ?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 types of categories does Mount Everest belong to?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?type WHERE {
  wd:Q513 wdt:P31 ?type .
}

Is Mount Everest classified as a mountain or a tourist attraction?

Can you tell me the class or type of Mount Everest in Wikidata?

SELECT * WHERE { <http://www.wikidata.org/entity/0237736753> <http://www.wikidata.org/prop/direct/P31> ?var1 . }


Question: List some examples of mountains.

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 ?mountain ?mountainLabel WHERE {
  ?mountain wdt:P31 wd:Q8502 .
  ?mountain rdfs:label ?mountainLabel .
  FILTER(LANG(?mountainLabel) = 'en')
}
LIMIT 10

What are some real-world mountains that are classified as instances of the class 'mountain'?

Show me 10 mountains from Wikidata, along with their English names.

SELECT * WHERE { <http://www.wikidata.org/entity/31> <http://www.wikidata.org/prop/direct/P31> ?var1 . }


Question: What are the 100 most notable populated places in the world, ranked by how many external databases link to them?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?population ( COUNT( ?id ) AS ?identifierCount ) WHERE {
  ?item wdt:P1082 ?population .
  FILTER ( ISNUMERIC( ?population ) ) VALUES ?idProp {
    wdt:P214 wdt:P227 wdt:P244 wdt:P268 wdt:P1566
  }
  ?item ?idProp ?id .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
GROUP BY ?item ?itemLabel ?population
ORDER BY DESC ( ?identifierCount ) ASC ( ?itemLabel )
LIMIT 100

Can you list the top 100 cities and countries by population that have the most external identifiers like VIAF, GND, or GeoNames IDs, sorted by identifier count?

Show me the 100 most linked-to populated places with their population and how many external references they have, ordered by reference count.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 ; <http://wikiba.se/ontology#identifiers> ?var3 . } ORDER BY DESC( ?var3 ) LIMIT 100 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ru,en". } } ORDER BY DESC( ?var3 )ASC( ?var1 )


Question: Most used property linking items to NATO

SELECT ?directProperty (COUNT(?directProperty) AS ?count) WHERE { ?item ?statementProperty wd:Q7184 . ?directProperty wikibase:directClaim ?statementProperty . ?directProperty rdf:type wikibase:Property . } GROUP BY ?directProperty ORDER BY DESC(?count) LIMIT 1

Which property is most commonly used to associate items with NATO?

Show me the property that connects the most items to NATO.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q7184> . ?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: Music awards and their nominees

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 ?musicAward ?musicAwardLabel ?nominee ?nomineeLabel WHERE {
  ?musicAward wdt:P279 wd:Q1364556 .
  ?nominee wdt:P1411 ?musicAward .
  ?musicAward rdfs:label ?musicAwardLabel .
  ?nominee rdfs:label ?nomineeLabel .
  FILTER(LANG(?musicAwardLabel) = "en")
  FILTER(LANG(?nomineeLabel) = "en")
}

Which music awards have nominees, and who were nominated for them?

List all music awards and the artists or groups nominated for each award.

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


Question: Wikidata properties for Italian author identifiers

SELECT ?property ?propertyLabel WHERE { ?property wdt:P17 wd:Q38 . ?property skos:prefLabel ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") } LIMIT 100

What are the Wikidata properties used to identify authors in Italian institutions?

List the English-labeled Wikidata properties that are associated with Italy and used for author identification in Italian academic repositories.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q38> . } LIMIT 100


Question: List of campsites in Wikidata

SELECT ?campsite ?campsiteLabel WHERE { ?campsite wdt:P31 wd:Q832778 . ?campsite rdfs:label ?campsiteLabel . FILTER(LANG(?campsiteLabel) = "en") } LIMIT 100

Show me the names of all places that are used as campsites, in English.

SELECT ?var1 ?var1Label WHERE { 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/Q832778> . } LIMIT 100


Question: Mountains in India with their coordinates and images

SELECT DISTINCT ?mountain ?mountainLabel ?coordinates ?image WHERE {  ?mountain wdt:P31 wd:Q8502 .  ?mountain wdt:P17 wd:Q668 .  OPTIONAL { ?mountain wdt:P625 ?coordinates . }  OPTIONAL { ?mountain wdt:P18 ?image . }  OPTIONAL { ?mountain rdfs:label ?mountainLabel . FILTER(LANG(?mountainLabel) = "en") } } ORDER BY ASC(?mountainLabel)

What are the mountains in India, and what are their geographic coordinates and Wikimedia Commons images?

List all mountains located in India, including their English names, geographic coordinates (if available), and associated images from Wikimedia Commons, sorted alphabetically by name.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q8502> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q668> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nb,nn,en,fi". } } ORDER BY ASC( ?var1Label )


Question: What properties link GREE to other entities in Wikidata?

SELECT ?prop ?propLabel ?propDescription WHERE { ?item ?prop wd:Q1007089 . BIND(IRI(REPLACE(STR(?prop), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?propEntity) . ?propEntity a wikibase:Property . ?propEntity rdfs:label ?propLabel . ?propEntity schema:description ?propDescription . FILTER(LANG(?propLabel) = "en") FILTER(LANG(?propDescription) = "en") } LIMIT 100

Which properties are used to describe GREE in Wikidata, and what are their English labels and descriptions?

Show me the English labels and descriptions of all properties that connect any item to GREE, the Japanese social networking service.

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/Q1007089> . ?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 is the English title and description of the MoMA artwork with ID 79018?

SELECT ?item ?itemLabel ?description WHERE { ?item wdt:P2014 "79018" . ?item rdfs:label ?itemLabel . FILTER (LANG(?itemLabel) = "en") OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } }

Can you tell me the name and a brief description of Salvador Dalí’s painting held by the Museum of Modern Art?

Which painting by Salvador Dalí is in MoMA’s collection with the work ID 79018, and what is its description?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2014> "177036". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: English description of MoMA work ID 169919

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?description WHERE {
  ?item wdt:P2014 "169919" .
  OPTIONAL {
    ?item schema:description ?description .
    FILTER(LANG(?description) = "en")
  }
}

What is the English description of the MoMA artwork with ID 169919?

Show me the English description for the MoMA item with ID 169919.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2014> "139848". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Horses with their gender, father, and mother

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 ?horse ?horseLabel ?genderLabel ?fatherLabel ?motherLabel WHERE {
  VALUES ?horse {
    wd:Q2835089 wd:Q22006597 wd:Q107122851 wd:Q104860580 wd:Q1902328 wd:Q5199345 wd:Q56121171 wd:Q7180267 wd:Q7226614 wd:Q11307903
  }
  ?horse rdfs:label ?horseLabel .
  FILTER ( LANG( ?horseLabel ) = "en" ) OPTIONAL {
    ?horse wdt:P21 ?gender .
    ?gender rdfs:label ?genderLabel .
    FILTER ( LANG( ?genderLabel ) = "en" )
  }
  OPTIONAL {
    ?horse wdt:P22 ?father .
    ?father rdfs:label ?fatherLabel .
    FILTER ( LANG( ?fatherLabel ) = "en" )
  }
  OPTIONAL {
    ?horse wdt:P25 ?mother .
    ?mother rdfs:label ?motherLabel .
    FILTER ( LANG( ?motherLabel ) = "en" )
  }
}
LIMIT 10

What are the gender, father, and mother of notable racehorses?

Show me a list of horses along with their biological sex, sire, and dam.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q726> . 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/P21> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P22> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P25> ?var4 . } } LIMIT 10


Question: Subclasses of debt with English labels and images

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 ?debtClass ?debtClassLabel ?image WHERE {
  ?debtClass wdt:P279 wd:Q3196867 .
  OPTIONAL {
    ?debtClass rdfs:label ?debtClassLabel .
    FILTER(LANG(?debtClassLabel) = "en")
  }
  OPTIONAL {
    ?debtClass wdt:P18 ?image .
  }
}
LIMIT 100

What are the different types of debt and their English names, and which ones have images on Wikimedia Commons?

List all subclasses of debt, show their English labels if available, and include any associated images from Wikimedia Commons.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q3196867> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ru". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } LIMIT 100


Question: What are the names of all counties in Kentucky?

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 ?county ?name WHERE {
  ?county wdt:P31 wd:Q13410447 .
  ?county rdfs:label ?name .
  FILTER ( LANG( ?name ) = "en" )
}

List the English names of counties in the state of Kentucky.

Show me the official English names of each county in Kentucky.

SELECT ?var1 ?var2 ?var3 WHERE { 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/Q13410447> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1448> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2561> ?var3 . } }


Question: Species in the New Zealand Organisms Register with German Wikipedia pages but no English Wikipedia pages.

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 ?taxon ?taxonLabel ?nzorId WHERE {
  ?taxon wdt:P31 wd:Q16521 ; wdt:P105 wd:Q7432 ; wdt:P2752 ?nzorId .
  FILTER EXISTS {
    ?dePage schema:about ?taxon ; schema:inLanguage "de" .
  }
  FILTER NOT EXISTS {
    ?enPage schema:about ?taxon ; schema:inLanguage "en" .
  }
  ?taxon rdfs:label ?taxonLabel .
  FILTER ( LANGMATCHES( LANG( ?taxonLabel ) , "en" ) )
}
ORDER BY ASC ( ?taxonLabel )

Which species registered in the New Zealand Organisms Register have a German-language Wikipedia article but lack an English-language one?

List the scientific names of species from the New Zealand Organisms Register that are documented in German Wikipedia but not in English Wikipedia.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q16521> ; <http://www.wikidata.org/prop/direct/P105> <http://www.wikidata.org/entity/Q7432> ; <http://www.wikidata.org/prop/direct/P2752> ?var2 . FILTER ( ( EXISTS { ?var4 <http://schema.org/about> ?var1 ; <http://schema.org/inLanguage> "de". } ) ) . FILTER ( ( NOT EXISTS { ?var5 <http://schema.org/about> ?var1 ; <http://schema.org/inLanguage> "en". } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY ASC( ?var1Label )


Question: What are the areas of entities in Wikidata, and what are their English labels?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?item ?itemLabel ?area WHERE {
  ?item p:P2046 ?statement .
  ?statement ps:P2046 ?area .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
LIMIT 100

Can you list 100 entities with their area values and English names?

Which places have recorded area measurements, and what are those values in square kilometres?

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/P2046> ?var2 . ?var2 ( <http://www.wikidata.org/prop/statement/P2046> / <http://wikiba.se/ontology#quantityNormalized> ) [ <http://wikiba.se/ontology#quantityAmount> ?var3 ; <http://wikiba.se/ontology#quantityUnit> <http://www.wikidata.org/entity/Q25343> ] . } LIMIT 100


Question: List French departmental roads sorted by their route number (e.g., N7, R12), with INSEE department codes, prioritizing roads with numeric prefixes and padding numbers to four digits.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?road ?roadNumber ?deptCode(COUNT(?location) AS ?subdivisionCount) WHERE {
  {
    ?road wdt:P31 wd:Q19796778 .
  } UNION {
    ?road wdt:P16 wd:Q19796778 .
  }
  ?road wdt:P131 ?location .
  OPTIONAL {
    ?road wdt:P1824 ?roadNumber .
  }
  OPTIONAL {
    ?location wdt:P2586 ?deptCode .
  }
  BIND(IF(BOUND(?roadNumber) , SUBSTR(STR(?roadNumber) , 1 , 1) , "") AS ?prefix)
  BIND(IF(BOUND(?roadNumber) , SUBSTR(STR(?roadNumber) , 2) , "") AS ?numberPart)
  BIND(IF(BOUND(?roadNumber) , STRLEN(STR(?numberPart)) , 0) AS ?numLen)
  BIND(IF(BOUND(?roadNumber) , CONCAT(?prefix , IF(?numLen = 1 , "000" , IF(?numLen = 2 , "00" , IF(?numLen = 3 , "0" , ""))) , ?numberPart) , "") AS ?sortKey)
}
GROUP BY ?road ?roadNumber ?deptCode ?sortKey
ORDER BY ASC(?sortKey) ASC(?deptCode) DESC(?subdivisionCount)

What are the French departmental roads and their corresponding department codes, ordered by normalized route number (e.g., N0007 for N7) and then by department?

Please provide a sorted list of all French departmental roads, including their route numbers and the INSEE code of the department they are located in, with route numbers sorted alphabetically by prefix and numerically by padded value (e.g., N7 becomes N0007).

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q19796778> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P16> <http://www.wikidata.org/entity/Q19796778> . } ?var1 <http://www.wikidata.org/prop/direct/P131> ?var5 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1824> ?var2 . } BIND ( STRLEN ( STR ( ?var2 ) ) AS ?var6 ). BIND ( SUBSTR ( STR ( ?var2 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var7 ). BIND ( SUBSTR ( STR ( ?var2 ) ,"2"^^<http://www.w3.org/2001/XMLSchema#integer> , ( ?var6 -"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var8 ). BIND ( REPLACE ( SUBSTR ( STR ( ?var8 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"4"^^<http://www.w3.org/2001/XMLSchema#integer> ) , "[A-Za-z ]", "" ) AS ?var9 ). BIND ( STRLEN ( STR ( ?var9 ) ) AS ?var10 ). BIND ( CONCAT ( IF ( ( ?var10 = "1"^^<http://www.w3.org/2001/XMLSchema#integer> ), "000", IF ( ( ?var10 = "2"^^<http://www.w3.org/2001/XMLSchema#integer> ), "00", IF ( ( ?var10 = "3"^^<http://www.w3.org/2001/XMLSchema#integer> ), "0", "" ) ) ) , STR ( ?var9 ) ) AS ?var11 ). BIND ( CONCAT ( STR ( ?var7 ) , STR ( ?var9 ) ) AS ?var12 ). BIND ( STRLEN ( STR ( ?var12 ) ) AS ?var13 ). BIND ( ( ?var6 - ?var13 ) AS ?var14 ). BIND ( SUBSTR ( STR ( ?var2 ) , ( ?var13 +"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) , ?var14 ) AS ?var15 ). BIND ( CONCAT ( STR ( ?var7 ) , STR ( ?var11 ) , STR ( ?var15 ) ) AS ?var16 ). OPTIONAL { ?var5 <http://www.wikidata.org/prop/direct/P2586> ?var3 . } OPTIONAL { SELECT DISTINCT ?var1 ( COUNT ( ?var17 ) AS ?var4 ) WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q19796778> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P16> <http://www.wikidata.org/entity/Q19796778> . } ?var1 <http://www.wikidata.org/prop/direct/P131> ?var17 . } GROUP BY ?var1 } } ORDER BY ASC( ?var16 )ASC( ?var3 ) DESC( ?var4 )


Question: Which football clubs did Nicolas Anelka play for, in English?

SELECT ?var2Label WHERE { wd:Q1939 wdt:P54 ?var2 . ?var2 rdfs:label ?var2Label . FILTER (LANG(?var2Label) = "en") }

Teams Nicolas Anelka played for — English names

List the English names of all sports teams Nicolas Anelka was a member of.

SELECT ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } <http://www.wikidata.org/entity/Q1939> <http://www.wikidata.org/prop/direct/P54> ?var2 . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . }


Question: What paintings depict a dog, and what are their associated images on Wikimedia Commons?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?painting ?image WHERE {
  ?painting wdt:P31 / wdt:P279 * wd:Q3305213 .
  ?painting wdt:P180 wd:Q144 .
  ?painting wdt:P18 ?image .
}

Paintings showing a dog with their image files

Show me images of artworks that feature a dog, where the artworks are classified as paintings or subtypes of paintings.

SELECT ?var1 ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q3305213> . ?var1 <http://www.wikidata.org/prop/direct/P180> <http://www.wikidata.org/entity/Q144> . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Entities linked to Albert Einstein with labels containing the letter P.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?entity ?label WHERE {
  wd:Q937 ?p ?entity .
  ?entity rdfs:label ?label .
  FILTER ( REGEX( ?label , "P" , "i" ) )
}

What entities connected to Albert Einstein have labels that include the letter "P"?

Show me all entities associated with Albert Einstein whose labels contain the letter P, along with their labels.

SELECT ?var1 ?var1Label WHERE { <http://www.wikidata.org/entity/Q937> ?var2 ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( REGEX ( ?var3 , "P" ) ) ) . }


Question: What entities related to Albert Einstein have "Princeton" in their name?

SELECT DISTINCT ?entity ?label WHERE { wd:Q937 ?property ?entity . ?entity rdfs:label ?label . FILTER (REGEX(?label, "Princeton", "i")) }

Which institutions, honors, or places connected to Albert Einstein include "Princeton" in their labels?

Show me all the labels of things associated with Albert Einstein that mention Princeton, in any language.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q937> ?var3 ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( REGEX ( ?var2 , "Princeton" ) ) ) . }


Question: What are the geographic coordinates of Isla de la Juventud and the country it belongs to, Cuba?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?islandCoordinates ?countryCoordinates WHERE {
  wd:Q115027 wdt:P625 ?islandCoordinates .
  OPTIONAL {
    wd:Q115027 wdt:P131 ?country .
    ?country wdt:P625 ?countryCoordinates .
  }
}

Coordinates of Isla de la Juventud and Cuba

Show me the location coordinates of Isla de la Juventud and its parent country, Cuba.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q115027> <http://www.wikidata.org/prop/direct/P625> ?var1 . OPTIONAL { <http://www.wikidata.org/entity/Q115027> <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var2 . } }


Question: French and English labels for Project:Bots on Wikidata

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT(STR(?label_fr) AS ?french_label)(STR(?label_en) AS ?english_label) WHERE {
  wd:Q4048867 rdfs:label ?label_fr .
  wd:Q4048867 rdfs:label ?label_en .
  FILTER(LANGMATCHES(LANG(?label_fr) , "fr"))
  FILTER(LANGMATCHES(LANG(?label_en) , "en"))
}
LIMIT 10

What are the French and English labels for the Wikipedia page "Project:Bots"?

Show me the French and English versions of the label for the Wikipedia namespace "Project:Bots".

SELECT DISTINCT( <http://www.w3.org/2001/XMLSchema#string> ( ?var1 ) AS ?var2 )( <http://www.w3.org/2001/XMLSchema#string> ( ?var3 ) AS ?var4 ) WHERE { <http://www.wikidata.org/entity/Q4048867> <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . <http://www.wikidata.org/entity/Q4048867> <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( LANGMATCHES ( LANG ( ?var1 ) , "FR" ) ) ) . FILTER ( ( LANGMATCHES ( LANG ( ?var3 ) , "EN" ) ) ) . } LIMIT 10


Question: List towns and landmarks in the Pyrenees region with their coordinates, images, and Wikimedia Commons categories.

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 ?coord ?image ?commonsCategory WHERE {
  VALUES ?admin {
    wd:Q12709 wd:Q12703 wd:Q2289
  }
  ?item wdt:P131 ?admin .
  OPTIONAL {
    ?item wdt:P625 ?coord .
  }
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
LIMIT 3000

What are the places in southern France and northern Spain that have photos and Commons categories on Wikimedia?

Please provide the English names, geographic coordinates, images, and Commons categories of locations in the Pyrénées-Orientales, Pyrénées-Atlantiques, and Catalonia regions.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(41 -1)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(43 0)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var1 <http://schema.org/description> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 3000


Question: Most frequently used properties linking entities to Wilmington, Delaware, with count greater than one.

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

Which properties are used to connect the most entities to Wilmington, Delaware, and how many times are they used?

Show me the properties that connect more than one entity to Wilmington, DE, sorted by how often they’re used.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q174224> . 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: List of films with their English titles from 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 DISTINCT ?film ?filmLabel WHERE {
  ?film wdt:P31 wd:Q11424 .
  FILTER(LANG(?filmLabel) = "en")
  ?film rdfs:label ?filmLabel .
}
LIMIT 100

What are some films and their English titles in Wikidata?

Can you show me up to 100 films that are classified as movies, along with their English-language labels?

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . }


Question: What is the English name of Adolfo Alsina Partido, and is there an English Wikipedia page about it?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?label ?wikipediaPage WHERE {
  wd:Q505021 rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  OPTIONAL {
    ?wikipediaPage schema:about wd:Q505021 ; schema:inLanguage "en" .
    FILTER(STRSTARTS(STR(?wikipediaPage) , "https://en.wikipedia.org/wiki/"))
  }
}

Can you show me the English label and English Wikipedia link for the municipality of Adolfo Alsina Partido?

Where can I find the English Wikipedia page for Adolfo Alsina Partido, and what is its official English name?

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q505021> . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } OPTIONAL { ?var3 <http://schema.org/about> ?var1 . ?var3 <http://schema.org/inLanguage> "en". FILTER ( ( ( SUBSTR ( STR ( ?var3 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"25"^^<http://www.w3.org/2001/XMLSchema#integer> ) = "string1" ) ) ) . } }


Question: What are the literal properties (like date of birth, date of death, or Freebase ID) associated with Albert Einstein?

SELECT DISTINCT ?var1 ?var2Label WHERE { wd:Q937 ?var1 ?var4 . FILTER ( isLiteral(?var4) ) . ?var2 wikibase:directClaim ?var1 . FILTER ( ?var1 IN ( wdt:P569, wdt:P570, wdt:P646 ) ) . ?var2 rdfs:label ?var2Label . FILTER ( lang(?var2Label) = "en" ) } LIMIT 1000

Can you tell me the English labels of the Wikidata properties that store literal values such as birth date, death date, or Freebase ID for Albert Einstein?

Show me the names in English of the direct claims for Albert Einstein that have literal values, specifically his birth date, death date, and Freebase ID.

SELECT DISTINCT ?var1 ?var2Label WHERE { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> "string1"@en . ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var3 ?var1 ?var4 . FILTER ( ( isLITERAL ( ?var4 ) ) ) . OPTIONAL { ?var2 <http://wikiba.se/ontology#directClaim> ?var1 . FILTER ( ( ?var1 IN ( <http://www.w3.org/2004/02/skos/core#altLabel> , <http://www.w3.org/2000/01/rdf-schema#label> , <http://schema.org/description> , <http://www.wikidata.org/prop/direct/P569> , <http://www.wikidata.org/prop/direct/P21> , <http://www.wikidata.org/prop/direct/P570> , <http://www.wikidata.org/prop/direct/P646> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } } LIMIT 1000


Question: What are the titles of scholarly works, along with their publication venues, volume, issue, page numbers, and ISSN numbers?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?work ?workLabel ?publication ?issn ?publicationLabel ?volume ?issue ?pages WHERE {
  ?work wdt:P1433 ?publication ; wdt:P478 ?volume ; wdt:P433 ?issue .
  OPTIONAL {
    ?publication wdt:P236 ?issn .
  }
  OPTIONAL {
    ?work wdt:P304 ?pages .
  }
  ?work rdfs:label ?workLabel .
  ?publication rdfs:label ?publicationLabel .
  FILTER ( LANG( ?workLabel ) = "en" ) FILTER ( LANG( ?publicationLabel ) = "en" )
}
LIMIT 10

Show me the English titles of articles, the journals they were published in, and their bibliographic details like volume, issue, pages, and ISSN.

Can you list academic articles with their publication details including journal name, volume, issue, page range, and ISSN?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var2Label ?var4 ?var5 ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1433> ?var2 ; <http://www.wikidata.org/prop/direct/P478> ?var4 ; <http://www.wikidata.org/prop/direct/P433> ?var5 . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P236> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P304> ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 100


Question: Political parties with English names and their images

SELECT ?party ?partyLabel ?image WHERE { ?party wdt:P31 wd:Q7278 . ?party rdfs:label ?partyLabel . OPTIONAL { ?party wdt:P18 ?image . } FILTER(LANG(?partyLabel) = "en") } LIMIT 100

What are the English names of political parties, and which ones have official images on Wikimedia Commons?

Show me up to 100 political parties with their English labels and, if available, their official logos or flags from Wikimedia Commons.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7278> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nl". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } LIMIT 100


Question: Geographical features with GeoNames IDs but no assigned country

SELECT ?feature ?geonamesId WHERE { ?feature wdt:P1566 ?geonamesId . OPTIONAL { ?feature wdt:P17 ?country . } FILTER ( !BOUND(?country) ) } LIMIT 100

Which geographical locations have a GeoNames ID but are not located in any country?

Show me 100 geographical features identified in GeoNames that are not part of any sovereign state, such as those in Antarctica or international waters.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1566> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . } FILTER ( ( !( BOUND ( ?var3 ) ) ) ) . } LIMIT 100


Question: Female scientists born in Scotland with their occupations and dates of birth.

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 DISTINCT ?person ?personLabel ?dateOfBirth ?occupationLabel WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P21 wd:Q6581072 .
  ?person wdt:P106 / wdt:P279 * wd:Q901 .
  ?person(wdt:P19 / wdt:P131 *) wd:Q22 .
  ?person wdt:P106 ?occupation .
  OPTIONAL {
    ?person wdt:P569 ?dateOfBirth .
  }
  ?person rdfs:label ?personLabel .
  ?occupation rdfs:label ?occupationLabel .
  FILTER(LANG(?personLabel) = "en")
  FILTER(LANG(?occupationLabel) = "en")
}
ORDER BY ASC(?dateOfBirth)

Who are the female scientists born in Scotland, and what are their occupations and dates of birth?

List all female scientists from Scotland, including their names, occupations, and when they were born.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3Label WHERE { { SELECT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P106> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q901> . } } ?var1 ( <http://www.wikidata.org/prop/direct/P19> / <http://www.wikidata.org/prop/direct/P131> *) <http://www.wikidata.org/entity/Q22> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P106> ?var3 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,it". } } ORDER BY ASC( ?var2 )


Question: Who is the artist with Athenaeum ID 2424, and what is their English description?

SELECT ?item ?itemLabel ?desc WHERE { ?item wdt:P4145 "2424" . OPTIONAL { ?item schema:description ?desc . FILTER (LANG(?desc) = "en") . } ?item rdfs:label ?itemLabel . FILTER (LANG(?itemLabel) = "en") . }

What is the name and English description of the person identified by the Athenaeum person ID 2424?

Can you tell me the English label and description of the individual with Athenaeum ID 2424?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4145> "2425". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Living people born between January 1 and January 14, 1950

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?personLabel ?birthDate WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P569 ?birthDate .
  OPTIONAL {
    ?person wdt:P570 ?deathDate .
  }
  FILTER ( ?birthDate >= "1950-01-01T00:00:00Z" ^^ xsd:dateTime && ?birthDate < "1950-01-15T00:00:00Z" ^^ xsd:dateTime ) FILTER ( ! BOUND( ?deathDate ) ) ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}
ORDER BY ASC ( ?birthDate )

Who are the living people born in the first two weeks of January 1950?

List the names and birth dates of all living humans born between January 1 and January 14, 1950, in English.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } FILTER ( ( ( ?var3 >= "1950-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var3 < "1950-01-15T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( !( BOUND ( ?var4 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var3 )


Question: Movie theaters in Israel and their cities

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 DISTINCT ?theater ?theaterLabel ?cityLabel WHERE {
  ?theater wdt:P31 wd:Q41253 .
  ?theater wdt:P17 wd:Q801 .
  OPTIONAL {
    ?theater wdt:P131 ?city .
  }
  ?theater rdfs:label ?theaterLabel .
  FILTER ( LANG( ?theaterLabel ) = "en" ) OPTIONAL {
    ?city rdfs:label ?cityLabel .
    FILTER ( LANG( ?cityLabel ) = "en" )
  }
}
LIMIT 200

What are the movie theaters in Israel, and in which cities are they located?

List all movie theaters in Israel along with the cities where they are situated.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3Label ?var4 ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q41253> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q801> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,cy,fr,de,es,nl,hy,ja,ru,ca". } } LIMIT 200


Question: Scholarly articles authored by Alain Fischer, including co-authors, publication venue, and publication date.

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 ( MIN( ?pubDate ) AS ?minPubDate ) ?work ?workLabel ( GROUP_CONCAT( DISTINCT ?authorLabel ; SEPARATOR = ", " ) AS ?authors ) ( SAMPLE( ?pages ) AS ?numPages ) ?publication ?publicationLabel ( GROUP_CONCAT( DISTINCT ?typeLabel ; SEPARATOR = ", " ) AS ?types ) WHERE {
  ?work wdt:P50 wd:Q2636403 .
  ?work wdt:P50 ?author .
  ?author rdfs:label ?authorLabel .
  FILTER ( LANG( ?authorLabel ) = "en" ) OPTIONAL {
    ?work wdt:P577 ?pubDate
  }
  OPTIONAL {
    ?work wdt:P1104 ?pages
  }
  OPTIONAL {
    ?work wdt:P1433 ?publication .
    ?publication rdfs:label ?publicationLabel .
    FILTER ( LANG( ?publicationLabel ) = "en" )
  }
  OPTIONAL {
    ?work wdt:P31 ?type .
    ?type rdfs:label ?typeLabel .
    FILTER ( LANG( ?typeLabel ) = "en" )
  }
}
GROUP BY ?work ?workLabel ?publication ?publicationLabel
ORDER BY DESC ( ?minPubDate )

What are all the scholarly articles written by Alain Fischer, who are the co-authors, where were they published, and when?

List all works authored by Alain Fischer with their full list of English-language authors, publication journals, and earliest publication dates, sorted by most recent first.

SELECT( MIN ( ?var1 ) AS ?var2 ) ?var3 ?var3Label ( GROUP_CONCAT ( DISTINCT ?var4Label ; SEPARATOR = ", " ) AS ?var5 )( SAMPLE ( ?var6 ) AS ?var7 ) ?var8 ?var8Label ( GROUP_CONCAT ( DISTINCT ?var9Label ; SEPARATOR = ", " ) AS ?var10 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q2636403> . ?var3 <http://www.wikidata.org/prop/direct/P50> ?var11 . OPTIONAL { ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var12 . FILTER ( ( ( LANG ( ?var12 ) = "en" ) ) ) . } BIND ( COALESCE ( ?var12 , SUBSTR ( STR ( ?var11 ) ,"32"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var9Label ). OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P31> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } OPTIONAL { BIND ( <http://www.w3.org/2001/XMLSchema#date> ( ?var13 ) AS ?var1 ). ?var3 <http://www.wikidata.org/prop/direct/P577> ?var13 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1104> ?var6 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1433> ?var8 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,es,fr,jp,no,ru,sv,zh". } } GROUP BY ?var3 ?var3Label ?var8 ?var8Label ORDER BY DESC( ?var2 )