Question: Who are the female humans born in Niue that have an English label on Wikidata?

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 ?person ?personLabel WHERE {
  ?person wdt:P21 wd:Q6581072 .
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P19 wd:Q34020 .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}
LIMIT 10

List all women born in Niue who are classified as humans and have an English label.

Find female individuals from Niue with English-language names in Wikidata.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . { ?var1 <http://www.wikidata.org/prop/direct/P19> <http://www.wikidata.org/entity/Q34020> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q34020> . } OPTIONAL { ?var3 <http://schema.org/about> ?var1 . ?var3 <http://schema.org/inLanguage> "en". } FILTER ( ( !( BOUND ( ?var3 ) ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . } LIMIT 10


Question: What entity in Wikidata is an instance of itself?

SELECT ?class ?classLabel WHERE { ?class wdt:P31 ?class . ?class rdfs:label ?classLabel . }

Is there any class in Wikidata that is an instance of itself, and what is it called?

Show me the class in Wikidata that is defined as an instance of itself, along with its names in different languages.

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


Question: Who are some athletes with Persian-language labels on Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?label WHERE {
  {
    ?person wdt:P106 wd:Q2066131
  } UNION {
    ?person wdt:P31 / wdt:P279 * wd:Q2066131
  }
  .
  ?person rdfs:label ?label .
  FILTER ( LANG( ?label ) = "fa" )
}
LIMIT 10

Persian labels of people whose occupation or type is athlete

List 10 Persian-language names of athletes or people with athlete occupations from Wikidata.

SELECT DISTINCT ?var1 WHERE { { ?var2 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P106> ) ?var3 . ?var3 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P279> )* ?var4 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q2066131> ) ) ) . FILTER ( ( ( LANG ( ?var1 ) = "fa" ) ) ) . } } LIMIT 10 OFFSET 620


Question: What are the Persian-language names of athletes and their occupational subclasses (like taekwondo or Paralympic athletes)?

SELECT DISTINCT ?label WHERE { VALUES ?athleteClass { wd:Q2066131 wd:Q11513337 wd:Q13382533 wd:Q7623231 wd:Q25439032 } { ?person wdt:P31 ?athleteClass } UNION { ?person wdt:P106 ?athleteClass } . ?person rdfs:label ?label . FILTER(LANG(?label) = "fa") } LIMIT 10

List 10 Persian-labeled individuals who are either athletes or have occupations such as taekwondo fighter or Paralympian.

Can you show me Persian labels for people whose profession or type is related to sports competition, such as being an athlete or a Paralympic competitor?

SELECT DISTINCT ?var1 WHERE { { ?var2 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P106> ) ?var3 . ?var3 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P279> )* ?var4 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q2066131> ) ) ) . FILTER ( ( ( LANG ( ?var1 ) = "fa" ) ) ) . } } LIMIT 10 OFFSET 650


Question: What are the Persian-language names of athletes and their subtypes?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?label WHERE {
  wd:Q2066131 wdt:P279 * ?athleteClass .
  {
    ?person wdt:P31 ?athleteClass
  } UNION {
    ?person wdt:P106 ?athleteClass
  }
  .
  ?person rdfs:label ?label .
  FILTER(LANG(?label) = "fa")
}
LIMIT 10

Can you list 10 Persian labels for people who are athletes or have an athletic occupation?

Show me some athletes from Persian-speaking regions by listing their names in Persian.

SELECT DISTINCT ?var1 WHERE { { ?var2 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P106> ) ?var3 . ?var3 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P279> )* ?var4 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q2066131> ) ) ) . FILTER ( ( ( LANG ( ?var1 ) = "fa" ) ) ) . } } LIMIT 10 OFFSET 1540


Question: Persian labels of athletes and their occupations

SELECT DISTINCT ?label WHERE { { ?person wdt:P31 ?class . ?class wdt:P279* wd:Q2066131 . } UNION { ?person wdt:P106 ?class . ?class wdt:P279* wd:Q2066131 . } ?person rdfs:label ?label . FILTER(LANG(?label) = "fa") } LIMIT 10

Who are some athletes or sports professionals with Persian-language labels on Wikidata?

List up to 10 Persian-language names of people whose occupation or type is related to being an athlete.

SELECT DISTINCT ?var1 WHERE { { ?var2 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P106> ) ?var3 . ?var3 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P279> )* ?var4 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q2066131> ) ) ) . FILTER ( ( ( LANG ( ?var1 ) = "fa" ) ) ) . } } LIMIT 10 OFFSET 1730


Question: What are the Persian-language labels of people who are athletes or have an occupation related to athletics?

SELECT DISTINCT ?label WHERE { { ?person wdt:P31/wdt:P279* wd:Q2066131 . } UNION { ?person wdt:P106/wdt:P279* wd:Q2066131 . } ?person rdfs:label ?label . FILTER(LANG(?label) = "fa") } LIMIT 10

Can you list 10 athletes (or people in athletic occupations) whose names are written in Persian?

Who are some individuals classified as athletes or in athletic professions, with their names displayed in Persian?

SELECT DISTINCT ?var1 WHERE { { ?var2 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P106> ) ?var3 . ?var3 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P279> )* ?var4 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q2066131> ) ) ) . FILTER ( ( ( LANG ( ?var1 ) = "fa" ) ) ) . } } LIMIT 10 OFFSET 4870


Question: Swedish people born before 1700 with WikiTree IDs and family names

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel ?familyLabel ?birthDate ?wikitreeUrl WHERE {
  ?person wdt:P2949 ?wikitreeId .
  ?person wdt:P569 ?birthDate .
  ?person wdt:P27 wd:Q34 .
  ?person wdt:P53 ?family .
  ?person rdfs:label ?personLabel .
  ?family rdfs:label ?familyLabel .
  FILTER ( LANG( ?personLabel ) = "en" ) FILTER ( LANG( ?familyLabel ) = "en" ) BIND( CONCAT ( "https://www.wikitree.com/wiki/" , ?wikitreeId ) AS ?wikitreeUrl ) FILTER ( YEAR( ?birthDate ) < 1700 )
}
ORDER BY ?personLabel
LIMIT 20

Who are Swedish individuals born before 1700 who belong to a noble family and have a WikiTree profile?

