Question: What is the English Wikipedia page for the Category:Cheon clans, and what are its associated image, social media links, and official website?

SELECT ?label ?image ?coordinates ?wikipediaPage ?youtubeId ?githubUsername ?twitterUsername ?facebookUsername ?instagramUsername ?officialWebsite ?orcid WHERE { wd:Q18569114 rdfs:label ?label . FILTER (LANG(?label) = "en") OPTIONAL { wd:Q18569114 wdt:P18 ?image . } OPTIONAL { wd:Q18569114 wdt:P625 ?coordinates . } OPTIONAL { wd:Q18569114 wdt:P1651 ?youtubeId . } OPTIONAL { wd:Q18569114 wdt:P2037 ?githubUsername . } OPTIONAL { wd:Q18569114 wdt:P2002 ?twitterUsername . } OPTIONAL { wd:Q18569114 wdt:P2013 ?facebookUsername . } OPTIONAL { wd:Q18569114 wdt:P2003 ?instagramUsername . } OPTIONAL { wd:Q18569114 wdt:P856 ?officialWebsite . } OPTIONAL { wd:Q18569114 wdt:P496 ?orcid . } OPTIONAL { ?wikipediaPage rdf:type schema:Article ; schema:about wd:Q18569114 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } }

Can you find the English Wikipedia article for the category "Cheon clans" and list any available image, YouTube ID, GitHub, Twitter, Facebook, Instagram, official website, or ORCID associated with it?

