Question: Is there a Wikidata item associated with the VIAF ID 164553852?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P214 "164553852" .
}

Does the person Peter Buch have a VIAF identifier of 164553852?

Is 164553852 a valid Virtual International Authority File (VIAF) ID in Wikidata?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "164553852". }


Question: What are the official details of Jnan Chandra Ghosh Polytechnic, including its location, website, and Wikipedia page?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?label ?image ?coordinates ?wikipediaArticle ?youtubeId ?githubUsername ?twitterUsername ?facebookUsername ?instagramUsername ?website ?orcid WHERE {
  wd:Q17059654 rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" ) OPTIONAL {
    wd:Q17059654 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q17059654 wdt:P625 ?coordinates .
  }
  OPTIONAL {
    wd:Q17059654 wdt:P1651 ?youtubeId .
  }
  OPTIONAL {
    wd:Q17059654 wdt:P2037 ?githubUsername .
  }
  OPTIONAL {
    wd:Q17059654 wdt:P2002 ?twitterUsername .
  }
  OPTIONAL {
    wd:Q17059654 wdt:P2013 ?facebookUsername .
  }
  OPTIONAL {
    wd:Q17059654 wdt:P2003 ?instagramUsername .
  }
  OPTIONAL {
    wd:Q17059654 wdt:P856 ?website .
  }
  OPTIONAL {
    wd:Q17059654 wdt:P496 ?orcid .
  }
  OPTIONAL {
    ?wikipediaArticle rdf:type schema:Article ; schema:about wd:Q17059654 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
  }
}
ORDER BY ?label

Can you show me the English label, geographic coordinates, official website, and Wikipedia link for Jnan Chandra Ghosh Polytechnic?

Does Jnan Chandra Ghosh Polytechnic have any social media accounts or ORCID ID listed on Wikidata?

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


Question: Does the VIAF ID 261677766 exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P214 "261677766" .
}

Is there a Wikidata item associated with the VIAF identifier 261677766?

Check if the Virtual International Authority File ID 261677766 is registered in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "261677766". }


Question: Is there a Wikidata item with VIAF ID 57792642?

Does the Virtual International Authority File identifier 57792642 exist in Wikidata?

Confirm whether the person with VIAF ID 57792642 is represented in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "57792642". }


Question: What are the Chinese alternative names for universities?

SELECT ?university ?chineseLabel WHERE { ?university (wdt:P31/wdt:P279*) wd:Q3918 . ?university skos:altLabel ?chineseLabel . FILTER (LANG(?chineseLabel) = "zh") }

Can you list all universities and their Chinese aliases from Wikidata?

Which institutions classified as universities (or their subclasses) have Chinese-language alternative labels?

SELECT ?var1 ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q3918> . ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "zh" ) ) ) . }


Question: List all specific ambassador roles that are subclasses of ambassador of a country or ambassador to a country.

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 ?ambassadorRole ?ambassadorRoleLabel WHERE {
  {
    ?parentClass wdt:P279 * wd:Q29645880 .
  } UNION {
    ?parentClass wdt:P279 * wd:Q29645886 .
  }
  ?intermediateClass wdt:P279 ?parentClass .
  ?ambassadorRole wdt:P279 ?intermediateClass .
  ?ambassadorRole rdfs:label ?ambassadorRoleLabel .
  FILTER ( LANG( ?ambassadorRoleLabel ) = "en" )
}

What are some examples of specific diplomatic positions, such as ambassador of X to Y, that are derived from the broader categories of ambassador of a country or ambassador to a country?

Show me the English labels of all specific ambassador roles that are three levels below either "ambassador of a country" or "ambassador to a country" in the Wikidata subclass hierarchy.

