Question: What entities are both a city and a country?

SELECT ?cityState ?cityStateLabel WHERE { ?cityState wdt:P31 wd:Q6256 . ?cityState wdt:P31 wd:Q515 . ?cityState rdfs:label ?cityStateLabel . FILTER(LANG(?cityStateLabel) = "en") }

Which places are classified as both a city and a sovereign state?

List all city-states that are recognized as countries.

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


Question: What are the German municipalities, along with their postal codes, municipality keys, and GeoNames IDs?

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 ?municipality ?municipalityLabel ?municipalityKey ?postalCode ?geonamesId WHERE {
  ?municipality wdt:P31 wd:Q262166 .
  OPTIONAL {
    ?municipality wdt:P439 ?municipalityKey .
  }
  OPTIONAL {
    ?municipality wdt:P281 ?postalCode .
  }
  OPTIONAL {
    ?municipality wdt:P1566 ?geonamesId .
  }
  ?municipality rdfs:label ?municipalityLabel .
  FILTER(LANG(?municipalityLabel) = "en")
}
LIMIT 10

Show me a list of German municipalities with their English names, postal codes, and associated GeoNames identifiers.

Can you provide the English names, postal codes, and GeoNames IDs for German municipalities?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q262166> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P439> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P281> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/entity/Q1221156> ?var4 . } } LIMIT 10


Question: What are Czech street names starting with "Pod" and what are they named after?

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 ?streetLabel ?street ?namesakeLabel WHERE {
  ?street wdt:P31 wd:Q79007 ; rdfs:label ?streetLabel ; wdt:P17 wd:Q213 ; wdt:P138 ?namesake .
  ?namesake rdfs:label ?namesakeLabel .
  FILTER ( LANG( ?streetLabel ) = "cs" ) FILTER ( STRSTARTS( ?streetLabel , "Pod " ) ) FILTER ( LANG( ?namesakeLabel ) = "cs" )
}
LIMIT 100

Can you list streets in the Czech Republic whose names begin with "Pod" and their Czech-named eponyms?

Show me streets in the Czech Republic named "Pod [something]" and the local Czech names of the people or places they are named after.

SELECT ?var1Label ?var2 ?var3Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q79007> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var2 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q213> . ?var2 <http://www.wikidata.org/prop/direct/P138> ?var3 . FILTER ( ( ( LANG ( ?var1Label ) = "cs" ) ) ) . FILTER ( ( STRSTARTS ( ?var1Label , "Pod " ) ) ) . } LIMIT 100


Question: Image of Achille Guenée with SNAC ARK ID w6766p4d

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

What is the Wikimedia Commons image of the person with SNAC ARK ID w6766p4d?

Show me the picture of the individual identified by the SNAC ARK ID w6766p4d.

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


Question: Most frequently used properties linking items to water polo, with counts above 1

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

What properties are most commonly used to associate other entities with water polo, and how many times are they used?

Show me the top properties connected to water polo, along with their usage counts, using English labels.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ( COUNT ( ?var4 ) AS ?var3 ) WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q7707> . ?var1 <http://wikiba.se/ontology#directClaim> ?var5 . } GROUP BY ?var1 ?var1Label HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl,en". } } ORDER BY DESC( ?var3 )


Question: Who are the authors of the paper with arXiv ID 1706.03762?

SELECT DISTINCT ?paper ?author WHERE { ?paper wdt:P818 "1706.03762" . ?paper wdt:P50 ?author . OPTIONAL { ?author wdt:P496 ?orcid . } }

Can you list the authors of the research paper identified by the arXiv identifier 1706.03762?

Which researchers wrote the paper titled "Attention Is All You Need", and do they have ORCID identifiers?

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P356> "string1". ?var1 <http://www.wikidata.org/prop/direct/P50> ?var2 . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P496> ?var3 . } }


Question: Most used property to classify companies in the fast-moving consumer goods industry.

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 ?usedProperty wd:Q1187656 .
  ?property wikibase:directClaim ?usedProperty .
  ?property rdf:type wikibase:Property .
}
GROUP BY ?property
ORDER BY DESC(?count)
LIMIT 1

Which property is most commonly used to indicate that an entity belongs to the fast-moving consumer goods sector?

Show me the property that links the most entities to the fast-moving consumer goods industry, 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/Q1187656> . ?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 things can be audio recordings?

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 ?type ?typeLabel WHERE {
  ?item ( wdt:P31 / wdt:P279 * ) wd:Q3302947 ; wdt:P31 ?type .
  ?type rdfs:label ?typeLabel .
  FILTER ( LANG( ?typeLabel ) = "en" )
}
ORDER BY ?typeLabel

What are the different categories of entities that are instances of audio recordings or their subclasses?

List all the types (classes) of items that are recorded as audio, such as albums, songs, or soundtracks, along with their English labels.

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


Question: What entities are described by sources that are not creative works, and what types are those sources?

SELECT ?item ?itemLabel ?source ?sourceLabel ?sourceType ?sourceTypeLabel ?statementType WHERE { { ?item wdt:P1343 ?source . BIND("mainsnak" AS ?statementType) } UNION { ?item ?p ?statement . ?statement pq:P1343 ?source . BIND("qualifier" AS ?statementType) } UNION { ?item ?p ?statement . ?statement prov:wasDerivedFrom ?ref . ?ref pr:P1343 ?source . BIND("reference" AS ?statementType) } MINUS { ?source (wdt:P279*) wd:Q386724 . } OPTIONAL { ?source wdt:P31 ?sourceType . } OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } OPTIONAL { ?source rdfs:label ?sourceLabel . FILTER(LANG(?sourceLabel) = "en") } OPTIONAL { ?sourceType rdfs:label ?sourceTypeLabel . FILTER(LANG(?sourceTypeLabel) = "en") } } LIMIT 100

Show me items (like people, places, or concepts) that are cited in books, articles, or other references — but exclude sources that are themselves works like novels or paintings.

Which sources (e.g., books, theses, periodicals) describe which entities, and are those statements main claims, qualifiers, or references?

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { { BIND ( "mainsnak" AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P1343> ?var2 . } UNION { BIND ( "qualifier" AS ?var4 ). ?var5 <http://www.wikidata.org/prop/qualifier/P1343> ?var2 . ?var1 ?var6 ?var5 . } UNION { BIND ( "reference" AS ?var4 ). ?var7 <http://www.wikidata.org/prop/reference/P1343> ?var2 . ?var8 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var7 . ?var1 ?var9 ?var8 . } VALUES ( ?var10 ) { ( <http://www.wikidata.org/entity/Q386724> ) } MINUS { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var10 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P31> ?var3 . } } LIMIT 100 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What items have IMDb IDs and what are those IDs?

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

Which entities on Wikidata are linked to IMDb, and what are their IMDb identifiers?

List all entities with their corresponding IMDb IDs.

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


Question: Who are the members of the Catalan Parliament representing Barcelona?

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 DISTINCT ?person ?personLabel WHERE {
  ?person wdt:P39 wd:Q18714088 ; p:P39 [ pq:P768 wd:Q4859840 ] .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}

Which politicians have served as members of the Parliament of Catalonia for the Barcelona electoral district?

List all individuals who were elected to the Catalan Parliament from the Barcelona district.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q18714088> ; <http://www.wikidata.org/prop/P39> [ <http://www.wikidata.org/prop/qualifier/P768> <http://www.wikidata.org/entity/Q4859840> ] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ca". } }


Question: What are the Russian-language titles of the Harry Potter films?

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 ?film ?filmLabel WHERE {
  ?film wdt:P179 wd:Q216930 .
  ?film rdfs:label ?filmLabel .
  FILTER(LANG(?filmLabel) = "ru")
}
LIMIT 10

List the Harry Potter movies with their Russian labels.

Which films in the Harry Potter series have Russian-language titles?

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


Question: What Wikidata item is associated with the Twitter username "Calimaq"?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES ?username { "Calimaq" } }

Which person or entity uses "Calimaq" as their username on X (formerly Twitter)?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "Pymouss" ) ( "string1" ) ( "string2" ) ( "string3" ) ( "Calimaq" ) } } ORDER BY ASC( ?var3 )


Question: What country is WGN-TV located in?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?location WHERE {
  wd:Q426594 ( wdt:P30 | wdt:P17 | wdt:P131 | wdt:P376 | wdt:P501 ) ?location .
}

Which geographic entities are directly associated with WGN-TV?

Where is WGN-TV situated according to Wikidata’s geographic relations?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q426594> 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: How many times is the World Waterfall Database ID (P3326) used as a direct property, statement, reference, and qualifier in Wikidata, broken down by rank?

