Question: Lakes in Antigua and Barbuda with coordinates and measurements like area, length, width, volume, watershed, and perimeter.

SELECT DISTINCT ?lake ?lakeLabel ?latitude ?longitude ?areaValue ?lengthValue ?widthValue ?volumeUnit ?watershedValue ?perimeterValue WHERE { ?lake (wdt:P31/wdt:P279*) wd:Q23397 . ?lake wdt:P17 wd:Q781 . OPTIONAL { ?lake (p:P625/psv:P625) ?coord . ?coord wikibase:geoLatitude ?latitude ; wikibase:geoLongitude ?longitude . } OPTIONAL { ?lake (p:P2046/psv:P2046) ?area . ?area wikibase:quantityAmount ?areaValue ; wikibase:quantityUnit ?areaUnit . } OPTIONAL { ?lake (p:P2043/psv:P2043) ?length . ?length wikibase:quantityAmount ?lengthValue ; wikibase:quantityUnit ?lengthUnit . } OPTIONAL { ?lake (p:P2049/psv:P2049) ?width . ?width wikibase:quantityAmount ?widthValue ; wikibase:quantityUnit ?widthUnit . } OPTIONAL { ?lake (p:P2234/psv:P2234) ?volume . ?volume wikibase:quantityUnit ?volumeUnit . } OPTIONAL { ?lake (p:P2053/psv:P2053) ?watershed . ?watershed wikibase:quantityAmount ?watershedValue ; wikibase:quantityUnit ?watershedUnit . } OPTIONAL { ?lake (p:P2547/psv:P2547) ?perimeter . ?perimeter wikibase:quantityAmount ?perimeterValue ; wikibase:quantityUnit ?perimeterUnit . } } ORDER BY DESC(?areaValue)

What are the lakes in Antigua and Barbuda, and what are their geographic coordinates and physical dimensions such as area, length, and perimeter?

List all lakes in Antigua and Barbuda along with their latitude, longitude, and any available data on area, length, width, volume, watershed area, and perimeter, sorted by largest area first.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 ?var12 ?var13 ?var14 ?var15 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q23397> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q781> . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var16 . ?var16 <http://wikiba.se/ontology#geoLatitude> ?var2 ; <http://wikiba.se/ontology#geoLongitude> ?var3 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2046> / <http://www.wikidata.org/prop/statement/value/P2046> ) ?var17 . ?var17 <http://wikiba.se/ontology#quantityAmount> ?var4 . ?var17 <http://wikiba.se/ontology#quantityUnit> ?var5 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2043> / <http://www.wikidata.org/prop/statement/value/P2043> ) ?var18 . ?var18 <http://wikiba.se/ontology#quantityAmount> ?var6 . ?var18 <http://wikiba.se/ontology#quantityUnit> ?var7 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2049> / <http://www.wikidata.org/prop/statement/value/P2049> ) ?var19 . ?var19 <http://wikiba.se/ontology#quantityAmount> ?var8 . ?var19 <http://wikiba.se/ontology#quantityUnit> ?var9 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2234> / <http://www.wikidata.org/prop/statement/value/P2234> ) ?var20 . ?var20 <http://wikiba.se/ontology#quantityUnit> ?var11 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2053> / <http://www.wikidata.org/prop/statement/value/P2053> ) ?var21 . ?var21 <http://wikiba.se/ontology#quantityAmount> ?var12 . ?var21 <http://wikiba.se/ontology#quantityUnit> ?var13 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2547> / <http://www.wikidata.org/prop/statement/value/P2547> ) ?var22 . ?var22 <http://wikiba.se/ontology#quantityAmount> ?var14 . ?var22 <http://wikiba.se/ontology#quantityUnit> ?var15 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY DESC( ?var4 )


Question: Lakes in the Falkland Islands with their coordinates and physical measurements.

SELECT DISTINCT ?lake ?lakeLabel ?latitude ?longitude ?area ?areaUnit ?length ?lengthUnit ?width ?widthUnit ?watershedArea ?watershedAreaUnit ?perimeter ?perimeterUnit WHERE { ?lake (wdt:P31/wdt:P279*) wd:Q23397 . ?lake wdt:P17 wd:Q9648 . OPTIONAL { ?lake wdt:P625 ?coord . BIND(geof:latitude(?coord) AS ?latitude) BIND(geof:longitude(?coord) AS ?longitude) } OPTIONAL { ?lake p:P2046 ?areaStmt . ?areaStmt ps:P2046 ?area ; pq:P2046 ?areaUnit . } OPTIONAL { ?lake p:P2043 ?lengthStmt . ?lengthStmt ps:P2043 ?length ; pq:P2043 ?lengthUnit . } OPTIONAL { ?lake p:P2049 ?widthStmt . ?widthStmt ps:P2049 ?width ; pq:P2049 ?widthUnit . } OPTIONAL { ?lake p:P2053 ?watershedStmt . ?watershedStmt ps:P2053 ?watershedArea ; pq:P2053 ?watershedAreaUnit . } OPTIONAL { ?lake p:P2547 ?perimeterStmt . ?perimeterStmt ps:P2547 ?perimeter ; pq:P2547 ?perimeterUnit . } OPTIONAL { ?lake rdfs:label ?lakeLabel . FILTER(LANG(?lakeLabel) = "en") } } ORDER BY ?lakeLabel

What are the names, coordinates, and dimensions (area, length, width, watershed area, perimeter) of lakes in the Falkland Islands?

List all lakes in the Falkland Islands along with their latitude, longitude, and any recorded physical properties such as area, length, width, watershed area, and perimeter.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 ?var12 ?var13 ?var14 ?var15 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q23397> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q9648> . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var16 . ?var16 <http://wikiba.se/ontology#geoLatitude> ?var2 ; <http://wikiba.se/ontology#geoLongitude> ?var3 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2046> / <http://www.wikidata.org/prop/statement/value/P2046> ) ?var17 . ?var17 <http://wikiba.se/ontology#quantityAmount> ?var4 . ?var17 <http://wikiba.se/ontology#quantityUnit> ?var5 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2043> / <http://www.wikidata.org/prop/statement/value/P2043> ) ?var18 . ?var18 <http://wikiba.se/ontology#quantityAmount> ?var6 . ?var18 <http://wikiba.se/ontology#quantityUnit> ?var7 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2049> / <http://www.wikidata.org/prop/statement/value/P2049> ) ?var19 . ?var19 <http://wikiba.se/ontology#quantityAmount> ?var8 . ?var19 <http://wikiba.se/ontology#quantityUnit> ?var9 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2234> / <http://www.wikidata.org/prop/statement/value/P2234> ) ?var20 . ?var20 <http://wikiba.se/ontology#quantityUnit> ?var11 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2053> / <http://www.wikidata.org/prop/statement/value/P2053> ) ?var21 . ?var21 <http://wikiba.se/ontology#quantityAmount> ?var12 . ?var21 <http://wikiba.se/ontology#quantityUnit> ?var13 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2547> / <http://www.wikidata.org/prop/statement/value/P2547> ) ?var22 . ?var22 <http://wikiba.se/ontology#quantityAmount> ?var14 . ?var22 <http://wikiba.se/ontology#quantityUnit> ?var15 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY DESC( ?var4 )


Question: Properties related to filming location with English labels and descriptions.

SELECT ?relatedProperty ?label ?description WHERE { wd:P915 wdt:P1659 ?relatedProperty . ?relatedProperty rdfs:label ?label . ?relatedProperty schema:description ?description . FILTER (LANG(?label) = "en") . FILTER (LANG(?description) = "en") .}

What properties are related to the filming location property in Wikidata, and what are their English labels and descriptions?

List the English labels and descriptions of all properties that are related to filming location (P915) via the related property relationship.