Please provide the English Wikipedia link for the Wikimedia category "Category:Cheon clans" and any related metadata such as social media handles or official website.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q18569114> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var12 ) ) ) . VALUES ( ?var12 ?var13 ) { ( "en""1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "en""2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "de""3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "fr""4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "it""5"^^<http://www.w3.org/2001/XMLSchema#integer> ) } } OPTIONAL { <http://www.wikidata.org/entity/Q18569114> <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q18569114> <http://www.wikidata.org/prop/direct/P625> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q18569114> <http://www.wikidata.org/prop/direct/P1651> ?var5 . } OPTIONAL { <http://www.wikidata.org/entity/Q18569114> <http://www.wikidata.org/prop/direct/P2037> ?var6 . } OPTIONAL { <http://www.wikidata.org/entity/Q18569114> <http://www.wikidata.org/prop/direct/P2002> ?var7 . } OPTIONAL { <http://www.wikidata.org/entity/Q18569114> <http://www.wikidata.org/prop/direct/P2013> ?var8 . } OPTIONAL { <http://www.wikidata.org/entity/Q18569114> <http://www.wikidata.org/prop/direct/P2003> ?var9 . } OPTIONAL { <http://www.wikidata.org/entity/Q18569114> <http://www.wikidata.org/prop/direct/P856> ?var10 . } OPTIONAL { <http://www.wikidata.org/entity/Q18569114> <http://www.wikidata.org/prop/direct/P496> ?var11 . } OPTIONAL { ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q18569114> ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var13 )


Question: What organizations has Herbert Van de Sompel been affiliated with or employed by, and what are the start and end dates of those affiliations, along with their images?

PREFIX p: <http://www.wikidata.org/prop/>
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/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?image ?organization ?organizationLabel ?startDate ?endDate WHERE {
  {
    wd:Q5735804 p:P1416 ?statement .
    ?statement ps:P1416 ?organization .
  } UNION {
    wd:Q5735804 p:P108 ?statement .
    ?statement ps:P108 ?organization .
  }
  ?organization rdfs:label ?organizationLabel .
  FILTER ( LANG( ?organizationLabel ) = "en" ) OPTIONAL {
    ?organization wdt:P18 ?image .
  }
  OPTIONAL {
    ?statement pq:P580 ?startDate .
  }
  OPTIONAL {
    ?statement pq:P582 ?endDate .
  }
}

Affiliations and employers of Herbert Van de Sompel with dates and images

Show me the organizations Herbert Van de Sompel worked for or was affiliated with, including when he started and ended each role, and any associated images.

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


Question: French labels and descriptions of properties used on Linkin Park

SELECT ?property ?label ?description WHERE { VALUES ?property { wd:P31 wd:P136 wd:P495 wd:P571 wd:P1412 wd:P17 wd:P18 wd:P175 } ?property rdfs:label ?label . ?property schema:description ?description . FILTER(LANG(?label) = "fr") FILTER(LANG(?description) = "fr") }

What are the French labels and descriptions of the properties associated with Linkin Park on Wikidata?

Show me the French names and descriptions of the properties that describe Linkin Park.

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/Q261> . ?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: Which property is most often used to link items to the property 'language of work or name' (P722)?

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

What property is most commonly used in statements where the object is the Wikidata property P722?

Show me the property that appears most frequently as the direct claim in statements with P722 as the object.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/P722> . ?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: List places with their demonyms and the languages those demonyms are in, using English place names.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?place ?placeLabel ?demonym ?language WHERE {
  ?place wdt:P1549 ?demonym .
  BIND(LANG(?demonym) AS ?language)
  .
  ?place rdfs:label ?placeLabel .
  FILTER(LANG(?placeLabel) = "en")
}

What are the demonyms for places around the world, and in which languages are they expressed, with the places named in English?

Show me the English names of places along with their associated demonyms and the languages those demonyms are written in.

SELECT ?var1 ?var2 ?var3 WHERE { BIND ( LANG ( ?var2 ) AS ?var3 ). ?var1 <http://www.wikidata.org/prop/direct/P1549> ?var2 . }


Question: What properties and values are associated with the watercourse Arroyo Dulce in Argentina, excluding its instance-of classification?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?property ?object WHERE {
  wd:Q21829556 ?property ?object .
  FILTER ( ?property != wdt:P31 )
}

List all the details about Arroyo Dulce (Q21829556) in Wikidata, except for its type.

Show me all the information about the river Arroyo Dulce in Argentina, such as its location, country, and identifiers, but not its category.

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q21829556> . ?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: Where did Robert Higham study, when did he start and end his studies, and what degree did he earn?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?institution ?institutionLabel ?startDate ?endDate ?degreeLabel WHERE {
  wd:Q42309821 p:P69 ?statement .
  ?statement ps:P69 ?institution .
  ?institution rdfs:label ?institutionLabel .
  FILTER ( LANG( ?institutionLabel ) = "en" ) .
  OPTIONAL {
    ?statement pq:P580 ?startDate .
  }
  OPTIONAL {
    ?statement pq:P582 ?endDate .
  }
  OPTIONAL {
    ?statement pq:P512 ?degree .
    ?degree rdfs:label ?degreeLabel .
    FILTER ( LANG( ?degreeLabel ) = "en" ) .
  }
}

Robert Higham’s education: institution, start date, end date, and degree.

Show me the educational background of Robert Higham, including the university he attended, the dates of his studies, and his academic degree.

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


Question: List the top 101 badminton tournament series that are subclasses of badminton tournament.

SELECT ?tournament WHERE { ?tournament wdt:P279 wd:Q13357858 . } LIMIT 101

What are the 101 most notable badminton tournament categories in Wikidata?

Show me the names of the 101 specific badminton tournament events that are classified as subclasses of 'badminton tournament'.

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


Question: What qualifier properties are most frequently used on diplomatic relation statements in Wikidata, and how often are they used?

SELECT ?qualifier ?qualifierLabel (COUNT(DISTINCT ?statement) AS ?count)
WHERE {
  ?item p:P530 ?statement .
  ?statement ?qualifier ?qualifierValue .
  FILTER(STRSTARTS(STR(?qualifier), "http://www.wikidata.org/prop/qualifier/"))
  OPTIONAL {
    ?qualifier rdfs:label ?qualifierLabel .
    FILTER(LANG(?qualifierLabel) = "en")
  }
}
GROUP BY ?qualifier ?qualifierLabel
ORDER BY DESC(?count) ASC(?qualifierLabel)

Most common qualifiers for diplomatic relations (P530) in Wikidata, with usage counts

Show me the qualifier properties used on diplomatic relation statements, ordered by how often they appear, along with their English labels.

SELECT ?var1 ?var1Label ?var2 WHERE { { SELECT ?var1 ( COUNT ( DISTINCT ?var3 ) AS ?var2 ) WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var3 <http://www.wikidata.org/prop/P530> ?var4 . ?var4 ?var5 ?var6 . ?var1 <http://wikiba.se/ontology#qualifier> ?var5 . } GROUP BY ?var1 } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . } } ORDER BY DESC( ?var2 )ASC( ?var1Label )


Question: What organizations are located in Bethesda, and which institutions are they part of?

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 ?org ?orgLabel ?parent ?parentLabel WHERE {
  ?org wdt:P131 wd:Q584451 ; wdt:P361 ?parent .
  ?org rdfs:label ?orgLabel .
  ?parent rdfs:label ?parentLabel .
  FILTER ( LANG( ?orgLabel ) = "en" ) FILTER ( LANG( ?parentLabel ) = "en" )
}

Show me the parent institutions of organizations based in Bethesda, Maryland.

Which research institutes in Bethesda are affiliated with the National Institutes of Health?

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


Question: What drugs are used to treat atrial fibrillation?

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 ?treatment ?treatmentLabel WHERE {
  ?treatment wdt:P2175 wd:Q815819 .
  ?treatment rdfs:label ?treatmentLabel .
  FILTER ( LANG( ?treatmentLabel ) = "en" )
}
ORDER BY ASC ( ?treatmentLabel )

Can you list the medications that treat atrial fibrillation in alphabetical order?

Which therapies are associated with the treatment of atrial fibrillation according to Wikidata?

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


Question: Civil parishes in Wiltshire with images and coordinates

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 ?image ?parish ?coordinates ?parishLabel WHERE {
  ?parish wdt:P31 wd:Q1115575 ; wdt:P131 wd:Q23183 .
  OPTIONAL {
    ?parish wdt:P18 ?image .
  }
  OPTIONAL {
    ?parish wdt:P625 ?coordinates .
  }
  ?parish rdfs:label ?parishLabel .
  FILTER ( LANG( ?parishLabel ) = "en" )
}

What are the civil parishes in Wiltshire, and do they have images or geographic coordinates?

List all civil parishes in Wiltshire along with their English labels, images, and coordinates if available.

SELECT ?var1 ?var2 ?var3 ?var2Label WHERE { OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P625> ?var3 . } ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q22349272> . ?var2 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q23183> . }


Question: Drugs used to treat atrial fibrillation

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 ?treatment ?treatmentLabel WHERE {
  wd:Q815819 wdt:P2176 ?treatment .
  ?treatment rdfs:label ?treatmentLabel .
  FILTER ( LANG( ?treatmentLabel ) = "en" )
}

What medications are prescribed for atrial fibrillation?

List the treatments for atrial fibrillation.

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


Question: Who were born on September 15, 1939?

SELECT ?person ?personLabel WHERE { ?person wdt:P569 "1939-09-15T00:00:00Z"^^xsd:dateTime . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

Can you list the people born on September 15, 1939, along with their names?

What are the English labels of individuals whose date of birth is exactly September 15, 1939?

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P569> "1939-09-15"^^<http://www.w3.org/2001/XMLSchema#dateTime> . }


Question: Image of the person with SNAC ARK ID w6v98fgc

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

What is the image of the individual identified by the SNAC ARK ID w6v98fgc?

Show me the Wikimedia Commons image associated with the SNAC ARK ID w6v98fgc.

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


Question: Main subjects of Ricardo Henao’s publications, ranked by number of works.

SELECT (COUNT(?work) AS ?count) ?subjectLabel (SAMPLE(?workLabel) AS ?exampleWorkLabel) WHERE { ?work wdt:P50 wd:Q39508241 ; wdt:P921 ?subject . ?subject rdfs:label ?subjectLabel . ?work rdfs:label ?workLabel . FILTER(LANG(?subjectLabel) = "en") FILTER(LANG(?workLabel) = "en") } GROUP BY ?subject ?subjectLabel ORDER BY DESC(?count)

What are the most common research topics in Ricardo Henao’s publications, and can you show one example work for each?

List the main subjects of Ricardo Henao’s academic works, ordered by how many works cover each topic, along with an example title for each subject.

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/Q39508241> . ?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/Q39508241> . ?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: Musicians whose names start with M

SELECT DISTINCT ?musician ?musicianLabel WHERE { ?musician wdt:P31 wd:Q5 ; wdt:P106 wd:Q639669 ; rdfs:label ?musicianLabel . FILTER (LANG(?musicianLabel) = "en") . FILTER (STRSTARTS( ?musicianLabel , "M" )) . }

Who are the human musicians with names starting with the letter "M"?

List all English-named human musicians whose names begin with "M".

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q639669> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( STRSTARTS ( ?var1Label , "M" ) ) ) . }


Question: Image of Maxine Kumin with SNAC ARK ID w62808gs

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

What is the image associated with Maxine Kumin in Wikidata, given her SNAC ARK ID is w62808gs?

Show me the Wikimedia Commons image for the person identified by the SNAC ARK ID w62808gs.

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


Question: Who are the fathers of Malia Obama’s parents?

SELECT ?parent ?parentLabel ?father ?fatherLabel WHERE { ?parent wdt:P31 wd:Q5 . ?parent wdt:P40 wd:Q15070044 . ?parent wdt:P22 ?father . ?parent rdfs:label ?parentLabel . ?father rdfs:label ?fatherLabel . FILTER(LANG(?parentLabel) = "en") FILTER(LANG(?fatherLabel) = "en") }

What is the father of each parent of Malia Obama?

Can you tell me the fathers of Barack Obama and Michelle Obama?

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?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". } ?var1 <http://www.wikidata.org/prop/direct/P40> <http://www.wikidata.org/entity/Q15070044> . } LIMIT 1


Question: What are the English titles of musical compositions described in the book series "Sefer Hanigunim Chabad"?

SELECT ?item ?itemLabel WHERE { ?item wdt:P1343 wd:Q44666646 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 100

List the English-labeled niggunim that reference Sefer Hanigunim Chabad as their source.

Which Chabad niggunim are cited in the book series Sefer Hanigunim Chabad, and what are their English names?

SELECT ?var1 ?var1Label ?var2 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } OPTIONAL { } ?var1 <http://www.wikidata.org/prop/P1545> ?var3 . ?var3 <http://www.wikidata.org/prop/qualifier/P642> <http://www.wikidata.org/entity/Q44666646> . ?var3 <http://www.wikidata.org/prop/statement/value/P1545> ?var2 . } LIMIT 100


Question: Labels for Fernand Darchicourt in Italian, English, German, and French, ordered by priority, along with his image, coordinates, and Italian Wikipedia link.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?label ?image ?coords ?wikipediaArticle WHERE {
  VALUES(?lang ?priority) {("it" 1)("en" 2)("de" 3)("fr" 4)
  }
  OPTIONAL {
    wd:Q3069103 rdfs:label ?label .
    FILTER(LANG(?label) = ?lang)
  }
  OPTIONAL {
    wd:Q3069103 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q3069103 wdt:P625 ?coords .
  }
  OPTIONAL {
    ?wikipediaArticle rdf:type schema:Article ; schema:about wd:Q3069103 ; schema:inLanguage "it" ; schema:isPartOf <https://it.wikipedia.org/> .
    FILTER(?lang = "it")
  }
}
ORDER BY ?priority

What are the labels for Fernand Darchicourt in Italian, English, German, and French, and does he have an image, coordinates, or an Italian Wikipedia article?

Show me the names of Fernand Darchicourt in Italian, English, German, and French, in that order, along with any available image, geographic coordinates, and link to the Italian Wikipedia page.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q3069103> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var7 ) ) ) . VALUES ( ?var7 ?var8 ) { ( "it""1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "en""2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "de""3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "fr""4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "it""5"^^<http://www.w3.org/2001/XMLSchema#integer> ) } } OPTIONAL { <http://www.wikidata.org/entity/Q3069103> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q3069103> <urn:dboabstract> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "it" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q3069103> <http://www.wikidata.org/prop/direct/P625> ?var4 . } OPTIONAL { ?var6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q3069103> ; <http://schema.org/inLanguage> "it"; <http://schema.org/isPartOf> <https://it.wikipedia.org/> . } } ORDER BY ASC( ?var8 )


Question: French citizens listed in Wikidata, English names, rows 51–150

SELECT ?person ?personLabel WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P27 wd:Q142 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } LIMIT 100 OFFSET 50

Who are the 51st to 150th French people listed in Wikidata with English labels?

List the English names of French citizens from position 51 to 150 in Wikidata.

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


Question: People who have been members of the Congress of Deputies of Spain

SELECT ?person WHERE { ?person p:P39 [ ps:P39 wd:Q18171345 ] .}

Who are all the individuals who have held the position of Member of the Congress of Deputies in Spain?

Can you list all the people who have served as deputies in the Spanish Congress?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/P39> [ <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q18171345> ] . }


Question: What is the work with Bibliothèque nationale de France ID 14446751h?

SELECT ?item ?itemLabel WHERE { ?item wdt:P268 "14446751h" . ?item schema:name ?itemLabel . FILTER(LANG(?itemLabel) = "fr" || LANG(?itemLabel) = "en")}

Which work is identified by the BnF ID 14446751h, and what is its title?

Please provide the title of the work that has the BnF identifier 14446751h.

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


Question: German municipalities with their postal codes, coordinates, and municipality keys.

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

What are the names, postal codes, coordinates, and German municipality keys of municipalities in Germany?

List German municipalities along with their English names, postal codes, geographic coordinates, and official municipality keys.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3Label ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q262166> . ?var1 <http://www.wikidata.org/prop/direct/P439> ?var5 . ?var1 <http://www.wikidata.org/prop/direct/P281> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en,de". } }