SELECT ?usageType ?rank ?count WHERE { { SELECT (wikibase:statementProperty AS ?usageType) (COUNT(DISTINCT ?item) AS ?count) WHERE { ?item wdt:P3326 ?val . } } UNION { SELECT (wikibase:statementProperty AS ?usageType) ?rank (COUNT(DISTINCT ?item) AS ?count) WHERE { ?item p:P3326 ?stmt . ?stmt wikibase:rank ?rank . } GROUP BY ?rank } UNION { SELECT (wikibase:reference AS ?usageType) (COUNT(DISTINCT ?item) AS ?count) WHERE { ?item pr:P3326 ?ref . } } UNION { SELECT (wikibase:qualifier AS ?usageType) (COUNT(DISTINCT ?item) AS ?count) WHERE { ?item pq:P3326 ?qual . } } } ORDER BY DESC(?usageType) DESC(?count) ASC(?rank)

What is the count of direct values, statement nodes (grouped by rank), references, and qualifiers for the property "World Waterfall Database ID" (P3326) in Wikidata?

Show me the usage statistics of the World Waterfall Database ID (P3326) across direct properties, statement nodes (with rank), references, and qualifiers in Wikidata, sorted by usage type and count.

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


Question: Image of Mustafa Barzani (SNAC ARK ID: w6xh0n6x)

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

What is the image associated with the SNAC ARK ID w6xh0n6x?

Show me the Wikimedia Commons image for the entity with SNAC ARK ID w6xh0n6x.

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


Question: Illustrators and their surnames

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 ?illustrator ?familyName ?familyNameLabel WHERE {
  ?illustrator wdt:P106 wd:Q644687 .
  OPTIONAL {
    ?illustrator wdt:P734 ?familyName .
    ?familyName rdfs:label ?familyNameLabel .
    FILTER ( LANG( ?familyNameLabel ) = "en" )
  }
}
LIMIT 100

What are the family names of people whose occupation is illustrator?

Show me a list of illustrators along with their last names in English.

SELECT ?var1 ?var2 ?var2Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ca,en". } ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q644687> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2561> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P734> ?var2 . } } LIMIT 100


Question: Airports named after people and their runway lengths

SELECT ?airport ?airportLabel ?personLabel ?runwayLength ?unit WHERE { ?airport (wdt:P31/wdt:P279) wd:Q1248784 . ?airport wdt:P138 ?person . ?person wdt:P31 wd:Q5 . OPTIONAL { ?airport p:P529 ?runwayStatement . ?runwayStatement pq:P2043 ?runwayLength . OPTIONAL { ?runwayLength pq:P2876 ?unit . } } ?airport rdfs:label ?airportLabel . ?person rdfs:label ?personLabel . FILTER(LANG(?airportLabel) = "en") FILTER(LANG(?personLabel) = "en") }

Which airports are named after humans, who are those humans, and how long are their runways?

List all airports named after people in English, along with the person’s name and the length of their runways.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> ) <http://www.wikidata.org/entity/Q1248784> . ?var1 <http://www.wikidata.org/prop/direct/P138> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/P529> ?var5 . ?var5 <http://www.wikidata.org/prop/qualifier/P2043> ?var3 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/qualifier/P2876> ?var4 . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Journals where Kayvan Kousha has published the most papers, with their abbreviations.

SELECT ?publication ?publicationLabel (COUNT(?work) AS ?count)
WHERE {
  ?work wdt:P50 wd:Q46250937 .
  ?work wdt:P1433 ?publication .
  ?publication rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  OPTIONAL {
    ?publication wdt:P1813 ?shortName .
  }
  BIND(COALESCE(?shortName, ?label) AS ?publicationLabel)
}
GROUP BY ?publication ?publicationLabel
ORDER BY DESC(?count)

Which journals have published the most works by Kayvan Kousha, and what are their common abbreviations?

List the publications (with preferred short names) where Kayvan Kousha has authored the most works, sorted by count.

SELECT ?var1 ?var2Label ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q46250937> . ?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: Which entities on Wikidata have Twitter handles like SamiaGhali, alainjuppe, or EELV, and how many Wikipedia links do they have, sorted by least links first?

SELECT ?item ?handle (COUNT(?site) AS ?sitelinkCount) WHERE { ?item wdt:P2002 ?handle . VALUES ?handle { "SamiaGhali" "alainjuppe" "EELV" "Senat" "SenJaffer" "Udi_off" "FracHN" "SenMarilou" "m_blondin" } . ?site schema:about ?item ; schema:isPartOf ?wiki . FILTER(STRSTARTS(STR(?wiki), "https://")) } GROUP BY ?item ?handle ORDER BY ASC(?sitelinkCount)

Who are the people or organizations on Wikidata with Twitter usernames such as SenJaffer, m_blondin, or Senat, and which of them have the fewest Wikipedia language editions linked to them?

List the Wikidata items that use the Twitter handles SamiaGhali, alainjuppe, EELV, Senat, SenJaffer, Udi_off, FracHN, SenMarilou, and m_blondin, along with their number of sitelinks, ordered from lowest to highest.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "Sy_robert" ) ( "string2" ) ( "Senat" ) ( "Chu_Gpe" ) ( "SamiaGhali" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "SenJaffer" ) ( "string6" ) ( "EELV" ) ( "string7" ) ( "string8" ) ( "Udi_off" ) ( "string9" ) ( "FracHN" ) ( "string10" ) ( "SenMarilou" ) ( "string11" ) ( "alainjuppe" ) ( "string12" ) ( "string13" ) ( "string14" ) ( "string15" ) ( "m_blondin" ) ( "string16" ) ( "string17" ) } } ORDER BY ASC( ?var3 )


Question: What are the direct properties and values associated with Alexander Pushkin in Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?propertyLabel ?value WHERE {
  wd:Q7200 ?property ?value .
  FILTER ( STRSTARTS( STR( ?property ) , "http://www.wikidata.org/prop/direct/" ) ) .
  BIND( IRI( REPLACE( STR( ?property ) , "http://www.wikidata.org/prop/direct/" , "http://www.wikidata.org/entity/" ) ) AS ?propertyEntity ) .
  ?propertyEntity rdfs:label ?propertyLabel .
  FILTER ( LANG( ?propertyLabel ) = "en" )
}

What information is known about the Russian poet Alexander Pushkin, including his occupations, awards, and identifiers?

List all direct facts about Alexander Pushkin with their English property names and values.

SELECT ?var1 ?var1Label ?var2 WHERE { <http://www.wikidata.org/entity/Q7200> ?var1 ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: Most common properties linking entities to privately held companies

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

What properties are most commonly used to associate entities with privately held companies, and how many times are they used?

Show me the properties that connect other entities to privately held companies, sorted by frequency, excluding those used only once.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q1589009> . 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: Who are the people named Jo Brown, and do they have Twitter accounts?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?label ?twitter WHERE {
  ?item rdfs:label "Jo Brown" @en .
  OPTIONAL {
    ?item wdt:P2002 ?twitter
  }
}

Show me the Twitter handles of people named Jo Brown.

Are there any individuals named Jo Brown on Wikidata with a Twitter profile?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "jo_brown" ) } } ORDER BY ASC( ?var3 )


Question: Which Twitter usernames (envlh, AldiUK, aldiuk, markpack) are used on Wikidata, and how many Wikipedia pages are linked to each account?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?username(COUNT(?wikipage) AS ?sitelinks) WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "envlh" "AldiUK" "aldiuk" "markpack"
  }
  .
  ?wikipage schema:about ?item .
  FILTER(STRSTARTS(STR(?wikipage) , "http"))
}
GROUP BY ?item ?username
ORDER BY ASC(?sitelinks)

What are the Wikidata items associated with the Twitter usernames "envlh", "AldiUK", "aldiuk", and "markpack", and how many Wikipedia articles are linked to each?

List the Wikidata entities that have the Twitter handles "envlh", "AldiUK", "aldiuk", or "markpack", sorted by the number of Wikipedia pages linked to them.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "envlh" ) ( "string1" ) ( "string2" ) ( "AldiUK" ) ( "string3" ) ( "aldiuk" ) ( "PoulpyWP" ) ( "markpack" ) } } ORDER BY ASC( ?var3 )


Question: Which Wikidata items have Twitter usernames "AldiUK" or "envlh"?

SELECT ?item ?twitterUsername WHERE { ?item wdt:P2002 ?twitterUsername . VALUES ?twitterUsername { "AldiUK" "envlh" } }

Who or what entities on Wikidata use the Twitter handles AldiUK or envlh?

List the Wikidata entities associated with the Twitter usernames AldiUK and envlh.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "envlh" ) ( "fourmeux" ) ( "string1" ) ( "AldiUK" ) ( "string2" ) ( "Yorgl_" ) } } ORDER BY ASC( ?var3 )


Question: Properties of Tsunashima Post Office with formatter URLs and Japanese Wikipedia links.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?property ?propertyItemLabel ?objectLabel ?formatterUrl ?jaWikipediaPage WHERE {
  wd:Q11255701 ?property ?object .
  ?propertyItem wikibase:directClaim ?property .
  OPTIONAL {
    ?propertyItem wdt:P1630 ?formatterUrl .
  }
  OPTIONAL {
    ?jaWikipediaPage schema:about ?object ; schema:inLanguage "ja" .
    FILTER(STRSTARTS(STR(?jaWikipediaPage) , "https://ja.wikipedia.org/wiki/"))
  }
}