List Swedish people born before 1700, their families, and their WikiTree URLs, with English labels.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 ?var5 ?var6 ?var7 ( CONCAT ( "string1", ?var8 ) AS ?var9 ) ?var10 WHERE { { SELECT ?var1 ?var8 ( SAMPLE ( ?var3 ) AS ?var3 )( SAMPLE ( ?var5 ) AS ?var5 )( SAMPLE ( ?var4 ) AS ?var4 )( SAMPLE ( ?var6 ) AS ?var6 )( SAMPLE ( ?var7 ) AS ?var7 )( SAMPLE ( ?var11 ) AS ?var11 )( COUNT ( ?var12 ) AS ?var10 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2949> ?var8 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q34> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } { ?var1 <http://www.wikidata.org/prop/direct/P53> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var7 . } OPTIONAL { ?var12 <http://schema.org/about> ?var1 . } FILTER ( ( ( YEAR ( ?var3 ) < "1700"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } GROUP BY ?var1 ?var8 ?var2 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv", "en". } } ORDER BY DESC( ?var10 )


Question: People who held positions, their start and end dates, who they replaced, and who replaced them.

SELECT ?person ?personLabel ?startTime ?endTime ?replacesLabel ?replacedByLabel WHERE { ?person wdt:P31 wd:Q5 . ?person p:P39 ?statement . ?statement pq:P580 ?startTime . ?statement pq:P582 ?endTime . ?statement pq:P1365 ?replaces . ?statement pq:P1366 ?replacedBy . OPTIONAL { ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } OPTIONAL { ?replaces rdfs:label ?replacesLabel . FILTER(LANG(?replacesLabel) = "en") } OPTIONAL { ?replacedBy rdfs:label ?replacedByLabel . FILTER(LANG(?replacedByLabel) = "en") } } ORDER BY ASC(?startTime)

Who are the people that held public offices, when did their terms start and end, and who were their predecessors and successors?

List all humans who held a position, including the start and end dates of their tenure, the person they replaced, and the person who succeeded them — sorted by start date.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4Label ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/P39> ?var6 . ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var2 . ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var3 . ?var6 <http://www.wikidata.org/prop/qualifier/P1365> ?var4 . ?var6 <http://www.wikidata.org/prop/qualifier/P1366> ?var5 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var7 )


Question: Persian labels of athletes and their subtypes (e.g., football players, basketball players).

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 ?label WHERE {
  ?person wdt:P31 wd:Q5 .
  {
    ?person wdt:P106 ?occupation .
  } UNION {
    ?person wdt:P31 ?occupation .
  }
  ?occupation wdt:P279 * wd:Q2066131 .
  ?person rdfs:label ?label .
  FILTER ( LANG( ?label ) = "fa" )
}
LIMIT 10
OFFSET 6720

Who are the athletes (or people in athlete-related occupations) with Persian-language labels on Wikidata?

List the Persian names of people whose occupation or type is an athlete or a subtype of athlete.

SELECT DISTINCT ?var1 WHERE { { ?var2 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P106> ) ?var3 . ?var3 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P279> )* ?var4 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q2066131> ) ) ) . FILTER ( ( ( LANG ( ?var1 ) = "fa" ) ) ) . } } LIMIT 10 OFFSET 6720


Question: Countries with more than one island, excluding dissolved countries, sorted by number of islands.