Question: Male footballers with English labels

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 ?footballer ?footballerLabel WHERE {
  ?footballer wdt:P106 wd:Q937857 ; wdt:P21 wd:Q6581097 .
  ?footballer rdfs:label ?footballerLabel .
  FILTER ( LANG( ?footballerLabel ) = "en" )
}

Who are the male association football players with English-language names?

List the names of male footballers in English.

SELECT ?var1 ?var1Label ?var2 WHERE { { SELECT ?var1 WHERE { ?var1 <http://schema.org/description> "footballer"@en . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581097> . } LIMIT 200000 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sq". } }


Question: Images of Uta Frith and her related works, including main topics and co-authors.

SELECT DISTINCT ?image WHERE { { wd:Q8219 wdt:P18 ?image . } UNION { ?work wdt:P50 wd:Q8219 . ?work wdt:P921 ?topic . ?topic wdt:P18 ?image . } UNION { ?work wdt:P50 wd:Q8219 . ?coauthor wdt:P50 ?work . ?coauthor wdt:P18 ?image . } }

What images are associated with Uta Frith, either directly, as the main subject of her publications, or through her co-authors?

Show me all images linked to Uta Frith, including those from the topics she wrote about and the people she co-authored with.

SELECT DISTINCT ?var1 WHERE { { <http://www.wikidata.org/entity/Q8219> <http://www.wikidata.org/prop/direct/P18> ?var1 . } UNION { <http://www.wikidata.org/entity/Q8219> !( <http://www.wikidata.org/prop/direct/P1889> ) ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . FILTER ( ( ( ?var2 != <http://www.wikidata.org/entity/Q5> ) ) ) . } UNION { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q8219> . { ?var3 <http://www.wikidata.org/prop/direct/P921> [ <http://www.wikidata.org/prop/direct/P18> ?var1 ] . } UNION { ?var4 <http://www.wikidata.org/prop/direct/P50> ?var3 . ?var4 <http://www.wikidata.org/prop/direct/P18> ?var1 . } } }


Question: How many source references are there for artworks by Robert Delaunay and Georges Seurat, grouped by the French name of the artist?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?creatorLabel(COUNT(?source) AS ?sourceCount) WHERE {
  VALUES ?artwork {
    wd:Q28092018 wd:Q243 wd:Q19018512 wd:Q28074798 wd:Q28086209 wd:Q19018536 wd:Q3821251 wd:Q19018421 wd:Q19018451 wd:Q20816309 wd:Q28092238
  }
  ?artwork p:P170 ?creatorStatement .
  OPTIONAL {
    ?creatorStatement prov:wasDerivedFrom ?source .
  }
  ?creatorStatement ps:P170 ?creator .
  ?creator rdfs:label ?creatorLabel .
  FILTER(LANG(?creatorLabel) = "fr")
}
GROUP BY ?creatorLabel

Which artists, among those who created the listed Eiffel Tower artworks and the Seurat painting, have their creator attributions backed by sources, and how many sources per artist in French?

Can you show me the count of provenance sources for each artist’s attribution in French for these specific artworks?

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var4 <http://www.wikidata.org/prop/P170> ?var5 . VALUES ( ?var4 ) { ( <http://www.wikidata.org/entity/Q28092018> ) ( <http://www.wikidata.org/entity/Q243> ) ( <http://www.wikidata.org/entity/Q19018512> ) ( <http://www.wikidata.org/entity/Q28074798> ) ( <http://www.wikidata.org/entity/Q28086209> ) ( <http://www.wikidata.org/entity/Q19018536> ) ( <http://www.wikidata.org/entity/Q3821251> ) ( <http://www.wikidata.org/entity/Q19018421> ) ( <http://www.wikidata.org/entity/Q19018451> ) ( <http://www.wikidata.org/entity/Q20816309> ) ( <http://www.wikidata.org/entity/Q28092238> ) } OPTIONAL { ?var5 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var2 . } ?var5 <http://www.wikidata.org/prop/statement/P170> ?var6 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "fr" ) ) ) . } GROUP BY ?var1


Question: What properties are linked to the APOE gene in Wikidata?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?property WHERE {
  ?subject ?property wd:Q14890468 .
}

Which relationships connect other entities to the APOE gene?

Show all the ways the APOE gene is related to other items in Wikidata, including both direct properties and statement qualifiers.

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


Question: Which cryptocurrencies have known creators, and who are they?

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 ?cryptocurrency ?cryptocurrencyLabel ?creator ?creatorLabel WHERE {
  ?cryptocurrency wdt:P31 wd:Q13479982 .
  ?cryptocurrency wdt:P170 ?creator .
  ?cryptocurrency rdfs:label ?cryptocurrencyLabel .
  ?creator rdfs:label ?creatorLabel .
  FILTER ( LANG( ?cryptocurrencyLabel ) = "en" ) FILTER ( LANG( ?creatorLabel ) = "en" )
}
LIMIT 100

List the names of cryptocurrencies and their creators in English.

Who founded or created each cryptocurrency, according to Wikidata?

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


Question: What is the date of death of John F. Kennedy?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?date WHERE {
  wd:Q9696 p:P570 ?statement .
  ?statement ps:P570 ?date .
}

Can you tell me the exact day John F. Kennedy passed away?

SELECT * WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q9696> ) ( <http://www.wikidata.org/entity/Q17092870> ) ( <http://www.wikidata.org/entity/Q8685> ) ( <http://www.wikidata.org/entity/Q216617> ) ( <http://www.wikidata.org/entity/Q741823> ) } ?var1 ( <http://www.wikidata.org/prop/P570> / <http://www.wikidata.org/prop/qualifier/value/P585> ) ?var2 . ?var2 ?var3 ?var4 . } LIMIT 10


Question: Show me the English and German labels for the airline with the official website powdair.ski.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?website WHERE {
  ?item wdt:P856 <https://www.powdair.ski/> .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" || LANG( ?itemLabel ) = "de" ) BIND( <https://www.powdair.ski/> AS ?website )
}

Which airline has the website https://www.powdair.ski/, and what are its names in English and German?

What are the English and German names of the airline whose official website is https://www.powdair.ski/?

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.powdair.ski/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.www.powdair.ski/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.www.powdair.ski/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.powdair.ski/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.powdair.ski/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.powdair.ski> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.powdair.ski> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://powdair.ski> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://powdair.ski> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://powdair.ski/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://powdair.ski/> . } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P856> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: How many items on Wikidata have neurology as their main subject?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT(COUNT(?work) AS ?count) WHERE {
  ?work wdt:P921 wd:Q83042 .
}

What is the number of works primarily about neurology on Wikidata?

Count the number of items whose main topic is neurology.

SELECT( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P921> <http://www.wikidata.org/entity/Q83042> . }


Question: Television series starring Sean Bean

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?series ?seriesLabel WHERE {
  ?series wdt:P31 / wdt:P279 * wd:Q5398426 .
  ?series wdt:P161 wd:Q191104 .
  ?series rdfs:label ?seriesLabel .
  FILTER(LANG(?seriesLabel) = "en")
}
LIMIT 50

Which TV series has Sean Bean appeared in?

List all television series (including subtypes) in which the actor Sean Bean has played a role.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q5398426> . ?var1 <http://www.wikidata.org/prop/direct/P161> <http://www.wikidata.org/entity/Q191104> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 50


Question: List landscapes (excluding bodies of water) with their English and Russian names, alternative labels in both languages, and what larger entity they are part of.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?landscape ?enLabel ?ruLabel ?enAltLabel ?ruAltLabel ?partOfLabel WHERE {
  ?landscape(wdt:P31 / wdt:P279 *) wd:Q107425 . MINUS {
    ?landscape(wdt:P31 / wdt:P279 *) wd:Q15324 .
  }
  ?landscape rdfs:label ?enLabel .
  FILTER(LANG(?enLabel) = "en")
  ?landscape rdfs:label ?ruLabel .
  FILTER(LANG(?ruLabel) = "ru")
  OPTIONAL {
    ?landscape skos:altLabel ?enAltLabel .
    FILTER(LANG(?enAltLabel) = "en")
  }
  OPTIONAL {
    ?landscape skos:altLabel ?ruAltLabel .
    FILTER(LANG(?ruAltLabel) = "ru")
  }
  OPTIONAL {
    ?landscape wdt:P361 ?partOf .
    ?partOf rdfs:label ?partOfLabel .
  }
}
ORDER BY ASC(?ruLabel)
LIMIT 10000

What are the landscapes in the world, excluding bodies of water, and what are their English and Russian labels, alternative names, and the names of the larger regions they belong to?

Please provide a list of all landscapes (not bodies of water), showing their English and Russian primary and alternative labels, along with the name of any larger geographical or cultural entity they are part of, sorted by Russian label.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q107425> . MINUS { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q15324> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var6 . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "ru" ) ) ) . ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "ru" ) ) ) . OPTIONAL { ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var3 ) LIMIT 10000