SELECT ?var1 ?var2Label ?var3 WHERE { BIND ( <http://www.wikidata.org/prop/direct/P915> AS ?var4 ). ?var5 ?var6 ?var4 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <http://www.wikidata.org/prop/direct/P1659> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . }


Question: What is Barack Obama's birth name?

SELECT ?birthName WHERE { wd:Q76 wdt:P1477 ?birthName .}

What full name was Barack Obama given at birth?

Can you tell me the official birth name of the 44th President of the United States, Barack Obama?

SELECT DISTINCT ?var1 WHERE { <http://www.wikidata.org/entity/Q76> <http://www.wikidata.org/prop/direct/P1477> ?var1 . } LIMIT 1000


Question: English names of people with the given name Mickael

SELECT ?label WHERE { ?person wdt:P735 wd:Q20000609 ; rdfs:label ?label . FILTER (LANG(?label) = "en") }

Who are the people named Mickael, and what are their English labels?

List the English names of all individuals whose given name is Mickael.

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


Question: What are the most common first names in Wikidata that don't have a Soundex code assigned?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?givenName(COUNT(*) AS ?count) WHERE {
  ?person wdt:P735 ?givenName . MINUS {
    ?givenName p:P3878 [] .
  }
}
GROUP BY ?givenName
ORDER BY DESC(?count)
LIMIT 100

Which given names are used most frequently for people but are not phonetically indexed by the Soundex algorithm?

Show me the top 100 first names that lack a Soundex code, ordered by how often they appear as given names.

SELECT ?var1 ( COUNT (* ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P735> ?var1 . MINUS { ?var1 <http://www.wikidata.org/prop/P3878> [] . } } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 100


Question: What are the islands in the Pitcairn Islands, and what are their areas and coordinates?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT DISTINCT ?island ?islandLabel ?latitude ?longitude ?area ?areaUnit ?adminArea ?adminAreaLabel WHERE {
  ?island ( wdt:P31 / wdt:P279 * ) wd:Q23442 .
  ?island wdt:P17 wd:Q35672 .
  OPTIONAL {
    ?island ( p:P625 / psv:P625 ) ?coordNode .
    ?coordNode wikibase:geoLatitude ?latitude ; wikibase:geoLongitude ?longitude .
  }
  OPTIONAL {
    ?island ( p:P2046 / psv:P2046 ) ?areaNode .
    ?areaNode wikibase:quantityAmount ?area ; wikibase:quantityUnit ?areaUnit .
  }
  OPTIONAL {
    ?island wdt:P131 ?adminArea .
    ?adminArea rdfs:label ?adminAreaLabel .
    FILTER ( LANG( ?adminAreaLabel ) = "en" )
  }
  ?island rdfs:label ?islandLabel .
  FILTER ( LANG( ?islandLabel ) = "en" )
}
ORDER BY DESC ( ?area )

Can you list the islands belonging to the Pitcairn Islands along with their latitude, longitude, and area in square kilometers?

Show me the geographic details of islands in the Pitcairn Islands, sorted by largest area first.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var5Label ?var6 ?var7 ?var7Label ?var8 ?var9 ?var9Label ?var10 ?var11Label ?var12 ?var13 ?var13Label ?var14 ?var14Label ?var15 ?var15Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q23442> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q35672> . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var16 . ?var16 <http://wikiba.se/ontology#geoLatitude> ?var2 ; <http://wikiba.se/ontology#geoLongitude> ?var3 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2046> / <http://www.wikidata.org/prop/statement/value/P2046> ) ?var17 . ?var17 <http://wikiba.se/ontology#quantityAmount> ?var4 . ?var17 <http://wikiba.se/ontology#quantityUnit> ?var5 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2043> / <http://www.wikidata.org/prop/statement/value/P2043> ) ?var18 . ?var18 <http://wikiba.se/ontology#quantityAmount> ?var6 . ?var18 <http://wikiba.se/ontology#quantityUnit> ?var7 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2049> / <http://www.wikidata.org/prop/statement/value/P2049> ) ?var19 . ?var19 <http://wikiba.se/ontology#quantityAmount> ?var8 . ?var19 <http://wikiba.se/ontology#quantityUnit> ?var9 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2547> / <http://www.wikidata.org/prop/statement/value/P2547> ) ?var20 . ?var20 <http://wikiba.se/ontology#quantityAmount> ?var10 . ?var20 <http://wikiba.se/ontology#quantityUnit> ?var11 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2044> / <http://www.wikidata.org/prop/statement/value/P2044> ) ?var21 . ?var21 <http://wikiba.se/ontology#quantityAmount> ?var12 . ?var21 <http://wikiba.se/ontology#quantityUnit> ?var13 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var14 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var15 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en,fr,es,se,sv,it,ru". } } ORDER BY DESC( ?var4 )


Question: List of drugs with their English names, sorted alphabetically.

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

What are the English names of all known drugs in Wikidata?

Show me the English labels of all items classified as drugs.

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


Question: What are all the broader categories that a mountain belongs to, including itself?

SELECT DISTINCT ?subclass WHERE { wd:Q8502 wdt:P279* ?subclass }

What classes is the concept of a mountain a subclass of?

List all the parent categories of mountains in the Wikidata hierarchy.

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


Question: Humans in Wikidata with no recorded birth or death date.

SELECT DISTINCT ?human WHERE { ?human wdt:P31 wd:Q5 . OPTIONAL { ?human wdt:P569 ?birthDate . } FILTER ( !BOUND(?birthDate) ) OPTIONAL { ?human wdt:P570 ?deathDate . } FILTER ( !BOUND(?deathDate) ) }

Who are the people in Wikidata for whom neither birth nor death dates are known?

List all humans in Wikidata that lack both birth and death dates.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . } FILTER ( ( !( BOUND ( ?var2 ) ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var3 . } FILTER ( ( !( BOUND ( ?var3 ) ) ) ) . }


Question: What items are owned by ÖAMTC, and what are their English labels, types, and official websites?

SELECT ?item ?itemLabel ?wikipediaPage ?website ?instanceType WHERE { ?item wdt:P127 wd:Q306057 . OPTIONAL { ?wikipediaPage schema:about ?item ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } OPTIONAL { ?item wdt:P856 ?website . } OPTIONAL { ?item wdt:P31 ?instanceType . } ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Can you list the vehicles owned by the Austrian motor club ÖAMTC, including their English names and classifications?

Show me the English names and types of all items owned by ÖAMTC, even if they don’t have a Wikipedia page or official website.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P127> <http://www.wikidata.org/entity/Q306057> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "en". ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P127> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: List forward-strand genes in Escherichia coli K-12 MG1655 with their Entrez IDs, locus tags, and genomic coordinates.

SELECT ?gene ?start ?end ?locusTag ?entrezId ?label ?strandFlag WHERE { ?gene wdt:P279 wd:Q7187 ; wdt:P703 wd:Q21102938 ; wdt:P351 ?entrezId ; wdt:P2393 ?locusTag ; wdt:P644 ?start ; wdt:P645 ?end ; wdt:P2548 ?strand ; rdfs:label ?label . FILTER (LANG(?label) = "en") FILTER (?strand = wd:Q22809680) BIND(IF(?strand = wd:Q22809680, "1", "-1") AS ?strandFlag) } LIMIT 10

What are the English-labeled genes on the forward strand in Escherichia coli K-12 strain MG1655, and what are their NCBI locus tags and Entrez Gene IDs?

Show me the genes in E. coli K-12 MG1655 that are oriented on the forward strand, including their start and end positions, locus tags, and Entrez IDs, with English labels.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 WHERE { ?var10 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q7187> ; <http://www.wikidata.org/prop/direct/P703> ?var11 ; <http://www.wikidata.org/prop/direct/P351> ?var3 ; <http://www.wikidata.org/prop/direct/P351> ?var6 ; <http://www.wikidata.org/prop/direct/P2393> ?var7 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var8 ; <http://www.wikidata.org/prop/direct/P644> ?var1 ; <http://www.wikidata.org/prop/direct/P645> ?var2 ; <http://www.wikidata.org/prop/direct/P2548> ?var12 ; <http://www.wikidata.org/prop/P644> ?var13 . OPTIONAL { ?var13 <http://www.wikidata.org/prop/qualifier/P2249> ?var9 . FILTER ( ( ( LANG ( ?var8 ) = "en" ) ) ) . } BIND ( IF ( ( ?var12 = <http://www.wikidata.org/entity/Q22809680> ), "1", "-1" ) AS ?var4 ). BIND ( STR ( ?var10 ) AS ?var5 ). FILTER ( ( ( ?var9 = "string1" ) ) ) . ?var11 <http://www.wikidata.org/prop/direct/P685> "471472". FILTER ( ( !(( <http://www.w3.org/2001/XMLSchema#integer> ( ?var1 ) > "1400000"^^<http://www.w3.org/2001/XMLSchema#integer> ) || ( <http://www.w3.org/2001/XMLSchema#integer> ( ?var2 ) < "1300000"^^<http://www.w3.org/2001/XMLSchema#integer> )) ) ) . }


Question: Subclasses of person that are occupations

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

What are some occupations that are types of people?

List all human roles or professions that are subclasses of person.

SELECT DISTINCT ?var1Label WHERE { VALUES ( ?var2 ) { ( <http://www.wikidata.org/entity/Q215627> ) } ?var3 <http://www.wikidata.org/prop/direct/P279> * ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . }


Question: What are the prices of products listed in Wikidata?

SELECT ?item ?itemLabel ?price WHERE { ?item wdt:P2284 ?price . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Can you list the English names of products along with their published prices?

Show me the cost of digital items like games and books, using their English titles.

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


Question: Minor localities in Sweden without Swedish Wikipedia pages and not part of any other entity, with their coordinates.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?minorLocality ?coordinate WHERE {
  ?minorLocality p:P31 ?statement1 .
  ?statement1 ps:P31 wd:Q14839548 .
  ?minorLocality p:P625 ?stmt2 .
  ?stmt2 ps:P625 ?coordinate .
  OPTIONAL {
    ?wikipediaPage schema:about ?minorLocality .
    ?wikipediaPage schema:isPartOf <https://sv.wikipedia.org/> .
  }
  OPTIONAL {
    ?otherEntity wdt:P527 ?minorLocality .
  }
  FILTER(! BOUND(?wikipediaPage))
  FILTER(! BOUND(?otherEntity))
}

Which minor localities in Sweden have coordinates but no Swedish Wikipedia page and are not part of any other place?

Show me the coordinates of all minor localities in Sweden that are not linked to Swedish Wikipedia and are not components of larger entities.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P31> ?var3 . ?var1 <http://www.wikidata.org/prop/P625> ?var2 . ?var3 <http://www.wikidata.org/prop/statement/P31> <http://www.wikidata.org/entity/Q14839548> ; <http://www.wikidata.org/prop/qualifier/P580> ?var4 . FILTER ( ( ( STR ( ?var4 ) = "string1" ) ) ) . OPTIONAL { ?var5 <http://schema.org/about> ?var1 ; <http://schema.org/isPartOf> <https://sv.wikipedia.org/> . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/direct/P527> ?var1 . } FILTER ( ( !( BOUND ( ?var5 ) ) && !( BOUND ( ?var6 ) ) ) ) . }


Question: Artists and artworks in the painting genre with their images.

SELECT ?item ?label ?image WHERE { ?item wdt:P136 wd:Q11629 . OPTIONAL { ?item wdt:P18 ?image . } ?item rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 100

Who are the artists and what are the artworks associated with the genre of painting, and do they have images on Wikimedia Commons?

List the English names of all artists and paintings classified under the genre of painting, along with their images if available.

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


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

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

Which movie on Wikidata has the IMDb identifier tt0301563, and what is its English title?

Show me the English name of the movie with IMDb ID tt0301563.

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


Question: What are the most populous neighborhoods in the United States, and in which cities or counties are they located?

SELECT ?neighborhood ?neighborhoodLabel ?population ?administrativeEntity ?administrativeEntityLabel WHERE { VALUES ?neighborhood { wd:Q3216469 wd:Q6731842 wd:Q7458169 wd:Q17943 wd:Q3344194 wd:Q11253 wd:Q189074 wd:Q368723 } ?neighborhood wdt:P17 wd:Q30 . OPTIONAL { ?neighborhood wdt:P131 ?administrativeEntity . } OPTIONAL { ?neighborhood wdt:P1082 ?population . } ?neighborhood rdfs:label ?neighborhoodLabel . ?administrativeEntity rdfs:label ?administrativeEntityLabel . FILTER(LANG(?neighborhoodLabel) = "en") FILTER(LANG(?administrativeEntityLabel) = "en") FILTER(BOUND(?population)) } ORDER BY DESC(?population)

List U.S. neighborhoods with their population and administrative division, sorted from highest to lowest population.

Which neighborhoods in the U.S. have the largest populations, and what administrative areas do they belong to?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q123705> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q30> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . } } ORDER BY DESC( ?var2 )


Question: What are the names of all beer brands listed on Wikidata?

SELECT ?brandLabel (LANG(?brandLabel) AS ?lang) WHERE { ?brand wdt:P31 wd:Q15075508 . ?brand rdfs:label ?brandLabel . FILTER(LANG(?brandLabel) = "en") }

Can you list the English labels of entities that are instances of the beer brand class?

Show me the names of beer brands like Heineken, Budweiser, and Corona in English.

SELECT ?var1Label ( LANG ( ?var1Label ) AS ?var2 ) WHERE { <http://www.wikidata.org/entity/Q854383> <http://www.wikidata.org/prop/direct/P31> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/Q15075508> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es, en". } }


Question: What properties are most frequently used to link items to the Communist Party of the Soviet Union, and how many times?

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

Which relationships connect other entities to the Communist Party of the Soviet Union, and what are their frequencies?

List all properties that link more than one item to the Communist Party of the Soviet Union, sorted by usage count in descending order.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q79854> . OPTIONAL { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . } } GROUP BY ?var1 HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ORDER BY DESC( ?var3 )


Question: Publication years and titles of works by Sneha Narayan

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 ?year ?title WHERE {
  ?work wdt:P50 wd:Q37820552 .
  ?work wdt:P577 ?date .
  BIND(YEAR(?date) AS ?year)
  .
  ?work rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  .
  BIND(SUBSTR(?label , 1 , 20) AS ?title)
}
ORDER BY ?year

What are the publication years and titles (first 20 characters) of the works authored by Sneha Narayan?

Show me the years and truncated titles (first 20 characters) of Sneha Narayan’s published works in English.

SELECT ?var1 ?var2 ?var3Label WHERE { { SELECT ?var1 ( SAMPLE ( ?var4 ) AS ?var2 ) ?var3Label WHERE { { SELECT( STR ( ?var5 ) AS ?var1 )( "0"^^<http://www.w3.org/2001/XMLSchema#integer> AS ?var4 )( "_" AS ?var3Label ) WHERE { BIND ( YEAR ( ?var6 ) AS ?var5 ). ?var7 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q577> . ?var7 <http://www.wikidata.org/prop/direct/P585> ?var6 . { SELECT( MIN ( ?var5 ) AS ?var8 )( MAX ( ?var5 ) AS ?var9 ) WHERE { BIND ( YEAR ( ?var10 ) AS ?var5 ). ?var11 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q37820552> . ?var11 <http://www.wikidata.org/prop/direct/P577> ?var10 . } } FILTER ( ( ( ?var5 >= ?var8 ) && ( ?var5 <= ?var9 ) ) ) . } } UNION { BIND ( SUBSTR ( ?var12Label ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"20"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3Label ). BIND ( STR ( YEAR ( ?var6 ) ) AS ?var1 ). ?var11 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q37820552> . ?var11 <http://www.wikidata.org/prop/direct/P1104> ?var4 . ?var11 <http://www.wikidata.org/prop/direct/P577> ?var6 . ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var12Label . FILTER ( ( ( LANG ( ?var12Label ) = "en" ) ) ) . } } GROUP BY ?var1 ?var11 ?var3Label ORDER BY ASC( ?var1 ) } }


Question: What are the superclasses of glue up to three levels in the Wikidata subclass hierarchy?

SELECT DISTINCT ?ancestor ?ancestorLabel WHERE { { wd:Q500548 wdt:P279 ?ancestor . } UNION { wd:Q500548 wdt:P279 ?level1 . ?level1 wdt:P279 ?ancestor . } UNION { wd:Q500548 wdt:P279 ?level1 . ?level1 wdt:P279 ?level2 . ?level2 wdt:P279 ?ancestor . } ?ancestor rdfs:label ?ancestorLabel . FILTER(LANG(?ancestorLabel) = "en") }

What classes does glue belong to through its subclass relationships, going up to three levels?

List the English labels of all direct and indirect superclasses of glue, limited to a depth of three steps in the subclass tree.

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/Q500548> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Reverse"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "3"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#maxVisited> "2"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P279> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: Italian description, multilingual labels, and Wikipedia link for Lisanne Falk

SELECT ?var1Label ?var2 ?var3 ?var4 ?var6 WHERE { OPTIONAL { wd:Q3833374 rdfs:label ?var1Label . FILTER (LANG(?var1Label) = ?var7) VALUES (?var7 ?var8) { ("it" "1"^^xsd:integer) ("en" "2"^^xsd:integer) ("de" "3"^^xsd:integer) ("fr" "4"^^xsd:integer) } } OPTIONAL { wd:Q3833374 schema:description ?var2 . FILTER (LANG(?var2) = "it") } OPTIONAL { wd:Q3833374 wdt:P18 ?var3 . } OPTIONAL { wd:Q3833374 wdt:P625 ?var4 . } OPTIONAL { ?var6 rdf:type schema:Article ; schema:about wd:Q3833374 ; schema:inLanguage "it" ; schema:isPartOf <https://it.wikipedia.org/> . } } ORDER BY ASC(?var8)

What are the labels of Lisanne Falk in Italian, English, German, and French, along with her Italian description and Italian Wikipedia page?

Please provide the labels of Lisanne Falk in Italian, English, German, and French, her description in Italian, and the link to her Italian Wikipedia article.

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


Question: French labels and descriptions of taxonomic ranks in Wikidata.

SELECT ?rank ?rankLabel ?rankDescription WHERE { ?rank wdt:P31 wd:Q427626 . ?rank rdfs:label ?rankLabel . ?rank schema:description ?rankDescription . FILTER(LANG(?rankLabel) = "fr") FILTER(LANG(?rankDescription) = "fr") } LIMIT 100

What are the French labels and descriptions of taxonomic ranks like species, genus, and family in Wikidata?

Please list all taxonomic ranks in Wikidata that have French labels and French descriptions.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P105> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "fr" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "fr" ) ) ) . } LIMIT 100


Question: What monuments in Paris have heritage designation or a Wiki Loves Monuments ID but no images, and what administrative areas are they in?

PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
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/>
SELECT ?monument ?monumentLabel ?admin ?adminLabel ?coord WHERE {
  ?monument wdt:P625 ?coord .
  FILTER(geof:latitude(?coord) >= 48.815 && geof:latitude(?coord) <= 48.902)
  FILTER(geof:longitude(?coord) >= 2.2245 && geof:longitude(?coord) <= 2.4697)
  OPTIONAL {
    ?monument wdt:P131 ?admin .
  } MINUS {
    ?monument wdt:P18 ?image .
  }
  {
    ?monument p:P1435 ?stmt1 .
  } UNION {
    ?monument p:P2186 ?stmt2 .
  }
  ?monument rdfs:label ?monumentLabel .
  FILTER(LANG(?monumentLabel) = "en")
  OPTIONAL {
    ?admin rdfs:label ?adminLabel .
    FILTER(LANG(?adminLabel) = "en")
  }
}

Show me the names and locations of monuments in central Paris that are protected as heritage sites or listed in Wiki Loves Monuments, excluding those with images.

List all monuments without images in the Paris area bounded by 48.815°N–48.902°N and 2.2245°E–2.4697°E, along with their heritage status and administrative location.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 ?var5 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerWest> "string1"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerEast> "string2"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } { ?var1 <http://www.wikidata.org/prop/P1435> ?var6 . } UNION { ?var1 <http://www.wikidata.org/prop/P2186> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Which universities did Guido Kroemer attend, and during what periods? Did he earn any academic degrees from those institutions?

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

Educational institutions attended by Guido Kroemer, with possible start/end dates and degrees.

List the universities Guido Kroemer went to, along with any academic degrees he obtained and the time periods of attendance.

SELECT ?var1 ?var2Label ?var3 ?var4 ?var5Label WHERE { <http://www.wikidata.org/entity/Q19508945> <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: Which entities are incorrectly linked to Melbourne using "located on physical feature" and what role do they have?

SELECT ?city ?statement (SAMPLE(?role) AS ?roleLabel) WHERE { ?city p:P706 ?statement . ?statement ps:P706 wd:Q3141 . OPTIONAL { ?statement pq:P3831 ?role . } } GROUP BY ?city ?statement

What places are connected to Melbourne via the "located on physical feature" property, and what is the role qualifier for each connection?

List all locations that are tied to Melbourne through the P706 property and show their associated role qualifiers, if any.

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


Question: Senators of the French Fifth Republic

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 ?senator ?senatorLabel WHERE {
  ?senator wdt:P39 wd:Q14828018 .
  ?senator rdfs:label ?senatorLabel .
  FILTER ( LANG( ?senatorLabel ) = "en" )
}

Who are the individuals who have served as senators in the French Fifth Republic?

List all people who have held the position of senator in the French Senate.

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


Question: Who has the Dictionary of Swedish National Biography ID 7108?

SELECT ?person WHERE { ?person wdt:P3217 "7108" . } LIMIT 1

Which person is identified by the SBL ID 7108?

Tell me the name of the person with SBL ID 7108.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3217> "7108". } LIMIT 1


Question: Entities with inception, publication, discovery, or official opening in March 1880

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

What entities were founded, published, discovered, or officially opened in March 1880?

List all items from Wikidata that had a start event — such as being created, published, discovered, or officially opened — in March 1880.

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


Question: Television programs excluding films and episodes

SELECT DISTINCT ?item WHERE { ?item wdt:P31 ?type . ?type wdt:P279* wd:Q15416 . MINUS { ?item wdt:P31 wd:Q21191270 . } MINUS { ?item wdt:P31 ?filmType . ?filmType wdt:P279* wd:Q11424 . } }

What are all the television programs that are not films or television episodes?

List all items that are instances of television programs but not films or television episodes.

SELECT DISTINCT ?var1 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q5398426> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q15416> . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q21191270> . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q11424> . } }


Question: List all humans and their genders in Wikidata.

SELECT ?human ?gender WHERE { ?human wdt:P31 wd:Q5 . ?human wdt:P21 ?gender .}

What is the sex or gender of every human recorded in Wikidata?

Show me the entities representing humans along with their biological sex or gender identity.

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


Question: What are the most commonly used properties to describe legislative bodies in countries, excluding external identifiers?

SELECT ?propertyLabel (COUNT(*) AS ?count)
WHERE {
  # Find legislative bodies (instances of legislative house or its subclasses)
  ?legislativeBody wdt:P31/wdt:P279* wd:Q10553309 ;
                   wdt:P17/wdt:P31 wd:Q6256 .

  # Find all direct properties used on these legislative bodies
  ?legislativeBody ?directProperty ?value .

  # Exclude properties that are ExternalId type
  FILTER NOT EXISTS {
    ?directProperty wikibase:propertyType wikibase:ExternalId .
  }

  # Get the property item (e.g., wd:P17) from the direct property (wdt:P17)
  ?propertyItem wikibase:directClaim ?directProperty .

  # Get English label of the property item
  ?propertyItem rdfs:label ?propertyLabel .
  FILTER(LANG(?propertyLabel) = "en")
}
GROUP BY ?propertyLabel
ORDER BY DESC(?count)

Which properties are used most frequently to characterize legislative houses located in countries, and how often are they used?

Show me the top properties used to describe legislative bodies around the world, ranked by usage count, and exclude properties like ISBNs or DOIs.

SELECT ?var1Label ?var2 ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var5 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q10553309> ; <http://www.wikidata.org/prop/direct/P1001> [ <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> ] . ?var1 <http://wikiba.se/ontology#claim> ?var3 . FILTER ( ( NOT EXISTS { ?var1 <http://wikiba.se/ontology#propertyType> <http://wikiba.se/ontology#ExternalId> . } ) ) . ?var5 ?var3 [] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1Label ?var2 ORDER BY DESC( ?var4 )


Question: Occupations with "jockey" in their label

SELECT ?occupation ?occupationLabel WHERE { ?occupation wdt:P31 wd:Q12737077 . ?occupation rdfs:label ?occupationLabel . FILTER (REGEX(?occupationLabel, "jockey", "i")) }

What are the occupations that include the word "jockey" in their name?

List all occupations that have "jockey" in their label, regardless of case.

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


Question: What are the most common combinations of first name, last name, gender, native language, birthplace, and cause of death among historical humans, sorted by how often they occur?

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 ?givenName ?familyName ?gender ?language ?birthDate ?birthPlace ?deathDate ?causeOfDeath ?givenNameLabel ?familyNameLabel ?genderLabel ?languageLabel ?birthPlaceLabel ?causeOfDeathLabel ?count WHERE {
  {
    SELECT ?givenName ?familyName ?gender ?language ?birthDate ?birthPlace ?deathDate ?causeOfDeath ( COUNT( * ) AS ?count ) WHERE {
      ?person wdt:P31 wd:Q5 .
      ?person wdt:P735 ?givenName .
      ?person wdt:P734 ?familyName .
      ?person wdt:P21 ?gender .
      ?person wdt:P103 ?language .
      ?person wdt:P569 ?birthDate .
      ?person wdt:P19 ?birthPlace .
      ?person wdt:P570 ?deathDate .
      ?person wdt:P509 ?causeOfDeath .
    }
    GROUP BY ?givenName ?familyName ?gender ?language ?birthDate ?birthPlace ?deathDate ?causeOfDeath
  }
  OPTIONAL {
    ?givenName rdfs:label ?givenNameLabel .
    FILTER ( LANG( ?givenNameLabel ) = "en" )
  }
  OPTIONAL {
    ?familyName rdfs:label ?familyNameLabel .
    FILTER ( LANG( ?familyNameLabel ) = "en" )
  }
  OPTIONAL {
    ?gender rdfs:label ?genderLabel .
    FILTER ( LANG( ?genderLabel ) = "en" )
  }
  OPTIONAL {
    ?language rdfs:label ?languageLabel .
    FILTER ( LANG( ?languageLabel ) = "en" )
  }
  OPTIONAL {
    ?birthPlace rdfs:label ?birthPlaceLabel .
    FILTER ( LANG( ?birthPlaceLabel ) = "en" )
  }
  OPTIONAL {
    ?causeOfDeath rdfs:label ?causeOfDeathLabel .
    FILTER ( LANG( ?causeOfDeathLabel ) = "en" )
  }
}
ORDER BY DESC ( ?count ) ASC ( ?deathDate )
LIMIT 1000

Show me the top 1000 most frequent sets of personal details — including names, gender, language, birth and death information — for people in Wikidata, with English labels for each value.

Which groups of people share the same given name, family name, gender, language, birthplace, and cause of death, and how many people are in each group? List them from most common to least, ordered by death date.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var2Label ?var9 WHERE { { SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ( COUNT (* ) AS ?var9 ) WHERE { ?var10 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var10 <http://www.wikidata.org/prop/direct/P735> ?var1 . ?var10 <http://www.wikidata.org/prop/direct/P734> ?var2 . ?var10 <http://www.wikidata.org/prop/direct/P21> ?var3 . ?var10 <http://www.wikidata.org/prop/direct/P103> ?var4 . ?var10 <http://www.wikidata.org/prop/direct/P569> ?var5 . ?var10 <http://www.wikidata.org/prop/direct/P19> ?var6 . ?var10 <http://www.wikidata.org/prop/direct/P570> ?var7 . ?var10 <http://www.wikidata.org/prop/direct/P509> ?var8 . } GROUP BY ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 } FILTER ( ( ( LANG ( ?var11 ) = "en" ) ) ) . } ORDER BY DESC( ?var9 )ASC( ?var8 ) LIMIT 1000


Question: What is the capital of the United States, and what are its population, head of government, twin cities, and founding date? Also show the flag, locator map, and image of the capital.

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 ?continent ?continentLabel ?flag ?locatorMap ?capital ?capitalLabel ?capitalImage ?population ?headOfGovernment ?twinCity ?inception WHERE {
  wd:Q30 wdt:P30 ?continent .
  wd:Q30 wdt:P41 ?flag .
  wd:Q30 wdt:P242 ?locatorMap .
  wd:Q30 wdt:P36 ?capital .
  ?capital wdt:P18 ?capitalImage .
  OPTIONAL {
    ?capital wdt:P1082 ?population .
  }
  OPTIONAL {
    ?capital wdt:P6 ?headOfGovernment .
  }
  OPTIONAL {
    ?capital wdt:P190 ?twinCity .
  }
  OPTIONAL {
    ?capital wdt:P571 ?inception .
  }
  OPTIONAL {
    ?continent rdfs:label ?continentLabel .
    FILTER(LANG(?continentLabel) = "en")
  }
  OPTIONAL {
    ?capital rdfs:label ?capitalLabel .
    FILTER(LANG(?capitalLabel) = "en")
  }
}

Can you show me the continent, flag, and locator map of the United States, along with details about its capital city — including its image, population, head of government, and sister cities?

Tell me about Washington, D.C.: its population, leader, when it was established, and which cities it’s twinned with. Also include the U.S. flag and a map showing where it’s located.

SELECT ?var1 ?var2 ?var3 ?var3Label ?var4 ?var5 ?var5Label ?var6 ?var7 ?var7Label ?var8 ?var8Label WHERE { { SELECT * WHERE { ?var9 <http://www.wikidata.org/prop/direct/P30> ?var10 . ?var9 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q30> . OPTIONAL { ?var10 <http://www.wikidata.org/prop/direct/P242> ?var1 . ?var9 <http://www.wikidata.org/prop/direct/P41> ?var2 . ?var3 <http://www.wikidata.org/prop/direct/P41> ?var4 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P36> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q515> . ?var5 <http://www.wikidata.org/prop/direct/P18> ?var6 . OPTIONAL { VALUES ( ?var11 ) { ( <http://www.wikidata.org/prop/direct/P1082> ) ( <http://www.wikidata.org/prop/direct/P6> ) ( <http://www.wikidata.org/prop/direct/P190> ) ( <http://www.wikidata.org/prop/direct/P31> ) ( <http://www.wikidata.org/prop/direct/P571> ) ( <http://www.wikidata.org/prop/direct/P150> ) ( <http://www.wikidata.org/prop/direct/P206> ) ( <http://www.wikidata.org/prop/direct/P527> ) } ?var5 ?var11 ?var8 . ?var7 ?var12 ?var11 . ?var7 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } } } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } }


Question: What are the French-labeled properties related to the "location" property (P276) in Wikidata?

PREFIX schema: <http://schema.org/>
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 ?relatedProp ?label ?desc WHERE {
  wd:P276 wdt:P1659 ?relatedProp .
  ?relatedProp rdfs:label ?label .
  ?relatedProp schema:description ?desc .
  FILTER ( LANG( ?label ) = "fr" ) FILTER ( LANG( ?desc ) = "fr" )
}

Can you list the French labels and descriptions of Wikidata properties that are considered related to "location"?

Which properties in Wikidata describe locations in French, and what do they mean?

SELECT ?var1 ?var2Label ?var3 WHERE { BIND ( <http://www.wikidata.org/prop/direct/P276> AS ?var4 ). ?var5 ?var6 ?var4 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <http://www.wikidata.org/prop/direct/P1659> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "fr" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "fr" ) ) ) . }


Question: Players of Montreal Impact with their birth dates and German-language citizenship countries.

SELECT ?playerLabel ?dob (GROUP_CONCAT(?countryLabelDE; SEPARATOR=", ") AS ?countries) WHERE { wd:Q21011427 wdt:P527 ?player . OPTIONAL { ?player wdt:P569 ?dob . } OPTIONAL { ?player wdt:P27 ?country . ?country rdfs:label ?countryLabelDE . FILTER(LANG(?countryLabelDE) = "de") } ?player rdfs:label ?playerLabel . FILTER(LANG(?playerLabel) = "en") } GROUP BY ?player ?playerLabel ?dob

Who are the players of the Montreal Impact, when were they born, and which countries are they citizens of (in German)?

List the English names of Montreal Impact players, their dates of birth, and their countries of citizenship in German, including dual nationalities.

SELECT( STRBEFORE ( GROUP_CONCAT ( ?var1 ; SEPARATOR = ", " ) , "," ) AS ?var2 ) ?var3Label ?var4 ( GROUP_CONCAT ( ?var5Label ; SEPARATOR = ", " ) AS ?var6 ) WHERE { <http://www.wikidata.org/entity/Q21011427> <http://www.wikidata.org/prop/direct/P527> ?var3 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P569> ?var4 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1618> ?var1 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P27> ?var5 . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "de" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } } GROUP BY ?var3 ?var3Label ?var4


Question: Lakes in Latvia ordered by size (largest first)

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?lake ?area WHERE {
  ?lake wdt:P31 wd:Q23397 .
  ?lake wdt:P17 wd:Q211 .
  ?lake wdt:P2046 ?area .
}
ORDER BY DESC(?area)

What are the largest lakes in Latvia and their areas?

List all lakes in Latvia along with their surface areas, sorted from largest to smallest.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q23397> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q211> . ?var1 <http://www.wikidata.org/prop/direct/P2046> ?var2 . } ORDER BY DESC( ?var2 )


Question: List of artists with their Artnet IDs.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?artist ?artnetId WHERE {
  ?artist wdt:P3782 ?artnetId .
}
ORDER BY ASC(?artist)

Which artists have Artnet IDs, and what are those IDs?

Show all artists in Wikidata that are assigned an Artnet artist ID, along with their IDs, sorted alphabetically by artist.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3782> ?var2 . } ORDER BY ASC( ?var1 )


Question: People who share an occupation with Jean-Pierre Norblin de La Gourdaine and have English labels and images.

SELECT ?person ?personLabel ?image WHERE { wd:Q941569 wdt:P106 ?occupation . ?person wdt:P106 ?occupation ; wdt:P31 wd:Q5 . OPTIONAL { ?person wdt:P18 ?image . } ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") FILTER(REGEX(?personLabel, "^[A-Za-z][A-Za-z ]+$")) } ORDER BY ?personLabel

Who are other artists or graphic designers similar to Jean-Pierre Norblin de La Gourdaine, and do they have profile pictures?

List English-named human artists who have the same occupations as Jean-Pierre Norblin de La Gourdaine, along with their images if available.

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


Question: What military equipment or missing persons had a retirement or disappearance date between June and December 2006?

SELECT DISTINCT ?item ?date WHERE { ?item (wdt:P730 | wdt:P746) ?date . FILTER ( ?date >= "2006-06-01T00:00:00Z"^^xsd:dateTime && ?date <= "2006-12-31T23:59:59Z"^^xsd:dateTime ) }

Which entities were retired or went missing between June 1 and December 31, 2006?

List all items that were decommissioned or went missing in the second half of 2006.

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


Question: Russian professional titles and their feminine forms on Wikidata.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?profession ?label_ru ?feminine_ru WHERE {
  ?profession wdt:P31 wd:Q28640 .
  ?profession rdfs:label ?label_ru .
  FILTER ( LANG( ?label_ru ) = "ru" ) .
  ?profession wdt:P2521 ?feminine_ru .
  FILTER ( LANG( ?feminine_ru ) = "ru" ) .
}
ORDER BY ASC ( ?label_ru )

What are the Russian-language names for professions and their corresponding feminine forms in Wikidata?

Show me all professions in Wikidata that have both a Russian label and a Russian female form, sorted alphabetically by the Russian term.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q28640> . { ?var1 <http://www.wikidata.org/prop/direct/P2521> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "ru" ) ) ) . } { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "ru" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var2 )


Question: What are English-labeled national ID systems and their associated countries?

SELECT ?country ?countryLabel ?itemLabel WHERE { ?item wdt:P17 ?country . ?item rdfs:label ?itemLabel . FILTER (LANG(?itemLabel) = "en") . ?country rdfs:label ?countryLabel . FILTER (LANG(?countryLabel) = "en") . } LIMIT 10

Which English-labeled databases or registries are associated with each country, and what are the countries' names?

List the English names of items like ID systems along with the countries they belong to.

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


Question: Most frequently used property linking entities to the year 279 CE

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

Which property is most commonly used to connect items to the year 279 in Wikidata?

Show me the property that appears most often in statements about the year 279 CE, along with its usage count.

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


Question: Fictional characters with English and Hebrew 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 ?char ?enLabel ?heLabel WHERE {
  ?char wdt:P31 wd:Q95074 .
  ?char rdfs:label ?enLabel
  FILTER ( LANG( ?enLabel ) = "en" ) .
  ?char rdfs:label ?heLabel FILTER ( LANG( ?heLabel ) = "he" ) .
}
LIMIT 10

Which fictional characters have names in both English and Hebrew on Wikidata?

Show me fictional characters that have labels in both English and Hebrew.

SELECT ?var1Label ?var2Label WHERE { <http://www.wikidata.org/entity/Q18844656> <http://www.wikidata.org/prop/P161> ?var3 . ?var3 <http://www.wikidata.org/prop/qualifier/P453> ?var4 . ?var4 <http://schema.org/label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "he" ) ) ) . ?var4 <http://schema.org/label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . }


Question: Image of Andrea Dworkin with SNAC ARK ID w6mk6pj0

SELECT ?image WHERE { ?item wdt:P3430 "w6mk6pj0" ; wdt:P31 wd:Q5 . OPTIONAL { ?item wdt:P18 ?image . } }

What is the Wikimedia Commons image associated with Andrea Dworkin’s SNAC ARK ID w6mk6pj0?

Show me the photo of the person identified by the SNAC ARK ID w6mk6pj0.

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


Question: What movie has the IMDb ID tt1148240?

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

Which film is identified by the IMDb identifier tt1148240?

Find the Wikidata entry for the movie with IMDb ID tt1148240.

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


Question: Canadian senators whose terms ended after December 3, 2015

SELECT ?senator ?senatorLabel WHERE { ?senator p:P39 ?statement . ?statement ps:P39 wd:Q18524027 ; pq:P582 ?endDate . FILTER (?endDate >= "2015-12-03T00:00:00Z"^^xsd:dateTime) . ?senator rdfs:label ?senatorLabel . FILTER(LANG(?senatorLabel) = "en") } LIMIT 100

Who are the Canadian senators that stopped serving on or after December 3, 2015?

List the names of Canadian senators whose Senate terms ended on or after December 3, 2015.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q18524027> ; <http://www.wikidata.org/prop/qualifier/P582> ?var3 . FILTER ( ( ( ?var3 >= "2015-12-03T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Places with images within 5 km of longitude -1, latitude 45, excluding humans and organizations.

PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?itemLabel ?location ?image ( GROUP_CONCAT( DISTINCT ?instanceTypeLabel ; SEPARATOR = ", " ) AS ?instanceTypeLabels ) WHERE {
  ?item wdt:P18 ?image .
  ?item wdt:P31 ?instanceType .
  FILTER ( NOT EXISTS {
    ?instanceType wdt:P279 * wd:Q5
  }
  ) FILTER ( NOT EXISTS {
    ?instanceType wdt:P279 * wd:Q43229
  }
  ) ?item wdt:P625 ?location .
  BIND( geof:distance ( ?location , "POINT(-1 45)" ^^ geo:wktLiteral ) AS ?distance ) FILTER ( ?distance <= 5000 ) OPTIONAL {
    ?instanceType rdfs:label ?instanceTypeLabel .
    FILTER ( LANG( ?instanceTypeLabel ) = "en" )
  }
  OPTIONAL {
    ?item wdt:P1082 ?population .
  }
  OPTIONAL {
    ?item wdt:P2046 ?area .
  }
}
GROUP BY ?item ?itemLabel ?location ?image
LIMIT 100

What are the geographic locations near (−1, 45) that have images on Wikimedia Commons and are not people or organizations?

Show me images and types of non-human, non-organizational places (like monuments or fountains) located within 5 kilometers of 45°N, 1°W.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ( GROUP_CONCAT ( DISTINCT ?var6Label ; SEPARATOR = ", " ) AS ?var7 )( GROUP_CONCAT ( DISTINCT ?var8Label ; SEPARATOR = ", " ) AS ?var9 )( GROUP_CONCAT ( DISTINCT ?var8 ; SEPARATOR = ", " ) AS ?var10 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var6 . ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var8 . FILTER ( ( NOT EXISTS { ?var8 <http://www.wikidata.org/prop/direct/P1963> <http://www.wikidata.org/prop/direct/Q83620> . } ) ) . FILTER ( ( NOT EXISTS { ?var8 <http://www.wikidata.org/prop/direct/P1963> <http://www.wikidata.org/prop/direct/Q151885> . } ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P2046> ?var3 . } SERVICE <http://wikiba.se/ontology#around> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> "POINT(-1 45)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "5". } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var8Label . } } GROUP BY ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 LIMIT 500


Question: What is the English label and description of the heritage site with NSW Heritage Database ID 5051524?

SELECT ?heritageSite ?label ?description WHERE { ?heritageSite wdt:P3449 "5051524" . ?heritageSite rdfs:label ?label . FILTER (LANG(?label) = "en") OPTIONAL { ?heritageSite schema:description ?description . FILTER (LANG(?description) = "en") } }

Can you tell me the name and English description of the cemetery in North Sydney that has the NSW Heritage ID 5051524?

Please provide the English name and description of the heritage site identified by the NSW Heritage Database ID 5051524.

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


Question: What are Victor Hugo’s native name, native language, family name, and given names?

SELECT ?nameInNativeLanguage ?nativeLanguage ?familyName ?givenName WHERE { wd:Q535 wdt:P214 "9847974" . wd:Q535 wdt:P1559 ?nameInNativeLanguage . wd:Q535 wdt:P103 ?nativeLanguage . wd:Q535 wdt:P734 ?familyName . wd:Q535 wdt:P735 ?givenName .}

Can you tell me the native language, surname, and first names of the person with VIAF ID 9847974?

Show me the full name details (including native name and given names) of Victor Hugo, along with his native language and family name.

SELECT * WHERE { ?var1 ?var2 "9847974". ?var1 <http://www.wikidata.org/prop/direct/P1559> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P103> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P734> ?var5 . ?var1 <http://www.wikidata.org/prop/direct/P735> ?var6 . }


Question: Theses submitted to the University of Oxford and their qualifier values

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?thesis ?thesisLabel ?statement(SAMPLE(?qualifierValue) AS ?sampleQualifierValue) WHERE {
  ?statement ps:P4101 wd:Q34433 .
  ?thesis p:P4101 ?statement .
  OPTIONAL {
    ?statement ?qualifierProperty ?qualifierValue .
    ?qualifierProperty wikibase:qualifier true .
  }
  ?thesis rdfs:label ?thesisLabel .
  FILTER(LANG(?thesisLabel) = "en")
}
GROUP BY ?thesis ?thesisLabel ?statement
LIMIT 101

What theses were submitted to the University of Oxford, and what additional information (like year or degree) is associated with them?

List the titles of theses submitted to the University of Oxford along with any available qualifier details such as submission year or degree type.

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


Question: Which movie has the exploitation mark number 79202 in France?

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

What is the title of the French film with exploitation visa number 79202?

Tell me the movie associated with the French film distribution certificate 79202.

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


Question: What organizations or individuals have computer science as their field of work?

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

List the English labels of entities whose field of work is computer science.

Which entities are associated with the field of computer science?

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


Question: Administrative regions containing Ardagh, Ireland

SELECT ?administrativeEntity ?administrativeEntityLabel WHERE { wd:Q638453 wdt:P131* ?administrativeEntity . ?administrativeEntity rdfs:label ?administrativeEntityLabel . FILTER(LANG(?administrativeEntityLabel) = "en") }

What administrative areas is the village of Ardagh located in, including its parent regions?

Show me the full administrative hierarchy of Ardagh, from the village up to the country level.

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


Question: What are the two-letter postal abbreviations for U.S. states?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?state ?stateLabel ?abbr WHERE {
  ?state wdt:P31 wd:Q35657 .
  ?state p:P1813 ?stmt .
  ?stmt ps:P1813 ?abbr .
  ?state rdfs:label ?stateLabel .
  FILTER(LANG(?stateLabel) = "en")
  FILTER(REGEX(?abbr , "^[A-Z]{2}$"))
}
ORDER BY ?stateLabel

List all U.S. states along with their official USPS postal codes.

Which U.S. states have two-letter abbreviations used by the Postal Service?

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q35657> . ?var1 <http://www.wikidata.org/prop/P1813> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P1813> ?var2 . ?var3 <http://www.wikidata.org/prop/qualifier/P31> <http://www.wikidata.org/entity/Q30619513> . ?var3 <http://www.wikidata.org/prop/qualifier/P580> [] . FILTER ( ( NOT EXISTS { ?var3 <http://www.wikidata.org/prop/qualifier/P582> [] . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label )ASC( ?var4Label )


Question: What are the Dutch labels of properties and their values for the Dutch politician Jan Ankerman?

SELECT ?propertyLabel ?value ?valueLabel WHERE { wd:Q3162452 ?p ?value . ?property wikibase:directClaim ?p . ?property rdfs:label ?propertyLabel . FILTER (LANG(?propertyLabel) = "nl") OPTIONAL { ?value rdfs:label ?valueLabel . FILTER (LANG(?valueLabel) = "nl") } } LIMIT 100

Show me all information about Jan Ankerman in Dutch, including property names and their values (with entity labels where available).

Which Dutch-language property labels and corresponding values are associated with Jan Ankerman in Wikidata?

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


Question: Who are the actors in the Harry Potter film series, and what countries are they citizens of?

SELECT DISTINCT ?actor ?actorLabel ?countryLabel WHERE { wd:Q216930 wdt:P527 ?film . ?film wdt:P161 ?actor . OPTIONAL { ?actor wdt:P27 ?country . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") } ?actor rdfs:label ?actorLabel . FILTER(LANG(?actorLabel) = "en") } ORDER BY ASC(?countryLabel)

List all actors from the Harry Potter movies in alphabetical order by their country of citizenship.

Which countries are represented among the cast of the Harry Potter films? Show the actors and their nationalities.

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


Question: Entities that were created, discovered, published, or officially opened in October 1966.

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

What items had their inception, discovery, publication, or official opening in October 1966?

List all entities from Wikidata that have a date of inception, discovery, publication, or official opening anywhere in October 1966.

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


Question: Legislations published in 1992

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?legislation WHERE {
  ?legislation wdt:P577 ?publicationDate .
  FILTER ( YEAR( ?publicationDate ) = 1992 )
}
LIMIT 1000

What laws or legal instruments were published in 1992?

List the statutory instruments from Northern Ireland and Ireland that were enacted in 1992.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var2 . FILTER ( ( ( YEAR ( ?var2 ) = "1992"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } LIMIT 1000


Question: List heritage registers with their English names and images.

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

What are the heritage registers in Wikidata, and what are their English labels and associated images?

Show me up to 100 heritage registers along with their English labels and any available images from Wikimedia Commons.

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


Question: Organizations headquartered in Sassari with their coordinates

SELECT ?organization ?coordinates WHERE { ?organization p:P159 ?statement . ?statement ps:P159 wd:Q13629 . OPTIONAL { ?statement pq:P625 ?coordinates . } } LIMIT 20

Which organizations have their headquarters in Sassari, and where exactly are those headquarters located (coordinates)?

Show me the list of organizations based in Sassari and their headquarters coordinates, if available.

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


Question: Wikidata properties used as qualifiers with English labels and descriptions

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/>
PREFIX schema: <http://schema.org/>
SELECT ?property ?propertyLabel ?propertyDescription WHERE {
  ?property wdt:P31 wd:Q15720608 .
  ?property rdfs:label ?propertyLabel .
  ?property schema:description ?propertyDescription .
  FILTER ( LANG( ?propertyLabel ) = "en" ) .
  FILTER ( LANG( ?propertyDescription ) = "en" )
}
LIMIT 100

What are the properties in Wikidata that are designated as qualifiers, and what are their English labels and descriptions?

List all Wikidata qualifier properties along with their English labels and descriptions.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q20088882> . ?var1 ?var6 ?var5 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100


Question: What is the Italian label and description of the insect genus Dis, and is there an image available for it on Wikimedia Commons?

SELECT ?label ?description ?image WHERE { OPTIONAL { wd:Q5281154 rdfs:label ?label . FILTER (LANG(?label) = "it") } OPTIONAL { wd:Q5281154 schema:description ?description . FILTER (LANG(?description) = "it") } OPTIONAL { wd:Q5281154 wdt:P18 ?image . } }

Italian name, description, and image of the insect genus Dis.

Show me the Italian name and description of the genus Dis, along with its image from Wikimedia Commons, if it exists.

SELECT ?var1Label ?var2 ?var3 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q5281154> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "it" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q5281154> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q5281154> <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "it" ) ) ) . } }


Question: Which TV series have the most episodes, based on Wikidata?

SELECT ?seriesLabel (COUNT(?episode) AS ?episodeCount) WHERE { ?episode wdt:P31/wdt:P279* wd:Q21191270 ; wdt:P179 ?series . ?series rdfs:label ?seriesLabel . FILTER(LANG(?seriesLabel) = "en") } GROUP BY ?seriesLabel ORDER BY DESC(?episodeCount)

What are the television series with the highest number of episodes, and how many episodes does each have?

List the English-labeled TV series ordered by the number of episodes they contain, starting with the series with the most episodes.

SELECT ?var1Label ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q21191270> ; <http://www.wikidata.org/prop/direct/P179> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } GROUP BY ?var1Label ORDER BY DESC( ?var3 )


Question: Artists with RKDartists ID whose gender is sourced from a Wikimedia project.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?item WHERE {
  ?item wdt:P650 [] .
  ?item p:P21 ?statement . MINUS {
    ?statement prov:wasDerivedFrom ?ref . MINUS {
      ?ref pr:P143 [] .
    }
  }
}
LIMIT 40000

Which artists have an RKDartists ID and a gender statement imported from Wikipedia or another Wikimedia project?

Show me all artists in Wikidata who have an RKDartists ID and whose gender information comes from a Wikimedia source.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P650> [] . { ?var1 <http://www.wikidata.org/prop/21> ?var2 . MINUS { ?var2 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var3 . MINUS { ?var3 <http://www.wikidata.org/prop/reference/P143> [] . } } } } LIMIT 40000


Question: Multilingual descriptions of the male given name "Eric"

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

In which languages is the name "Eric" described as a male given name, and what are those descriptions?

Show me how the male given name "Eric" is described in different languages.

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


Question: What are the most common female given names among people working in fashion?

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 ?givenName ?givenNameLabel ?count WHERE {
  {
    SELECT ?givenName(COUNT(?person) AS ?count) WHERE {
      ?person wdt:P31 wd:Q5 .
      ?person wdt:P21 wd:Q6581072 .
      ?person wdt:P106 / wdt:P279 * wd:Q27943370 .
      ?person wdt:P735 ?givenName .
    }
    GROUP BY ?givenName
  }
  ?givenName rdfs:label ?givenNameLabel .
  FILTER(LANG(?givenNameLabel) = "en")
}
ORDER BY DESC(?count)

Which given names are most frequently used by women who are fashion professionals, and how many such individuals have each name?

Can you list the top female given names in the fashion industry, ranked by popularity?

SELECT ?var1 ?var1Label ?var2 WHERE { { SELECT ?var1 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var3 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var3 ( <http://www.wikidata.org/prop/direct/P106> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q27943370> . ?var3 <http://www.wikidata.org/prop/direct/P735> ?var1 . } GROUP BY ?var1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var2 )


Question: Find the Wikidata item for Getty Museum agent DOR ID group/104MDR and its English description.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?itemLabel ?desc WHERE {
  ?item wdt:P12040 "group/104MDR" .
  OPTIONAL {
    ?item schema:description ?desc .
    FILTER(LANG(?desc) = "en")
  }
}

What is the English description of the entity with Getty Museum agent DOR ID 'group/104MDR'?

Show me the entity identified by 'group/104MDR' in the Getty Museum's agent database, along with its English description if available.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2432> "714". 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: Image, area, population, and English label of Paris

SELECT ?image ?area ?population ?label WHERE { wd:Q90 wdt:P18 ?image . wd:Q90 wdt:P2046 ?area . wd:Q90 wdt:P1082 ?population . wd:Q90 skos:prefLabel ?label . FILTER(LANG(?label) = 'en') } LIMIT 1

What is the image, area, population, and official English name of the city of Paris?

Show me the image, area, population, and English label for Paris.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q515> . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P2046> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P1448> ?var5Label . ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var3 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Paris"@en . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 1


Question: What country and administrative division is the National Museum Soares dos Reis located in?

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

Where is the Soares dos Reis National Museum situated in terms of its administrative and national context?

Which administrative parish and country contain the National Museum Soares dos Reis?

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


Question: What are the hierarchical classifications (up to two levels) of Luigi Pigorini’s occupations and types?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?type ?subclass ?superclass WHERE {
  wd:Q1094914(wdt:P31 | wdt:P106) ?type .
  ?type wdt:P279 * ?subclass .
  ?subclass wdt:P279 * ?superclass .
}
ORDER BY ASC(?type) ASC(?subclass) ASC(?superclass)

What classes does Luigi Pigorini belong to through his occupations and instances, and what are their broader categories two levels up?

Show me the full subclass hierarchy (two levels deep) for each of Luigi Pigorini’s roles, such as professor or archaeologist.

SELECT * WHERE { <http://www.wikidata.org/entity/Q1094914> ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P106> ) ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P279> * ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P279> * ?var3 . } ORDER BY ASC( ?var4 )ASC( ?var3 )


Question: Transport hubs serving Rennes, France

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?transportHub ?statement ?transportHubLabel WHERE {
  ?statement ps:P931 wd:Q647 .
  ?transportHub p:P931 ?statement .
  ?transportHub rdfs:label ?transportHubLabel .
  FILTER(LANG(?transportHubLabel) = "en")
}
GROUP BY ?transportHub ?statement ?transportHubLabel

Which airports or transport hubs serve the city of Rennes in France?

List the transport hubs that have Rennes as a served location, along with their English labels.

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


Question: What are the metropolitan cities in South Korea?

SELECT ?city ?cityLabel WHERE { ?city wdt:P31 wd:Q482821 . ?city rdfs:label ?cityLabel . FILTER(LANG(?cityLabel) = "en") }

Which cities in South Korea are classified as metropolitan cities?

List the English names of all metropolitan cities in South Korea.

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


Question: What is the genomic start position and assembly for the RET M918T mutation?

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 s: <http://www.wikidata.org/entity/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?gene ?geneLabel ?start ?assembly ?assemblyLabel WHERE {
  ?gene p:P644 s:Q27919563-BA4E1E5B-8BAA-4508-B074-A82983167F48 .
  s:Q27919563-BA4E1E5B-8BAA-4508-B074-A82983167F48 ps:P644 ?start .
  s:Q27919563-BA4E1E5B-8BAA-4508-B074-A82983167F48 pq:P659 ?assembly .
  OPTIONAL {
    ?gene rdfs:label ?geneLabel .
    FILTER(LANG(?geneLabel) = "en")
  }
  OPTIONAL {
    ?assembly rdfs:label ?assemblyLabel .
    FILTER(LANG(?assemblyLabel) = "en")
  }
}

For the RET M918T variant, which genomic coordinates and reference assembly are associated with its start position?

Can you tell me the genomic start position (43617416) and the GRCh37 assembly used for the RET M918T mutation in Wikidata?

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/statement/Q27919563-BA4E1E5B-8BAA-4508-B074-A82983167F48> ?var1 ?var2 . }


Question: Who are the computer scientists without a DBLP profile, and which countries are they from?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel ?countryLabel WHERE {
  ?person wdt:P106 wd:Q82594 .
  ?person wdt:P17 ?country .
  OPTIONAL {
    ?person wdt:P2456 ?dblpId .
  }
  FILTER ( ! BOUND( ?dblpId ) ) ?person rdfs:label ?personLabel .
  ?country rdfs:label ?countryLabel .
  FILTER ( LANG( ?personLabel ) = "en" ) FILTER ( LANG( ?countryLabel ) = "en" )
}

List the names and countries of computer scientists who are not listed in the DBLP computer science bibliography.

Which countries do computer scientists without a DBLP ID come from?

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82594> . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2456> ?var3 . } FILTER ( ( !( BOUND ( ?var3 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What are the stages of the 1987 Tour de France?

SELECT ?stage ?stageLabel WHERE { wd:Q478420 wdt:P527 ?stage . ?stage rdfs:label ?stageLabel . FILTER(LANG(?stageLabel) = 'en') } LIMIT 1000

List the English-labeled stages that are part of the 1987 Tour de France cycling race.

Which race stages made up the 1987 Tour de France?

SELECT ?var1Label ?var1 ( CONCAT ( "P527" ) AS ?var2 ) ?var3 ?var3Label WHERE { BIND ( <http://www.wikidata.org/entity/Q478420> AS ?var1 ). ?var3 <http://www.wikidata.org/prop/direct/P361> ?var1 . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P527> ?var3 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ar,en,fr". } } LIMIT 1000


Question: What are the companies and developers owned by Sony Interactive Entertainment, and what are their official websites and Wikipedia pages?

SELECT ?var1 ?var1Label ?var2 ?var4 ?var5 WHERE { ?var1 wdt:P127 wd:Q18594 . ?var2 schema:about ?var1 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . OPTIONAL { ?var1 wdt:P856 ?var4 . } OPTIONAL { ?var1 wdt:P31 ?var5 . } ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") }

List all entities owned by Sony Interactive Entertainment that have English Wikipedia articles, including their names, types, and official websites.

Which video game studios and brands are owned by Sony, and where can I find their official websites and Wikipedia pages?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P127> <http://www.wikidata.org/entity/Q1233137> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "en". ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P127> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What companies are owned by Korean Air, and what are their official websites and Wikipedia pages?

SELECT ?company ?companyLabel ?wikipediaPage ?website ?type WHERE { ?company wdt:P127 wd:Q213147 . ?wikipediaPage schema:about ?company ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . OPTIONAL { ?company wdt:P856 ?website . } OPTIONAL { ?company wdt:P31 ?type . } ?company rdfs:label ?companyLabel . FILTER(LANG(?companyLabel) = "en") }

List the English Wikipedia pages and types of companies owned by Korean Air, along with their official websites.

Which businesses or enterprises are owned by Korean Air, and where can I find more information about them online?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P127> <http://www.wikidata.org/entity/Q213147> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "en". ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P127> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Human settlements within 50 km of (10°E, 37°N), including their countries, GeoNames IDs, and twin cities.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?settlement ?settlementLabel ( SAMPLE( ?twin ) AS ?twinCity ) ?countryLabel ?geonamesId WHERE {
  ?settlement ( wdt:P31 / wdt:P279 * ) wd:Q486972 .
  ?settlement wdt:P625 ?location .
  BIND( STRBEFORE( STR( ?location ) , " " ) AS ?lonStr ) BIND( STRBEFORE( STRAFTER( STR( ?location ) , "POINT(" ) , " " ) AS ?lonStrClean ) BIND( STRBEFORE( STRAFTER( STR( ?location ) , " " ) , ")" ) AS ?latStr ) BIND( xsd:double ( ?lonStrClean ) AS ?lon ) BIND( xsd:double ( ?latStr ) AS ?lat ) FILTER ( ?lon >= 9.44 && ?lon <= 10.56 ) FILTER ( ?lat >= 36.55 && ?lat <= 37.45 ) BIND( ( ( ( ?lon - 10 ) * 111 * 0.7986 ) * ( ?lon - 10 ) * 111 * 0.7986 + ( ( ?lat - 37 ) * 111 ) * ( ?lat - 37 ) * 111 ) AS ?distanceSquared ) OPTIONAL {
    ?settlement wdt:P17 ?country .
    ?country rdfs:label ?countryLabel .
    FILTER ( LANG( ?countryLabel ) = "en" )
  }
  OPTIONAL {
    ?settlement wdt:P1566 ?geonamesId .
  }
  OPTIONAL {
    ?settlement wdt:P190 ?twin .
  }
  ?settlement rdfs:label ?settlementLabel .
  FILTER ( LANG( ?settlementLabel ) = "en" )
}
GROUP BY ?settlement ?settlementLabel ?countryLabel ?geonamesId
ORDER BY ASC ( ?distanceSquared )

What cities and towns are located within 50 kilometers of longitude 10 and latitude 37, and which countries and sister cities are they associated with?

List all human settlements near (10, 37) in order of distance, along with their country, GeoNames ID, and any twin towns.

SELECT DISTINCT ?var1 ?var1Label ( SAMPLE ( ?var2 ) AS ?var3 ) ?var4 ?var5Label ?var6 WHERE { { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q515> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q3957> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> . } SERVICE <http://wikiba.se/ontology#around> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var7 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> "POINT(10 37)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "50". <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#distance> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1566> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P190> ?var2 . } } GROUP BY ?var1 ?var1Label ?var8 ?var4 ?var5Label ?var6 ORDER BY ASC( ?var4 )