What are the properties of Tsunashima Post Office in Japan, their URL templates, and their corresponding Japanese Wikipedia pages?

Show me all statements about Tsunashima Post Office, including any URL patterns for identifiers and their Japanese Wikipedia articles.

SELECT ?var1 ?var2Label ?var3Label ?var4 ?var5 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". <http://www.wikidata.org/entity/Q11255701> ?var1 ?var3 . ?var2 <http://wikiba.se/ontology#directClaim> ?var1 . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P1630> ?var4 . } OPTIONAL { ?var5 <http://schema.org/about> ?var3 . ?var5 <http://schema.org/inLanguage> "ja". FILTER ( ( ( SUBSTR ( STR ( ?var5 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"25"^^<http://www.w3.org/2001/XMLSchema#integer> ) = "string1" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja,en". } }


Question: People educated at École des chartes

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

Who are the alumni of École des chartes?

List the names of individuals who attended École des chartes.

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


Question: Publications curated by the Bibliothèque nationale de France

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 ?publication ?publicationLabel WHERE {
  ?publication wdt:P1640 wd:Q193563 .
  ?publication rdfs:label ?publicationLabel .
}

What publications are curated by the French National Library?

List the titles of publications curated by the Bibliothèque nationale de France.

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


Question: Japanese citizens born in Japanese cities and alternative names of those cities.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?person ?personLabel ?birthCity ?birthCityLabel ?altLabel WHERE {
  ?person wdt:P19 ?birthCity .
  ?person wdt:P27 wd:Q17 .
  ?birthCity wdt:P31 wd:Q515 .
  ?birthCity wdt:P17 wd:Q17 .
  ?person rdfs:label ?personLabel .
  ?birthCity rdfs:label ?birthCityLabel .
  OPTIONAL {
    ?birthCity skos:altLabel ?altLabel .
  }
  FILTER ( LANG( ?personLabel ) = "en" ) FILTER ( LANG( ?birthCityLabel ) = "en" ) FILTER ( LANG( ?altLabel ) = "en" || ! BOUND( ?altLabel ) )
}
LIMIT 100

Which Japanese citizens were born in cities in Japan, and what are the alternative names of those cities?

List Japanese citizens along with the Japanese cities they were born in and any alternative names for those cities.

SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q17> . ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q515> . OPTIONAL { ?var2 <http://www.w3.org/2004/02/skos/core#altLabel> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Teachers and their fathers in Wikidata

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel ?father ?fatherLabel WHERE {
  ?person wdt:P106 wd:Q37226 .
  ?person wdt:P22 ?father .
  OPTIONAL {
    ?person rdfs:label ?personLabel .
    FILTER(LANG(?personLabel) = "en")
  }
  OPTIONAL {
    ?father rdfs:label ?fatherLabel .
    FILTER(LANG(?fatherLabel) = "en")
  }
}
LIMIT 5

Who are some teachers and who are their fathers?

List people who are teachers along with their fathers, including their names in English.

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


Question: Which entities on Wikidata have Twitter usernames Le_Figaro, BFMTV, or MuseeArmee?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES ?username { "Le_Figaro" "BFMTV" "MuseeArmee" } }

What Wikidata items are associated with the Twitter accounts "Le_Figaro", "BFMTV", and "MuseeArmee"?

List the Wikidata entities that use "Le_Figaro", "BFMTV", or "MuseeArmee" as their Twitter/X username.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "AvoKalif" ) ( "string1" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "palais_au" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "_SCG" ) ( "MuseeArmee" ) ( "string11" ) ( "string12" ) ( "Alexsulzer" ) ( "string13" ) ( "Le_Figaro" ) ( "string14" ) ( "BFMTV" ) } } ORDER BY ASC( ?var3 )


Question: French labels and descriptions of democracy-related political systems

SELECT ?item ?itemLabel ?itemDescription WHERE { ?item (wdt:P31|wdt:P279*) wd:Q7174 . ?item rdfs:label ?itemLabel . ?item schema:description ?itemDescription . FILTER(LANG(?itemLabel) = "fr") FILTER(LANG(?itemDescription) = "fr") } LIMIT 100

What are the French names and descriptions of items that are types of democracy?

Show me the French labels and descriptions of all democracy-related entities in Wikidata.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q7174> . ?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 ) = "fr" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "fr" ) ) ) . } LIMIT 100


Question: What is the English name of OL Groupe?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?company ?companyLabel WHERE {
  BIND( wd:Q3347591 AS ?company ) .
  ?company rdfs:label ?companyLabel .
  FILTER ( LANG( ?companyLabel ) = "en" )
}

Can you tell me the label of the entity OL Groupe in English?

What does OL Groupe (wd:Q3347591) call itself in English?

SELECT ?var1 ?var1Label WHERE { BIND ( <http://www.wikidata.org/entity/Q3347591> AS ?var1 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Things named after the house cat

SELECT ?item ?itemLabel WHERE { ?item wdt:P138 wd:Q146 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Which entities are named after the domestic cat?

List items that have their name inspired by the house cat.

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


Question: Russian terms for attributes of a person in Wikidata

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?characteristic ?label WHERE {
  wd:Q215627 wdt:P1552 ?characteristic .
  ?characteristic rdfs:label ?label .
  FILTER(LANG(?label) = "ru")
}
ORDER BY ?label
LIMIT 50

What are the Russian labels for characteristics of the concept "person" in Wikidata?

Show me how attributes like family name or age are expressed in Russian in Wikidata's description of personhood.

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


Question: Which organizations or people have Twitter handles BFMTV, IanBrossat, lemondefr, or leJDD, and what are their English labels?

SELECT ?entity ?twitterHandle ?entityLabel WHERE { ?entity wdt:P2002 ?twitterHandle . ?entity rdfs:label ?entityLabel . FILTER(LANG(?entityLabel) = "en") VALUES ?twitterHandle { "BFMTV" "IanBrossat" "lemondefr" "leJDD" } } ORDER BY ?entityLabel

Who are the entities on Wikidata with Twitter usernames BFMTV, IanBrossat, lemondefr, or leJDD, and what are their English names?

List the English names of entities that use the Twitter handles BFMTV, IanBrossat, lemondefr, or leJDD.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "MCochard_" ) ( "PCF_Paris" ) ( "string1" ) ( "BFMTV" ) ( "IanBrossat" ) ( "lemondefr" ) ( "string2" ) ( "string3" ) ( "hervebegue" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "CliveTwo" ) ( "string12" ) ( "string13" ) ( "string14" ) ( "string15" ) ( "cosmoplus" ) ( "string16" ) ( "GROS_org" ) ( "string17" ) ( "string18" ) ( "string19" ) ( "string20" ) ( "string21" ) ( "string22" ) ( "string23" ) ( "leJDD" ) ( "TheRedFag" ) ( "l_Espress" ) } } ORDER BY ASC( ?var3 )


Question: Which Wikidata entities have Twitter usernames mbompard, Simonnet2, or LePG?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?twitterUsername ?label WHERE {
  ?item wdt:P2002 ?twitterUsername .
  OPTIONAL {
    ?item rdfs:label ?label .
    FILTER(LANG(?label) = "en")
  }
  FILTER(?twitterUsername = "mbompard" || ?twitterUsername = "Simonnet2" || ?twitterUsername = "LePG")
}

Who are the people or organizations on Wikidata with the Twitter handles @mbompard, @Simonnet2, or @LePG?

Show me the English labels and Wikidata items for the Twitter accounts mbompard, Simonnet2, and LePG.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "Simonnet2" ) ( "LePG" ) ( "string1" ) ( "string2" ) ( "string3" ) ( "Paris" ) ( "94citoyens" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "Qleyrat" ) ( "string7" ) ( "NTM_FN" ) ( "string8" ) ( "Fakir_" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "resf19" ) ( "mbompard" ) ( "Vannier75" ) ( "gaga5012" ) ( "LesMcDo" ) ( "string14" ) ( "flaqmaaf" ) ( "Momboisse4" ) ( "string15" ) ( "string16" ) ( "ULCGTVDR" ) ( "StopOmerta" ) ( "string17" ) ( "string18" ) ( "string19" ) ( "string20" ) ( "string21" ) ( "cityramag" ) } } ORDER BY ASC( ?var3 )


Question: How many association football players in Wikidata do not have a Facebook username?

SELECT ( COUNT( ?player ) AS ?count ) WHERE { ?player wdt:P31 wd:Q5 . ?player wdt:P106 wd:Q937857 . FILTER ( NOT EXISTS { ?player wdt:P2013 ?fb } ) }

What is the count of human football players who are not linked to a Facebook profile?

Are there football players in Wikidata without a Facebook account, and if so, how many?