Question: What positions did Nick Bourne hold that are related to the Welsh Assembly?

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?position WHERE {
  wd:Q7026799 p:P39 ?statement .
  ?statement ps:P39 ?position .
  ?position wdt:P279 * wd:Q3406079 .
}

Which legislative positions in Wales has Nick Bourne held, including those that are subclasses of member of the Senedd?

List all positions held by Nick Bourne that are either member of the Senedd or a more specific version of it.

SELECT DISTINCT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q7026799> <http://www.wikidata.org/prop/P39> ?var1 . ?var1 ( <http://www.wikidata.org/prop/statement/P39> / <http://www.wikidata.org/prop/statement/P279> ) <http://www.wikidata.org/entity/Q3406079> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What articles about Alzheimer’s disease were published in the journal 'Advances in Alzheimer's disease'?

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 ?item ?itemLabel WHERE {
  ?item wdt:P921 wd:Q11081 ; wdt:P1433 wd:Q27725903 .
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER(LANG(?itemLabel) = 'en')
  }
}
LIMIT 10

Show me scholarly works on Alzheimer’s disease that appear in 'Advances in Alzheimer's disease'.

Which publications in the journal 'Advances in Alzheimer's disease' focus on Alzheimer’s disease as their main topic?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P921> <http://www.wikidata.org/entity/Q27725903> . } LIMIT 3000


Question: Image of the person with SNAC ARK ID w6b85pv2.

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

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

Show me the Wikimedia Commons image of the individual identified by the SNAC ARK ID w6b85pv2.

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


Question: Monuments in Bulgaria with coordinates and images

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?monument ?monumentLabel ?coordinates ?image WHERE {
  ?monument wdt:P17 wd:Q219 .
  ?monument(wdt:P31 / wdt:P279 *) wd:Q4989906 .
  ?monument wdt:P625 ?coordinates .
  OPTIONAL {
    ?monument wdt:P18 ?image .
  }
  ?monument rdfs:label ?monumentLabel .
  FILTER(LANG(?monumentLabel) = "en")
}

What are the monuments in Bulgaria, their locations, and do they have images?

List all monuments in Bulgaria with their geographic coordinates and, if available, their images, using English labels.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q219> . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q4989906> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Things located in Toronto with their types and coordinates.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?var1Label ?var1 ?var2Label ?var3 WHERE {
  ?var1(wdt:P131 | wdt:P276) wd:Q172 .
  OPTIONAL {
    ?var1 wdt:P31 ?var2 .
    ?var2 rdfs:label ?var2Label .
    FILTER(LANG(?var2Label) = "en")
  }
  OPTIONAL {
    ?var1 wdt:P625 ?var3 .
  }
  ?var1 rdfs:label ?var1Label .
  FILTER(LANG(?var1Label) = "en")
}
ORDER BY ASC(?var2Label) ASC(?var1Label)

What are the buildings, organizations, and places in Toronto, and what are their types and geographic coordinates?

List all entities located in Toronto, including their categories (e.g., museum, park) and GPS coordinates if available, sorted alphabetically by category and name.

SELECT DISTINCT ?var1Label ?var1 ?var2Label ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P131> | <http://www.wikidata.org/prop/direct/P279> *| <http://www.wikidata.org/prop/direct/P276> ) <http://www.wikidata.org/entity/Q172> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } OPTIONAL { ?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". } } ORDER BY ASC( ?var2Label )ASC( ?var1Label )


Question: What is the image of the person identified by the SNAC ARK ID w6f29nwg?

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

Can you show me the Wikimedia Commons image associated with Barack Obama’s SNAC identifier?

Return the image file linked to the Social Networks and Archival Context (SNAC) record with ID w6f29nwg.

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


Question: What are the multilingual labels, image, and English Wikipedia link for the Colonial Museum Germany?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?label ?image ?coordinates ?wikipediaArticle WHERE {
  wd:Q1205786 rdfs:label ?label .
  OPTIONAL {
    wd:Q1205786 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q1205786 wdt:P625 ?coordinates .
  }
  OPTIONAL {
    ?wikipediaArticle schema:about wd:Q1205786 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
  }
}

Can you show me the labels in different languages, the image, and the English Wikipedia article for the Colonial Museum Germany?