SELECT ?country ?countryLabel ?islandCount WHERE { { SELECT ?country (COUNT(?island) AS ?islandCount) WHERE { ?island wdt:P31 wd:Q23442 ; wdt:P17 ?country . FILTER NOT EXISTS { ?country wdt:P576 ?dissolvedDate . } } GROUP BY ?country HAVING (?islandCount > 1) } ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") } ORDER BY DESC(?islandCount) ASC(?countryLabel)

Which countries have more than one island, and how many islands do they have, excluding countries that no longer exist?

List all countries that have at least two islands, showing the count of islands and the country name in English, ordered from highest to lowest island count.

SELECT ?var1 ?var1Label ?var2 WHERE { { SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P17> ?var1 . { SELECT ?var3 ( COUNT ( DISTINCT ?var1 ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q23442> . ?var3 <http://www.wikidata.org/prop/direct/P17> ?var1 . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P576> ?var4 . } ) ) . } GROUP BY ?var3 } FILTER ( ( ( ?var2 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } GROUP BY ?var1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "id". } } ORDER BY DESC( ?var2 )ASC( ?var1 )


Question: Administrative entities with capitals and their types

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?entity ?entityLabel(GROUP_CONCAT(DISTINCT ?typeLabel ; SEPARATOR = ", ") AS ?types) WHERE {
  ?entity wdt:P36 ?capital ; wdt:P31 ?type .
  ?entity rdfs:label ?entityLabel .
  ?type rdfs:label ?typeLabel .
  FILTER(LANG(?entityLabel) = "en")
  FILTER(LANG(?typeLabel) = "en")
}
GROUP BY ?entity ?entityLabel

What are the countries, states, and municipalities that have a capital city, and what types are they classified as in Wikidata?

List all administrative entities that have a capital city, along with their English-type classifications (e.g., country, municipality).

SELECT ?var1 ?var1Label ( GROUP_CONCAT ( DISTINCT ?var2Label ; SEPARATOR = ", " ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P36> ?var1 ; <http://www.wikidata.org/prop/direct/P31> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } GROUP BY ?var1 ?var1Label


Question: List all states with their population and area.

SELECT ?state ?population ?area WHERE { ?state wdt:P31 wd:Q7275 . OPTIONAL { ?state wdt:P1082 ?population . } OPTIONAL { ?state wdt:P2439 ?area . } }

Which states have recorded population and area data in Wikidata?

Show me the population and area of all entities classified as states, if available.

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


Question: Museums in Berlin with their coordinates and English names.

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 ?museum ?museumLabel ?coordinates WHERE {
  ?museum ( wdt:P31 / wdt:P279 * ) wd:Q33506 ; wdt:P131 wd:Q64 ; wdt:P625 ?coordinates .
  ?museum rdfs:label ?museumLabel .
  FILTER ( LANG( ?museumLabel ) = "en" )
}

What are the English names and geographic coordinates of all museums in Berlin?

List all museums in Berlin, including their English labels and exact geographic coordinates.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q33506> ; <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q64> ; <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> "de, en". } }


Question: What Wikidata item has the IMDb ID tt0322653?

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

Which movie or entity in Wikidata is identified by the IMDb identifier tt0322653?

Show me the Wikidata entry for the film with IMDb ID tt0322653.

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


Question: German labels of properties used by "process" in Wikidata, with object counts and object labels

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property(SAMPLE(?propLabelTemp) AS ?propertyLabel)(COUNT(?object) AS ?count)(GROUP_CONCAT(?objectLabel ; SEPARATOR = ", ") AS ?objectLabels) WHERE {
  wd:Q10843872 ?property ?object .
  ?object rdfs:label ?objectLabel .
  FILTER(LANG(?objectLabel) = "de")
  .
  ?propertyItem wikibase:directClaim ?property .
  ?propertyItem rdfs:label ?propLabelTemp .
  FILTER(LANG(?propLabelTemp) = "de")
}
GROUP BY ?property

What properties link the concept of "process" to other entities in Wikidata, and what are their German labels, how many objects do they connect to, and what are those objects called in German?

Show me all German-labeled properties that connect to the entity "process", along with how many times each is used and the German names of the connected entities.

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


Question: What is the stock ticker and exchange for Google?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?company ?exchange ?ticker WHERE {
  ?company wdt:P31 wd:Q4830453 .
  ?company rdfs:label ?companyLabel .
  ?company p:P414 ?statement .
  ?statement ps:P414 ?exchange .
  ?statement pq:P249 ?ticker .
  FILTER(CONTAINS(LCASE(?companyLabel) , "google"))
}
LIMIT 1

On which stock exchange is Google listed, and what is its ticker symbol?

Find the stock exchange and ticker symbol for any company named Google.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4830453> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . ?var1 <http://www.wikidata.org/prop/P414> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/P414> ?var6 . ?var5 <http://www.wikidata.org/prop/qualifier/P249> ?var3 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( CONTAINS ( LCASE ( ?var4Label ) , "google" ) ) ) . } LIMIT 1


Question: List of biological species in Wikidata with their scientific names.

SELECT ?species ?label WHERE { ?species wdt:P31 wd:Q7432 . ?species rdfs:label ?label . FILTER(LANG(?label) = 'en') } LIMIT 10000

What are the English labels of all species in Wikidata?

Show me the scientific names of all species documented in Wikidata.

SELECT ?var1 ?var2 WHERE { ?var1 <http://schema.org/isPartOf> <https://species.wikimedia.org/> ; ?var3 <http://www.w3.org/2000/01/rdf-schema#label> . } LIMIT 10000


Question: People who died in January 1983

SELECT DISTINCT ?person WHERE { ?person wdt:P570 ?deathDate . FILTER ( ?deathDate >= "1983-01-01T00:00:00Z"^^xsd:dateTime && ?deathDate <= "1983-01-31T23:59:59Z"^^xsd:dateTime ) }

List all individuals whose date of death was in January 1983.

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


Question: Persian-language labels of sports organizations on Wikidata.

SELECT DISTINCT ?label WHERE { ?organization wdt:P31 ?class . ?class wdt:P279* wd:Q4438121 . ?organization rdfs:label ?label . FILTER (LANG(?label) = "fa") }

What are the Persian names of sports organizations listed on Wikidata?

Show me all the Persian-language labels for entities that are sports organizations or subclasses of sports organizations.

SELECT DISTINCT ?var1 WHERE { { ?var2 <http://www.wikidata.org/prop/direct/P31> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q4438121> . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "fa" ) ) ) . } }


Question: Persian-language labels of sports teams

SELECT DISTINCT ?label WHERE { ?team wdt:P31 ?type . ?type wdt:P279* wd:Q12973014 . ?team rdfs:label ?label . FILTER(LANG(?label) = "fa") }

What are the Persian names of sports teams on Wikidata?

Show me all the Persian-language labels for entities that are sports teams or subclasses of sports teams.

SELECT DISTINCT ?var1 WHERE { { ?var2 <http://www.wikidata.org/prop/direct/P31> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q12973014> . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "fa" ) ) ) . } }


Question: Who is the person with e-archiv.li ID 31155?

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

What is the English label and description of the Wikidata item that has the e-archiv.li identifier "31155"?

Find the name (in English) of the individual identified by the e-archiv.li ID 31155, and include their English description if available.

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


Question: Charles Darwin's e-archiv.li ID and English description

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

Who is the person with e-archiv.li ID 31734, and what is their English description?

Show me the English label and description of the person identified by 31734 in the e-archiv.li archive.

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


Question: What countries and regions is St. Cyriak located in?

SELECT DISTINCT ?location ?locationLabel WHERE { wd:Q2317912 (wdt:P30|wdt:P17|wdt:P131)+ ?location . OPTIONAL { ?location rdfs:label ?locationLabel . FILTER(LANG(?locationLabel) = "en") } }

Can you list all the geographic entities — from local to continental — that St. Cyriak is part of?

Show me the full geographic context of St. Cyriak, including its town, region, state, country, and continent.

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


Question: What are the claim properties and qualifiers used in statements about sports seasons?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?statement ?claimProperty(SAMPLE(?qualifierPropertyLabel) AS ?qualifierLabel) WHERE {
  {
    SELECT DISTINCT ?item ?statement ?claimProperty ?statementConfig WHERE {
      ?statement ?statementProperty wd:Q27020041 .
      ?item ?claimProperty ?statement .
      ?statementConfig wikibase:statementProperty ?statementProperty .
      ?statementConfig wikibase:claim ?claimProperty .
      FILTER(?statementConfig != wd:P31)
    }
    LIMIT 101
  }
  OPTIONAL {
    ?statement ?qualifierProperty ?qualifierValue .
    ?statementConfig wikibase:qualifier ?qualifierProperty .
    ?qualifierProperty rdfs:label ?qualifierPropertyLabel .
    FILTER(LANG(?qualifierPropertyLabel) = "en")
  }
}
GROUP BY ?item ?statement ?claimProperty

Show me the items, statements, and qualifiers linked to the season entity (Q27020041), including the names of the qualifier properties.

For each statement about a sports season, what property is being used and what qualifiers are attached to it?

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q27020041> . ?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: All types and categories that Toronto is an instance of or a subclass of.

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

What classes does Toronto belong to, including its superclasses in the taxonomy?

List all the categories that Toronto is part of, from direct types up through all parent classes.

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


Question: What are the administrative divisions and country that contain the Réserve naturelle nationale des Hauts de Chartreuse?

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 ?item ?itemLabel WHERE {
  wd:Q2399544(wdt:P17 | wdt:P131) ?item .
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = 'en')
}

Which communes and country is the Hauts de Chartreuse national nature reserve located in?

List the places (communes and country) associated with the Réserve naturelle nationale des Hauts de Chartreuse.

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


Question: What is the English label and description of the person with e-archiv.li ID 31680?

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

Who is identified as 31680 in the Liechtenstein Archive, and what is their English description?

Find the name and English biography of the individual linked to e-archiv.li identifier 31680.

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


Question: Human settlements in Russia called "Або" with their coordinates and founding dates.

SELECT ?settlement ?settlementLabel ?coordinates ?inception ?dissolved WHERE { { ?settlement (wdt:P31/wdt:P279*) wd:Q486972 ; rdfs:label "Або"@ru . } UNION { ?settlement (wdt:P31/wdt:P279*) wd:Q486972 ; skos:altLabel "Або"@ru . } OPTIONAL { ?settlement rdfs:label ?settlementLabel . } OPTIONAL { ?settlement wdt:P625 ?coordinates . } OPTIONAL { ?settlement wdt:P571 ?inception . } OPTIONAL { ?settlement wdt:P576 ?dissolved . } }

Which human settlements are known as "Або" in Russian, and what are their locations, founding years, and dissolution dates?

Show me all human settlements that have the Russian label or alternative label "Або", along with their geographic coordinates, when they were founded, and if they were dissolved.

SELECT * WHERE { { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> ; <http://www.w3.org/2000/01/rdf-schema#label> "Або"@ru . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> ; <http://www.w3.org/2004/02/skos/core#altLabel> "Або"@ru . } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P571> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P576> ?var4 . } }


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

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

Can you show me the Wikimedia Commons image associated with the Social Networks and Archival Context identifier w6rv1dmp?

Which image is linked to the SNAC ARK ID w6rv1dmp in Wikidata?

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


Question: What are the birth and death dates of Rose O'Neal Greenhow?

SELECT ?name ?birthDate ?deathDate WHERE { BIND( wd:Q718228 AS ?person ) . ?person wdt:P31 wd:Q5 . OPTIONAL { ?person wdt:P569 ?birthDate . } OPTIONAL { ?person wdt:P570 ?deathDate . } ?person rdfs:label ?name . FILTER(LANG(?name) = "en") }

Can you tell me when Rose O'Neal Greenhow was born and when she died, including any conflicting death dates?

Provide the English name, birth date, and death date of the American spy Rose O'Neal Greenhow.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q718228> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: John Megna's date of birth and date of death

SELECT ?label ?birthDate ?deathDate WHERE { wd:Q1101802 rdfs:label ?label . FILTER(LANG(?label) = "en") . OPTIONAL { wd:Q1101802 wdt:P569 ?birthDate . } OPTIONAL { wd:Q1101802 wdt:P570 ?deathDate . } }

When was John Megna born and when did he die?

Can you tell me the birth and death dates of the American actor John Megna?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q1101802> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the date of birth and date of death of the Canadian painter Bruno Bobak?

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

Can you tell me when Bruno Bobak was born and when he died?

Show me the birth and death dates of Bruno Bobak, along with his name.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q2926650> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Who are the notable people born in Llanrhystud, and when were they born and died?

SELECT ?personLabel ?birthDate ?deathDate WHERE { ?person wdt:P19 wd:Q13644939 ; wdt:P31 wd:Q5 . OPTIONAL { ?person wdt:P569 ?birthDate . } OPTIONAL { ?person wdt:P570 ?deathDate . } ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

List the names, birth dates, and death dates of humans from the village of Llanrhystud.

Can you find any people from Llanrhystud in Wales and provide their birth and death information?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q13644939> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Thomas Davey's date of birth and death, and his name

SELECT ?label ?birthDate ?deathDate WHERE { wd:Q7788861 rdfs:label ?label . FILTER(LANG(?label) = "en") . OPTIONAL { wd:Q7788861 wdt:P569 ?birthDate . } OPTIONAL { wd:Q7788861 wdt:P570 ?deathDate . } }

When was Thomas Davey born and when did he die, and what is his full name?

Please provide the English name, birth date, and death date of Thomas Davey.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q7788861> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the birth and death dates of Henry Ledyard?

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

Can you tell me the full name and lifespan of Henry Ledyard?

When was Henry Ledyard born and when did he die?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q5724760> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Humans who have been President of the United States

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P39 wd:Q11696 .
}
LIMIT 20

Who are the people that have held the office of President of the United States?

List up to 20 individuals who are human and have served as President of the United States.

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


Question: Víctor Brown, Bolivian footballer: date of birth, citizenship, place of birth, occupation, and image.

SELECT DISTINCT
  ?person
  ?occupationLabel
  ?dob
  ?personLabel
  ?citizenshipLabel
  ?startTime
  ?endTime
  ?birthPlaceLabel
  ?countryLabel
  ?image
  (CONCAT("_", STR(?commonsCategory)) AS ?commonsCategoryFormatted)
WHERE {
  VALUES ?person { wd:Q2482354 }
  ?person wdt:P569 ?dob ;
          wdt:P19 ?birthPlace ;
          wdt:P27 ?citizenship .
  ?birthPlace wdt:P17 ?country .
  OPTIONAL { ?person wdt:P18 ?image . }
  OPTIONAL { ?person wdt:P106 ?occupation . }
  OPTIONAL { ?person wdt:P373 ?commonsCategory . }
  OPTIONAL {
    ?person p:P27 ?citizenshipStmt .
    ?citizenshipStmt ps:P27 ?citizenship ;
                     pq:P580 ?startTime .
  }
  OPTIONAL {
    ?person p:P27 ?citizenshipStmt2 .
    ?citizenshipStmt2 ps:P27 ?citizenship ;
                     pq:P582 ?endTime .
  }
  OPTIONAL { ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }
  OPTIONAL { ?occupation rdfs:label ?occupationLabel . FILTER(LANG(?occupationLabel) = "en") }
  OPTIONAL { ?citizenship rdfs:label ?citizenshipLabel . FILTER(LANG(?citizenshipLabel) = "en") }
  OPTIONAL { ?birthPlace rdfs:label ?birthPlaceLabel . FILTER(LANG(?birthPlaceLabel) = "en") }
  OPTIONAL { ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") }
}

What is the date of birth, country of citizenship, place of birth, and occupation of the Bolivian footballer Víctor Brown?

Please provide the full profile of Víctor Brown, including his birth date, citizenship, birthplace, occupation, and any associated image or Wikimedia Commons category.

SELECT DISTINCT ?var1 ?var2Label ?var3 ?var1Label ?var4Label ?var5 ?var6 ?var7Label ?var8Label ?var9 ( CONCAT ( "_", STR ( ?var10 ) ) AS ?var11 ) ?var12Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 ; <http://www.wikidata.org/prop/P27> ?var13 ; <http://www.wikidata.org/prop/direct/P18> ?var9 ; <http://www.wikidata.org/prop/direct/P19> ?var7 . ?var13 <http://www.wikidata.org/prop/statement/P27> ?var4 . ?var7 <http://www.wikidata.org/prop/direct/P17> ?var8 . <http://fr.wikipedia.org/wiki/V%C3%ADctor%20Brown> <http://schema.org/about> ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P641> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var12 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2416> ?var14 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var10 . } OPTIONAL { ?var13 <http://www.wikidata.org/prop/qualifier/P580> ?var5 . } OPTIONAL { ?var13 <http://www.wikidata.org/prop/qualifier/P582> ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: What are the different types of works titled "Thriller" that have English Wikipedia pages?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item ?itemLabel ?typeLabel WHERE {
  ?item rdfs:label "Thriller" @en .
  ?item ( wdt:P31 / wdt:P279 ) ?type .
  ?wikipedia schema:about ?item ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER ( LANG( ?itemLabel ) = "en" )
  }
  OPTIONAL {
    ?type rdfs:label ?typeLabel .
    FILTER ( LANG( ?typeLabel ) = "en" )
  }
}

Which items named "Thriller" are linked to the English Wikipedia, and what categories do they belong to?

List all movies, songs, and other works called "Thriller" along with their classifications on Wikidata.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3Label WHERE { ?var1 ?var4Label "Thriller"@en . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> ) ?var3 . ?var5 <http://schema.org/about> ?var1 . ?var5 <http://schema.org/inLanguage> "en". ?var5 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What types of organizations is Lionsgate classified as?

SELECT DISTINCT ?company ?type WHERE { ?company rdfs:label "Lionsgate"@en . ?company wdt:P31 ?type . } LIMIT 10

What are the categories or classes that the company Lionsgate belongs to?

Show me the Wikidata types (instance of) for the company named Lionsgate in English.

SELECT DISTINCT ?var1 WHERE { ?var2 ?var3Label "Lionsgate"@en . OPTIONAL { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> ) ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Who were born in Kyiv and died in London?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?person WHERE {
  ?person wdt:P19 wd:Q1899 .
  ?person wdt:P20 wd:Q84 .
}

List all people who were born in Kyiv and passed away in London.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P19> <http://www.wikidata.org/entity/Q1899> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ru". } ?var1 <http://www.wikidata.org/prop/direct/P20> <http://www.wikidata.org/entity/Q84> . }


Question: Who are some people who share the same occupations as Andy Warhol?

SELECT ?person ?occupation WHERE { wd:Q5603 wdt:P106 ?occupation . ?person wdt:P31 wd:Q5 ; wdt:P106 ?occupation . } LIMIT 20

List humans who work in the same fields as Andy Warhol, such as painting or filmmaking.

Find all individuals who have at least one profession in common with Andy Warhol.

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


Question: What is the English label and description of the entity with YSO ID 105477?

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

Find the name and description in English for the Finnish concept identified by YSO ID 105477.

Tell me about the lake in Pihtipudas, Finland — what is its name and description in English?

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


Question: What properties connect Muezza to other entities, and what are the labels and counts of those connected entities in English?

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

For each property linking Muezza to an object, show the property’s name, how many objects it connects to, and what those objects are called in English.

List all English-labeled relationships of Muezza with their object labels and counts — for example, "instance of" links to "house cat", "legendary figure", etc.

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


Question: German films with IMDb IDs but no Lexikon des Internationalen Films entry.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?film WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film wdt:P495 wd:Q183 .
  ?film wdt:P345 ?imdbId . MINUS {
    ?film wdt:P3107 ?ldifId .
  }
}

Which films from Germany are listed on IMDb but not in the Lexikon des Internationalen Films?

Show me all German movies that have an IMDb identifier but are not cataloged in the Lexikon des Internationalen Films.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q183> . ?var1 <http://www.wikidata.org/prop/direct/P345> ?var2 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P3107> ?var3 . } } GROUP BY ?var1


Question: What country is Street Cat Bob associated with through his owner?

SELECT ?country WHERE { wd:Q27744042 wdt:P127 ?owner . ?owner wdt:P27 ?country }

Which country is the citizen of the person who owns the famous street cat Bob?

Since Bob the street cat was owned by James Bowen, which country does he belong to?

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


Question: What country is Dusty the Klepto Kitty from, based on his place of birth?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?country WHERE {
  wd:Q5317221 wdt:P19 ?place .
  ?place wdt:P17 ?country .
}

Country of Dusty the Klepto Kitty’s birthplace

Tell me the sovereign state where Dusty the Klepto Kitty was born.

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


Question: What is the image of Sister Cream, the Scottish Fold cat?

SELECT ?label ?image WHERE { wd:Q27739753 rdfs:label ?label . FILTER(LANG(?label) = 'en') OPTIONAL { wd:Q27739753 wdt:P18 ?image } }

Is there an image available on Wikimedia Commons for the cat named Sister Cream?

Show me the label and image for Sister Cream from Wikidata.

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


Question: Labels for the city Gdynia in different languages

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 ?city ?label WHERE {
  ?city wdt:P31 wd:Q515 .
  ?city rdfs:label ?label .
  FILTER(LCASE(STR(?label)) = "gdynia")
}
LIMIT 10

In which languages is the city Gdynia labeled as "Gdynia"?

Show me all the language labels for the city Gdynia that are spelled exactly "Gdynia".

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q515> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LCASE ( STR ( ?var2Label ) ) = "gdynia" ) ) ) . } LIMIT 10


Question: What is the name and description of the entity with YSO ID 113121?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?description WHERE {
  ?item wdt:P2347 "113121" .
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
  }
  OPTIONAL {
    ?item schema:description ?description .
  }
}

Can you tell me the label and description of the Finnish ontology concept identified by YSO ID 113121?

Show me what the item with YSO ID "113121" is called and what it's described as in any language.

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


Question: Subclasses and superclasses of the Wikimedia category "Christianity by cities of Finland" and their direct subclasses.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?subclass ?subclassLabel ?directSubclass WHERE {
  {
    wd:Q7257715 wdt:P279 * ?subclass .
  } UNION {
    ?subclass wdt:P279 * wd:Q7257715 .
  }
  OPTIONAL {
    ?subclass wdt:P279 ?directSubclass .
  }
  ?subclass rdfs:label ?subclassLabel .
}

What are all the classes related to the category "Christianity by cities of Finland" through subclass relationships, and what are their direct subclasses?

List all categories that are either ancestors or descendants of the category "Christianity by cities of Finland" in the subclass hierarchy, along with their labels and immediate subcategories.

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


Question: Coordinates of the Brandenburg Gate and its English label.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?gate ?gateLabel ?coordinates WHERE {
  BIND( wd:Q82425 AS ?gate ) .
  ?gate wdt:P625 ?coordinates .
  ?gate rdfs:label ?gateLabel .
  FILTER ( LANG( ?gateLabel ) = "en" )
}

What are the geographic coordinates of the Brandenburg Gate, and what is its English name?

Please provide the English name and WGS84 coordinates of the Brandenburg Gate.

SELECT ?var1 ?var1Label ?var2 WHERE { BIND ( <http://www.wikidata.org/entity/Q82425> AS ?var1 ). ?var1 <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> "de". } }


Question: What are the coordinates of the municipality of Baliza in Brazil?

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 ?item ?location ?label WHERE {
  wd:Q805016 wdt:P625 ?location .
  wd:Q805016 rdfs:label ?label .
  FILTER(LANG(?label) = "" || LANG(?label) = "en" || LANG(?label) = "pt")
}

Can you tell me the location and name of Baliza, Brazil?

Where is Baliza located, and what is its label in English or Portuguese?

SELECT DISTINCT ?var1 ( "834" AS ?var2 ) ?var3 ( STR ( ?var4Label ) AS ?var5 ) WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "string1"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "string2"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( STR ( ?var4Label ) = "Baliza" ) ) ) . }


Question: List 21 senates around the world with their English names.

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 ?senate ?senateLabel WHERE {
  ?senate wdt:P31 wd:Q2570643 .
  ?senate rdfs:label ?senateLabel .
  FILTER ( LANG( ?senateLabel ) = "en" )
}
LIMIT 21

What are the names of 21 senates in English?

Can you show me up to 21 legislative senates and their official English labels?

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


Question: What are some types of housing cooperatives?

SELECT ?subclass ?subclassLabel WHERE { ?subclass wdt:P279 wd:Q562166 . ?subclass rdfs:label ?subclassLabel . FILTER(LANG(?subclassLabel) = "en") } LIMIT 11

List the English names of organizations that are subclasses of housing cooperatives.

Can you show me different kinds of housing cooperatives, like apartment associations or building cooperatives?

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


Question: List up to 21 partnerships in English.

SELECT ?partnership ?partnershipLabel WHERE { ?partnership wdt:P31 wd:Q728646 . ?partnership rdfs:label ?partnershipLabel . FILTER(LANG(?partnershipLabel) = "en") } LIMIT 21

What are some examples of partnerships as defined in Wikidata, along with their English names?

Show me 21 entities that are instances of a partnership, including their English labels.

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


Question: What properties describe brick-and-mortar businesses, excluding direct "instance of" relationships?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?entity ?property ( SAMPLE( ?qualifierValue ) AS ?sampledQualifierValue ) WHERE {
  ?entity ?property wd:Q726870 .
  FILTER ( ?property != wdt:P31 ) FILTER EXISTS {
    ?entity wdt:P31 / wdt:P279 * wd:Q4830453
  }
  OPTIONAL {
    ?entity ?qualifier ?qualifierValue .
    ?property wikibase:qualifier ?qualifier .
  }
}
GROUP BY ?entity ?property

Which properties are used to classify brick-and-mortar businesses, such as their industry or field of work?

Show me the types of properties (like industry or field of work) that are used to characterize businesses that are brick-and-mortar.

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q726870> . ?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: List of shipbuilding companies

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?company ( SAMPLE( ?label ) AS ?companyLabel ) WHERE {
  ?company wdt:P31 wd:Q16274795 .
  ?company rdfs:label ?label .
}
GROUP BY ?company
LIMIT 21

Can you provide up to 21 shipbuilding companies along with their names?

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


Question: What is the Turkish Wikipedia article about simulation software?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX schema: <http://schema.org/>
SELECT ?article WHERE {
  ?article rdf:type schema:Article ; schema:about wd:Q11121294 ; schema:inLanguage "tr" ; schema:isPartOf ?wiki .
  ?wiki wikibase:wikiGroup "wikipedia" .
}

Is there a Turkish-language article on Wikipedia about simulation software?

Find the Turkish Wikipedia page that discusses simulation software.

SELECT ?var1 WHERE { ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q11121294> ; <http://schema.org/inLanguage> "tr"; <http://schema.org/isPartOf> ?var2 . ?var2 <http://wikiba.se/ontology#wikiGroup> "string1". } LIMIT 1


Question: What are the Simplified Chinese, Traditional Chinese, and Cantonese names of all countries?

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 ?country ?label_zh_hans ?label_zh_hant ?label_yue WHERE {
  ?country wdt:P31 wd:Q6256 .
  ?country rdfs:label ?label_zh_hans
  FILTER(LANG(?label_zh_hans) = "zh-hans")
  .
  ?country rdfs:label ?label_zh_hant
  FILTER(LANG(?label_zh_hant) = "zh-hant")
  .
  ?country rdfs:label ?label_yue
  FILTER(LANG(?label_yue) = "yue")
}
ORDER BY ?country

Can you list all countries along with their names in Simplified Chinese, Traditional Chinese, and Cantonese?

Please provide a list of countries with their corresponding labels in zh-hans, zh-hant, and yue languages.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var2 ) = "zh-hans" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "zh-hant" ) ) ) . FILTER ( ( ( LANG ( ?var4 ) = "yue" ) ) ) . }


Question: Buildings designed by Bonaventura Bassegoda i Amigó in Catalan modernism style, including their types and locations.

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 ?building ?buildingLabel ?typeLabel ?locationLabel WHERE {
  ?building wdt:P84 wd:Q2877971 .
  ?building wdt:P149 wd:Q1122677 .
  OPTIONAL {
    ?building wdt:P31 ?type .
  }
  OPTIONAL {
    ?building wdt:P131 ?location .
  }
  OPTIONAL {
    ?building rdfs:label ?buildingLabel .
    FILTER ( LANG( ?buildingLabel ) = "en" )
  }
  OPTIONAL {
    ?type rdfs:label ?typeLabel .
    FILTER ( LANG( ?typeLabel ) = "en" )
  }
  OPTIONAL {
    ?location rdfs:label ?locationLabel .
    FILTER ( LANG( ?locationLabel ) = "en" )
  }
}
LIMIT 10

Which buildings did Bonaventura Bassegoda i Amigó design in the Catalan modernism style, and what are their types and locations?

List the buildings designed by Bonaventura Bassegoda i Amigó in the Catalan modernism architectural style, along with their building types and where they are located.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P149> <http://www.wikidata.org/entity/Q34636> . ?var1 <http://www.wikidata.org/prop/direct/P84> <http://www.wikidata.org/entity/Q2877971> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P195> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ca,ca". } }


Question: Organizations associated with Marxism

SELECT DISTINCT ?organization ?organizationLabel WHERE { ?organization (wdt:P31/wdt:P279*) wd:Q43229 . ?organization wdt:P1142 wd:Q7264 . } ORDER BY ?organizationLabel

Which organizations have Marxism as their political ideology?

List all organizations that are ideologically aligned with Marxism.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q43229> . ?var1 ( <http://www.wikidata.org/prop/direct/P1142> */ <http://www.wikidata.org/prop/direct/P1387> */ <http://www.wikidata.org/prop/direct/P361> *) <http://www.wikidata.org/entity/Q7264> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de,pt,fr,it,ca". } } ORDER BY DESC( ?var2 )


Question: What are the class hierarchies of Mount Everest, along with its coordinates and creation/dissolution dates?

SELECT * WHERE { BIND( wd:Q513 AS ?item ) . ?item (wdt:P31 / wdt:P279*) ?class . OPTIONAL { ?item wdt:P625 ?coordinates . } OPTIONAL { ?item wdt:P571 ?inception . } OPTIONAL { ?item wdt:P576 ?dissolved . } }

Can you show me all the categories and supercategories that Mount Everest belongs to, its location, and when it was created or ceased to exist?

I want to know the full classification path of Mount Everest, its geographic coordinates, and whether there's any record of when it was established or discontinued.

SELECT * WHERE { BIND ( <http://www.wikidata.org/entity/Q30332147> AS ?var1 ). { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ru,en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P571> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P576> ?var6 . } }


Question: People who died in Taganrog

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

Who are the humans that died in Taganrog, Russia?

List the names of people who were born as humans and passed away in Taganrog.

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


Question: Scholarly articles authored by Laurence Zitvogel, including co-authors, publication venues, and earliest publication dates.

SELECT (MIN(?pubDate) AS ?earliestPubDate) ?workTitle ?workTypeLabel (GROUP_CONCAT(DISTINCT ?authorLabel; SEPARATOR=", ") AS ?allAuthors) (SAMPLE(?pages) AS ?numberOfPages) ?publicationVenue ?publicationVenueLabel WHERE { ?work wdt:P50 wd:Q28317098 . ?work wdt:P1476 ?workTitle . OPTIONAL { ?work wdt:P31 ?workType . } OPTIONAL { ?workType rdfs:label ?workTypeLabel . FILTER(LANG(?workTypeLabel) = "en") } ?work wdt:P50 ?author . OPTIONAL { ?author rdfs:label ?authorLabel . FILTER(LANG(?authorLabel) = "en") } OPTIONAL { ?work wdt:P577 ?pubDate } OPTIONAL { ?work wdt:P1104 ?pages } OPTIONAL { ?work wdt:P1433 ?publicationVenue } OPTIONAL { ?publicationVenue rdfs:label ?publicationVenueLabel . FILTER(LANG(?publicationVenueLabel) = "en") } } GROUP BY ?work ?workTitle ?workTypeLabel ?publicationVenue ?publicationVenueLabel ORDER BY DESC(?earliestPubDate)

What are the earliest published scholarly articles by Laurence Zitvogel, and who are the co-authors and journals involved?

List all research papers authored by Laurence Zitvogel, showing their titles, publication dates, journals, types, and full author lists in English.

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/Q28317098> . ?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: ICAO, IATA, and FAA codes for airports, along with their administrative location and coordinates.

SELECT ?icao ?iata ?faa ?adminLabel ?coord ?iso3166 WHERE { ?airport wdt:P31 wd:Q1248784 . OPTIONAL { ?airport wdt:P239 ?icao . } OPTIONAL { ?airport wdt:P238 ?iata . } OPTIONAL { ?airport wdt:P240 ?faa . } OPTIONAL { ?airport wdt:P131 ?admin . ?admin rdfs:label ?adminLabel . FILTER(LANG(?adminLabel) = "en") } OPTIONAL { ?airport wdt:P625 ?coord . } OPTIONAL { ?airport wdt:P300 ?iso3166 . } }

What are the ICAO, IATA, and FAA codes, administrative locations in English, coordinates, and ISO 3166-2 codes for all airports in Wikidata?

List all airports with their ICAO and IATA codes, FAA codes if available, the English name of the administrative area they’re located in, their geographic coordinates, and their ISO 3166-2 subdivision codes.

SELECT ?var1 ?var2 ?var3 ?var4Label ?var5 ?var6Label WHERE { ?var7 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1248784> . OPTIONAL { ?var7 <http://www.wikidata.org/prop/direct/P239> ?var1 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/direct/P238> ?var2 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/direct/P240> ?var3 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/direct/P131> ?var4 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/direct/P625> ?var5 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/direct/P300> ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: English Wikipedia page, Rotten Tomatoes ID, and awards for the film with IMDb ID tt4307132.

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 schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?wikipediaPage ?rottenTomatoesId ?awardLabel WHERE {
  ?film wdt:P31 wd:Q11424 ; wdt:P345 "tt4307132" .
  OPTIONAL {
    ?wikipediaPage schema:about ?film ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
  }
  OPTIONAL {
    ?film wdt:P1258 ?rottenTomatoesId .
  }
  OPTIONAL {
    ?film p:P166 ?awardStatement .
    ?awardStatement ps:P166 ?award .
    ?award rdfs:label ?awardLabel .
    FILTER ( LANG( ?awardLabel ) = "en" )
  }
}

What is the English Wikipedia page for the film "G Kutta Se" (IMDb: tt4307132), and does it have a Rotten Tomatoes ID or any awards listed?

Please provide the English Wikipedia link for the film with IMDb ID tt4307132, along with its Rotten Tomatoes ID and any awards it has won, if available.

SELECT ?var1 ?var2 ?var3 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var4 <http://www.wikidata.org/prop/direct/P345> ?var5 . OPTIONAL { ?var1 <http://schema.org/about> ?var4 . ?var1 <http://schema.org/inLanguage> "en". ?var1 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/P166> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P166> ?var7 . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P1258> ?var2 . } FILTER ( ( ( ?var5 = "tt4307132" ) ) ) . }


Question: Descendants of Johann Sebastian Bach

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?descendant WHERE {
  wd:Q1339 wdt:P40 + ?descendant .
}

Who are the descendants of Johann Sebastian Bach?

List all children, grandchildren, and further descendants of Johann Sebastian Bach.

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


Question: Latvian humans without specified sex or gender

SELECT ?var1 ?var1Label WHERE { ?var1 wdt:P31 wd:Q5 . ?var1 wdt:P27 wd:Q211 . MINUS { ?var1 p:P21 ?var2 . } OPTIONAL { ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") } }

Who are the humans from Latvia that do not have any sex or gender information recorded in Wikidata?

List the names of people who are citizens of Latvia but have no sex or gender specified in their Wikidata entries.

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/Q211> . MINUS { ?var1 <http://www.wikidata.org/prop/P21> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "lv". } }


Question: All superclass classes of the entity Q16361131 in Wikidata

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?class ?classLabel WHERE {
  wd:Q16361131 wdt:P31 ?directClass .
  ?directClass wdt:P279 * ?class .
  ?class rdfs:label ?classLabel .
  FILTER(LANG(?classLabel) = "en")
}

What are all the classes and their superclasses that the student fraternity Q16361131 belongs to?

List all the English-labeled classes that the entity Q16361131 is a member of, including all its transitive superclasses.

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


Question: What movie has the elFilm ID 1417199?

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

Which film on Wikidata is identified by the elFilm ID 1417199?

I need to find the Wikidata item for the Arabic movie with elFilm ID 1417199.

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


Question: Paris labeled entities with coordinates

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?label ?location WHERE {
  ?item rdfs:label "Paris" @en .
  ?item wdt:P625 ?location .
}

What places are named Paris and have geographic coordinates?

Show me all entities called "Paris" in English that have location coordinates.

SELECT DISTINCT ?var1 ( "17189" AS ?var2 ) ?var3 ( STR ( ?var4Label ) AS ?var5 ) WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "string1"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "string2"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( STR ( ?var4Label ) = "string3" ) ) ) . }


Question: People born in Suceava County or its subdivisions with their birth dates and English names.

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 ?dateOfBirth WHERE {
  {
    ?person wdt:P19 wd:Q181209 .
  } UNION {
    ?person wdt:P19 ?birthLocation .
    ?birthLocation wdt:P131 * wd:Q181209 .
  }
  ?person wdt:P31 wd:Q5 .
  OPTIONAL {
    ?person wdt:P569 ?dateOfBirth .
  }
  ?person rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}
ORDER BY ASC(?label)
LIMIT 4000

Who are the people born in Suceava County or any of its administrative areas, and what are their English names and dates of birth?

List all humans born in Suceava County or its subregions, showing their English names and birth dates.

SELECT ?var1 ?var2Label ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P19> <http://www.wikidata.org/entity/Q181209> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var4 . ?var4 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q181209> . } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ro". } } ORDER BY ASC( ?var2Label ) LIMIT 4000


Question: What are all the human settlements (cities, towns, villages, etc.) listed in Wikidata?

SELECT DISTINCT ?settlement WHERE { ?settlement wdt:P31 ?class . ?class (wdt:P31|wdt:P279)* wd:Q486972 . FILTER(STRSTARTS(STR(?settlement), "http://www.wikidata.org/entity/Q")) }

List all real-world places that are classified as human settlements or any of their subclasses in Wikidata.

Can you show me examples of populated places like cities and villages from Wikidata?

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


Question: Persian-labeled entities that are types of polar ice caps

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 ?label ?item WHERE {
  ?item wdt:P31 ?class .
  ?class ( wdt:P279 * ) wd:Q1286914 .
  ?item rdfs:label ?label .
  FILTER ( LANG( ?label ) = "fa" )
}

What are the Persian names for entities that are subclasses of polar ice caps?

List the Persian labels and corresponding Wikidata items for all geographical features that are instances of a subclass of polar ice cap.

SELECT DISTINCT ?var1 ?var2 WHERE { { ?var2 <http://www.wikidata.org/prop/direct/P31> ?var3 . ?var3 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P279> )* <http://www.wikidata.org/entity/Q1286914> . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "fa" ) ) ) . } }


Question: What are the names and establishment dates of quarries founded after 1860?

SELECT ?quarry ?quarryLabel ?inceptionDate WHERE { ?quarry wdt:P31 wd:Q188040 . ?quarry wdt:P571 ?inceptionDate . FILTER ( ?inceptionDate > "1860-01-01T00:00:00Z"^^xsd:dateTime ) FILTER ( isLiteral(?inceptionDate) ) ?quarry rdfs:label ?quarryLabel . }

List quarries that began operation after 1860, along with their founding years.

Which open-pit mines have been in operation since after 1860, and when were they established?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q188040> . ?var1 <http://www.wikidata.org/prop/direct/P571> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( ( ?var2 > "1860-01-01"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: Multilingual titles and descriptions of The Lord of the Rings: The Fellowship of the Ring

SELECT ?property ?value WHERE { wd:Q127367 ?property ?value . FILTER(?property IN (schema:name, schema:description)) } ORDER BY ?property ?value

What are the different language versions of the title and description for the film "The Lord of the Rings: The Fellowship of the Ring"?

Show me all the translated names and descriptions for the 2001 film "The Lord of the Rings: The Fellowship of the Ring".

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


Question: What are the names of Henry of Saxe-Lauenburg in English, German, French, and Italian, along with his image and English Wikipedia link?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?label ?image ?coordinates ?wikipedia WHERE {
  wd:Q89268 rdfs:label ?label .
  VALUES(?lang ?order) {("en" 1)("de" 2)("fr" 3)("it" 4)
  }
  FILTER(LANG(?label) = ?lang)
  OPTIONAL {
    wd:Q89268 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q89268 wdt:P625 ?coordinates .
  }
  ?wikipedia schema:about wd:Q89268 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
}
ORDER BY ASC(?order)

Can you show me the different language labels for Henry of Saxe-Lauenburg, ordered by language preference (English first), along with his image and Wikipedia page?

Show me the English, German, French, and Italian labels for Henry of Saxe-Lauenburg, his Commons image, and the link to his English Wikipedia article.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q89268> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var7 ) ) ) . VALUES ( ?var7 ?var8 ) { ( "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/Q89268> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q89268> <urn:dboabstract> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q89268> <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/Q89268> ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var8 )


Question: What film has the AllMovie ID v115914?

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

Which movie on Wikidata is associated with the AllMovie title ID v115914?

Find the Wikidata item for the film identified by AllMovie ID v115914.

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


Question: Finn Church Aid label, coordinates, image, and English Wikipedia page

SELECT ?label ?image ?coordinates ?wikipediaArticle WHERE { wd:Q5491872 rdfs:label ?label . FILTER(LANG(?label) = "" || LANG(?label) = "en") OPTIONAL { wd:Q5491872 wdt:P18 ?image . } OPTIONAL { wd:Q5491872 wdt:P625 ?coordinates . } OPTIONAL { ?wikipediaArticle rdf:type schema:Article ; schema:about wd:Q5491872 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } }

What is the label, location, and English Wikipedia article of Finn Church Aid, and does it have an image?

Please provide the name, geographic coordinates, and English Wikipedia link for Finn Church Aid, along with its image if available.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q5491872> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var5 ) ) ) . VALUES ( ?var5 ?var6 ) { ( "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/Q5491872> <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q5491872> <http://www.wikidata.org/prop/direct/P625> ?var3 . } 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/Q5491872> ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var6 )


Question: Labels in English and French for Pohjois-Suomen opiskelija-asuntosäätiö, ordered by language preference.

SELECT ?label ?image ?coordinates ?wikipediaArticle WHERE { VALUES (?lang ?sort) { ("en" 1) ("fr" 2) } wd:Q18661396 rdfs:label ?label . FILTER(LANG(?label) = ?lang) OPTIONAL { wd:Q18661396 wdt:P18 ?image . } OPTIONAL { wd:Q18661396 wdt:P625 ?coordinates . } OPTIONAL { ?wikipediaArticle rdf:type schema:Article ; schema:about wd:Q18661396 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } } ORDER BY ?sort

What are the English and French labels for the student housing foundation PSOAS in Oulu, Finland, and in what order are they listed?

Show me the English and French names of the Pohjois-Suomen opiskelija-asuntosäätiö foundation, with English appearing first.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q18661396> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var5 ) ) ) . VALUES ( ?var5 ?var6 ) { ( "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/Q18661396> <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q18661396> <http://www.wikidata.org/prop/direct/P625> ?var3 . } 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/Q18661396> ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var6 )


Question: What are the direct properties and values of embryonal carcinoma (Q1451877)?

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

Can you list all the attributes of embryonal carcinoma from Wikidata?

What information is available about the disease embryonal carcinoma in Wikidata?

SELECT ?var1 ?var2 WHERE { ?var1 ?var2 <http://www.wikidata.org/entity/statement/Q1451877-995B8B30-EBF7-4CFE-A73C-E6C5C7343DED> . }


Question: What structures or equipment were retired between 1300 and 1310?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item WHERE {
  ?item ( wdt:P730 | wdt:P746 ) ?date .
  FILTER ( YEAR( ?date ) >= 1300 && YEAR( ?date ) <= 1310 )
}

Which historical items had their service retirement or disappearance recorded in the early 14th century?

Can you list any known retirements or disappearances from the year 1308?

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


Question: Film with Ciné-Ressources ID 50813

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

What film has the Ciné-Ressources ID 50813?

Tell me the name of the film identified by the Ciné-Ressources ID 50813.

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


Question: What are all the broader categories (superclasses) of the public office class in Wikidata?

SELECT DISTINCT ?class WHERE { wd:Q294414 wdt:P279* ?class }

What classes does "public office" belong to, including indirect superclasses?

Show the full hierarchy of classes that include "public office" as a subclass.

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


Question: What movie has the IMDb ID tt0466535?

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

Which Wikidata item corresponds to the IMDb identifier tt0466535?

Find the movie in Wikidata that is linked to the IMDb ID tt0466535.

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


Question: What administrative regions, country, and continent is Solec part of?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?location WHERE {
  {
    wd:Q9339313(wdt:P131) * ?location
  } UNION {
    wd:Q9339313 wdt:P17 ?location
  } UNION {
    wd:Q9339313 wdt:P17 ?country .
    ?country wdt:P30 ?location
  }
}

What are all the geographic and political entities that Solec belongs to, including its city, region, country, and continent?

List all the places Solec is located in, from neighborhood up to continent, including its country.

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


Question: What educational institution did Jean-Marc Egly attend, and what degree did he earn?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?institution ?institutionLabel ?startDate ?endDate ?degreeLabel WHERE {
  wd:Q3167372 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")
  }
}

Which university did Jean-Marc Egly graduate from, and when did he start and end his studies there? What academic degree did he obtain?

Please list the alma mater of Jean-Marc Egly, including any recorded start and end dates of attendance and the academic degree he earned, with labels in English.

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


Question: What movie has the elFilm ID 1637439?

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

Which film in Wikidata is identified by the elFilm film ID 1637439?

Find the movie that corresponds to the elFilm ID 1637439.

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


Question: Restaurant chains with locations that are restaurants

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?restaurantChain WHERE {
  ?restaurantChain wdt:P31 wd:Q18534542 .
  ?restaurantChain wdt:P527 ?location .
  ?location wdt:P31 wd:Q11707 .
}
LIMIT 20

Which restaurant chains have outlets that are classified as restaurants?

List restaurant chains that operate physical restaurant locations.

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


Question: What is the English name, ITIS TSN, and EoL ID for the taxon with ITIS TSN 180595?

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 ?taxonLabel ?taxon ?itisTsn ?eolId WHERE {
  ?taxon wdt:P31 wd:Q16521 .
  ?taxon wdt:P815 ?itisTsn .
  ?taxon wdt:P830 ?eolId .
  FILTER(?itisTsn = "180595")
  .
  ?taxon rdfs:label ?taxonLabel .
  FILTER(LANG(?taxonLabel) = "en")
}
LIMIT 30

Which genus has the ITIS Taxonomic Serial Number 180595, and what are its Encyclopedia of Life ID and English name?

Show me the English label, ITIS TSN, and EoL ID for the taxon identified by ITIS TSN 180595.

SELECT ?var1Label ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q16521> . ?var1 <http://www.wikidata.org/prop/direct/P815> "180595". OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P815> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P830> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 30


Question: List entities with their ISNI identifiers and English labels.

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

Which entities have an International Standard Name Identifier (ISNI), and what are their names and ISNI values?

Show me the names and ISNI numbers of all entities that have an ISNI, using English labels.

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


Question: Monarchs of England with their images

SELECT ?person ?personLabel ?image WHERE { ?person wdt:P39 wd:Q18810062 . OPTIONAL { ?person wdt:P18 ?image . } ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

Who were the monarchs of England, and what are their images?

List all English monarchs along with their names and associated images from Wikimedia Commons.

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


Question: Most frequently used property to link entity types to artistic movement genre

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

Which property is most commonly used to indicate that a type of entity (like film or novel) has a genre?

Show me the property that is most often used to associate classes of works with the concept of genre in Wikidata.

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


Question: What are the external identifiers and descriptions for anaplastic gastric carcinoma?

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 ?label ?description ?icd10 ?mondo ?orphanet ?umls ?nci WHERE {
  wd:Q19000785 rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  wd:Q19000785 schema:description ?description .
  FILTER(LANG(?description) IN("en" , "uk" , "ar"))
  OPTIONAL {
    wd:Q19000785 wdt:P4229 ?icd10
  }
  OPTIONAL {
    wd:Q19000785 wdt:P5270 ?mondo
  }
  OPTIONAL {
    wd:Q19000785 wdt:P1550 ?orphanet
  }
  OPTIONAL {
    wd:Q19000785 wdt:P2892 ?umls
  }
  OPTIONAL {
    wd:Q19000785 wdt:P1748 ?nci
  }
}

Can you list the ICD-10-CM, Mondo, Orphanet, UMLS, and NCI codes for anaplastic gastric carcinoma, along with its descriptions in English, Ukrainian, and Arabic?

Tell me about anaplastic gastric carcinoma: its name, descriptions in multiple languages, and its medical coding identifiers.

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


Question: Which country has the highest population in the world?

SELECT ?country ?population WHERE { ?country wdt:P31 wd:Q3624078 ; wdt:P1082 ?population . FILTER(ISNUMERIC(?population)) } ORDER BY DESC(?population) LIMIT 1

Tell me the country with the largest population according to Wikidata.

SELECT * WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "my,en". } }


Question: What are the direct properties and their values for gastric adenosquamous carcinoma?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?propertyLabel ?value ?valueLabel WHERE {
  wd:Q18556915 ?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" )
  }
}
ORDER BY ?property

Can you list the medical identifiers and classifications of gastric adenosquamous carcinoma, including its anatomical location and disease ontology IDs?

What does Wikidata say about gastric adenosquamous carcinoma? Show its type, location, and reference IDs like DOID and Mondo.

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


Question: What multilingual labels and descriptions are available for the anime film "Your Name"?

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

Which schema properties are used to describe the film "Your Name" in Wikidata?

Show all properties connected to the entity for the movie "Your Name" (Kimi no Na wa).

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


Question: Japanese-labeled humans and their Japanese-labeled educational institutions

SELECT ?person ?personLabel ?institution ?institutionLabel WHERE { ?person wdt:P31 wd:Q5 . ?institution wdt:P69 ?person . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "ja") . ?institution rdfs:label ?institutionLabel . FILTER(LANG(?institutionLabel) = "ja") } LIMIT 100

Which humans have Japanese labels and were educated at institutions that also have Japanese labels?

Show me pairs of Japanese-named people and the Japanese-named institutions they attended.

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


Question: Japanese labels of people and their countries of citizenship

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?personLabel ?country ?countryLabel WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P27 ?country .
  ?country wdt:P31 wd:Q6256 .
  OPTIONAL {
    ?person rdfs:label ?personLabel .
    FILTER(LANG(?personLabel) = "ja")
  }
  OPTIONAL {
    ?country rdfs:label ?countryLabel .
    FILTER(LANG(?countryLabel) = "ja")
  }
}
LIMIT 100

Which people have Japanese names and are citizens of countries with Japanese labels?

Show me people who are citizens of countries, along with their Japanese names and the Japanese names of their countries.

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