SELECT DISTINCT( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var3 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P2013> ?var1 . } FILTER ( ( !( BOUND ( ?var1 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr, en". } } LIMIT 100


Question: Image of Tadeusz Borowski from SNAC ARK ID w61w3c0s

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

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

Show me the picture of the person identified by the SNAC ARK ID w61w3c0s.

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


Question: Telugu films released in 2025 with Tamil language context

SELECT DISTINCT ?date ?tamilLabel ?filmLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P577 ?date . ?film wdt:P364 wd:Q8097 . ?film rdfs:label ?filmLabel . BIND(wd:Q5885 AS ?tamil) . ?tamil rdfs:label ?tamilLabel . FILTER(LANG(?filmLabel) = "en") FILTER(LANG(?tamilLabel) = "en") } ORDER BY DESC(?date) LIMIT 5

What are the newest Telugu-language films, and how is Tamil related to them?

List the most recent Telugu films with their release dates, and mention Tamil as a related language.

SELECT DISTINCT ?var1Label ?var2Label ?var3Label ?var4Label ?var5Label ?var6Label ?var7Label ?var3 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var3 <http://www.wikidata.org/prop/direct/P577> ?var1 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P57> ?var6 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P86> ?var7 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P161> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } BIND ( <http://www.wikidata.org/entity/Q5885> AS ?var2 ). ?var3 <http://www.wikidata.org/prop/direct/P364> <http://www.wikidata.org/entity/Q8097> . } ORDER BY DESC( ?var1 )


Question: Main subjects of Xiang Zhang's publications, their count, and example titles

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

What are the most common research topics in Xiang Zhang's papers, how many papers does he have on each, and can you give an example title for each?

List the main topics of Xiang Zhang's academic works, along with the number of works per topic and one example title for each.

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/Q46365308> . ?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/Q46365308> . ?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: Image of Orson Pratt with SNAC ARK ID w6p27223

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

What is the Wikimedia Commons image of Orson Pratt, identified by the SNAC ARK ID w6p27223?

Show me the image associated with the SNAC ARK ID w6p27223.

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


Question: List all deep-submergence vehicles.

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

What are the known deep-submergence vehicles?

Show me the names of all manned deep-diving submarines that are self-propelled.

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


Question: Which Wikidata item has the Twitter username "AllBlacks"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterHandle WHERE {
  ?item wdt:P2002 ?twitterHandle .
  FILTER ( ?twitterHandle = "AllBlacks" )
}

What is the Wikidata entity associated with the Twitter handle @AllBlacks?

Find the item in Wikidata that uses "AllBlacks" as its Twitter username.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "GuinnessUS" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "jharchives" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "sandeurl" ) ( "AllBlacks" ) ( "string13" ) ( "string14" ) ( "string15" ) ( "string16" ) } } ORDER BY ASC( ?var3 )


Question: Who is the person with Minneapolis Institute of Art ID 10369, and what is their English description?

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

What is the English label and description of the individual identified by the Minneapolis Institute of Art constituent ID 10369?

Please provide the name and English description of the person linked to the Minneapolis Institute of Art ID 10369.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3603> "10302". 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 is the English description of the movie with IMDb ID tt0111161?

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

Find the English label and description of the film identified by the IMDb ID tt0111161.

Show me the title and summary in English for the movie on IMDb with ID tt0111161.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2580> "string1". 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 are the Twitter usernames for Elon Musk, NASA, and BBC News?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "elonmusk" "NASA" "BBCNews"
  }
}
ORDER BY ?username

Which Wikidata entities have the Twitter handles 'elonmusk', 'NASA', or 'BBCNews'?

Show me the entities on Wikidata that are associated with the Twitter usernames 'elonmusk', 'NASA', and 'BBCNews', sorted alphabetically by username.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "dnatweets" ) ( "unistra" ) ( "string1" ) ( "SirpaMetz" ) } } ORDER BY ASC( ?var3 )


Question: Which Wikidata items have Twitter handles "lemondefr", "GDarmanin", "InseeFr", "HATVP", "LCP", or "remibx"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterHandle WHERE {
  ?item wdt:P2002 ?twitterHandle .
  VALUES ?twitterHandle {
    "lemondefr" "GDarmanin" "InseeFr" "HATVP" "LCP" "remibx"
  }
}

Who are the entities on Wikidata that use any of these Twitter usernames: lemondefr, GDarmanin, InseeFr, HATVP, LCP, or remibx?

List all Wikidata entities linked to the Twitter accounts lemondefr, GDarmanin, InseeFr, HATVP, LCP, and remibx.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "garriguesA" ) ( "string6" ) ( "string7" ) ( "lemondefr" ) ( "string8" ) ( "remibx" ) ( "GDarmanin" ) ( "InseeFr" ) ( "HATVP" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "LCP" ) ( "string13" ) ( "string14" ) } } ORDER BY ASC( ?var3 )


Question: List English labels of Wikidata items containing 'alber'.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?label WHERE {
  ?item rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  FILTER(CONTAINS(LCASE(?label) , "alber"))
  FILTER(regex(STR(?item) , "^http://www.wikidata.org/entity/Q[0-9]+$"))
}
LIMIT 15

Which entities in Wikidata have English labels that include the word 'alber'?

Show me up to 15 English-language labels from Wikidata entities that contain the substring 'alber', excluding lexemes.

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


Question: Which Wikidata items are linked to the Twitter usernames Bpifrance, n26, and FBFFrance?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "Bpifrance" "n26" "FBFFrance"
  }
}

Show me the entities on Wikidata that have the Twitter handles @Bpifrance, @n26, and @FBFFrance.

What are the Wikidata entries for the Twitter accounts Bpifrance, n26, and FBFFrance?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "EChalmet" ) ( "gcalignon" ) ( "Bpifrance" ) ( "string4" ) ( "n26" ) ( "MxSba" ) ( "string5" ) ( "lendopolis" ) ( "string6" ) ( "JeanComte" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "FBFFrance" ) ( "string13" ) ( "string14" ) ( "string15" ) ( "string16" ) ( "string17" ) } } ORDER BY ASC( ?var3 )


Question: Which entities on Wikidata have Twitter usernames like franceinfo, lemondefr, LesEchos, mySociety, w3c, or wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "franceinfo" "lemondefr" "LesEchos" "mySociety" "w3c" "wikidata"
  }
}
ORDER BY ?item

What are the Wikidata items associated with the Twitter accounts @franceinfo, @lemondefr, @LesEchos, @mySociety, @w3c, and @wikidata?

List all Wikidata entities that are linked to the Twitter handles: franceinfo, lemondefr, LesEchos, mySociety, w3c, and wikidata.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "Auregann" ) ( "string1" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "hatonjan" ) ( "string5" ) ( "lemondefr" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "franceinfo" ) ( "string9" ) ( "wikidata" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "TAC_NISO" ) ( "PoulpyWP" ) ( "Fakir_" ) ( "string14" ) ( "pierrebrt" ) ( "string15" ) ( "mySociety" ) ( "string16" ) ( "johl" ) ( "Wikidata" ) ( "string17" ) ( "findsorguk" ) ( "string18" ) ( "wessexarch" ) ( "NWilkinBM" ) ( "legalljm" ) ( "NFr21" ) ( "string19" ) ( "Ayack_fr" ) ( "katebevan" ) ( "un_ouragan" ) ( "la_comete" ) ( "acherm" ) ( "string20" ) ( "string21" ) ( "string22" ) ( "JCFeraud" ) ( "LesEchos" ) ( "string23" ) ( "string24" ) ( "string25" ) ( "string26" ) ( "nodesign" ) ( "string27" ) ( "string28" ) ( "ash_crow" ) ( "string29" ) ( "string30" ) ( "w3c" ) ( "string31" ) ( "queermel" ) ( "shaviro" ) ( "TrizekWP" ) ( "axolotblog" ) ( "Gallorum" ) } } ORDER BY ASC( ?var3 )


Question: What are the Twitter usernames for Agence France-Presse, Les Inrockuptibles, and Paris Match?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "afpfr" "AFP" "afptehran" "lesinrocks" "ParisMatch"
  }
}

Which Wikidata items have the Twitter handles 'afpfr', 'AFP', 'afptehran', 'lesinrocks', or 'ParisMatch'?

List the entities on Wikidata that are associated with these Twitter accounts: afpfr, AFP, afptehran, lesinrocks, and ParisMatch.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "maligorne" ) ( "lesinrocks" ) ( "afpfr" ) ( "string1" ) ( "afptehran" ) ( "string2" ) ( "Othibault" ) ( "string3" ) ( "AdrienSnk" ) ( "mojobeirut" ) ( "AFP" ) ( "nikop17" ) ( "string4" ) ( "MMOUTOT" ) ( "fred_pom" ) ( "string5" ) ( "string6" ) ( "ParisMatch" ) ( "BFAuchet" ) } } ORDER BY ASC( ?var3 )


Question: Is Wielingen classified as a squatter's house in Wikidata?

Does the entity Q46392859 have the type squatter's house?

Is Wielingen an instance of a squatter's house?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q46392859> <https://www.wikidata.org/wiki/Property:P31> <http://www.wikidata.org/entity/Q13691604> . }


Question: Types of the Catholic Church

SELECT ?type WHERE { wd:Q9592 wdt:P31 ?type .}

What is the Catholic Church classified as on Wikidata?