SELECT DISTINCT ?var1 ?var1Label WHERE { { ?var2 <http://www.wikidata.org/prop/direct/wdt:P279> * <http://www.wikidata.org/entity/Q29645880> . } UNION { ?var2 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q29645886> . } ?var3 <http://www.wikidata.org/prop/direct/P279> ?var2 . ?var1 <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> "fr,en". } }


Question: What are the Hungarian municipalities with their population and geographic coordinates?

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 ?municipality ?municipalityLabel ?population ?coordinates WHERE {
  ?municipality wdt:P31 wd:Q2590631 .
  OPTIONAL {
    ?municipality wdt:P1082 ?population .
  }
  OPTIONAL {
    ?municipality wdt:P625 ?coordinates .
  }
  ?municipality rdfs:label ?municipalityLabel .
  FILTER ( LANG( ?municipalityLabel ) = "en" )
}

Can you list Hungarian towns along with their population and location coordinates?

Show me the English names, population, and GPS coordinates of all municipalities in Hungary.

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


Question: Items archived with their archive dates and whether the date is from the main statement or a reference.

SELECT ?item ?itemLabel ?archiveDate ?sourceType WHERE { { BIND("mainsnak" AS ?sourceType) ?item p:P2960/ps:P2960 ?archiveDate . ?item wdt:P1476 ?itemLabel . } UNION { BIND("reference" AS ?sourceType) ?reference pr:P2960 ?archiveDate . ?statement prov:wasDerivedFrom ?reference . ?item ?statementProperty ?statement . ?item wdt:P1476 ?itemLabel . } } LIMIT 100

What documents have been archived, what date were they archived on, and is that date from the main statement or a reference?

Show me up to 100 archived items with their titles, archive dates, and whether the date comes from the main statement or a reference source.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ?var2 ?var3 WHERE { { BIND ( "mainsnak" AS ?var3 ). ?var1 ( <http://www.wikidata.org/prop/P2960> / <http://www.wikidata.org/prop/statement/P2960> ) ?var2 . } UNION { BIND ( "reference" AS ?var3 ). ?var4 <http://www.wikidata.org/prop/reference/P2960> ?var2 . ?var5 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var4 . ?var1 ?var6 ?var5 . } } LIMIT 100 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: Is there a Wikidata item with VIAF ID 20715044?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P214 "20715044" .
}

Does the Virtual International Authority File identifier 20715044 exist in Wikidata?

Check if the VIAF ID 20715044 is linked to any person in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "20715044". }


Question: Images associated with Bob L. Sturm, including those from his works, related entities, or co-authors.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?image WHERE {
  {
    wd:Q30331295 wdt:P18 ?image .
  } UNION {
    wd:Q30331295 ?property ?entity .
    ?entity wdt:P18 ?image .
    FILTER(?entity != wd:Q5)
  } UNION {
    ?work wdt:P50 wd:Q30331295 .
    {
      ?work wdt:P921 ?subject .
      ?subject wdt:P18 ?image .
    } UNION {
      ?author wdt:P50 ?work .
      ?author wdt:P18 ?image .
    }
  }
}

What images are linked to Bob L. Sturm either directly, through entities he is connected to, or through works he authored or co-authored?

Show me all images related to Bob L. Sturm, including those of his publications’ subjects, entities he’s associated with (excluding humans), and images of other authors of his works.

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


Question: What educational institutions did Marie Curie attend, and what degrees did she earn there?

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:Q7186 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")
  }
}

For each university Marie Curie attended, what was the start and end date of her studies, and what academic degree did she obtain?

Can you list the English names of the universities Marie Curie went to, along with the degrees she earned and the years she started and finished?

SELECT ?var1 ?var2Label ?var3 ?var4 ?var5Label WHERE { <http://www.wikidata.org/entity/Q24175382> <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 properties and values describe the playwright, and what are their English labels?

SELECT DISTINCT ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { wd:Q214917 ?var2 ?var3 . ?prop wikibase:directClaim ?var2 . ?prop rdfs:label ?var2Label . ?var3 rdfs:label ?var3Label . wd:Q214917 rdfs:label ?var1Label . FILTER (LANG(?var3Label) = "en") . FILTER (LANG(?var1Label) = "en") . FILTER (LANG(?var2Label) = "en") . FILTER (?var2 != wdt:P1963) . } LIMIT 20

What are the English-labeled properties and their corresponding English-labeled values associated with the playwright?

List all direct properties of the playwright (Q214917) in English, along with the English labels of their values, excluding the 'has part' property.

SELECT DISTINCT ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { <http://www.wikidata.org/entity/Q214917> ?var4 ?var3 . ?var2 ?var5 ?var4 . ?var2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . <http://www.wikidata.org/entity/Q214917> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . FILTER ( ( ( ?var4 != <http://www.wikidata.org/prop/direct/P1963> ) ) ) . } LIMIT 20


Question: Alumni of Rider University

SELECT DISTINCT ?person WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P69 wd:Q3551664 . } LIMIT 500

Who are the people educated at Rider University?

List all humans who attended Rider University.

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


Question: People educated at the University of St Andrews, sorted by how many Wikipedia articles mention them, with their birth dates, birth places, and images.

SELECT ?person ?personLabel ?dateOfBirth ?birthPrecision ?birthCoordinates ?image (COUNT(DISTINCT ?article) AS ?articleCount)
WHERE {
  ?person wdt:P69 wd:Q216273 .                    # educated at University of St Andrews
  ?person wdt:P31 wd:Q5 .                         # is a human
  ?person wdt:P19 ?birthPlace .
  ?birthPlace wdt:P625 ?birthCoordinates .        # coordinates of birth place
  ?person p:P569 ?birthStatement .                # date of birth statement
  ?birthStatement psv:P569 ?valueNode .           # value node for date
  ?valueNode wikibase:timeValue ?dateOfBirth .    # actual date
  ?valueNode wikibase:timePrecision ?birthPrecision .  # precision (e.g., 11 = day)
  OPTIONAL { ?person wdt:P18 ?image . }
  OPTIONAL { ?article schema:about ?person . }
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}
GROUP BY ?person ?personLabel ?dateOfBirth ?birthPrecision ?birthCoordinates ?image
ORDER BY DESC(?articleCount)

Who are the most notable people who studied at the University of St Andrews, and what are their birth dates, birth locations, and Wikipedia article counts?

List the alumni of the University of St Andrews ranked by their Wikipedia notability, including their date of birth, place of birth coordinates, and profile images if available.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ( COUNT ( DISTINCT ?var9 ) AS ?var10 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P69> <http://www.wikidata.org/entity/Q216273> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P21> ?var11 . ?var1 ( <http://www.wikidata.org/prop/P569> / <http://www.wikidata.org/prop/statement/value/P569> ) ?var12 . ?var12 <http://wikiba.se/ontology#timeValue> ?var2 . ?var12 <http://wikiba.se/ontology#timePrecision> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var13 . ?var13 <http://www.wikidata.org/prop/direct/P625> ?var4 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var8 . } OPTIONAL { ?var9 <http://schema.org/about> ?var1 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var13 <http://www.w3.org/2000/01/rdf-schema#label> ?var7 . ?var14 <http://www.w3.org/2000/01/rdf-schema#label> ?var6 . ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . } } GROUP BY ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ORDER BY DESC( ?var10 )


Question: Which Twitter accounts (Maillot_GG, GG_RMC, RMCinfo, jwaintraub) have the fewest Wikipedia links, and how many?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitter ( COUNT( ?sitelink ) AS ?sitelinksCount ) WHERE {
  ?item wdt:P2002 ?twitter .
  ?sitelink schema:about ?item ; schema:isPartOf ?site .
  VALUES ?twitter {
    "Maillot_GG" "GG_RMC" "RMCinfo" "jwaintraub"
  }
}
GROUP BY ?item ?twitter
ORDER BY ASC ( ?sitelinksCount )

How many Wikipedia sitelinks do the Twitter accounts Maillot_GG, GG_RMC, RMCinfo, and jwaintraub have, sorted from least to most?

List the Wikidata items for the Twitter handles Maillot_GG, GG_RMC, RMCinfo, and jwaintraub, along with their Wikipedia link counts, ordered by the smallest number of links first.

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


Question: Locations and coordinates of first performances before 2000

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?locationLabel ?date ?coordinates WHERE {
  ?work p:P1191 [ ps:P1191 ?date ; pq:P276 ?location ] .
  ?location rdfs:label ?locationLabel .
  FILTER ( LANG( ?locationLabel ) = "en" ) OPTIONAL {
    ?location wdt:P625 ?coordinates .
  }
  FILTER ( ?date < "2000-01-01" ^^ xsd:date )
}

Where were the first performances of works held before the year 2000, and what are their coordinates?

List the English names of places where works premiered before 2000, along with their geographic coordinates if available.

SELECT ?var1Label ?var2 ?var3 WHERE { ?var4 <http://www.wikidata.org/prop/P1191> [ <http://www.wikidata.org/prop/statement/P1191> ?var2 ; <http://www.wikidata.org/prop/qualifier/P276> ?var1 ] . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } FILTER ( ( ( ?var2 < "2000" ) ) ) . }


Question: List universities, academies, and other educational institutions with their coordinates, official websites, and associated Wikimedia Commons categories for their country and city.

SELECT DISTINCT ?institution ?country_category ?admin_category ?coordinates ?website ?country WHERE { { ?institution wdt:P31 wd:Q3918 . } UNION { ?institution wdt:P31 wd:Q1972829 . } UNION { ?institution wdt:P31 wd:Q1143635 . } UNION { ?institution wdt:P31 wd:Q38723 . } UNION { ?institution wdt:P31 wd:Q414147 . } UNION { ?institution wdt:P31 wd:Q162633 . } UNION { ?institution wdt:P31 wd:Q13220391 . } ?institution wdt:P625 ?coordinates . ?institution wdt:P131 ?admin . ?institution wdt:P856 ?website . ?institution wdt:P17 ?country . ?country wdt:P373 ?country_category . ?admin wdt:P373 ?admin_category . } ORDER BY ASC(?country_category)

Which educational institutions (like universities and academies) have official websites, geographic coordinates, and linked Wikimedia Commons categories for their country and administrative location, sorted by country?

Please provide a list of educational institutions including their location (country and city), coordinates, website, and the corresponding Wikimedia Commons categories for both the country and the city, ordered alphabetically by country.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3918> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1972829> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1143635> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q38723> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q414147> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q162633> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13220391> . } ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var7 . ?var1 <http://www.wikidata.org/prop/direct/P856> ?var5 . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var6 . ?var6 <http://www.wikidata.org/prop/direct/P373> ?var2 . ?var7 <http://www.wikidata.org/prop/direct/P373> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var2 )


Question: Who were educated at the University of Edinburgh?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person WHERE {
  ?person wdt:P69 wd:Q160302 .
}

List all people who attended the University of Edinburgh as their alma mater.

Which individuals have the University of Edinburgh as their educational institution?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/P69> <http://www.wikidata.org/entity/Q160302> . }


Question: What films, TV shows, or categories are associated with Tyler Perry, and what are their IMDb IDs?

SELECT DISTINCT ?item ?label ?imdb WHERE { ?item rdfs:label ?label . FILTER (LANG(?label) = "en") . ?item ?property wd:Q686301 . OPTIONAL { ?item wdt:P345 ?imdb . } }

List all English-labeled items linked to Tyler Perry along with their IMDb identifiers.

Show me everything connected to Tyler Perry in Wikidata, including categories, with their English names and IMDb IDs if available.

SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . ?var1 ?var4 <http://www.wikidata.org/entity/Q686301> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P3302> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1562> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1712> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1237> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P646> ?var9 . } }


Question: What are the heights of all humans in Wikidata?

SELECT ?person ?height WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P2048 ?height . }

List people and their heights, where each person is classified as a human.

Which humans have recorded height measurements, and what are those measurements?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2048> <http://www.wikidata.org/entity/human> . }


Question: Does the VIAF ID 109151246655444132790 exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P214 "109151246655444132790" .
}

Is there a Wikidata item associated with the VIAF identifier 109151246655444132790?

Can you confirm that the Virtual International Authority File ID 109151246655444132790 is linked to a Wikidata entity?


Question: What movies and characters has Tyler Perry appeared in, and what are their names in different languages?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?label ( LANG( ?label ) AS ?lang ) WHERE {
  ?item wdt:P161 wd:Q686301 .
  ?item rdfs:label ?label .
  FILTER ( LANG( ?label ) != "" )
}
ORDER BY ?item ?lang

In which films and roles has Tyler Perry acted, and what are the titles of those works in various languages?

List all the films and characters Tyler Perry has been a cast member in, along with their labels in different languages.

SELECT ?var1Label ?var2Label ?var3 WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q686301> . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?var1Label . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . }


Question: What is the Wikidata item for the movie with IMDb ID tt1481360?

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

Can you tell me the title of the film identified by the IMDb ID tt1481360?

Which film in Wikidata has the IMDb identifier tt1481360?

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


Question: What diseases are associated with autosomal inheritance?

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 ?disease ?diseaseLabel WHERE {
  ?disease wdt:P1057 ?chromosome .
  ?chromosome wdt:P279 * wd:Q186380 .
  ?disease rdfs:label ?diseaseLabel .
  FILTER(LANG(?diseaseLabel) = "en")
}

Which genetic disorders are located on chromosomes other than sex chromosomes?

Can you list diseases that are linked to autosomes in Wikidata?

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


Question: What entities are associated with Broadway theatre as their type, genre, or occupation?

SELECT DISTINCT ?subject WHERE { ?subject ?property wd:Q235065 . FILTER(STRSTARTS(STR(?subject), "http://www.wikidata.org/entity/Q")) }

Which plays, people, or places are linked to Broadway theatre in Wikidata?

List all Wikidata items that have Broadway theatre as a category or related concept.

SELECT DISTINCT ?var1 WHERE { <http://www.wikidata.org/entity/Q235065> <https://query.wikidata.org/bigdata/namespace/wdq/sparql> * ?var1 . }


Question: What are the libraries (architectural structures) with coordinates that are not buildings and have English names containing "library"?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel WHERE {
  ?item wdt:P625 [] .
  ?item rdfs:label ?itemLabel .
  ?item wdt:P31 wd:Q811979 . MINUS {
    ?item wdt:P31 wd:Q7075 .
  }
  FILTER(LANGMATCHES(LANG(?itemLabel) , "en"))
  FILTER(CONTAINS(LCASE(?itemLabel) , "library"))
}

Show me English-labeled libraries that are architectural structures but not classified as buildings, and have geographic coordinates.

List all library buildings with coordinates that are not categorized as general buildings, using English labels.

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P625> [] . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q811979> . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . OPTIONAL { <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7075> ?var3 . } FILTER ( ( !( BOUND ( ?var3 ) ) ) ) . FILTER ( ( CONTAINS ( LCASE ( ?var1Label ) , "library" ) ) ) . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . }


Question: Who are the alumni of Colgate Rochester Crozer Divinity School?

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

List all humans who attended Colgate Rochester Crozer Divinity School.

Which people have Colgate Rochester Crozer Divinity School as their alma mater?

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


Question: Does the IMDb ID tt4616156 exist in Wikidata?

ASK WHERE { ?item wdt:P345 "tt4616156" . }

Is there a movie or TV show in Wikidata with the IMDb identifier tt4616156?

Check if the film 'The Three Village Saints' is linked to the IMDb ID tt4616156 in Wikidata.

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


Question: Humans educated at any State University of New York (SUNY) institution.

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

Which people have attended a college that is part of the State University of New York system?

List all humans who were educated at institutions belonging to SUNY.

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


Question: What academic journal has the ISSN 1559-3258?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?journal ?label WHERE {
  ?journal wdt:P236 "1559-3258" .
  ?journal rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}
LIMIT 1

Find the name of the journal with electronic ISSN 1559-3258.

Which journal is identified by the ISSN number 1559-3258?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P236> "1559-3258". } LIMIT 1


Question: What Wikidata item has the IMDb ID tt7387224?

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

Which movie or TV title on Wikidata is associated with the IMDb identifier tt7387224?

Find the Wikidata entry for the title with IMDb ID tt7387224.

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


Question: What is the most specific shared biological category that both Christian Estrosi and Christian Horner belong to, based on their classification in Wikidata?

SELECT ?ancestor (?dist1 + ?dist2 AS ?totalDistance) WHERE { { SELECT ?ancestor (COUNT(?mid) AS ?dist1) WHERE { wd:Q749029 wdt:P31 ?class . ?class wdt:P279+ ?mid . ?mid wdt:P279* ?ancestor . } GROUP BY ?ancestor } { SELECT ?ancestor (COUNT(?mid) AS ?dist2) WHERE { wd:Q173472 wdt:P31 ?class . ?class wdt:P279+ ?mid . ?mid wdt:P279* ?ancestor . } GROUP BY ?ancestor } } ORDER BY ASC(?totalDistance) LIMIT 1

Which class is the closest common ancestor in the taxonomy of humans for Christian Estrosi and Christian Horner, and what is the total distance from each to that class?

Find the least common subclass ancestor of Christian Estrosi and Christian Horner by tracing their class hierarchies, and return the one with the smallest combined path length.

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q749029> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q173472> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: What is the English description and all language labels for the movie with IMDb ID tt0068646?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 wdt:P345 "tt0068646" . ?var1 rdfs:label ?var1Label . OPTIONAL { ?var1 schema:description ?var2 . FILTER (LANG(?var2) = "en") } }

Can you tell me the English description and all the language labels for the film identified by IMDb ID tt0068646?

Show me the labels in all languages and the English description for the item with IMDb ID tt0068646.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4211> "1522". 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: Does the journal Biomaterials Science have the ISSN 2047-4830?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?journal wdt:P236 "2047-4830" .
}

Is there a publication in Wikidata with the ISSN 2047-4830?

Confirm whether the ISSN 2047-4830 is assigned to any journal in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P236> "2047-4830". }


Question: Is there a person in Wikidata with the VIAF ID 57802748?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P214 "57802748" .
}

Does Wikidata contain an entry for VIAF ID 57802748?

Confirm whether the Virtual International Authority File identifier 57802748 is registered in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "57802748". }


Question: List all hostels in France with their coordinates and images from Wikimedia Commons.

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 ?hostel ?hostelLabel ?coordinates ?image WHERE {
  ?hostel wdt:P31 wd:Q654772 .
  ?hostel wdt:P17 wd:Q142 .
  ?hostel wdt:P625 ?coordinates .
  OPTIONAL {
    ?hostel wdt:P18 ?image .
  }
  ?hostel rdfs:label ?hostelLabel .
  FILTER(LANG(?hostelLabel) = "en")
}
ORDER BY ASC(?hostelLabel)

What are the names, locations, and images of hostels located in France?

Show me the English names, geographic coordinates, and associated images (if available) of all hostels in France, sorted alphabetically by name.

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