Please provide the English, German, and French labels for the Colonial Museum Germany, along with its image and the link to its English Wikipedia page.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q1205786> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var12 ) ) ) . VALUES ( ?var12 ?var13 ) { ( "en""1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "en""2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "de""3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "fr""4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "it""5"^^<http://www.w3.org/2001/XMLSchema#integer> ) } } OPTIONAL { <http://www.wikidata.org/entity/Q1205786> <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q1205786> <http://www.wikidata.org/prop/direct/P625> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q1205786> <http://www.wikidata.org/prop/direct/P1651> ?var5 . } OPTIONAL { <http://www.wikidata.org/entity/Q1205786> <http://www.wikidata.org/prop/direct/P2037> ?var6 . } OPTIONAL { <http://www.wikidata.org/entity/Q1205786> <http://www.wikidata.org/prop/direct/P2002> ?var7 . } OPTIONAL { <http://www.wikidata.org/entity/Q1205786> <http://www.wikidata.org/prop/direct/P2013> ?var8 . } OPTIONAL { <http://www.wikidata.org/entity/Q1205786> <http://www.wikidata.org/prop/direct/P2003> ?var9 . } OPTIONAL { <http://www.wikidata.org/entity/Q1205786> <http://www.wikidata.org/prop/direct/P856> ?var10 . } OPTIONAL { <http://www.wikidata.org/entity/Q1205786> <http://www.wikidata.org/prop/direct/P496> ?var11 . } OPTIONAL { ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q1205786> ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var13 )


Question: What are the subclasses of the region or constituency of the Senedd?

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 ?subclass ?subclassLabel WHERE {
  ?subclass wdt:P279 wd:Q6970524 .
  ?subclass rdfs:label ?subclassLabel .
  FILTER ( LANG( ?subclassLabel ) = "en" )
}

List the electoral regions and constituencies used in the Senedd.

What types of constituencies exist in the Welsh Parliament?

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


Question: What are the parent classes of volcanic landform in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?subclass WHERE {
  wd:Q29025902 wdt:P279 ?subclass .
}

What broader categories does volcanic landform belong to?

Is volcanic landform a type of landform or natural geographic object?

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


Question: Direct properties and values of TeX in Wikidata

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

What are the direct relationships that TeX has with other entities in Wikidata?

Show me all the direct properties and their values for the typesetting system TeX, along with their English labels.

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


Question: What property is most commonly used to describe the breakfast cereal brand Triples?

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

Which statement about Triples cereal appears most frequently in Wikidata?

What class does the cereal Triples belong to, according to its most used Wikidata property?

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q7843581> . ?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: Which portraits of Bourbon family members were painted by Diego Velázquez, and when were they created?

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 ?work ?label ?date(SAMPLE(?image) AS ?imageSample) WHERE {
  ?work wdt:P136 / wdt:P279 * wd:Q134307 .
  ?work wdt:P170 wd:Q297 .
  ?work wdt:P571 ?date .
  ?work rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  .
  FILTER(REGEX(?label , "Bourbon" , "i"))
  .
  OPTIONAL {
    ?work wdt:P18 ?image .
  }
}
GROUP BY ?work ?label ?date

Diego Velázquez portraits of Bourbon royalty with inception dates and images

Show me the portraits created by Diego Velázquez that feature Bourbon family members, including their creation dates and any available images.

SELECT ?var1 ?var1Label ?var2 ( SAMPLE ( ?var3 ) AS ?var3 ) WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P136> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q134307> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . ?var1 <http://www.wikidata.org/prop/direct/P170> <http://www.wikidata.org/entity/Q297> . ?var1 <http://www.wikidata.org/prop/direct/P571> ?var2 . FILTER ( ( REGEX ( ?var4Label , "Bourbon", "i" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de, en, es, fr". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } GROUP BY ?var1 ?var1Label ?var2


Question: Image of the person with SNAC ARK ID w6rn3bbz

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

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

Can you show me the Wikimedia Commons image for Thomas Cooper, identified by the SNAC ARK ID w6rn3bbz?

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


Question: Image of the person with SNAC ARK ID w64t6v1d

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

What image is associated with the SNAC ARK ID w64t6v1d?

Find the Wikimedia Commons image for the entity identified by SNAC ARK ID w64t6v1d.

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


Question: What are the main properties associated with items linked to controversial Wikidata properties used for living people?

SELECT ?mainProp ?formatted WHERE { ?prop wdt:P8274 wd:Q44597997 . ?prop wdt:P1629 ?item . ?item wdt:P1687 ?mainProp . BIND( CONCAT( '[', STR(?mainProp), ' ', SUBSTR(STR(?mainProp), 10), ']' ) AS ?formatted ) }

Which Wikidata properties are considered likely to be challenged, and what are the main properties of the items they are associated with?

List the main properties of items connected to properties that require special sourcing when used with living people, along with a formatted version of their URIs.

SELECT ?var1 ?var2 WHERE { BIND ( CONCAT ( "[", STR ( ?var1 ) , " ", SUBSTR ( STR ( ?var1 ) ,"10"^^<http://www.w3.org/2001/XMLSchema#integer> ) , "]" ) AS ?var2 ). <http://www.wikidata.org/entity/Q44597997> ^ <http://www.wikidata.org/prop/direct/P31> [ <http://www.wikidata.org/prop/direct/P1629> [ <http://www.wikidata.org/prop/direct/P1687> ?var1 ] ] . }


Question: How many people died from arterial hypertension?

SELECT (COUNT(?person) AS ?count) WHERE { ?person wdt:P509 wd:Q41861 .}

What is the number of individuals in Wikidata whose cause of death is arterial hypertension?

Count the number of people whose cause of death is recorded as arterial hypertension.

SELECT( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P509> <http://www.wikidata.org/entity/Q41861> . }


Question: Members of the 17th Italian Parliament and their birthplace coordinates.

SELECT ?member ?memberLabel ?coordinates WHERE { ?member p:P39 [ pq:P2937 wd:Q5487948 ] . OPTIONAL { ?member wdt:P19 ?birthPlace . ?birthPlace wdt:P625 ?coordinates . } ?member rdfs:label ?memberLabel . FILTER(LANG(?memberLabel) = "en") }

Where were the members of the 17th Italian Parliament born, and what are the coordinates of their birthplaces?

List the names and birthplace coordinates of all individuals who served in the 17th Legislature of Italy.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P39> [ <http://www.wikidata.org/prop/qualifier/P2937> <http://www.wikidata.org/entity/Q5487948> ] . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it,en". } }


Question: What are the key attributes (like genre, cast, director) of the film "Ghost Dog: The Way of the Samurai" and who or what are their values?

SELECT ?propertyLabel ?valueLabel WHERE { wd:Q327332 ?property ?value . BIND(IRI(REPLACE(STR(?property), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?propertyItem) . ?propertyItem skos:prefLabel ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") . ?value rdfs:label ?valueLabel . FILTER(LANG(?valueLabel) = "en") . FILTER(isIRI(?value)) }

Can you list the English labels of all properties and their corresponding entity values for the movie "Ghost Dog: The Way of the Samurai"?

Show me the human-readable descriptions of what "Ghost Dog: The Way of the Samurai" is about — including its cast, genre, and themes — using labels from Wikidata.

SELECT * WHERE { <http://www.wikidata.org/entity/Q327332> ?var1 ?var2 . { SELECT * WHERE { BIND ( LANG ( ?var3Label ) AS ?var4 ). <http://www.wikidata.org/entity/Q327332> ?var1 ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . } } }


Question: List of German-language names of municipalities in Austria.

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 ?municipalityLabel WHERE {
  ?municipality wdt:P31 wd:Q667509 .
  ?municipality rdfs:label ?municipalityLabel .
  FILTER(LANG(?municipalityLabel) = "de")
}

What are the names of all municipalities in Austria in German?

Please provide the German labels for all municipalities in Austria.

SELECT ?var1Label WHERE { ?var1Label <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q667509> . }


Question: Ecological sites, parks, and rivers in southern Brazil between latitudes -25 and -24 and longitudes -48 and -47, with images and Commons categories.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?location ?image ?commonsCategory ?address WHERE {
  ?item wdt:P625 ?location .
  BIND(STR(?location) AS ?strLocation)
  BIND(STRBEFORE(STRAFTER(?strLocation , "POINT(") , " ") AS ?lonStr)
  BIND(STRAFTER(?strLocation , " ") AS ?latStr)
  BIND(REPLACE(?latStr , "\\)" , "") AS ?latStrClean)
  BIND(xsd:double(?lonStr) AS ?lon)
  BIND(xsd:double(?latStrClean) AS ?lat)
  FILTER(?lon >= -48 && ?lon <= -47 && ?lat >= -25 && ?lat <= -24)
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  OPTIONAL {
    ?item wdt:P969 ?address .
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANGMATCHES(LANG(?itemLabel) , "en"))
}
LIMIT 3000

What protected natural areas and rivers in Brazil are located between 24°S and 25°S latitude and 47°W and 48°W longitude, and what are their images and Wikimedia Commons categories?

List all geographic features in the region bounded by (-48, -25) and (-47, -24), including their English names, images, Commons categories, and addresses if available.

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(-48 -25)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(-47 -24)"^^<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> "string1". ?var1 <http://schema.org/description> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 3000


Question: What are the Dutch labels of properties used in Elihu Root's Wikidata statements, and what are the corresponding object values?

SELECT ?propertyLabel ?finalObjectLabel ?object ?property WHERE { wd:Q220619 ?property ?object . ?propItem wikibase:directClaim ?property . ?propItem skos:prefLabel ?propertyLabel . FILTER (LANG(?propertyLabel) = "nl") . OPTIONAL { ?object rdfs:label ?objectLabel . FILTER (LANG(?objectLabel) = "nl") } . BIND (IF(BOUND(?objectLabel), ?objectLabel, ?object) AS ?finalObjectLabel) } LIMIT 100

Show me all the ways Elihu Root is described in Dutch on Wikidata, including property names and their values.

List Dutch property labels and their associated values for Elihu Root, including both entity labels and literal values.

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


Question: Administrative subdivisions of France with English, Chinese, French, and German labels, plus ISO 3166-2 and INSEE codes.

SELECT ?region ?label_en ?label_zh ?label_fr ?label_de ?iso_code ?insee_code WHERE {
  wd:Q142 wdt:P150 ?region .
  OPTIONAL { ?region rdfs:label ?label_en . FILTER(LANG(?label_en) = "en") }
  OPTIONAL { ?region rdfs:label ?label_zh . FILTER(LANG(?label_zh) = "zh") }
  OPTIONAL { ?region rdfs:label ?label_fr . FILTER(LANG(?label_fr) = "fr") }
  OPTIONAL { ?region rdfs:label ?label_de . FILTER(LANG(?label_de) = "de") }
  OPTIONAL { ?region wdt:P300 ?iso_code }
  OPTIONAL { ?region wdt:P2585 ?insee_code }
}
LIMIT 10

What are the top 10 administrative regions of France, and what are their names in English, Chinese, French, and German, along with their ISO and INSEE codes?

Please list up to 10 administrative divisions of France, showing their labels in English, Chinese, French, and German, as well as their ISO 3166-2 and INSEE region codes.

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( SAMPLE ( ?var3 ) AS ?var3 )( SAMPLE ( ?var4 ) AS ?var4 )( SAMPLE ( ?var5 ) AS ?var5 )( SAMPLE ( ?var6 ) AS ?var6 )( SAMPLE ( ?var7 ) AS ?var7 ) WHERE { VALUES ( ?var8 ) { ( <http://www.wikidata.org/entity/Q142> ) } ?var8 <http://www.wikidata.org/prop/direct/P150> ?var1 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "zh" ) ) ) . } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "fr" ) ) ) . } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "de" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P300> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2585> ?var7 . } } GROUP BY ?var1 LIMIT 10


Question: What is the official website of Urlaubsguru.de, and what are its English and German labels?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?entity ?entityLabel ?website WHERE {
  ?entity wdt:P856 <https://www.urlaubsguru.de> .
  ?entity rdfs:label ?entityLabel .
  FILTER ( LANG( ?entityLabel ) = "en" || LANG( ?entityLabel ) = "de" ) BIND( <https://www.urlaubsguru.de> AS ?website )
}

Can you find the entity with the official website https://www.urlaubsguru.de and show its labels in English or German?

Show me the English and German names for the organization whose official website is www.urlaubsguru.de.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.holidayguru.com.br/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.www.holidayguru.com.br/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.www.holidayguru.com.br/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.holidayguru.com.br/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.holidayguru.com.br/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.holidayguru.com.br> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.holidayguru.com.br> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://holidayguru.com.br> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://holidayguru.com.br> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://holidayguru.com.br/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://holidayguru.com.br/> . } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P856> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Top 10 billionaires by net worth in USD billions, excluding garbage data.

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 ?label ( ?netWorth / 1000000000 AS ?netWorthInBillions ) WHERE {
  ?person wdt:P2218 ?netWorth ; wdt:P31 wd:Q5 .
  ?person rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" ) .
  FILTER ( ?netWorth > 1000000000 && ?netWorth < 500000000000 ) .
  FILTER ( ! CONTAINS( STR( ?label ) , "trillionaire" ) ) .
}
ORDER BY DESC ( ?netWorth )
LIMIT 10

Who are the richest people in the world with a net worth over $1 billion, and how much are they worth in billions?

List the top 10 humans with the highest net worth above $1 billion, showing their names and net worth in billions of USD, excluding unrealistic values.

SELECT DISTINCT ?var1Label ( MAX ( ?var2 ) AS ?var3 ) WHERE { BIND ( ( ?var4 /"1000000000"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var2 ). ?var1 <http://www.wikidata.org/prop/direct/P2218> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( ( ?var4 > "1000000000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } GROUP BY ?var1Label ORDER BY DESC( ?var2 )


Question: List Jewish people and their dates of death, sorted chronologically.

SELECT ?person ?deathDate ?personLabel WHERE { ?person wdt:P31 wd:Q5 ; wdt:P570 ?deathDate ; wdt:P140 wd:Q9268 . FILTER(isLiteral(?deathDate) && datatype(?deathDate) = xsd:dateTime) . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } ORDER BY ASC(?deathDate)

When did Jewish people die, ordered from earliest to latest?

Can you show me the names and death dates of Jewish individuals, sorted by when they died, starting from the earliest?

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


Question: Top main subjects of works by C. Michael Lesher and their associated work titles, with counts.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?count ?subjectLabel ?workLabel WHERE {
  {
    SELECT ?subject(COUNT(?work) AS ?count) WHERE {
      ?work wdt:P50 wd:Q6832207 .
      ?work wdt:P921 ?subject .
    }
    GROUP BY ?subject
  }
  ?work wdt:P50 wd:Q6832207 .
  ?work wdt:P921 ?subject .
  ?subject rdfs:label ?subjectLabel .
  FILTER(LANG(?subjectLabel) = "en")
  ?work rdfs:label ?workLabelRaw .
  FILTER(LANG(?workLabelRaw) = "en")
  BIND(SUBSTR(?workLabelRaw , 1 , 60) AS ?workLabel)
}
ORDER BY DESC(?count)

What are the main topics of the scientific works authored by C. Michael Lesher, how many works exist for each topic, and what are the titles of those works?

List all works by geologist C. Michael Lesher, showing the frequency of each main subject (like geochemistry or volcanology), and display truncated titles of the works in English.

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/Q6832207> . ?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/Q6832207> . ?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: ICD-10 coded medical conditions without French labels and their labels

SELECT ?var1 ?var1Label WHERE { ?var1 wdt:P494 ?icdCode . FILTER NOT EXISTS { ?var1 rdfs:label ?frLabel . FILTER (LANG(?frLabel) = "fr") } OPTIONAL { ?var1 rdfs:label ?var1Label . } }

Which medical conditions have an ICD-10 code but no French label, and what are their labels in other languages?

Show me all diseases and conditions with an ICD-10 code that aren't labeled in French, along with their available labels.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P494> ?var2 . FILTER ( ( NOT EXISTS { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "fr" ) ) ) . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } }


Question: Citing works of "Enabling Efficient Question Answer Retrieval via Hyperbolic Neural Networks" grouped by publication year and author presence.

SELECT ?pubYear ( COUNT( DISTINCT ?citingWork ) AS ?count ) ?hasAuthor WHERE { wd:Q39504766 wdt:P2860 ?citingWork . ?citingWork wdt:P577 ?pubDate . BIND( STR( YEAR( ?pubDate ) ) AS ?pubYear ) . BIND( IF( EXISTS { ?citingWork wdt:P50 [] } , "has author" , "no author" ) AS ?hasAuthor ) } GROUP BY ?pubYear ?hasAuthor ORDER BY DESC ( ?pubYear )

How many works cite the paper "Enabling Efficient Question Answer Retrieval via Hyperbolic Neural Networks" each year, and do they have authors?

Show me the count of papers citing "Enabling Efficient Question Answer Retrieval via Hyperbolic Neural Networks" by publication year, indicating whether each citing paper has an author.

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q39504766> AS ?var5 ). ?var2 <http://www.wikidata.org/prop/direct/P2860> ?var5 . OPTIONAL { BIND ( IF ( EXISTS { ?var2 <http://www.wikidata.org/prop/direct/P50> ?var6 . } , "string1", "string2" ) AS ?var4 ). ?var5 <http://www.wikidata.org/prop/direct/P50> ?var6 . } BIND ( STR ( YEAR ( ?var7 ) ) AS ?var1 ). ?var2 <http://www.wikidata.org/prop/direct/P577> ?var7 . } GROUP BY ?var1 ?var4 ORDER BY DESC( ?var1 )


Question: Entities related to house cats with English labels and descriptions.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?item ?itemLabel ?itemDescription WHERE {
  {
    wd:Q146 ?p ?item
  } UNION {
    ?item ?p wd:Q146
  }
  .
  ?item rdfs:label ?itemLabel .
  ?item schema:description ?itemDescription .
  FILTER(LANG(?itemLabel) = 'en')
  .
  FILTER(LANG(?itemDescription) = 'en')
}
LIMIT 20

What entities are connected to house cats, and what are their English labels and descriptions?

Show me up to 20 things related to house cats, along with their English labels and descriptions.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { { SELECT ?var4 ?var4Label WHERE { ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q146> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } } ?var4 ?var5 ?var1 . } LIMIT 200 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 20


Question: Works authored by Noel O'Boyle, including all co-authors, publication dates, journals, and types.

SELECT (MIN(?pubDate) AS ?earliestPubDate) ?work ?workLabel (GROUP_CONCAT(DISTINCT ?typeLabel; SEPARATOR=", ") AS ?types) (SAMPLE(?pages) AS ?sampledPages) ?journal ?journalLabel (GROUP_CONCAT(DISTINCT ?authorLabel; SEPARATOR=", ") AS ?allAuthors) WHERE { ?work wdt:P50 wd:Q28540731 . ?work wdt:P50 ?author . OPTIONAL { ?author rdfs:label ?authorLabel . FILTER(LANG(?authorLabel) = "en") } OPTIONAL { ?work rdfs:label ?workLabel . FILTER(LANG(?workLabel) = "en") } OPTIONAL { ?work wdt:P577 ?pubDateRaw . BIND(xsd:date(?pubDateRaw) AS ?pubDate) } OPTIONAL { ?work wdt:P1104 ?pages } OPTIONAL { ?work wdt:P1433 ?journal . OPTIONAL { ?journal rdfs:label ?journalLabel . FILTER(LANG(?journalLabel) = "en") } } OPTIONAL { ?work wdt:P31 ?type . ?type rdfs:label ?typeLabel . FILTER(LANG(?typeLabel) = "en") } } GROUP BY ?work ?workLabel ?journal ?journalLabel ORDER BY DESC(?earliestPubDate)

What are all the scholarly works written by Noel O'Boyle, who are the co-authors, when were they published, and in which journals did they appear?

List all publications by Noel O'Boyle with their full author lists, publication dates, journals, and types, sorted by most recent first.

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


Question: List all countries with their ISO codes, capitals, areas, continents, currencies, top-level domains, calling codes, mobile country codes, official languages, emergency numbers, highest points, and lowest points.

SELECT DISTINCT
  ?isoCode
  ?countryLabel
  ?capitalLabel
  ?area
  ?continentLabel
  ?currencyLabel
  ?tld
  ?callingCode
  ?mcc
  ?languageLabel
  ?emergencyNumberLabel
  ?highestPointLabel
  ?lowestPointLabel
WHERE {
  ?country wdt:P297 ?isoCode .
  ?country wdt:P36 ?capital .
  ?country wdt:P30 ?continent .
  ?country wdt:P2046 ?area .
  ?country wdt:P38 ?currency .
  ?country wdt:P78 ?tld .
  ?country wdt:P474 ?callingCode .
  ?country wdt:P2258 ?mcc .
  ?country wdt:P37 ?language .
  ?country wdt:P2852 ?emergencyNumber .
  ?country wdt:P610 ?highestPoint .
  ?country wdt:P1589 ?lowestPoint .

  ?country rdfs:label ?countryLabel .
  ?capital rdfs:label ?capitalLabel .
  ?continent rdfs:label ?continentLabel .
  ?currency rdfs:label ?currencyLabel .
  ?language rdfs:label ?languageLabel .
  ?emergencyNumber rdfs:label ?emergencyNumberLabel .
  ?highestPoint rdfs:label ?highestPointLabel .
  ?lowestPoint rdfs:label ?lowestPointLabel .

  FILTER(LANG(?countryLabel) = "en")
  FILTER(LANG(?capitalLabel) = "en")
  FILTER(LANG(?continentLabel) = "en")
  FILTER(LANG(?currencyLabel) = "en")
  FILTER(LANG(?languageLabel) = "en")
  FILTER(LANG(?emergencyNumberLabel) = "en")
  FILTER(LANG(?highestPointLabel) = "en")
  FILTER(LANG(?lowestPointLabel) = "en")
}
ORDER BY ASC(?isoCode)

What are the ISO codes, capitals, areas, continents, currencies, internet domains, calling codes, mobile codes, official languages, emergency numbers, highest elevations, and lowest elevations for each country?

Please provide a comprehensive list of country facts including ISO 3166-1 codes, capitals, land areas, continents, currencies, top-level domains, phone codes, mobile network codes, official languages, emergency numbers, highest peaks, and lowest points, sorted alphabetically by ISO code.

SELECT DISTINCT ?var1 ?var2Label ?var3Label ?var4 ?var5Label ?var6Label ?var7Label ?var8 ?var9 ?var10Label ?var11Label ?var12Label ?var13Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P297> ?var1 . ?var2 <http://www.wikidata.org/prop/direct/P17> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P36> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P30> ?var5 . ?var2 <http://www.wikidata.org/prop/direct/P2046> ?var4 . ?var2 <http://www.wikidata.org/prop/direct/P38> ?var6 . ?var2 <http://www.wikidata.org/prop/direct/P78> ?var7 . ?var2 <http://www.wikidata.org/prop/direct/P474> ?var8 . ?var2 <http://www.wikidata.org/prop/direct/P2258> ?var9 . ?var2 <http://www.wikidata.org/prop/direct/P37> ?var10 . ?var2 <http://www.wikidata.org/prop/direct/P2852> ?var11 . ?var2 <http://www.wikidata.org/prop/direct/P610> ?var12 . ?var2 <http://www.wikidata.org/prop/direct/P1589> ?var13 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,de,la,it,pl,es,hi,mr,ur,en,ab,gu,pt,ja,ta,hr,nl,ru,sw,ro,bg,mg,te,ka,yi,sq,eu,an,hy,uk,sv,da,no,lb,cs,sk,sl,hu,et,lv,lt,be,ga,mt,fa,ko,zh-yue,vi,km,lo,th,my,ms,id,mn,kk,ky,tg,uz,tk,he,az,mk,sr,sh,bs,gl,cy,gd,bn,zu,br,gv,rcf,rm,rmy,za,xh,udm,hsb,ug,si,so,dsb,nah,na,nv,min,mwl,mdf,mzn,xmf,ba,oc,af,sco". } } ORDER BY ASC( ?var1 )


Question: Cities with female heads of government

PREFIX p: <http://www.wikidata.org/prop/>
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/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT DISTINCT ?city ?cityLabel ?headOfGovernment ?headOfGovernmentLabel WHERE {
  ?city ( wdt:P31 / wdt:P279 * ) wd:Q515 .
  ?city p:P6 ?headStmt .
  ?headStmt ps:P6 ?headOfGovernment .
  ?headOfGovernment wdt:P21 wd:Q6581072 .
  ?city rdfs:label ?cityLabel .
  ?headOfGovernment rdfs:label ?headOfGovernmentLabel .
  FILTER ( LANG( ?cityLabel ) = "en" ) FILTER ( LANG( ?headOfGovernmentLabel ) = "en" )
}
ORDER BY ?cityLabel
LIMIT 10

Which cities have a female head of government, and who are they?

List the top 10 cities and their female mayors or city leaders, along with their names.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { BIND ( <http://www.wikidata.org/entity/Q6581072> AS ?var3 ). BIND ( <http://www.wikidata.org/entity/Q515> AS ?var4 ). ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var4 . ?var1 <http://www.wikidata.org/prop/P6> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/P6> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P39> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var6 ) LIMIT 10


Question: Lighthouses linked as different from each other in only one direction with English labels.

SELECT ?lighthouse1 ?lighthouse1Label ?lighthouse2 ?lighthouse2Label WHERE { ?lighthouse1 wdt:P31 wd:Q39715 . ?lighthouse2 wdt:P31 wd:Q39715 . ?lighthouse2 wdt:P1889 ?lighthouse1 . FILTER (?lighthouse2 != ?lighthouse1) . FILTER (NOT EXISTS { ?lighthouse1 wdt:P1889 ?lighthouse2 }) . ?lighthouse1 rdfs:label ?lighthouse1Label . ?lighthouse2 rdfs:label ?lighthouse2Label . FILTER (LANG(?lighthouse1Label) = "en") . FILTER (LANG(?lighthouse2Label) = "en") }

Which pairs of lighthouses are marked as different from each other in Wikidata, but only in one direction, and what are their English names?

Show me lighthouse pairs that are incorrectly flagged as different from each other in only one direction, along with their English labels, to help identify potential duplicates.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q39715> . ?var2 <http://www.wikidata.org/prop/direct/P1889> + ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q39715> . FILTER ( ( ( ?var2 != ?var1 ) ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P1889> ?var2 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en,es,fr". } }


Question: German-labeled entities with official opening dates

SELECT ?entity ?entityLabel ?entityDescription WHERE { ?entity wdt:P1619 ?openingDate . ?entity rdfs:label ?entityLabel . ?entity schema:description ?entityDescription . FILTER (LANG(?entityLabel) = "de") . FILTER (LANG(?entityDescription) = "de") . } LIMIT 100

What buildings, stations, or venues in German have a recorded date of official opening?

Show me German labels and descriptions of places that were officially opened, limited to 100 results.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P1619> ?var1 . } 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: What properties are used to describe chemical elements, and what are their labels and images?

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 ?propertyEntity ?propertyLabel ?propertyImage WHERE {
  ?item wdt:P31 wd:Q11344 .
  ?item ?prop ?value .
  BIND( IRI( CONCAT ( "http://www.wikidata.org/entity/" , SUBSTR( STR( ?prop ) , 37 ) ) ) AS ?propertyEntity ) .
  ?propertyEntity wdt:P31 / wdt:P279 * wd:Q18616576 .
  ?propertyEntity rdfs:label ?propertyLabel .
  OPTIONAL {
    ?propertyEntity wdt:P18 ?propertyImage .
  }
  FILTER ( LANG( ?propertyLabel ) = "en" ) FILTER ( STRSTARTS( STR( ?prop ) , "http://www.wikidata.org/prop/direct/" ) )
}
ORDER BY ?propertyEntity
LIMIT 50

Show me the English-labeled properties associated with chemical elements, along with any images they have.

Which Wikidata properties describe chemical elements, and do any of them have associated images on Commons?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label ?var4 ?var5 WHERE { { BIND ( <http://www.wikidata.org/entity/Q3761037> AS ?var1 ). ?var1 ?var6 ?var7 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } ?var3 ?var8 ?var6 . ?var3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . FILTER ( ( STRSTARTS ( STR ( ?var7 ) , "string1" ) ) ) . FILTER ( ( STRSTARTS ( STR ( ?var3 ) , "string2" ) ) ) . } UNION { BIND ( "EFFBD8" AS ?var5 ). <http://www.wikidata.org/entity/Q3761037> ?var6 ?var3 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P18> ?var4 . } ?var1 ?var8 ?var6 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . FILTER ( ( STRSTARTS ( STR ( ?var3 ) , "string1" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . ?var3 <http://www.wikidata.org/prop/direct/P18> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: Authors with names starting with J who have IPNI or ZooBank IDs

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 ?author ?authorLabel ?ipniId ?zooBankId WHERE {
  ?author wdt:P31 wd:Q5 .
  ?author rdfs:label ?authorLabel .
  FILTER ( STRSTARTS( STR( ?authorLabel ) , "J" ) ) .
  OPTIONAL {
    ?author wdt:P586 ?ipniId .
  }
  OPTIONAL {
    ?author wdt:P2006 ?zooBankId .
  }
  FILTER ( LANG( ?authorLabel ) = "en" ) .
  FILTER ( BOUND( ?ipniId ) || BOUND( ?zooBankId ) ) .
}

Who are the biological authors whose names start with the letter J and have an IPNI or ZooBank identifier?

List all human authors named starting with J that are registered in IPNI or ZooBank.

SELECT * WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "J"@en . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/isPartOf> <https://species.wikimedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P213> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P214> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P496> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P586> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2006> ?var8 . } }


Question: What German-labeled properties connect the noble family to other entities, and what are the associated labels and counts?

SELECT ?property (SAMPLE(?pl) AS ?propertyLabel) (COUNT(?value) AS ?count) (GROUP_CONCAT(?vl; SEPARATOR=", ") AS ?valueLabels) WHERE { wd:Q13417114 ?property ?value . ?value rdfs:label ?vl . FILTER(LANG(?vl) = "de") . ?propertyDescription wikibase:directClaim ?property . ?propertyDescription rdfs:label ?pl . FILTER(LANG(?pl) = "de") . } GROUP BY ?property

For the noble family, what are the German labels of the properties used to link it to other entities, how many entities does each link to, and what are those entities’ German labels?

Show me a summary of all properties used by the noble family in German, including how many German-labeled values each has and what those values are.

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


Question: Which of the entities named 'France' is a country with a head of state, and who is that head of state?

SELECT (SAMPLE(?var1Label) AS ?label1) (SAMPLE(?var2Label) AS ?label2) WHERE { VALUES ?var1 { wd:Q142 wd:Q49644 wd:Q70972 wd:Q88918 wd:Q294485 wd:Q489494 wd:Q527431 wd:Q546607 wd:Q1038968 wd:Q1440748 wd:Q2084927 wd:Q3080562 wd:Q3080563 wd:Q3080564 wd:Q3080565 wd:Q3080566 wd:Q3080568 wd:Q3080569 wd:Q3209208 wd:Q3209212 wd:Q3222949 wd:Q3323240 wd:Q3552208 wd:Q5478259 wd:Q6462633 wd:Q9731409 wd:Q13202722 wd:Q14709529 wd:Q16275867 wd:Q17358154 wd:Q17428494 wd:Q19171405 wd:Q19171420 wd:Q21009126 wd:Q23072350 wd:Q23072386 wd:Q23072389 wd:Q23072410 wd:Q29126069 wd:Q30277422 wd:Q30301467 wd:Q30301471 } OPTIONAL { ?var1 wdt:P35 ?headOfState . } OPTIONAL { ?var1 wdt:P6 ?headOfGovernment . } OPTIONAL { ?var1 wdt:P7 ?capital . } BIND( COALESCE(?headOfState, ?headOfGovernment, ?capital) AS ?var2 ) FILTER(BOUND(?var2)) ?var1 rdfs:label ?var1Label . ?var2 rdfs:label ?var2Label . FILTER(LANGMATCHES(LANG(?var1Label), "en")) FILTER(LANGMATCHES(LANG(?var2Label), "en")) } GROUP BY ?var1 ?var2

Among all Wikidata entities with 'France' in their name, which one has a head of state, and who is it?

What is the head of state of the country France, as opposed to other entities like ships or statues also named France?

SELECT ?var1Label ?var2Label WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q142> ) ( <http://www.wikidata.org/entity/Q49644> ) ( <http://www.wikidata.org/entity/Q70972> ) ( <http://www.wikidata.org/entity/Q88918> ) ( <http://www.wikidata.org/entity/Q294485> ) ( <http://www.wikidata.org/entity/Q489494> ) ( <http://www.wikidata.org/entity/Q527431> ) ( <http://www.wikidata.org/entity/Q546607> ) ( <http://www.wikidata.org/entity/Q1038968> ) ( <http://www.wikidata.org/entity/Q1440748> ) ( <http://www.wikidata.org/entity/Q2084927> ) ( <http://www.wikidata.org/entity/Q3080562> ) ( <http://www.wikidata.org/entity/Q3080563> ) ( <http://www.wikidata.org/entity/Q3080564> ) ( <http://www.wikidata.org/entity/Q3080565> ) ( <http://www.wikidata.org/entity/Q3080566> ) ( <http://www.wikidata.org/entity/Q3080568> ) ( <http://www.wikidata.org/entity/Q3080569> ) ( <http://www.wikidata.org/entity/Q3209208> ) ( <http://www.wikidata.org/entity/Q3209212> ) ( <http://www.wikidata.org/entity/Q3222949> ) ( <http://www.wikidata.org/entity/Q3323240> ) ( <http://www.wikidata.org/entity/Q3552208> ) ( <http://www.wikidata.org/entity/Q5478259> ) ( <http://www.wikidata.org/entity/Q6462633> ) ( <http://www.wikidata.org/entity/Q9731409> ) ( <http://www.wikidata.org/entity/Q13202722> ) ( <http://www.wikidata.org/entity/Q14709529> ) ( <http://www.wikidata.org/entity/Q16275867> ) ( <http://www.wikidata.org/entity/Q17358154> ) ( <http://www.wikidata.org/entity/Q17428494> ) ( <http://www.wikidata.org/entity/Q19171405> ) ( <http://www.wikidata.org/entity/Q19171420> ) ( <http://www.wikidata.org/entity/Q21009126> ) ( <http://www.wikidata.org/entity/Q23072350> ) ( <http://www.wikidata.org/entity/Q23072386> ) ( <http://www.wikidata.org/entity/Q23072389> ) ( <http://www.wikidata.org/entity/Q23072410> ) ( <http://www.wikidata.org/entity/Q29126069> ) ( <http://www.wikidata.org/entity/Q30277422> ) ( <http://www.wikidata.org/entity/Q30301467> ) ( <http://www.wikidata.org/entity/Q30301471> ) } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P35> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P6> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P7> ?var5 . } BIND ( COALESCE ( ?var3 , ?var4 , ?var5 ) AS ?var2 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } FILTER ( ( BOUND ( ?var2 ) ) ) . }


Question: Which Wikipedia pages are about the Gutenacker disambiguation page?

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?wikipediaPage WHERE {
  ?wikipediaPage schema:about wd:Q1434945 .
  FILTER ( STRSTARTS( STR( ?wikipediaPage ) , "https://" ) )
}

Show me the Wikipedia articles that link to the Gutenacker disambiguation page on Wikidata.

What are the Wikipedia links associated with the Gutenacker disambiguation page (Q1434945)?

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


Question: Current minor localities in Sweden and their administrative regions.

SELECT ?locality ?admin_entity WHERE { ?locality p:P31 ?statement . ?statement ps:P31 wd:Q14839548 . ?locality wdt:P131 ?admin_entity . OPTIONAL { ?statement pq:P582 ?endTime . } FILTER ( !BOUND(?endTime) ) }

What are the active small localities in Sweden and which municipalities or counties do they belong to?

List all currently existing småorter in Sweden along with the administrative areas they are part of.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P31> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P31> <http://www.wikidata.org/entity/Q14839548> . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/qualifier/P582> ?var4 . } FILTER ( ( !( BOUND ( ?var4 ) ) ) ) . }


Question: Image of Henry Benjamin Whipple with SNAC ARK ID w6gh9jxg

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

What is the image of the person identified by the SNAC ARK ID w6gh9jxg?

Show me the Wikimedia Commons image linked to Henry Benjamin Whipple’s SNAC ARK ID.

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


Question: List opera houses with their English labels and links to English, French, Spanish, German, and Italian Wikipedia pages.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?operaHouse ?operaHouseLabel ?enWikipedia ?frWikipedia ?esWikipedia ?deWikipedia ?itWikipedia WHERE {
  ?operaHouse(wdt:P31 / wdt:P279 *) wd:Q153562 .
  OPTIONAL {
    ?enWikipedia schema:about ?operaHouse ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
  }
  OPTIONAL {
    ?frWikipedia schema:about ?operaHouse ; schema:inLanguage "fr" ; schema:isPartOf <https://fr.wikipedia.org/> .
  }
  OPTIONAL {
    ?esWikipedia schema:about ?operaHouse ; schema:inLanguage "es" ; schema:isPartOf <https://es.wikipedia.org/> .
  }
  OPTIONAL {
    ?deWikipedia schema:about ?operaHouse ; schema:inLanguage "de" ; schema:isPartOf <https://de.wikipedia.org/> .
  }
  OPTIONAL {
    ?itWikipedia schema:about ?operaHouse ; schema:inLanguage "it" ; schema:isPartOf <https://it.wikipedia.org/> .
  }
  ?operaHouse rdfs:label ?operaHouseLabel .
  FILTER(LANGMATCHES(LANG(?operaHouseLabel) , "en"))
}

What are the opera houses in Wikidata, and what are their corresponding Wikipedia articles in English, French, Spanish, German, and Italian?

Show me all opera houses along with their English names and the links to their Wikipedia pages in five languages: English, French, Spanish, German, and Italian.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en,fr,es,de,it". } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q153562> . OPTIONAL { ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "en". ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } OPTIONAL { ?var3 <http://schema.org/about> ?var1 . ?var3 <http://schema.org/inLanguage> "fr". ?var3 <http://schema.org/isPartOf> <https://fr.wikipedia.org/> . } OPTIONAL { ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> "es". ?var4 <http://schema.org/isPartOf> <https://es.wikipedia.org/> . } OPTIONAL { ?var5 <http://schema.org/about> ?var1 . ?var5 <http://schema.org/inLanguage> "de". ?var5 <http://schema.org/isPartOf> <https://de.wikipedia.org/> . } OPTIONAL { ?var6 <http://schema.org/about> ?var1 . ?var6 <http://schema.org/inLanguage> "it". ?var6 <http://schema.org/isPartOf> <https://it.wikipedia.org/> . } }


Question: Male domestic cats with English labels in Wikidata

SELECT ?cat ?catLabel WHERE { ?cat wdt:P31 wd:Q146 . ?cat wdt:P21 wd:Q44148 . ?cat rdfs:label ?catLabel . FILTER(LANG(?catLabel) = "en") }

Which male house cats have English-language names in Wikidata?

List the names of male domestic cats that are documented in Wikidata with English labels.

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


Question: People buried at Central Sofia Cemetery with their names and images.

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

Who are the people buried at the Central Sofia Cemetery, and do any of them have images available?

List the names of individuals buried in the Central Sofia Cemetery in English, along with their images if available.

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