Show me the types or categories that the Catholic Church belongs to.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q50723> <https://www.wikidata.org/wiki/Property:P31> <http://www.wikidata.org/entity/Q13691604> . }


Question: What type of entity is De Vlugtlaan?

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

Tell me the classification of the De Vlugtlaan metro station.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2061210> <https://www.wikidata.org/wiki/Property:P31> <http://www.wikidata.org/entity/Q13691604> . }


Question: What are the names of breweries in Amsterdam?

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 ?brewery ?breweryLabel WHERE {
  ?brewery wdt:P31 wd:Q131734 ; wdt:P131 wd:Q9899 .
  ?brewery rdfs:label ?breweryLabel .
  FILTER(LANG(?breweryLabel) = 'en')
}

Can you list the breweries located in Amsterdam?

Which beer breweries can be found in Amsterdam, Netherlands?

SELECT ?var1 WHERE { <https://adamlink.nl/geo/building/beer/1029> <https://www.wikidata.org/wiki/Property:P31> <http://www.wikidata.org/entity/Q13691604> ; <https://www.wikidata.org/wiki/Property:P131> <http://www.wikidata.org/entity/Q9899> . }


Question: List all school buildings in Amsterdam.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?building WHERE {
  ?building wdt:P31 wd:Q1244442 ; wdt:P131 wd:Q9899 .
}

What are the school buildings located in Amsterdam?

Show me the buildings in Amsterdam that are used as schools.

SELECT ?var1 WHERE { <https://adamlink.nl/geo/building/eerste-ambachtsschool/855> <https://www.wikidata.org/wiki/Property:P31> <http://www.wikidata.org/entity/Q13691604> ; <https://www.wikidata.org/wiki/Property:P131> <http://www.wikidata.org/entity/Q9899> . }


Question: List gable stones located in Amsterdam.

SELECT ?stone ?stoneLabel WHERE { ?stone wdt:P31 wd:Q2849607 ; wdt:P131 wd:Q9899 . ?stone rdfs:label ?stoneLabel . FILTER(LANG(?stoneLabel) = "en") }

What are the names of facade stones in Amsterdam?

Show me the English-labeled gable stones in Amsterdam.

SELECT ?var1 WHERE { <https://adamlink.nl/geo/building/gevelsteen-de-otter/309> <https://www.wikidata.org/wiki/Property:P31> <http://www.wikidata.org/entity/Q13691604> ; <https://www.wikidata.org/wiki/Property:P131> <http://www.wikidata.org/entity/Q9899> . }


Question: Buildings in Amsterdam

SELECT ?building WHERE { ?building wdt:P31/wdt:P279* wd:Q13691604 ; wdt:P131 wd:Q9899 . }

What are some buildings located in Amsterdam?

List buildings in Amsterdam that are classified as structures.

SELECT ?var1 WHERE { <https://adamlink.nl/geo/building/hoop/988> <https://www.wikidata.org/wiki/Property:P31> <http://www.wikidata.org/entity/Q13691604> ; <https://www.wikidata.org/wiki/Property:P131> <http://www.wikidata.org/entity/Q9899> . }


Question: What hotels are located in Amsterdam?

SELECT ?hotel ?hotelLabel WHERE { ?hotel wdt:P31 wd:Q27686 ; wdt:P131 wd:Q9899 . ?hotel rdfs:label ?hotelLabel . FILTER(LANG(?hotelLabel) = "en") }

List the names of hotels in Amsterdam in English.

Which buildings in Amsterdam are classified as hotels?

SELECT ?var1 WHERE { <https://adamlink.nl/geo/building/hotel-leidsegracht/124> <https://www.wikidata.org/wiki/Property:P31> <http://www.wikidata.org/entity/Q13691604> ; <https://www.wikidata.org/wiki/Property:P131> <http://www.wikidata.org/entity/Q9899> . }


Question: What is the name of the metro station in Amsterdam called Reigersbos?

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 ?station ?stationLabel ?locationLabel WHERE {
  wd:Q1941199 rdfs:label ?stationLabel .
  FILTER(LANG(?stationLabel) = 'en')
  .
  wd:Q1941199 wdt:P31 wd:Q928830 .
  wd:Q1941199 wdt:P131 wd:Q9899 .
  wd:Q9899 rdfs:label ?locationLabel .
  FILTER(LANG(?locationLabel) = 'en')
}

Is Reigersbos a metro station located in Amsterdam?

Which metro station in Amsterdam has the name Reigersbos?

SELECT ?var1 WHERE { <https://adamlink.nl/geo/building/metrostation-reigersbos/1044> <https://www.wikidata.org/wiki/Property:P31> <http://www.wikidata.org/entity/Q13691604> ; <https://www.wikidata.org/wiki/Property:P131> <http://www.wikidata.org/entity/Q9899> . }


Question: What are the buildings located in Groningen?

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 ?building ?buildingLabel WHERE {
  ?building wdt:P31 wd:Q13691604 ; wdt:P131 wd:Q9899 .
  ?building rdfs:label ?buildingLabel .
  FILTER ( LANG( ?buildingLabel ) = 'en' )
}

List all buildings in the city of Groningen with their English names.

Show me the names of buildings in Groningen, Netherlands.

SELECT ?var1 WHERE { <https://adamlink.nl/geo/building/rozenstraat-201/820> <https://www.wikidata.org/wiki/Property:P31> <http://www.wikidata.org/entity/Q13691604> ; <https://www.wikidata.org/wiki/Property:P131> <http://www.wikidata.org/entity/Q9899> . }


Question: List monasteries in Antwerp.

SELECT ?building ?buildingLabel WHERE { ?building wdt:P31 wd:Q44613 ; wdt:P131 wd:Q9899 . ?building rdfs:label ?buildingLabel . FILTER(LANG(?buildingLabel) = "en") }

What are the monasteries located in Antwerp?

Show me the names of all monasteries in Antwerp.

SELECT ?var1 WHERE { <https://adamlink.nl/geo/building/sintpaulusbroederklooster/582> <https://www.wikidata.org/wiki/Property:P31> <http://www.wikidata.org/entity/Q13691604> ; <https://www.wikidata.org/wiki/Property:P131> <http://www.wikidata.org/entity/Q9899> . }


Question: Artists who created artworks displayed in Europeana 280 and their birthplaces.

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 ?creatorLabel ?birthplaceLabel WHERE {
  ?artwork(wdt:P31 / wdt:P279 *) wd:Q838948 .
  ?artwork wdt:P608 wd:Q20980830 .
  ?artwork wdt:P170 ?creator .
  ?creator wdt:P19 ?birthplace .
  ?creator rdfs:label ?creatorLabel .
  ?birthplace rdfs:label ?birthplaceLabel .
  FILTER(LANG(?creatorLabel) = "en")
  FILTER(LANG(?birthplaceLabel) = "en")
}
LIMIT 100

Who are the creators of artworks exhibited in the Europeana 280 project, and where were they born?

List the names of the artists behind artworks shown in the Europeana 280 exhibition along with the cities where they were born.

SELECT ?var1 ?var2Label WHERE { ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q838948> . ?var3 <http://www.wikidata.org/prop/direct/P608> <http://www.wikidata.org/entity/Q20980830> . ?var3 <http://www.wikidata.org/prop/direct/P170> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,nl,fr,es". } } LIMIT 100


Question: People named John and their places of birth.

SELECT ?person ?birthPlace WHERE { ?person wdt:P735 wd:Q4925477 . ?person wdt:P19 ?birthPlace . }

Show me the birthplaces of all people whose first name is John.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1448> "John". ?var1 <http://www.wikidata.org/prop/direct/P19> ?var2 . }


Question: Which Wikidata entities have Twitter usernames "string1", "string2", "string3", "string4", "string5", "string6", or "aha_io"?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES ?username { "string1" "string2" "string3" "string4" "string5" "string6" "aha_io" } }

Are there any entities on Wikidata with the Twitter username "aha_io" or any of the dummy usernames "string1" through "string6"?

Show me the entities that are associated with the Twitter usernames "aha_io" or any of the placeholder values "string1" to "string6".

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "aha_io" ) } } ORDER BY ASC( ?var3 )


Question: Research papers about neighborhoods and their qualifier labels

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?work ?statement(SAMPLE(?qualifier_label_val) AS ?qualifier_label) WHERE {
  ?work p:P921 ?statement .
  ?statement ps:P921 wd:Q123705 .
  OPTIONAL {
    ?statement pq:P1932 ?qualifier_value .
    wd:P1932 rdfs:label ?qualifier_label_val .
    FILTER(LANG(?qualifier_label_val) = "en")
  }
}
GROUP BY ?work ?statement

Which research papers discuss neighborhoods, and what descriptive labels are used to qualify those mentions?

Show me works that have neighborhoods as their topic, along with any qualifier labels like "object named as".

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q123705> . ?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 Spanish-language categories on Wikimedia?

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 ?label WHERE {
  ?category wdt:P31 wd:Q4167836 ; rdfs:label ?label .
  FILTER(LANG(?label) = "es")
}

Can you list all the categories in Spanish Wikipedia that are registered in Wikidata?

Show me the titles of all Spanish Wikipedia categories as stored in Wikidata.

SELECT ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P259> *) <http://www.wikidata.org/entity/Q4167836> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "es" ) ) ) . }


Question: What are the English labels and descriptions for the entities named "Kierra" and "Kierra Sheard"?

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?entity ?entityLabel ?description WHERE {
  VALUES ?entity {
    wd:Q3049872 wd:Q104844381
  }
  ?entity rdfs:label ?entityLabel .
  FILTER ( LANG( ?entityLabel ) = "en" ) OPTIONAL {
    ?entity schema:description ?description .
    FILTER ( LANG( ?description ) = "en" )
  }
}

Can you tell me about Kierra Sheard and her 2020 album "Kierra" in English?

Show me the English names and descriptions of the person named Kierra Sheard and the album titled Kierra.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4073> "kierra". 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: List of music publishing companies

SELECT ?musicPublisher ?musicPublisherLabel WHERE { ?musicPublisher wdt:P31 wd:Q1917775 . ?musicPublisher rdfs:label ?musicPublisherLabel . FILTER(LANG(?musicPublisherLabel) = "en") }

What are the music publishing companies on Wikidata?

Can you show me the names of all music publishing companies in English?

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


Question: German labels and descriptions of properties used for mathematicians

SELECT ?property ?propertyLabel ?propertyDescription WHERE { ?mathematician wdt:P106 wd:Q170790 . ?mathematician ?directProperty ?value . FILTER (?directProperty != wdt:P106) FILTER (isIRI(?value)) . ?property wikibase:directClaim ?directProperty . ?property rdfs:label ?propertyLabel . FILTER (LANG(?propertyLabel) = "de") . OPTIONAL { ?property schema:description ?propertyDescription . FILTER (LANG(?propertyDescription) = "de") } } LIMIT 100

What properties are used to describe mathematicians in German on Wikidata?

Show me the German labels and descriptions of all properties that are used in statements about mathematicians, excluding the occupation property.

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


Question: How many members served in each legislative term of the Ukrainian Parliament?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?legislativeTerm(COUNT(DISTINCT ?member) AS ?count) WHERE {
  ?legislativeTerm wdt:P31 wd:Q15238777 ; wdt:P13188 wd:Q176296 .
  ?member wdt:P463 ?legislativeTerm .
}
GROUP BY ?legislativeTerm

For each term of the Verkhovna Rada, how many people were members during that term?

List the number of members for every legislative term of Ukraine’s parliament.

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/P31> [ <http://www.wikidata.org/prop/statement/P31> <http://www.wikidata.org/entity/Q15238777> ; <http://www.wikidata.org/prop/qualifier/P642> <http://www.wikidata.org/entity/Q176296> ] . OPTIONAL { ?var2 ( <http://www.wikidata.org/prop/P39> / <http://www.wikidata.org/prop/qualifier/P2937> ) ?var1 . } } GROUP BY ?var1


Question: Which Wikidata entities have Twitter handles "Nat2Rink", "FFRugby", or "imanolHARI", and how many Wikipedia pages do they have?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username ( COUNT( ?site ) AS ?sitelinks ) WHERE {
  ?item wdt:P2002 ?username .
  ?item ^ schema:about ?page .
  ?page schema:isPartOf ?site .
  VALUES ?username {
    "Nat2Rink" "FFRugby" "imanolHARI"
  }
}
GROUP BY ?item ?username
ORDER BY ASC ( ?sitelinks )

Who are the people or organizations on Wikidata with the Twitter usernames "Nat2Rink", "FFRugby", or "imanolHARI", and which one has the most Wikipedia language editions?

List the Wikidata items linked to the Twitter accounts "Nat2Rink", "FFRugby", and "imanolHARI", sorted by the number of Wikipedia pages they appear on, from least to most.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "aveclexv" ) ( "maitea64" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "AdamRoussy" ) ( "obernasson" ) ( "string10" ) ( "string11" ) ( "imanolHARI" ) ( "string12" ) ( "ffrugby" ) ( "string13" ) ( "string14" ) ( "ReebokFR" ) ( "string15" ) ( "Nat2Rink" ) ( "string16" ) ( "string17" ) ( "string18" ) ( "FFRugby" ) ( "string19" ) ( "FritzALee" ) ( "string20" ) ( "string21" ) ( "string22" ) } } ORDER BY ASC( ?var3 )


Question: Which organizations or people have Twitter accounts "honda", "FFRugby", "racing92", "IrishRugby", "LeLOURugby", or "JeanReno48", and how many Wikipedia links do they have?

SELECT ?item ?username (COUNT(?sitelink) AS ?sitelinkCount) WHERE { ?item wdt:P2002 ?username . ?sitelink schema:about ?item ; schema:isPartOf ?site . VALUES ?username { "honda" "FFRugby" "racing92" "IrishRugby" "LeLOURugby" "JeanReno48" } } GROUP BY ?item ?username ORDER BY ASC(?sitelinkCount)

What are the Twitter usernames of the entities with handles "honda", "FFRugby", "racing92", "IrishRugby", "LeLOURugby", and "JeanReno48", and how many Wikipedia sitelinks are associated with each?

List the entities linked to the Twitter accounts "honda", "FFRugby", "racing92", "IrishRugby", "LeLOURugby", and "JeanReno48", sorted by the number of Wikipedia language editions they appear on, from least to most.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "honda" ) ( "FFR" ) ( "jmaphatie" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "FFRugby" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "YannBru" ) ( "racing92" ) ( "string14" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "string18" ) ( "IrishRugby" ) ( "string19" ) ( "string20" ) ( "string21" ) ( "string22" ) ( "LeLOURugby" ) ( "string23" ) ( "string24" ) ( "string25" ) ( "JeanReno48" ) } } ORDER BY ASC( ?var3 )