Question: What are the titles and descriptions of the scientific journal with ISSN 1808-2688?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?journal ?title ?description ?ipniId ?zoobankId ?webFeedUrl WHERE {
  ?journal wdt:P236 "1808-2688" .
  ?journal wdt:P1476 ?title .
  OPTIONAL {
    ?journal schema:description ?description .
  }
  OPTIONAL {
    ?journal wdt:P1019 ?webFeedUrl .
  }
  OPTIONAL {
    ?journal wdt:P2008 ?ipniId .
  }
  OPTIONAL {
    ?journal wdt:P2007 ?zoobankId .
  }
}

Can you list the multilingual titles and descriptions of the journal Balduinia, along with its IPNI ID, ZooBank ID, and web feed URL?

Show me all known titles and language descriptions of the journal identified by ISSN 1808-2688, and include any available identifiers like IPNI or ZooBank IDs and web feeds.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P236> "1808-2688". ?var1 <http://www.wikidata.org/prop/direct/P1476> ?var2 . OPTIONAL { ?var1 <http://schema.org/description> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1019> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2008> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2007> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/P2699> ?var7 . ?var7 <http://www.wikidata.org/prop/statement/P2699> ?var8 . ?var7 <http://www.wikidata.org/prop/qualifier/P2700> <http://www.wikidata.org/entity/Q54871> . } }


Question: What universities did Peter Murray-Rust attend, and what degrees did he earn there?

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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?institution ?institutionLabel ?startDate ?endDate ?degreeLabel WHERE {
  wd:Q908710 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 educational institutions did Peter Murray-Rust attend, and when did he start or end his studies at each?

Show me the schools Peter Murray-Rust went to, along with any academic degrees he received, in English.

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


Question: What are the title, multilingual descriptions, ZooBank ID, IPNI ID, and web feed URL for the journal with ISSN 0033-2615?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?journal ?title ?description ?ipniId ?zooBankId ?webFeedUrl WHERE {
  ?journal wdt:P236 "0033-2615" .
  ?journal wdt:P1476 ?title .
  OPTIONAL {
    ?journal schema:description ?description .
  }
  OPTIONAL {
    ?journal wdt:P2008 ?ipniId .
  }
  OPTIONAL {
    ?journal wdt:P2007 ?zooBankId .
  }
  OPTIONAL {
    ?journal wdt:P1019 ?webFeedUrl .
  }
}

Can you provide the title and descriptions in different languages for the journal Psyche (ISSN 0033-2615), along with its ZooBank and IPNI identifiers and any available RSS/Atom feed?

Show me all the multilingual descriptions of the journal Psyche (ISSN 0033-2615), its title, ZooBank ID, IPNI ID, and web feed URL.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P236> "0033-2615". ?var1 <http://www.wikidata.org/prop/direct/P1476> ?var2 . OPTIONAL { ?var1 <http://schema.org/description> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1019> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2008> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2007> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/P2699> ?var7 . ?var7 <http://www.wikidata.org/prop/statement/P2699> ?var8 . ?var7 <http://www.wikidata.org/prop/qualifier/P2700> <http://www.wikidata.org/entity/Q54871> . } }


Question: What are some examples of sports and sporting events in Wikidata?

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 ?sportItem ?sportItemLabel WHERE {
  ?sportItem ( wdt:P31 / wdt:P279 * ) wd:Q349 .
  ?sportItem rdfs:label ?sportItemLabel .
  FILTER ( LANG( ?sportItemLabel ) = "en" )
}

Can you list all known sports and sports-related events with their English names?

Show me all entities classified as sports or subtypes of sports, along with their labels in English.

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


Question: Journal with ISSN 2373-2822

SELECT ?journal WHERE { ?journal wdt:P236 "2373-2822" . }

Tell me the journal associated with the electronic ISSN 2373-2822.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P236> "2373-2822". } LIMIT 1


Question: What are scholarly articles authored by Paul Erdős?

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 ?article ?label WHERE {
  ?article wdt:P31 wd:Q13442814 ; wdt:P50 wd:Q11648 .
  OPTIONAL {
    ?article rdfs:label ?label .
    FILTER(LANG(?label) = "en")
  }
}
LIMIT 100

Show me English titles of academic papers written by Paul Erdős.

Which research papers have Paul Erdős as an author, and what are their English titles?

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13442814> . ?var1 <http://www.wikidata.org/prop/direct/P2093> ?var3 . FILTER ( ( CONTAINS ( ?var3 , "Erdős" ) ) ) . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } } LIMIT 100


Question: Subclasses of animals with the most language labels in Wikidata.

SELECT ?animalSubclass (COUNT(DISTINCT ?lang) AS ?labelLanguageCount) WHERE { ?animalSubclass wdt:P279 wd:Q729 . ?animalSubclass rdfs:label ?label . BIND(LANG(?label) AS ?lang) . FILTER(?lang != "") } GROUP BY ?animalSubclass ORDER BY DESC(?labelLanguageCount) LIMIT 100

Which animal subclasses have labels in the most languages, and how many languages are they available in?