Question: Which properties are most frequently used to link entities to Gliwice, and how many times?

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

What are the properties that connect other items to Gliwice more than once, ranked by frequency?

Show me the properties that have been used to associate entities with Gliwice more than once, along with their usage counts and English labels.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ( COUNT ( ?var4 ) AS ?var3 ) WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q105084> . ?var1 <http://wikiba.se/ontology#directClaim> ?var5 . } GROUP BY ?var1 ?var1Label HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl,en". } } ORDER BY DESC( ?var3 )


Question: Humans educated at Keuka College

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?human WHERE {
  ?human wdt:P31 wd:Q5 .
  ?human wdt:P69 wd:Q6395612 .
}
LIMIT 500

Who are the people that attended Keuka College?

List all individuals who have Keuka College as their alma mater.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P69> ?var2 . ?var2 ( <http://www.wikidata.org/prop/direct/P279> | <http://www.wikidata.org/prop/direct/P131> )* <http://www.wikidata.org/entity/Q6395612> . } LIMIT 500


Question: What are some examples of team sports?

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

List all sports that are instances of team sport.

Show me sports categorized as team sports in Wikidata.

SELECT ?var1 WHERE { ?var1 <https://www.wikidata.org/wiki/Property:P279> <https://www.wikidata.org/wiki/Q216048> . }


Question: Arabic given names and family names

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?name WHERE {
  VALUES ?instanceOf {
    wd:Q202444 wd:Q11879590 wd:Q12308941 wd:Q3409032 wd:Q101352
  }
  ?name wdt:P31 ?instanceOf .
  ?name wdt:P407 wd:Q13955 .
}
LIMIT 5000

What are the Arabic names (given names and surnames) in Wikidata?

List all Arabic-language personal names (male, female, unisex, and family names) from Wikidata, excluding disambiguation pages.

SELECT DISTINCT ?var1 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q202444> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11879590> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q12308941> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3409032> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4167410> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q101352> . } ?var1 <http://www.wikidata.org/prop/direct/P407> <http://www.wikidata.org/entity/Q13955> . } LIMIT 5000


Question: What are all the administrative divisions and parts of a country, and their immediate parent?

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 ?entity ?entityLabel ?directParent WHERE {
  ?entity wdt:P361 * wd:Q6256 .
  OPTIONAL {
    ?entity wdt:P361 ?directParent .
  }
  ?entity rdfs:label ?entityLabel .
}

What entities are part of a country (directly or indirectly), what are their labels, and what is their direct parent?

List all entities that belong to a country at any level in the hierarchy, along with their names and the entity they are directly part of.

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


Question: Which film has the JMDb ID '2001/dy002010'?

SELECT ?film WHERE { ?film wdt:P2400 "2001/dy002010" . }

What is the film associated with the Japanese Movie Database ID 2001/dy002010?

Show me the film that is identified as 2001/dy002010 on the Japanese Movie Database.

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


Question: Arabic given names without native label (P1705) that have an Arabic rdfs:label

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 ( STRAFTER( STR( ?item ) , "/entity/" ) AS ?itemId ) ?property ( CONCAT ( '"' , STR( ?arabicLabel ) , '"' ) AS ?arabicLabelQuoted ) WHERE {
  {
    ?item wdt:P31 wd:Q202444 .
  } UNION {
    ?item wdt:P31 wd:Q11879590 .
  } UNION {
    ?item wdt:P31 wd:Q12308941 .
  } UNION {
    ?item wdt:P31 wd:Q3409032 .
  }
  ?item wdt:P407 wd:Q13955 .
  FILTER NOT EXISTS {
    ?item wdt:P31 wd:Q4167410
  }
  FILTER NOT EXISTS {
    ?item wdt:P31 wd:Q101352
  }
  FILTER NOT EXISTS {
    ?item wdt:P1705 ?nativeLabel
  }
  ?item rdfs:label ?arabicLabel .
  FILTER ( LANG( ?arabicLabel ) = "ar" ) BIND( "P1705" AS ?property )
}
LIMIT 5000

Which Arabic given names on Wikidata have an Arabic label but no official native Arabic label defined?

List Arabic given names (male, female, or unisex) that are labeled in Arabic but lack a P1705 native label, along with their Arabic names in quotes.

SELECT DISTINCT( CONCAT ( STRAFTER ( STR ( ?var1 ) , "/entity/" ) ) AS ?var2 )( CONCAT ( "P1705" ) AS ?var3 )( CONCAT ( """, STR ( ?var4 ) , """ ) AS ?var5 ) WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q202444> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11879590> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q12308941> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3409032> . } ?var1 <http://www.wikidata.org/prop/direct/P407> <http://www.wikidata.org/entity/Q13955> . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4167410> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4167410> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q101352> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P1705> ?var6 . } ) ) . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "ar" ) ) ) . } LIMIT 5000