List all subclasses of animals and count how many different languages their labels are available in, sorted by the most languages first.

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) WHERE { BIND ( LANG ( ?var4Label ) AS ?var2 ). ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q729> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . } GROUP BY ?var1 HAVING ( ( COUNT ( DISTINCT ?var2 ) >= "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) )


Question: What are all the categories or types that a library belongs to, including its broader classifications?

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

What classes is the entity "library" a subclass of in Wikidata?

Show me the full hierarchy of classes above "library" in Wikidata’s taxonomy.

SELECT ?var1 ?var1Label WHERE { <http://www.wikidata.org/entity/Q7075> ( <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> "en". } }


Question: Journal with ISSN 0374-6429, its title, multilingual descriptions, and links to IPNI, JSTOR, ZooBank, feed, and OAI-PMH URL.

SELECT ?journal ?title ?description ?ipniId ?jstorId ?zooBankId ?feedUrl ?url WHERE { ?journal wdt:P236 "0374-6429" . ?journal wdt:P1476 ?title . OPTIONAL { ?journal schema:description ?description . } OPTIONAL { ?journal wdt:P2008 ?ipniId . } OPTIONAL { ?journal wdt:P1230 ?jstorId . } OPTIONAL { ?journal wdt:P2007 ?zooBankId . } OPTIONAL { ?journal wdt:P1019 ?feedUrl . } OPTIONAL { ?journal p:P2699 ?urlStmt . ?urlStmt ps:P2699 ?url . ?urlStmt pq:P2700 wd:Q2430433 . } }

What is the title and multilingual descriptions of the journal with ISSN 0374-6429, and does it have identifiers in IPNI, JSTOR, ZooBank, a web feed, or an OAI-PMH URL?

Show me all the metadata for the journal identified by ISSN 0374-6429, including its title, descriptions in different languages, and any associated identifiers or URLs, especially those using the OAI-PMH protocol.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P236> "0374-6429". ?var1 <http://www.wikidata.org/prop/direct/P1476> ?var2 . OPTIONAL { ?var1 <http://schema.org/description> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1019> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2008> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1230> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2007> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/P2699> ?var9 . ?var9 <http://www.wikidata.org/prop/statement/P2699> ?var8 . ?var9 <http://www.wikidata.org/prop/qualifier/P2700> <http://www.wikidata.org/entity/Q2430433> . } }


Question: What is the most specific administrative category shared by both England and Louisiana?

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 ?commonClass ?label WHERE {
  wd:Q21 wdt:P31 ?type1 .
  wd:Q1588 wdt:P31 ?type2 .
  ?type1 wdt:P279 * ?commonClass .
  ?type2 wdt:P279 * ?commonClass .
  ?commonClass rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}
ORDER BY DESC(STRLEN(?label))
LIMIT 1

What type of entity do England and Louisiana both belong to in the Wikidata hierarchy?

Find the common superclass in the type hierarchy that best describes both England and Louisiana as administrative divisions.

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q21> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q1588> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: Archives with English and Russian labels

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 ?archive ?labelEn ?labelRu WHERE {
  ?archive wdt:P31 wd:Q166118 .
  ?archive rdfs:label ?labelEn .
  ?archive rdfs:label ?labelRu .
  FILTER ( LANG( ?labelEn ) = "en" ) FILTER ( LANG( ?labelRu ) = "ru" )
}

What are the English and Russian names of all institutions that are archives?

List all archive institutions along with their labels in English and Russian.

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


Question: What sources and metadata are attached to the reference for Albert Einstein’s birth date?

SELECT ?property ?value WHERE { ref:158383a80aa90f20f52ce945db29aaa48573b76f ?property ?value . }

List all properties and values of the reference with ID ref:158383a80aa90f20f52ce945db29aaa48573b76f.

Can you show me the details of this Wikidata reference, including where it comes from and when it was retrieved?

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/reference/7c2b95dda3923512d0222d4e0deafdaac94e5f8b> ?var1 ?var2 . }


Question: Geographic features in the Zagros Mountains with their coordinates

SELECT ?feature ?featureLabel ?coordinates WHERE { wd:Q167021 ^ (wdt:P361 | wdt:P4552 | wdt:P4688) ?feature . ?feature wdt:P31/wdt:P279* wd:Q271669 . OPTIONAL { ?feature wdt:P625 ?coordinates . } OPTIONAL { ?feature rdfs:label ?featureLabel . FILTER(LANG(?featureLabel) = "en") } }

What are the names and locations of landforms that are part of the Zagros Mountains?

List all the dams, waterfalls, and plains located within the Zagros Mountains, including their coordinates.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { <http://www.wikidata.org/entity/Q167021> ^( <http://www.wikidata.org/prop/direct/P361> | <http://www.wikidata.org/prop/direct/P4552> | <http://www.wikidata.org/prop/direct/P4688> )+ ?var1 . <http://www.wikidata.org/entity/Q271669> (^ <http://www.wikidata.org/prop/direct/P279> */^ <http://www.wikidata.org/prop/direct/P31> ) ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs,en". } } LIMIT 10000


Question: What source and HomoloGene ID are associated with the reference ref:9b51dbd503923cb58402fc802c143dec2c592379?

SELECT ?property ?value WHERE {
  ref:9b51dbd503923cb58402fc802c143dec2c592379 ?property ?value .
}

Show the properties and values of the reference with ID 9b51dbd503923cb58402fc802c143dec2c592379.

Which database and ID does this Wikidata reference point to?

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/reference/9b51dbd503923cb58402fc802c143dec2c592379> ?var1 ?var2 . }


Question: Libraries and library buildings in the United Kingdom with their addresses, websites, phone numbers, and coordinates.

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 ?image ?library ?libraryLabel ?administrativeEntity ?address ?postalCode ?osGridReference ?operator ?email ?phoneNumber ?website ?coordinates WHERE {
  {
    ?library(wdt:P31 / wdt:P279 *) wd:Q856584 .
  } UNION {
    ?library(wdt:P31 / wdt:P279 *) wd:Q7075 .
  }
  ?library wdt:P17 wd:Q145 .
  OPTIONAL {
    ?library wdt:P625 ?coordinates ; wdt:P18 ?image ; wdt:P131 ?administrativeEntity ; wdt:P969 ?address ; wdt:P281 ?postalCode ; wdt:P613 ?osGridReference ; wdt:P137 ?operator ; wdt:P968 ?email ; wdt:P1329 ?phoneNumber ; wdt:P856 ?website ; wdt:P373 ?commonsCategory .
  }
  ?library rdfs:label ?libraryLabel .
  FILTER(LANG(?libraryLabel) = "en")
}
ORDER BY ASC(?libraryLabel)

What are all the libraries and library buildings in the United Kingdom, and what are their labels, locations, contact details, and official websites?

List all libraries and library buildings in the UK along with their labels, images, administrative locations, postal codes, OS grid references, operators, email addresses, phone numbers, websites, and geographic coordinates.

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 WHERE { { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q856584> . } UNION { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7075> . } ?var2 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q145> . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P625> ?var11 ; <http://www.wikidata.org/prop/direct/P18> ?var1 ; <http://www.wikidata.org/prop/direct/P131> ?var3 ; <http://www.wikidata.org/prop/direct/P969> ?var4 ; <http://www.wikidata.org/prop/direct/P281> ?var5 ; <http://www.wikidata.org/prop/direct/P613> ?var6 ; <http://www.wikidata.org/prop/direct/P137> ?var7 ; <http://www.wikidata.org/prop/direct/P968> ?var8 ; <http://www.wikidata.org/prop/direct/P1329> ?var9 ; <http://www.wikidata.org/prop/direct/P856> ?var10 ; <http://www.wikidata.org/prop/direct/P373> ?var12 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var2Label )


Question: What schools did Mike Oldfield attend?

SELECT ?institution ?institutionLabel ?startDate ?endDate ?degreeLabel WHERE { wd:Q3008 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 educational institutions did Mike Oldfield attend, and when did he start or end his studies there?

Can you list the schools Mike Oldfield went to, along with any degrees he earned and the dates of attendance?

SELECT ?var1 ?var2Label ?var3 ?var4 ?var5Label WHERE { <http://www.wikidata.org/entity/Q3008> <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 is the English or German Wikipedia page for the movie with IMDb ID tt5215088?

SELECT ?movie ?wikipediaPage ?imdbId WHERE { ?movie wdt:P345 "tt5215088" . ?wikipediaPage schema:about ?movie . ?wikipediaPage schema:inLanguage ?lang . FILTER(?lang = "en" || ?lang = "de") BIND("tt5215088" AS ?imdbId) }

Which Wikipedia articles in English or German are about the movie identified by IMDb ID tt5215088?

Show me the Wikidata item, the corresponding English or German Wikipedia page, and the IMDb ID for the movie tt5215088.

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


Question: What books written in Dutch have been published, and where were they published?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?book ?place WHERE {
  ?book wdt:P31 wd:Q571 .
  ?book wdt:P407 wd:Q7411 .
  ?book wdt:P291 ?place .
}

Can you list Dutch-language books along with their places of publication?

Which locations are associated with the publication of books in the Dutch language?

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


Question: Humans with both AGORHA and IdRef identifiers.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?agorhaId ?idRefId WHERE {
  ?human wdt:P31 wd:Q5 .
  ?human wdt:P2342 ?agorhaId .
  ?human wdt:P269 ?idRefId .
}

Which humans have both an AGORHA ID and an IdRef ID?

List the AGORHA and IdRef IDs for all humans in Wikidata who are registered in both systems.

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


Question: What is the country that Hainan belongs to, and what is the total administrative distance from Hainan and China to that country?

SELECT ?parent (1 AS ?distHainan) (0 AS ?distChina) (1 AS ?totalDistance) WHERE { wd:Q42200 wdt:P17 ?parent . FILTER (?parent = wd:Q148) } LIMIT 1

How far is Hainan from China in the administrative hierarchy, and what is the sum of their distances to the common parent?

Which entity is the direct administrative parent of Hainan, and what is the combined distance from Hainan and China to that entity?

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q42200> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q148> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: Libraries in Italy and Vatican City with ISIL codes, excluding major national libraries.

SELECT ?library ?libraryLabel ?isil ?country ?countryLabel WHERE { ?library wdt:P791 ?isil . ?library wdt:P17 ?country . FILTER (?country IN (wd:Q38, wd:Q237)) FILTER (?library NOT IN (wd:Q4115189, wd:Q13406268, wd:Q15397819)) ?library rdfs:label ?libraryLabel . ?country rdfs:label ?countryLabel . FILTER(LANG(?libraryLabel) = "en") FILTER(LANG(?countryLabel) = "en") } LIMIT 1000

What are the libraries in Italy and Vatican City that have ISIL identifiers, excluding the British Library, Library of Congress, and Bibliothèque nationale de France?

List the names, ISIL codes, and countries of all libraries located in Italy or Vatican City, excluding the three largest national libraries.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var5 WHERE { BIND ( REGEX ( STR ( ?var2 ) , "string1" ) AS ?var6 ). BIND ( ( ?var3 = <http://www.wikidata.org/entity/Q38> ) AS ?var4 ). BIND ( ( ?var3 = <http://www.wikidata.org/entity/Q237> ) AS ?var5 ). ?var1 <http://www.wikidata.org/prop/direct/P791> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . FILTER ( ( ( ?var4 || ?var5 = ?var6 ) ) ) . FILTER ( ( ?var1 NOT IN ( <http://www.wikidata.org/entity/Q4115189> , <http://www.wikidata.org/entity/Q13406268> , <http://www.wikidata.org/entity/Q15397819> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } LIMIT 1000


Question: Libraries in Germany with their official websites

SELECT ?label ?website WHERE { ?library wdt:P31 wd:Q7075 . ?library wdt:P17 wd:Q183 . OPTIONAL { ?library wdt:P856 ?website . } ?library rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 100

What are the English names of libraries in Germany and their official websites?

Show me the names and websites of libraries located in Germany.

SELECT ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7075> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de". } } LIMIT 100


Question: What are the four levels of parent taxa above the blue whale in the biological classification hierarchy?

SELECT ?taxon ?taxonLabel ?parent WHERE { { wd:Q42196 wdt:P171 ?taxon . BIND(?taxon AS ?parent) } UNION { wd:Q42196 wdt:P171/wdt:P171 ?taxon . ?taxon wdt:P171 ?parent . } UNION { wd:Q42196 wdt:P171/wdt:P171/wdt:P171 ?taxon . ?taxon wdt:P171 ?parent . } UNION { wd:Q42196 wdt:P171/wdt:P171/wdt:P171/wdt:P171 ?taxon . ?taxon wdt:P171 ?parent . } ?taxon rdfs:label ?taxonLabel . FILTER(LANG(?taxonLabel) = "en") } ORDER BY ?taxon

Show me the taxonomic ancestors of the blue whale up to four levels up, along with their immediate parent and English labels.

What is the family, superfamily, suborder, and order of the blue whale according to Wikidata’s taxonomic data?

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


Question: What is the most central entity in the Wikidata subclass hierarchy that is closest to both Los Angeles and Thanos?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?common ?distLA ?distThanos ?sum WHERE {
  BIND(wd:Q35120 AS ?common)
  BIND(9 AS ?distLA)
  BIND(4 AS ?distThanos)
  BIND(13 AS ?sum)
  wd:Q65 wdt:P31 ?classLA .
  ?classLA wdt:P279 * ?common .
  wd:Q2276627 wdt:P31 ?classThanos .
  ?classThanos wdt:P279 * ?common .
}
LIMIT 1

Which common ancestor class do Los Angeles and Thanos share with the smallest total distance in the subclass hierarchy?

Find the entity that is reachable from both Los Angeles and Thanos through the fewest subclass steps combined.

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q65> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q2276627> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: What country and administrative region is Mount Hickson located in?

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 ?var1 ?label WHERE {
  wd:Q21939701 ( wdt:P30 | wdt:P17 | wdt:P131 ) ?var1 .
  ?var1 rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}

Can you tell me the administrative division and country of the mountain Mount Hickson?

Where is Mount Hickson situated in terms of its country and state?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q21939701> 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: Russian-language names of all animals that are herbivores or subclasses of herbivores.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?subclass ?label WHERE {
  ?subclass wdt:P279 * wd:Q59099 .
  ?subclass rdfs:label ?label .
  FILTER ( LANG( ?label ) = "ru" )
}

What are the Russian names for all types of herbivores and their subtypes in Wikidata?

List all Russian labels for entities that are subclasses of herbivores.

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


Question: What are the English names of specific sports and their broader categories under the general category of sport?

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 ?broadSport ?broadLabel ?specificSport ?specificLabel WHERE {
  ?broadSport wdt:P279 wd:Q349 .
  ?broadSport rdfs:label ?broadLabel .
  ?specificSport wdt:P279 ?broadSport .
  ?specificSport rdfs:label ?specificLabel .
  FILTER ( LANG( ?specificLabel ) = "en" )
}

Which specific sports (in English) are subclasses of broader sport categories like children's sports or women's sports?

List all English-named specific sports along with their parent sport categories in the Wikidata taxonomy.

SELECT ?var1 ?var2Label ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q349> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var3 <http://www.wikidata.org/prop/direct/P279> ?var1 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . }


Question: Images associated with researcher Uffe Seilman, including those of his works, their topics, or co-authors.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?image WHERE {
  {
    wd:Q31166166 wdt:P18 ?image .
  } UNION {
    wd:Q31166166 ?property ?entity .
    ?entity wdt:P18 ?image .
    FILTER ( ?entity != wd:Q5 )
  } UNION {
    ?work wdt:P50 wd:Q31166166 .
    ?work wdt:P921 ?topic .
    ?topic wdt:P18 ?image .
  } UNION {
    ?work wdt:P50 wd:Q31166166 .
    ?coauthor wdt:P50 ?work .
    ?coauthor wdt:P18 ?image .
  }
}

What images are linked to Uffe Seilman, either directly, through works he authored, their main subjects, or his co-authors?

Show all Wikimedia Commons images connected to Uffe Seilman, including images of the subjects of his works and images of people who co-authored his works.

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


Question: What is the title of the novel trilogy "The Lord of the Rings"?

SELECT ?title WHERE { wd:Q15228 wdt:P1476 ?title .}

What is the English title of J.R.R. Tolkien's The Lord of the Rings?

Can you tell me the title of the 1954 fantasy novel trilogy by J.R.R. Tolkien?

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/entity/Q3309133> <http://www.wikidata.org/prop/direct/P50> . ?var2 <http://www.wikidata.org/prop/direct/p1476> ?var1 . }


Question: What is the English or German title of the movie with IMDb ID tt0820094?

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

Show me the labels in English or German for the film identified by tt0820094 on IMDb.

Find the English or German name of the movie on IMDb with ID tt0820094.

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


Question: Actors in the 2011 Thor movie and their co-stars in other films.

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 ?actor ?actorLabel ?otherActor ?otherActorLabel WHERE {
  {
    wd:Q217020 wdt:P161 ?actor .
    ?actor rdfs:label ?actorLabel .
    FILTER ( LANG( ?actorLabel ) = "en" ) wd:Q217020 wdt:P161 ?otherActor .
    ?otherActor rdfs:label ?otherActorLabel .
    FILTER ( LANG( ?otherActorLabel ) = "en" ) FILTER ( ?actor != ?otherActor )
  } UNION {
    wd:Q217020 wdt:P161 ?actor .
    ?actor rdfs:label ?actorLabel .
    FILTER ( LANG( ?actorLabel ) = "en" ) ?work wdt:P161 ?actor .
    ?work wdt:P161 ?otherActor .
    ?otherActor rdfs:label ?otherActorLabel .
    FILTER ( LANG( ?otherActorLabel ) = "en" ) FILTER ( ?actor != ?otherActor )
  }
}
LIMIT 100

Who are the actors from the 2011 Thor movie, and which other actors have they worked with in different films?

Show me the cast of the 2011 Thor movie and the actors they have appeared with in other movies.

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


Question: What are some examples of sports or types of sports?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item WHERE {
  ?item(wdt:P31 / wdt:P279 *) wd:Q349 .
}
LIMIT 100

Which entities are classified as sports or subtypes of sports?

Can you list some sports and their subcategories?

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


Question: How many people from the United Kingdom were born each year starting from 1700?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?year(COUNT(?person) AS ?count) WHERE {
  ?person wdt:P27 wd:Q145 .
  ?person wdt:P569 ?birthDate .
  BIND(YEAR(?birthDate) AS ?year)
  FILTER(?year >= 1700)
}
GROUP BY ?year
ORDER BY ASC(?year)

Can you show the count of British citizens grouped by their birth year from 1700 onwards?

What is the distribution of birth years for people who are citizens of the United Kingdom, starting from the year 1700?

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { BIND ( YEAR ( ?var2 ) AS ?var1 ). ?var4 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q145> . ?var4 <http://www.wikidata.org/prop/direct/P569> ?var2 . FILTER ( ( ( ?var1 >= "1700"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } GROUP BY ?var1 ORDER BY ASC( ?var1 )


Question: List all species in the genus Struthio with their scientific names and images.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?species ?scientificName ?image WHERE {
  ?species wdt:P171 wd:Q2576337 .
  ?species wdt:P225 ?scientificName .
  OPTIONAL {
    ?species wdt:P18 ?image .
  }
}
ORDER BY ASC ( ?scientificName )

What are the scientific names of all species belonging to the genus Struthio, and do they have images on Wikimedia Commons?

Show me the complete list of Struthio species, sorted alphabetically by scientific name, along with any available images.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P171> <http://www.wikidata.org/entity/Q12642889> . ?var1 <http://www.wikidata.org/prop/direct/P225> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } ORDER BY ASC( ?var2 )


Question: What are some sports classified as types of sport, along with their Japanese names and their category names in Japanese?

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 ?sport ?sportLabel ?category ?categoryLabel WHERE {
  ?sport wdt:P31 wd:Q31629 .
  ?sport wdt:P279 ?category .
  OPTIONAL {
    ?sport rdfs:label ?sportLabel .
    FILTER(LANG(?sportLabel) = "ja")
  }
  OPTIONAL {
    ?category rdfs:label ?categoryLabel .
    FILTER(LANG(?categoryLabel) = "ja")
  }
}
LIMIT 100

Show me sports and their Japanese labels, and the Japanese labels of the categories they belong to (e.g., team sport, running).

List sports that are instances of "type of sport" and provide their Japanese names and the Japanese names of their subcategories.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q31629> . ?var3 <http://www.wikidata.org/prop/direct/Q11420> ?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: What are some examples of mountains 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 ?mountain ?mountainLabel WHERE {
  ?mountain wdt:P31 wd:Q8502 .
  ?mountain rdfs:label ?mountainLabel
  FILTER(LANG(?mountainLabel) = 'en')
}
LIMIT 5

List the English names of entities classified as mountains.

Show me mountains and their labels from Wikidata.

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


Question: What is the English name and taxonomic class of Xanthocryptus novozealandicus?

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

Is Xanthocryptus novozealandicus a species, and what is its scientific name?

Tell me the English label and type of the insect Xanthocryptus novozealandicus.

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


Question: Images related to Michael Balke, including those from works he authored or objects he is associated with.

SELECT DISTINCT ?image WHERE { { wd:Q19966927 wdt:P18 ?image . } UNION { wd:Q19966927 ?property ?item . ?item wdt:P18 ?image . FILTER (?item != wd:Q5) } UNION { ?work wdt:P50 wd:Q19966927 . ?work wdt:P921 ?topic . ?topic wdt:P18 ?image . } }

What images are associated with the German zoologist Michael Balke, either directly, through items he is connected to, or through the subjects of works he authored?

Show me all Wikimedia Commons images connected to Michael Balke — either as his personal photo, as images of things he is linked to (excluding humans), or as images of the main topics of works he wrote.

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


Question: Items with statements about Materia Medica and the properties used in those statements, excluding "instance of".

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?statement ?property ( SAMPLE( ?qVal ) AS ?qualifierValue ) WHERE {
  ?statement ?propValue wd:Q1291275 .
  ?item ?claim ?statement .
  ?property wikibase:statementProperty ?propValue .
  ?property wikibase:claim ?claim .
  FILTER ( ?property != wd:P31 ) OPTIONAL {
    ?statement ?qualifier ?qVal .
    ?qualifierProperty wikibase:qualifier ?qualifier .
  }
}
GROUP BY ?item ?statement ?property
LIMIT 101

What items have statements that are about Materia Medica, and what properties are used in those statements?

List all items that have statements pointing to Materia Medica, along with the property used in each statement, but exclude any statements that are direct "instance of" links.

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q1291275> . ?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: Organizations with their Scopus affiliation IDs

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

Which organizations have Scopus affiliation IDs, and what are those IDs?

List the English names of organizations and their corresponding Scopus IDs.

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


Question: Multilingual descriptions of the Cyprus dwarf hippopotamus

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?language ?description WHERE {
  wd:Q867518 schema:description ?description .
  BIND(LANG(?description) AS ?language)
}
ORDER BY ?language

What are the descriptions of the Cyprus dwarf hippopotamus in different languages?

Show me how the Cyprus dwarf hippopotamus is described in various languages.

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


Question: Judges who were citizens of the United Kingdom, with their dates of birth and death.

SELECT ?judge ?judgeLabel ?countryLabel ?birthDate ?deathDate WHERE { ?judge wdt:P106 wd:Q16533 . ?judge wdt:P27 wd:Q145 . ?judge wdt:P569 ?birthDate . ?judge wdt:P570 ?deathDate . ?judge rdfs:label ?judgeLabel . wd:Q145 rdfs:label ?countryLabel . FILTER(LANG(?judgeLabel) = "en") FILTER(LANG(?countryLabel) = "en") }

Who are the judges from the United Kingdom, and when were they born and when did they die?

List the names, birth dates, and death dates of all judges who held British citizenship.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q16533> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q145> . ?var1 <http://www.wikidata.org/prop/direct/P27> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . ?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: Images related to Sofie Therese Hansen’s research topics or co-authors

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?image WHERE {
  ?work wdt:P50 wd:Q28477916 .
  {
    ?work wdt:P921 ?topic .
    ?topic wdt:P18 ?image .
  } UNION {
    ?coauthor wdt:P50 ?work .
    ?coauthor wdt:P18 ?image .
  }
}

What images are associated with the works authored by Sofie Therese Hansen, either as main subjects or through her co-authors?

Show me all Wikimedia Commons images connected to Sofie Therese Hansen through the subjects of her publications or her co-authors.

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


Question: List judges, qadis, mediators, Dayans, and arbitrators with their birth dates, VIAF IDs, and LCCN numbers.

SELECT DISTINCT
  ?judgeLabel
  ?occupationLabel
  ?birthDate
  ?viafId
  ?lccn
WHERE {
  VALUES ?occupation {
    wd:Q16533           # judge
    wd:Q217029          # qadi
    wd:Q4859473         # mediator
    wd:Q3570351         # Dayan
    wd:Q105425483       # arbitrator
  }

  ?judge wdt:P106 ?occupation .

  OPTIONAL { ?judge wdt:P569 ?birthDate . }
  OPTIONAL { ?judge wdt:P214 ?viafId . }
  OPTIONAL { ?judge wdt:P244 ?lccn . }

  # Only include judges with a birth date
  FILTER(BOUND(?birthDate))

  # Fetch labels
  ?judge rdfs:label ?judgeLabel .
  ?occupation rdfs:label ?occupationLabel .

  # Filter for English labels
  FILTER(LANG(?judgeLabel) = "en")
  FILTER(LANG(?occupationLabel) = "en")
}
LIMIT 50

Who are some judges and related legal professionals born in modern times, and what are their VIAF and Library of Congress identifiers?

Please provide a list of 50 notable judges and judicial officers from English-speaking countries, including their names, occupations, birth dates, and international identifiers like VIAF and LCCN.

SELECT DISTINCT ?var1Label ?var2Label ?var3 ?var1 ?var4 ?var5 ?var6Label ?var7 ?var8 ?var9Label ?var10Label ?var11 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P27> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P214> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2736> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P735> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P734> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P244> ?var11 . } ?var2 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q16533> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 1000


Question: Does the journal with ISSN 0360-5310 exist in Wikidata?

Is there a publication in Wikidata that has the ISSN 0360-5310?

Please confirm if the ISSN 0360-5310 is assigned to any journal in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P236> "0360-5310". }


Question: Peaks in the Pamir Mountains with coordinates

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 ?peak ?peakLabel ?coord WHERE {
  ?peak wdt:P4552 + wd:Q161750 .
  ?peak wdt:P31 / wdt:P279 * wd:Q271669 .
  OPTIONAL {
    ?peak wdt:P625 ?coord .
  }
  ?peak rdfs:label ?peakLabel .
  FILTER(LANG(?peakLabel) = "en")
}
LIMIT 1000

What are the names and locations of all peaks that are part of the Pamir Mountains?

List the English names and geographic coordinates of all landforms (like peaks) that belong to the Pamir Mountains.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { <http://www.wikidata.org/entity/Q161750> ^( <http://www.wikidata.org/prop/direct/P361> | <http://www.wikidata.org/prop/direct/P4552> )+ ?var1 . <http://www.wikidata.org/entity/Q271669> (^ <http://www.wikidata.org/prop/direct/P279> */^ <http://www.wikidata.org/prop/direct/P31> ) ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs,en". } } LIMIT 1000


Question: Wikidata properties that are taxon identifiers and external IDs

SELECT DISTINCT (CONCAT("['", STRAFTER(STR(?property), "/entity/"), "] = ", ?label, ",") AS ?output) WHERE { ?property (wdt:P31/wdt:P279*) wd:Q18609040 . ?property rdfs:label ?label . FILTER(LANG(?label) = "en") . ?property wdt:P31 wd:Q19847637 . }

Which Wikidata properties serve as unique identifiers for biological taxa in external databases?

List all Wikidata properties that are used to identify taxonomic names in external systems, along with their labels.

SELECT DISTINCT( CONCAT ( "['", STRAFTER ( STR ( ?var1 ) , "/entity/" ) , "']= ", ?var2 , "," ) AS ?var3 ) WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q18609040> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q19847637> . }


Question: What are the articles or lists about birds in specific locations in Wikidata?

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

Show me items classified as 'bird' in Wikidata, along with their English labels.

Which Wikipedia-style lists are tagged as instances of birds?

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


Question: What are the English and German titles of the film with IMDb ID tt1251020?

SELECT ?label WHERE { ?item wdt:P345 "tt1251020" . ?item rdfs:label ?label . FILTER(LANG(?label) IN ("en", "de")) }

Show me the titles of A Winter's Journey in English and German.

How is the movie with IMDb identifier tt1251020 called in English and German?

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


Question: What English and German-language pages are about the movie with IMDb ID tt0103060?

SELECT ?movie ?page WHERE { ?movie wdt:P345 "tt0103060" . ?page schema:about ?movie . ?page schema:inLanguage ?lang . FILTER(?lang = "en" || ?lang = "de") }

Show me the Wikipedia and Wikiquote pages in English and German for Teenage Mutant Ninja Turtles II: The Secret of the Ooze.

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


Question: What Wikidata item has the IMDb ID tt0887577?

SELECT ?item WHERE { ?item wdt:P345 "tt0887577" . }

Which movie or TV show on Wikidata is identified by the IMDb ID tt0887577?

Tell me the name of the TV episode with IMDb ID tt0887577.

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


Question: What awards has J.K. Rowling received, and what categories do those awards belong to?

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 ?award ?awardLabel ?awardType ?awardTypeLabel WHERE {
  wd:Q34660 wdt:P166 ?award .
  ?award wdt:P31 ?awardType .
  ?award rdfs:label ?awardLabel .
  ?awardType rdfs:label ?awardTypeLabel .
  FILTER ( LANG( ?awardLabel ) = "en" ) FILTER ( LANG( ?awardTypeLabel ) = "en" )
}
LIMIT 3

Awards won by J.K. Rowling and their types

Can you list the awards received by J.K. Rowling along with what kind of awards they are?

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { <http://www.wikidata.org/entity/Q34660> <http://www.wikidata.org/prop/direct/P166> ?var1 . ?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". } } LIMIT 3


Question: What are the acid dissociation constants (pKa) of common chemical compounds?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?compound ?compoundLabel ?pKaValue WHERE {
  ?compound wdt:P1117 ?pKaValue .
  ?compound rdfs:label ?compoundLabel .
  FILTER(LANG(?compoundLabel) = "en")
}
LIMIT 20

List chemical compounds and their pKa values

Show me the pKa values for chemical compounds along with their names in English

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


Question: What is the most specific category that both Qualcomm and the United States belong to?

SELECT ?commonAncestor ?label WHERE { wd:Q891723 wdt:P279* ?commonAncestor . wd:Q3624078 wdt:P279* ?commonAncestor . ?commonAncestor rdfs:label ?label . FILTER(LANG(?label) = "en") } ORDER BY STRLEN(?label) LIMIT 1

What is the lowest common superclass in the ontology for the class of Qualcomm and the class of the United States?

Which entity is the most specific shared ancestor in the subclass hierarchy between Qualcomm and the United States?

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q544847> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q30> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: Who are the actors in the films of the Lord of the Rings movie trilogy?

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 ?actorLabel ?filmLabel ?trilogyLabel WHERE {
  ?trilogy wdt:P144 wd:Q15228 ; wdt:P31 wd:Q13593818 .
  ?trilogy wdt:P527 ?film .
  ?film wdt:P161 ?actor .
  ?actor rdfs:label ?actorLabel .
  ?film rdfs:label ?filmLabel .
  ?trilogy rdfs:label ?trilogyLabel .
  FILTER ( LANG( ?actorLabel ) = "en" ) FILTER ( LANG( ?filmLabel ) = "en" ) FILTER ( LANG( ?trilogyLabel ) = "en" )
}
LIMIT 100

List the actors, the films they appeared in, and the trilogy name for the film trilogy based on The Lord of the Rings.

What are the names of the cast members and the corresponding films in the Lord of the Rings film trilogy?

SELECT ?var1Label ?var2Label ?var3Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } ?var4 <http://www.wikidata.org/prop/direct/P144> <http://www.wikidata.org/entity/Q15228> . ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13593818> . ?var4 <http://www.wikidata.org/prop/direct/P527> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P161> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P2561> ?var2 . } LIMIT 100