Question: Current members of the 12th National Assembly of Zambia, their birth dates, and source URLs.

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
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 prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?member ?name ?birthDate ?referenceUrl WHERE {
  ?member p:P39 ?statement .
  ?statement ps:P39 wd:Q18607856 ; pq:P2937 wd:Q45380990 .
  FILTER(NOT EXISTS {
    ?statement pq:P582 []
  })
  ?member rdfs:label ?name .
  FILTER(LANG(?name) = "en")
  ?member wdt:P569 ?birthDateRaw .
  BIND(SUBSTR(STR(?birthDateRaw) , 1 , 10) AS ?birthDate)
  ?statement prov:wasDerivedFrom ?reference .
  ?reference pr:P854 ?referenceUrl .
}

Who are the current members of Zambia’s 12th National Assembly, when were they born, and where is their official profile listed?

Please provide the names, birth dates, and reference URLs for all currently serving members of the 12th National Assembly of Zambia.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var10 . ?var10 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q18607856> ; <http://www.wikidata.org/prop/qualifier/P2937> <http://www.wikidata.org/entity/Q45380990> . FILTER ( ( NOT EXISTS { ?var10 <http://www.wikidata.org/prop/qualifier/P582> [] . } ) ) . OPTIONAL { ?var10 ( <http://www.wikidata.org/prop/qualifier/P4100> | <http://www.wikidata.org/prop/qualifier/P102> ) ?var11 . } OPTIONAL { ?var10 <http://www.wikidata.org/prop/qualifier/P768> ?var12 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var13 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var14 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1810> ?var15 . } OPTIONAL { ?var10 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var16 . OPTIONAL { ?var16 <http://www.wikidata.org/prop/reference/P854> ?var9 . } } BIND ( SUBSTR ( STR ( ?var14 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"10"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var8 ). BIND ( COALESCE ( ?var15 , ?var1Label ) AS ?var2 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var15 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . ?var12 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var6 . ?var13 <http://www.w3.org/2000/01/rdf-schema#label> ?var7 . } }


Question: List English-labeled places in Thailand, Myanmar, Laos, and Cambodia with their coordinates, images, Commons categories, and addresses.

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 ?var1 ?var1Label ?var2 ?var3 ?var6 ?var7 WHERE {
  VALUES ?country {
    wd:Q869 wd:Q836 wd:Q819 wd:Q424
  }
  ?var1 wdt:P17 ?country .
  ?var1 wdt:P625 ?var2 .
  ?var1 rdfs:label ?var1Label .
  FILTER ( LANG( ?var1Label ) = "en" ) OPTIONAL {
    ?var1 wdt:P18 ?var3 .
  }
  OPTIONAL {
    ?var1 wdt:P373 ?var6 .
  }
  OPTIONAL {
    ?var1 wdt:P969 ?var7 .
  }
}
LIMIT 3000

What are the places in Southeast Asia (Thailand, Myanmar, Laos, Cambodia) that have English labels, geographic coordinates, images on Wikimedia Commons, Commons categories, and street addresses?

Please provide a list of up to 3,000 places in Thailand, Myanmar, Laos, and Cambodia, including their English names, geographic coordinates, images, Wikimedia Commons categories, and street addresses.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 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(98 14)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "string1"^^<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 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P969> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string2". ?var1 <http://schema.org/description> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 3000


Question: Which National Discography of Italian Song IDs are assigned to more than one artist?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?id ( COUNT( ?artist ) AS ?count ) ( GROUP_CONCAT( STRAFTER( STR( ?artist ) , "http://www.wikidata.org/entity/" ) ; separator = ", " ) AS ?artistQIDs ) WHERE {
  ?artist wdt:P2510 ?id .
}
GROUP BY ?id
HAVING ( COUNT( ?artist ) > 1 )
ORDER BY ?id

Are there any duplicate IDs in the National Discography of Italian Song that link to multiple artists?

List all IDs from the National Discography of Italian Song that are shared by two or more artists, along with the artist identifiers.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 )( GROUP_CONCAT ( ?var2 ) AS ?var4 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P2510> ?var1 . } GROUP BY ?var1 HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) )


Question: What film has the Allcinema ID 87595?

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

Which movie is identified by the Allcinema film ID 87595?

Find the Wikidata item for the film with Allcinema ID 87595.

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


Question: Superclasses of Kaibobo language in Wikidata

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?superclass WHERE {
  wd:Q6347565 wdt:P279 + ?superclass .
}

What languages or linguistic categories is the Kaibobo language a subclass of?

Show me all the higher-level linguistic classifications that include the Kaibobo language.

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


Question: Cities with coordinates and establishment year

SELECT ?cityLabel ?coordinates ?city ?year WHERE {
  ?city wdt:P31 wd:Q515 .
  ?city wdt:P625 ?coordinates .
  OPTIONAL { ?city wdt:P580 ?start . }
  OPTIONAL { ?city wdt:P585 ?point . }
  OPTIONAL { ?city wdt:P582 ?end . }
  BIND( COALESCE(?start, ?point, ?end) AS ?date )
  BIND( YEAR(?date) AS ?year )
  ?city rdfs:label ?cityLabel .
  FILTER ( LANG(?cityLabel) = "en" )
}

What are the English names, coordinates, and establishment years of cities?

Provide a list of cities along with their geographic coordinates and, if available, the year they were founded or last updated.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q515> . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var2 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P580> ?var5 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P585> ?var6 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P582> ?var7 . } BIND ( IF ( !( BOUND ( ?var5 ) ), IF ( !( BOUND ( ?var6 ) ), ?var7 , ?var6 ) , ?var5 ) AS ?var8 ). BIND ( YEAR ( ?var8 ) AS ?var4 ). ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . }


Question: What properties are commonly used to describe humans, places, and groups of people in Wikidata, and what are their English labels?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?property ?object ?propertyLabel ?objectLabel WHERE {
  VALUES ?subject {
    wd:Q5 wd:Q2221906 wd:Q16334295
  }
  ?subject ?property ?object .
  FILTER(STRSTARTS(STR(?property) , "http://www.wikidata.org/prop/direct/"))
  BIND(IRI(REPLACE(STR(?property) , "http://www.wikidata.org/prop/direct/" , "http://www.wikidata.org/entity/")) AS ?propertyEntity)
  ?propertyEntity rdfs:label ?propertyLabel .
  FILTER(LANG(?propertyLabel) = "en")
  OPTIONAL {
    ?object rdfs:label ?objectLabel .
    FILTER(LANG(?objectLabel) = "en")
  }
}
LIMIT 100

Show me the English names of properties that link humans, locations, or groups to other data, along with the labels of the things they connect to.

Which direct properties connect humans, geographic locations, or groups of humans to other entities in Wikidata, and what are their meanings in English?

SELECT ?var1 ?var2 ?var3 ?var2Label ?var3Label WHERE { { VALUES ( ?var1 ?var4 ) { ( <http://ldf.fi/fibra/200bc765-7b40-4c70-8749-88a3fd1f9835> <http://ldf.fi/fibra/200bc765-7b40-4c70-8749-88a3fd1f9835> ) ( <http://ldf.fi/fibra/a2957c5c-633b-42b9-a2ad-6fab5cab42a2> <http://ldf.fi/fibra/a2957c5c-633b-42b9-a2ad-6fab5cab42a2> ) } ?var4 ?var5 ?var6 . } UNION { SELECT ?var1 ?var6 ?var5 WHERE { VALUES ( ?var1 ?var4 ) { ( <http://ldf.fi/fibra/200bc765-7b40-4c70-8749-88a3fd1f9835> <http://ldf.fi/fibra/200bc765-7b40-4c70-8749-88a3fd1f9835> ) ( <http://ldf.fi/fibra/a2957c5c-633b-42b9-a2ad-6fab5cab42a2> <http://ldf.fi/fibra/a2957c5c-633b-42b9-a2ad-6fab5cab42a2> ) } ?var6 ?var5 ?var4 . } LIMIT 5000 } BIND ( IF ( ( ?var5 = <http://www.w3.org/2000/01/rdf-schema#label> ), <http://www.w3.org/2004/02/skos/core#prefLabel> , ?var5 ) AS ?var2 ). BIND ( IF ( ( ?var6 = <http://www.wikidata.org/entity/Q5> ), <http://www.cidoc-crm.org/cidoc-crm/E21_Person> , IF ( ( ?var6 = <http://www.wikidata.org/entity/Q2221906> ), <http://www.cidoc-crm.org/cidoc-crm/E53_Place> , IF ( ( ?var6 = <http://www.wikidata.org/entity/Q16334295> ), <http://www.cidoc-crm.org/cidoc-crm/E74_Group> , ?var6 ) ) ) AS ?var3 ). OPTIONAL { ?var7 <http://wikiba.se/ontology#directClaim> ?var5 . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var8 . FILTER ( ( LANGMATCHES ( LANG ( ?var8 ) , "en" ) ) ) . } BIND ( COALESCE ( ?var8 , REPLACE ( REPLACE ( REPLACE ( REPLACE ( STR ( ?var2 ) , ".*/", "" ) , ".*#", "" ) , "_", " " ) , "([A-ZÅÄÖ])", " $1" ) ) AS ?var2Label ). OPTIONAL { ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( LANGMATCHES ( LANG ( ?var3Label ) , "en" ) ) ) . } }


Question: What is the English name and description of the board game with BoardGameGeek ID 160499?

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

Show me the details of the board game identified by BGG ID 160499, including its English label and description.

Can you find the English label and description for the board game on BoardGameGeek with ID 160499?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2339> "160799". 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 are the Twitter accounts of Wikidata items, sorted by how many Wikipedia pages mention them?

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?twitterUsername(COUNT(?sitelink) AS ?sitelinkCount) WHERE {
  ?item p:P2002 ?stmt .
  ?stmt ps:P2002 ?twitterUsername .
  ?sitelink schema:about ?item ; schema:isPartOf ?wiki .
  FILTER(STRSTARTS(STR(?wiki) , "https://"))
}
GROUP BY ?item ?twitterUsername
ORDER BY ASC(?sitelinkCount)

Show me the Twitter usernames of entities in Wikidata, ordered by their popularity on Wikipedia.

Which entities on Wikidata have Twitter profiles, and how many Wikipedia articles link to each?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "lenord" ) ( "string2" ) ( "string3" ) ( "Klee_Group" ) ( "string4" ) ( "string5" ) } } ORDER BY ASC( ?var3 )


Question: Rembrandt paintings in the Rijksmuseum or Louvre with images

SELECT DISTINCT ?painting ?paintingLabel ?image ?museum WHERE { ?painting wdt:P31 wd:Q3305213 ; wdt:P170 wd:Q5598 ; (wdt:P195 / wdt:P361*) ?museum . FILTER (?museum IN (wd:Q190804, wd:Q19675)) OPTIONAL { ?painting wdt:P18 ?image . } ?painting rdfs:label ?paintingLabel . FILTER(LANG(?paintingLabel) = "en") }

What are the titles and images of Rembrandt’s paintings held at the Rijksmuseum or the Louvre?

Show me Rembrandt’s paintings that are in either the Rijksmuseum or the Louvre, along with their English titles and Wikimedia Commons images.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> ; <http://www.wikidata.org/prop/direct/P170> <http://www.wikidata.org/entity/Q5598> ; ( <http://www.wikidata.org/prop/direct/P195> / <http://www.wikidata.org/prop/direct/P361> *) ?var4 . FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q190804> ) || ( ?var4 = <http://www.wikidata.org/entity/Q19675> ) ) ) . 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> "pt". } }


Question: Scholarly articles authored by "刘勇" with their titles and publication dates.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?article ?title ?authorString ?publicationDate WHERE {
  ?article wdt:P31 wd:Q13442814 .
  ?article wdt:P1476 ?title .
  ?article wdt:P2093 ?authorString .
  ?article wdt:P577 ?publicationDate .
  FILTER(?authorString = "刘勇")
}

What are the titles and publication dates of scholarly articles that list "刘勇" as an author?

Show me all scholarly articles written by "刘勇", along with their titles and when they were published.

SELECT ?var1 ?var2 ?var3 ?var4 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/Q13442814> . ?var1 <http://www.wikidata.org/prop/direct/P1476> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P2093> "string1". ?var1 <http://www.wikidata.org/prop/direct/P577> ?var4 . }


Question: What are the English-named entities in Wikidata that start with "Douglas"?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?label WHERE {
  ?item rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  .
  FILTER(REGEX(?label , "^Douglas" , "i"))
  .
  FILTER(STRSTARTS(STR(?item) , "http://www.wikidata.org/entity/Q"))
}
LIMIT 10

Can you list people or places named Douglas in English from Wikidata?

Show me the top 10 Wikidata items with English labels beginning with "Douglas".

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Douglas*". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . } LIMIT 10


Question: Which Wikidata items have Twitter usernames PBALille, Pyb75, INHA_Fr, Wikipedia, or Wikimedia?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES ?username { "PBALille" "Pyb75" "INHA_Fr" "Wikipedia" "Wikimedia" } }

What are the Wikidata entities associated with the Twitter handles "PBALille", "Pyb75", "INHA_Fr", "Wikipedia", and "Wikimedia"?

List the Wikidata items that are linked to the Twitter accounts PBALille, Pyb75, INHA_Fr, Wikipedia, and Wikimedia.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "PBALille" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "Wikipedia" ) ( "wikidata" ) ( "string5" ) ( "Pyb75" ) ( "string6" ) ( "string7" ) ( "Wikimedia" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "INHA_Fr" ) ( "string14" ) ( "string15" ) ( "string16" ) ( "Roumics" ) } } ORDER BY ASC( ?var3 )


Question: Entities that are members of any organization, with their English labels.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 wdt:P463 ?group . OPTIONAL { ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") } } LIMIT 11

What are 11 examples of entities that belong to some organization, and what are their English names?

List 11 organizations or people who are members of any group, along with their English labels.

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


Question: Which Wikipedia entities have Twitter handles like AppleMusic, BBCRadio2, or MarkRonson, and how many Wikipedia articles link to them?

SELECT ?item ?twitterHandle (COUNT(?sitelink) AS ?sitelinkCount) WHERE { ?item wdt:P2002 ?twitterHandle . ?sitelink schema:about ?item . VALUES ?twitterHandle { "AppleMusic" "BBCRadio2" "MarkRonson" "BigIssue" "Deezer" "maryjblige" "JKCorden" "hmvtweets" } } GROUP BY ?item ?twitterHandle ORDER BY ASC(?sitelinkCount)

What are the Twitter usernames of entities like BBC Radio 2 and Apple Music, and how many Wikipedia pages link to each of them, sorted by the number of links?

List the entities with Twitter handles including BigIssue, Deezer, and JKCorden, along with the count of Wikipedia sitelinks they have, ordered from least to most sitelinks.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "TheXFactor" ) ( "AppleMusic" ) ( "string3" ) ( "BBCRadio2" ) ( "MarkRonson" ) ( "BigIssue" ) ( "Deezer" ) ( "maryjblige" ) ( "JKCorden" ) ( "hmvtweets" ) } } ORDER BY ASC( ?var3 )


Question: Types and categories that Medicine Hat belongs to

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

What classes is Medicine Hat an instance of or a subclass of?

List all the hierarchical categories that Medicine Hat is part of, including its direct type and parent classes.

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


Question: What is the name, country, and coordinates of the airport with IATA code ASX?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?airport ?airportLabel ?country ?coordinates WHERE {
  ?airport wdt:P238 "ASX" .
  ?airport wdt:P17 ?country .
  ?airport wdt:P625 ?coordinates .
  ?airport rdfs:label ?airportLabel .
  FILTER(LANG(?airportLabel) = "en")
}

Where is Ashland Regional Airport (ASX) located, and what are its coordinates?

Give me the English name, country, and GPS location of the airport that uses the IATA code ASX.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P238> "ASX". ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What movie has the elCinema ID 2041115?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie WHERE {
  ?movie wdt:P3135 "2041115" .
}

Which film on Wikidata is identified by the elCinema film ID 2041115?

Find the Wikidata item for the movie with elCinema ID 2041115.

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


Question: What is the image of the person with SNAC ARK ID w68054wh?

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

Can you find the Wikimedia Commons image associated with Vincent Sheean using his SNAC ARK ID?

Show me the photo of the individual identified by the SNAC ARK ID w68054wh.

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