Question: Works about Rudyard Kipling

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?work ?workLabel WHERE {
  ?work p:P921 ?statement .
  ?statement ps:P921 wd:Q34743 .
  ?work rdfs:label ?workLabel .
  FILTER(LANG(?workLabel) = "en")
}
ORDER BY ?workLabel

What are the works that have Rudyard Kipling as their main subject?

List the English titles of all works that are about the writer Rudyard Kipling.

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


Question: What are some songs performed by the band Metallica?

SELECT ?work ?workLabel ?performer ?performerLabel WHERE { ?work wdt:P175 wd:Q15920 . ?work wdt:P31 wd:Q105543609 . ?work rdfs:label ?workLabel . ?performer rdfs:label ?performerLabel . FILTER(LANG(?workLabel) = "en") FILTER(LANG(?performerLabel) = "en") } LIMIT 50

Can you list the English titles of songs by Metallica that are classified as musical compositions?

Show me the names of Metallica’s songs, not demos or albums, just the main musical works.

SELECT ?var1 ?var1Label ?var2 ?var3Label ?var3 WHERE { VALUES ( ?var2 ) { ( <http://www.wikidata.org/entity/Q15920> ) } VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q164646> ) } ?var1 <http://www.wikidata.org/prop/direct/P175> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Is the E. coli pseudogene-encoded protein ykfJ classified as a human?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
ASK WHERE {
  wd:Q50411309 wdt:P31 / wdt:P279 * wd:Q5 .
}

Does the protein encoded by the ykfJ pseudogene in Escherichia coli belong to the taxonomic class of humans?

Confirm whether the microbial protein ykfJ is a human or a subclass of human.

ASK WHERE { <http://www.wikidata.org/entity/Q50411309> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q5> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: What is the most specific common category that both the Philadelphia Eagles and Jim Mattis belong to?

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 ?ancestor ?ancestorLabel WHERE {
  wd:Q219714 wdt:P31 ?type1 .
  wd:Q267902 wdt:P31 ?type2 .
  ?type1 wdt:P279 * ?ancestor .
  ?type2 wdt:P279 * ?ancestor .
  ?ancestor rdfs:label ?ancestorLabel .
  FILTER(LANG(?ancestorLabel) = "en")
  .
  FILTER(?ancestor != ?type1)
  .
  FILTER(?ancestor != ?type2)
}
ORDER BY ?ancestor
LIMIT 1

Which entity is the lowest common ancestor in the subclass hierarchy between the Philadelphia Eagles and Jim Mattis?

Find the closest shared superclass in Wikidata's ontology between the American football team Philadelphia Eagles and the human Jim Mattis.

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


Question: Who were the academic supervisors of Ludwig Wittgenstein's students?

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { wd:Q9391 wdt:P802 ?var2 . ?var2 wdt:P1066 ?var1 . ?var1 rdfs:label ?var1Label . ?var2 rdfs:label ?var2Label . FILTER(LANG(?var1Label) = "en") FILTER(LANG(?var2Label) = "en") }

Which philosophers taught Ludwig Wittgenstein's students?

Who supervised the people who studied under Ludwig Wittgenstein?

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { <http://www.wikidata.org/entity/Q9391> <http://www.wikidata.org/prop/direct/P802> + ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P1066> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "zh,en". } }


Question: Animated films with cast members

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 ?film ?filmLabel WHERE {
  ?film wdt:P31 wd:Q202866 ; wdt:P161 ?actor .
  ?film rdfs:label ?filmLabel .
  FILTER(LANG(?filmLabel) = 'en')
}

Which animated films have actors listed in their cast?

List the English titles of animated films along with their cast members.

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


Question: List of fictional characters with their names.

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

Who are some fictional characters and what are their names in English?

Show me the English names of all fictional characters in Wikidata.

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


Question: What is the boiling point of 1,3-benzenedimethanamine and under what pressure was it measured?

SELECT DISTINCT ?boilingPointValue ?pressure WHERE { wd:Q15726051 p:P2102 ?statement . ?statement psv:P2102 ?valueNode . ?valueNode wikibase:quantityAmount ?boilingPointValue . ?statement pq:P2077 ?pressure . }

Show the boiling point value and the pressure condition for the chemical compound 1,3-benzenedimethanamine.

At what pressure is the boiling point of m-xylylenediamine 477.0 degrees Fahrenheit?

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { <http://www.wikidata.org/entity/Q15726051> <http://www.wikidata.org/prop/P2102> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/value/P2102> [ <http://wikiba.se/ontology#quantityAmount> ?var5 ; <http://wikiba.se/ontology#quantityUnit> ?var6 ] ; ?var3 ?var4 . } LIMIT 10


Question: What is the most specific shared category (class) between a baseball venue and a concert hall in Wikidata?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?commonAncestor ?dist1 ?dist2 ( ?dist1 + ?dist2 AS ?totalDist ) WHERE {
  wd:Q595452 wdt:P279 * ?commonAncestor .
  wd:Q1060829 wdt:P279 * ?commonAncestor .
  {
    SELECT ?ancestor ( COUNT( ?mid ) AS ?dist1 ) WHERE {
      wd:Q595452 wdt:P279 + ?mid .
      ?mid wdt:P279 * ?ancestor .
    }
    GROUP BY ?ancestor
  }
  {
    SELECT ?ancestor ( COUNT( ?mid ) AS ?dist2 ) WHERE {
      wd:Q1060829 wdt:P279 + ?mid .
      ?mid wdt:P279 * ?ancestor .
    }
    GROUP BY ?ancestor
  }
  FILTER ( ?ancestor = ?commonAncestor )
}
ORDER BY ASC ( ?totalDist )
LIMIT 1

How many subclass steps are needed to reach the common ancestor of a baseball park and a concert hall, and what is that ancestor?

Find the closest common superclass in the hierarchy that connects baseball venues and concert halls, and show the total path length from both.

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


Question: What is the most specific category that both a human and a baseball team belong to?

SELECT ?ancestor ?label ( ( ?dist1 + ?dist2 ) AS ?totalDist ) WHERE { { SELECT ?ancestor (COUNT(?mid1) AS ?dist1) WHERE { wd:Q5 wdt:P279+ ?mid1 . ?mid1 wdt:P279* ?ancestor . } GROUP BY ?ancestor } { SELECT ?ancestor (COUNT(?mid2) AS ?dist2) WHERE { wd:Q13027888 wdt:P279+ ?mid2 . ?mid2 wdt:P279* ?ancestor . } GROUP BY ?ancestor } ?ancestor rdfs:label ?label . FILTER(LANG(?label) = "en") } ORDER BY ASC(?totalDist) LIMIT 1

Which common superclass in the Wikidata hierarchy is closest to both Carson Palmer and the Chicago Cubs, and how many steps away is it from each?

Find the least specific shared ancestor in the subclass hierarchy between the category of humans and the category of baseball teams.

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


Question: What is the English name and description of the album "Paris" by Malcolm McLaren, and does it have an image?

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

Show me the English label and description of the album Paris by Malcolm McLaren, along with its image from Wikimedia Commons.

Give me the name, description, and image of Malcolm McLaren’s album "Paris".

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


Question: Authors of works about feminism with multiple contributors

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 ?author1 ?author1Label ?author2 ?author2Label WHERE {
  ?work wdt:P921 wd:Q7252 .
  ?work wdt:P50 ?author1 .
  ?work wdt:P50 ?author2 .
  FILTER ( ?author1 != ?author2 ) .
  ?author1 rdfs:label ?author1Label .
  ?author2 rdfs:label ?author2Label .
  FILTER ( LANG( ?author1Label ) = "en" ) .
  FILTER ( LANG( ?author2Label ) = "en" )
}

Which pairs of different authors have created works on the topic of feminism?

Show me pairs of distinct authors who wrote works where feminism is the main subject.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P31> */ <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q19869589> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P361> +) <http://www.wikidata.org/entity/Q19869589> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P1269> +) <http://www.wikidata.org/entity/Q19869589> . } ?var3 <http://www.wikidata.org/prop/direct/P50> ?var1 . ?var3 <http://www.wikidata.org/prop/direct/P50> ?var2 . FILTER ( ( ( ?var1 != ?var2 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } }


Question: List musical groups with the Rock Against Communism genre, including their official websites, Facebook usernames, countries, MusicBrainz IDs, and images.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?groupLabel ?website ?facebookUsername ?countryLabel ?musicBrainzId ?image WHERE {
  ?group wdt:P31 wd:Q215380 .
  ?group wdt:P136 wd:Q828181 .
  OPTIONAL {
    ?group wdt:P856 ?website .
  }
  OPTIONAL {
    ?group wdt:P2013 ?facebookUsername .
  }
  OPTIONAL {
    ?group wdt:P495 ?country .
  }
  OPTIONAL {
    ?group wdt:P434 ?musicBrainzId .
  }
  OPTIONAL {
    ?group wdt:P18 ?image .
  }
  ?group rdfs:label ?groupLabel .
  FILTER ( LANG( ?groupLabel ) = "en" ) OPTIONAL {
    ?country rdfs:label ?countryLabel .
    FILTER ( LANG( ?countryLabel ) = "en" )
  }
}
LIMIT 10000

What are the Rock Against Communism music groups, and what are their official websites, Facebook profiles, countries of origin, MusicBrainz IDs, and images?

Please provide a list of all musical groups classified under the Rock Against Communism genre, along with their official websites, Facebook usernames, countries, MusicBrainz artist IDs, and associated images from Wikimedia Commons.

SELECT ?var1Label ?var2 ?var3 ?var4Label ?var5 ?var6 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q215380> . ?var1 <http://www.wikidata.org/prop/direct/P136> <http://www.wikidata.org/entity/Q828181> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2013> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P4003> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P495> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P434> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var6 . } } LIMIT 10000


Question: What are the direct properties and their values for the enzyme glutamic-pyruvic transaminase?

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

Can you list the key characteristics of alanine aminotransferase, such as its EC number, taxon, and protein identifiers?

What information does Wikidata have about the enzyme glutamic-pyruvic transaminase, including its classification and associated database IDs?

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


Question: Institutions where Alan Turing worked

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?employer WHERE {
  wd:Q7251 wdt:P108 ?employer .
}

Which organizations employed Alan Turing?

SELECT DISTINCT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q7251> <http://www.wikidata.org/prop/direct/P159> ?var2 . } LIMIT 100


Question: What property links TET2 Mutation to its chromosome?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?mutation ?property WHERE {
  wd:Q28444945 ?property ?value .
  FILTER(?property = wdt:P1057)
}

Which property is used to specify the chromosome for the TET2 Mutation?

Show me the property that indicates the chromosome for the TET2 Mutation entity.

SELECT ?var1 ?var2 WHERE { ?var1 ?var2 <http://www.wikidata.org/entity/statement/Q28444945-B1AF45AD-8988-4BF8-BA60-621DEE5E6D4A> . }


Question: French names of Brigitte Macron’s children

SELECT ?child ?childLabel WHERE { wd:Q21511883 wdt:P40 ?child . ?child rdfs:label ?childLabel . FILTER (LANG(?childLabel) = "fr") } LIMIT 50

What are the names of Brigitte Macron’s children in French?

List the French labels of Brigitte Macron’s children.

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


Question: Films from the Czech Republic

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 ?film ?filmLabel WHERE {
  ?film(wdt:P31 / wdt:P279 *) wd:Q11424 .
  ?film wdt:P495 wd:Q213 .
  ?film rdfs:label ?filmLabel .
  FILTER(LANG(?filmLabel) = "en")
}

What are the English-titled films that originate from the Czech Republic?

List all films (and film genres) from the Czech Republic with English titles.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 WHERE { { SELECT DISTINCT ?var8 WHERE { ?var8 <http://www.w3.org/2000/01/rdf-schema#label> "Film"@de . ?var9 <http://www.wikidata.org/prop/direct/P31> ?var8 . } LIMIT 1 } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var8 . ?var1 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q213> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de, en". } }


Question: Who are the people with the family name Macron?

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

List up to 10 humans whose last name is Macron.

Show me the individuals in Wikidata who have Macron as their family name.

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


Question: Russian musical groups with YouTube and Yandex Music IDs

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 ?group ?groupLabel ?youtubeId ?yandexMusicId WHERE {
  ?group wdt:P31 wd:Q215380 .
  ?group wdt:P495 wd:Q159 .
  OPTIONAL {
    ?group wdt:P2397 ?youtubeId .
  }
  OPTIONAL {
    ?group wdt:P1553 ?yandexMusicId .
  }
  OPTIONAL {
    ?group rdfs:label ?groupLabel .
    FILTER(LANG(?groupLabel) = "en")
  }
}
ORDER BY DESC(?youtubeId)
LIMIT 100

What are the Russian musical groups and their YouTube channel and Yandex Music IDs?

List up to 100 Russian musical groups along with their YouTube channel IDs and Yandex Music artist IDs, sorted by YouTube ID in descending order.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ru". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q215380> . ?var1 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q159> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2397> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1553> ?var3 . } } ORDER BY DESC( ?var2 ) LIMIT 100


Question: What inventions by Carl Friedrich Gauss have qualifiers like "series ordinal" or "sourcing circumstances"?

SELECT ?discovery ?statement ?qualifier_label WHERE {  ?statement ps:P61 wd:Q6722 .  ?discovery p:P61 ?statement .  OPTIONAL {    VALUES (?qualifier ?qualifier_label) {      (<http://www.wikidata.org/prop/qualifier/P1480> "sourcing circumstances")      (<http://www.wikidata.org/prop/qualifier/P1545> "series ordinal")    }    ?statement ?qualifier ?value .  }} ORDER BY ?discovery

Which of Carl Friedrich Gauss’s discoveries are associated with the qualifier "series ordinal" or "sourcing circumstances"?

List all discoveries attributed to Carl Friedrich Gauss and indicate if any were annotated with "series ordinal" or "sourcing circumstances".

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


Question: What are the episodes of the TV series Pastewka, along with their premiere dates and the seasons they belong to?

SELECT ?episode ?episodeLabel ?premiereDate ?season ?seasonLabel WHERE { wd:Q1540515 wdt:P527 ?season . ?season wdt:P527 ?episode . ?episode wdt:P577 ?premiereDate . ?episode rdfs:label ?episodeLabel . ?season rdfs:label ?seasonLabel . FILTER(LANG(?episodeLabel) = "en" || LANG(?episodeLabel) = "") FILTER(LANG(?seasonLabel) = "en" || LANG(?seasonLabel) = "") } ORDER BY ?premiereDate

List the episodes of Pastewka in order of premiere date, showing which season each episode is from and when it first aired.

Show me the English-labeled episodes of Pastewka, their premiere dates, and the season they belong to, sorted by air date.

SELECT ?var1 ?var2 ?var3 ?var3Label ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q1540515> AS ?var5 ). ?var6 <http://www.wikidata.org/prop/direct/P361> ?var5 . ?var3 <http://www.wikidata.org/prop/direct/P1191> ?var4 . ?var3 <http://www.wikidata.org/prop/direct/P361> ?var6 . ?var3 <http://www.wikidata.org/prop/P179> [ <http://www.wikidata.org/prop/qualifier/P1545> ?var1 ] . ?var6 <http://www.wikidata.org/prop/P179> [ <http://www.wikidata.org/prop/qualifier/P1545> ?var2 ] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } } ORDER BY ASC( <http://www.w3.org/2001/XMLSchema#integer> ( ?var1 ) )


Question: Biological variants of CALR and the pathways they affect.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?variant ?gene ?pathway WHERE {
  ?variant wdt:P3433 ?gene .
  ?pathway wdt:P527 ?gene .
}

Which biological pathways include genes that have specific variants, such as CALR EXON 9 FRAMESHIFT?

Show me the biological variants, the genes they modify, and the pathways those genes are part of.

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


Question: What country is the musical group that the cat Marble belongs to from?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?country WHERE {
  wd:Q27745011 wdt:P463 ?group .
  ?group wdt:P495 ?country .
}

Country of origin of the musical group Marble is a member of.

Tell me the country associated with the band that includes the cat Marble.

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


Question: Who did Emmanuel Macron replace in the positions he held?

SELECT DISTINCT ?var1 ?var1Label WHERE { wd:Q3052772 p:P39 ?statement . ?statement pq:P1365 ?var1 . ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") }

Which individuals were succeeded by Emmanuel Macron in their official roles?

List the people Emmanuel Macron replaced as holder of public offices, along with their names in English.

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


Question: Top subjects of publications by Lisa Lodwick, with count and sample title snippet.

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

What are the most common topics in the academic works authored by Lisa Lodwick, and what are examples of those work titles?

Show me the main subjects of Lisa Lodwick’s publications, ranked by how many works she has on each, along with a shortened title of one of those works.

SELECT ?var1 ?var2Label ?var3Label WHERE { { SELECT ?var4 ( COUNT ( ?var5 ) AS ?var1 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q47068637> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . } GROUP BY ?var4 ORDER BY DESC( ?var1 ) } BIND ( SUBSTR ( ?var6Label ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"60"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3Label ). ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q47068637> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . }


Question: Who are the students of Albert Einstein, up to four generations removed, and who were their immediate mentors?

SELECT ?student ?studentLabel ?image ?mentor WHERE { { wd:Q937 wdt:P802 ?student . BIND(wd:Q937 AS ?mentor) } UNION { wd:Q937 wdt:P802 ?level1 . ?level1 wdt:P802 ?student . BIND(?level1 AS ?mentor) } UNION { wd:Q937 wdt:P802 ?level1 . ?level1 wdt:P802 ?level2 . ?level2 wdt:P802 ?student . BIND(?level2 AS ?mentor) } UNION { wd:Q937 wdt:P802 ?level1 . ?level1 wdt:P802 ?level2 . ?level2 wdt:P802 ?level3 . ?level3 wdt:P802 ?student . BIND(?level3 AS ?mentor) } OPTIONAL { ?student rdfs:label ?studentLabel . FILTER(LANG(?studentLabel) = "en") } OPTIONAL { ?student wdt:P18 ?image } }

List Albert Einstein’s academic descendants (students, students of students, etc.) along with their images and direct mentors.

Can you show me the people who studied under Albert Einstein, including those who studied under his students, up to four levels deep, and tell me who their direct advisor was?

SELECT ?var1 ?var1Label ?var2 ?var3 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/Q937> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Reverse"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var4 ; <http://www.bigdata.com/rdf/gas#maxIterations> "4"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P802> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P802> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,en". } }


Question: Students of Leonhard Euler

SELECT ?var1 ?var1Label WHERE { wd:Q7604 wdt:P802 ?var1 . ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") }

Who were the students of the mathematician Leonhard Euler?

List the people who studied under Leonhard Euler.

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


Question: Books by J.K. Rowling with publication dates and series information

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 ?book ?bookLabel ?authorLabel ?seriesLabel ?publicationDate WHERE {
  ?book wdt:P31 wd:Q7725634 ; wdt:P50 wd:Q34660 .
  ?book rdfs:label ?bookLabel .
  FILTER ( LANG( ?bookLabel ) = "en" ) .
  wd:Q34660 rdfs:label ?authorLabel .
  FILTER ( LANG( ?authorLabel ) = "en" ) .
  OPTIONAL {
    ?book wdt:P179 ?series .
    ?series rdfs:label ?seriesLabel .
    FILTER ( LANG( ?seriesLabel ) = "en" ) .
  }
  OPTIONAL {
    ?book wdt:P577 ?publicationDate .
  }
}

What are the English-language literary works authored by J.K. Rowling, along with their publication dates and series titles?

List all books written by J.K. Rowling in English, including their series (if any) and when they were published.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4Label ?var5 WHERE { ?var2 ?var6Label "string1"@en . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q571> . ?var1 <http://www.wikidata.org/prop/direct/P50> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P179> ?var7 . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What was the death toll of the 2011 Germany E. coli O104:H4 outbreak?

SELECT ?outbreakLabel ?deaths WHERE { wd:Q327056 rdfs:label ?outbreakLabel . OPTIONAL { wd:Q327056 wdt:P1120 ?deaths . } FILTER (LANG(?outbreakLabel) = "en") }

2011 Germany E. coli outbreak English name and number of deaths

Show me the English label and number of deaths for the 2011 Germany E. coli O104:H4 outbreak.

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


Question: What is the English name of the 2011 Germany E. coli O104:H4 outbreak, and how many cases were reported?

SELECT ?label ?cases WHERE { wd:Q327056 rdfs:label ?label . FILTER (LANG(?label) = "en") . OPTIONAL { wd:Q327056 wdt:P1603 ?cases . } }

Tell me the label and number of cases for the 2011 E. coli outbreak in Germany.

Can you provide the English name and case count for the 2011 Germany E. coli O104:H4 epidemic?

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


Question: Doctoral advisors of Albert Einstein up to 8 generations with images

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?advisor ?advisorLabel ?image WHERE {
  {
    wd:Q937 wdt:P184 ?advisor
  } UNION {
    wd:Q937 wdt:P184 ?level1 .
    ?level1 wdt:P184 ?advisor
  } UNION {
    wd:Q937 wdt:P184 ?level1 .
    ?level1 wdt:P184 ?level2 .
    ?level2 wdt:P184 ?advisor
  } UNION {
    wd:Q937 wdt:P184 ?level1 .
    ?level1 wdt:P184 ?level2 .
    ?level2 wdt:P184 ?level3 .
    ?level3 wdt:P184 ?advisor
  } UNION {
    wd:Q937 wdt:P184 ?level1 .
    ?level1 wdt:P184 ?level2 .
    ?level2 wdt:P184 ?level3 .
    ?level3 wdt:P184 ?level4 .
    ?level4 wdt:P184 ?advisor
  } UNION {
    wd:Q937 wdt:P184 ?level1 .
    ?level1 wdt:P184 ?level2 .
    ?level2 wdt:P184 ?level3 .
    ?level3 wdt:P184 ?level4 .
    ?level4 wdt:P184 ?level5 .
    ?level5 wdt:P184 ?advisor
  } UNION {
    wd:Q937 wdt:P184 ?level1 .
    ?level1 wdt:P184 ?level2 .
    ?level2 wdt:P184 ?level3 .
    ?level3 wdt:P184 ?level4 .
    ?level4 wdt:P184 ?level5 .
    ?level5 wdt:P184 ?level6 .
    ?level6 wdt:P184 ?advisor
  } UNION {
    wd:Q937 wdt:P184 ?level1 .
    ?level1 wdt:P184 ?level2 .
    ?level2 wdt:P184 ?level3 .
    ?level3 wdt:P184 ?level4 .
    ?level4 wdt:P184 ?level5 .
    ?level5 wdt:P184 ?level6 .
    ?level6 wdt:P184 ?level7 .
    ?level7 wdt:P184 ?advisor
  }
  OPTIONAL {
    ?advisor wdt:P18 ?image .
  }
  ?advisor rdfs:label ?advisorLabel .
  FILTER(LANG(?advisorLabel) = "en")
}

Who were Albert Einstein’s academic advisors (up to 8 generations back), and what are their images?

List all of Albert Einstein’s doctoral advisors, going back up to 8 generations, along with their English names and images if available.

SELECT ?var1 ?var1Label ?var2 ?var3 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/Q937> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Reverse"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var4 ; <http://www.bigdata.com/rdf/gas#maxIterations> "8"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P184> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P184> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,en". } }


Question: What is the most specific category that both the film Gran Torino and the cultural area New England belong to?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?commonAncestor WHERE {
  wd:Q11424 wdt:P279 * ?commonAncestor .
  wd:Q518261 wdt:P279 * ?commonAncestor .
}
ORDER BY ASC(STRLEN(STR(?commonAncestor)))
LIMIT 1

What is the common ancestor in the subclass hierarchy between the type of Gran Torino and the type of New England?

Find the least specific class that includes both films and cultural areas.

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


Question: What are the episodes of Star Trek: The Original Series, and where are they set?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?episode ?location WHERE {
  ?episode wdt:P179 wd:Q1077 .
  OPTIONAL {
    ?episode wdt:P840 ?location .
  }
}
LIMIT 100

List all episodes from Star Trek: The Original Series along with their fictional settings.

Which locations in the Star Trek universe are featured as narrative settings in episodes of the original series?

SELECT ?var1 ?var1Label ?var2 ?var2Label 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/P179> <http://www.wikidata.org/entity/Q1077> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P840> ?var2 . } } LIMIT 100


Question: What are the occupations of Kurt Löb?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?occupation WHERE {
  wd:Q13746344 wdt:P106 ?occupation .
}

List all the jobs Kurt Löb had during his career.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q13746344> <https://www.wikidata.org/wiki/Property:P106> ?var1 . }


Question: What is the most specific common superclass of the Philadelphia Eagles and Houston in the Wikidata subclass hierarchy?

SELECT ?ancestor WHERE { wd:Q17156793 wdt:P279* ?ancestor . wd:Q515 wdt:P279* ?ancestor . } ORDER BY ?ancestor LIMIT 1

Which entity is the least common ancestor of the class of the Philadelphia Eagles and the class of Houston?

Find the most specific category that both the Philadelphia Eagles and Houston belong to through their class hierarchies.

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


Question: What are the production companies behind films, and what are their English names?

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

Can you list 200 films along with their English-named production companies?

Show me the production companies of movies, using their official English labels.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P272> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 10800


Question: What is the most general category that includes both North Korea and the Men's College World Series?

SELECT ?commonSuperclass ?label WHERE { VALUES ?commonSuperclass { wd:Q35120 } ?commonSuperclass rdfs:label ?label . FILTER(LANG(?label) = "en") }

What do North Korea and the Men's College World Series have in common in terms of their classification in Wikidata?

What is the top-level entity type that both North Korea and the Men's College World Series belong to?

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


Question: What are some films and their producers?

SELECT ?film ?producer ?producerLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P162 ?producer . ?producer rdfs:label ?producerLabel . FILTER(LANG(?producerLabel) = "en") } LIMIT 200

Can you list films along with the names of their producers in English?

Who produced films, and which films did they produce?

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P162> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 6200


Question: Films and their production companies in English

SELECT ?film ?productionCompany ?productionCompanyLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P272 ?productionCompany . ?productionCompany rdfs:label ?productionCompanyLabel . FILTER(LANG(?productionCompanyLabel) = "en") } LIMIT 200

What are some films and the names of the companies that produced them?

List 200 films along with the English labels of their production companies.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P272> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 25000


Question: Creative works with at least three external identifiers (e.g., ISNI, VIAF, LCCN) and their English 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 ?item ?itemLabel ?instanceLabel ?lccn WHERE {
  ?item ( wdt:P279 * ) wd:Q17537576 .
  ?item wdt:P31 ?instance .
  {
    SELECT ?item ( COUNT( * ) AS ?identCount ) WHERE {
      ?item ?prop ?id .
      FILTER ( ?prop IN ( wdt:P213 , wdt:P214 , wdt:P227 , wdt:P244 , wdt:P245 , wdt:P268 , wdt:P269 , wdt:P1144 , wdt:P217 , wdt:P228 ) )
    }
    GROUP BY ?item
    HAVING ( ?identCount >= 3 )
  }
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" ) .
  ?instance rdfs:label ?instanceLabel .
  FILTER ( LANG( ?instanceLabel ) = "en" ) .
  OPTIONAL {
    ?item wdt:P244 ?lccn
  }
}
LIMIT 10

Which creative works in Wikidata have at least three external authority identifiers, and what are their English labels and classification types?

List up to 10 English-labeled creative works that are linked to at least three external identifiers like LCCN, VIAF, or ISNI, along with their class labels and LCCN codes if available.

SELECT DISTINCT * WHERE { ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q17537576> . ?var1 <http://wikiba.se/ontology#identifiers> ?var2 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . FILTER ( ( ( ?var2 >= "10"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P244> ?var5 . } } LIMIT 100 OFFSET 300


Question: Does The Simpsons have a list of episodes on Wikipedia?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  wd:Q886 wdt:P1811 ?episodeList .
}

Is there a Wikipedia page that lists all episodes of The Simpsons?

Can you confirm that The Simpsons is linked to an episode list article?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1811> <http://www.wikidata.org/entity/Q6604601> . }


Question: Is there a TV series that has its episode list linked to the Wikipedia article "Anexo:Episodios de Los Thornberrys"?

ASK WHERE { ?series wdt:P1811 wd:Q4437829 . }

Does the Wikipedia list "Anexo:Episodios de Los Thornberrys" correspond to any TV series' episode list?

Is the episode list for "The Wild Thornberrys" connected to the Spanish Wikipedia page "Anexo:Episodios de Los Thornberrys"?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1811> <http://www.wikidata.org/entity/Q4437829> . }


Question: What films were filmed in the United Arab Emirates, and what additional details are recorded about their filming locations?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?film ?statement ( SAMPLE( ?qualifierProperty ) AS ?sampledQualifier ) WHERE {
  {
    SELECT DISTINCT ?film ?statement WHERE {
      ?statement ps:P915 wd:Q878 .
      ?film p:P915 ?statement .
    }
    LIMIT 101
  }
  OPTIONAL {
    ?statement ?qualifierProperty ?qualifierValue .
    ?qualifierProperty wikibase:qualifier wdt:P915 .
  }
}
GROUP BY ?film ?statement

List movies shot in the UAE and any qualifiers (e.g., specific location or date) associated with their filming locations.

Which films have their filming location set to the United Arab Emirates, and are there any supplementary details attached to those location statements?

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


Question: Films and their producers

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?film ?filmLabel ?producer WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film rdfs:label ?filmLabel .
  FILTER(LANG(?filmLabel) = 'en')
  OPTIONAL {
    ?film wdt:P162 ?producer .
  }
}
LIMIT 20

What are some films and who produced them?

List 20 films along with their English titles and the names of their producers.

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


Question: Works by Roger de Beauvoir, ordered by publication date, with titles and languages.

SELECT ?work ?workTitle ?publicationDate ?languageLabel WHERE { ?work wdt:P50 wd:Q3439595 . OPTIONAL { ?work wdt:P1476 ?workTitle } OPTIONAL { ?work wdt:P577 ?publicationDate } OPTIONAL { ?work wdt:P407 ?language . ?language rdfs:label ?languageLabel . FILTER(LANG(?languageLabel) = "en") } } ORDER BY ASC(?publicationDate)

What are the works written by Roger de Beauvoir, and when were they published, along with their languages?

Please list all the books and plays authored by Roger de Beauvoir, sorted by when they were published, including their titles and the languages they were written in.

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


Question: Is the article "Regulation of tissue crosstalk by skeletal muscle-derived myonectin and other myokines" authored by a human?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
ASK WHERE {
  wd:Q36719181 wdt:P50 ?author .
  ?author wdt:P31 wd:Q5 .
}

Does the scientific article on myonectin have at least one human author?

Confirm whether any author of the 2012 article on myokines is a human.

ASK WHERE { <http://www.wikidata.org/entity/Q36719181> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q5> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: Rock bands with heavy metal genre, sorted alphabetically by name.

SELECT ?band ?bandLabel WHERE { ?band wdt:P31 wd:Q5741069 . ?band wdt:P136 wd:Q38848 . ?band rdfs:label ?bandLabel . FILTER(LANG(?bandLabel) = "en") } ORDER BY ASC(?bandLabel)

Which rock bands are classified as heavy metal music groups, and what are their English names?

List all English-named rock bands whose musical genre is heavy metal, in alphabetical order.

SELECT ?var1 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5741069> . ?var1 <http://www.wikidata.org/prop/direct/P136> <http://www.wikidata.org/entity/Q38848> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> _:b3 . } } ORDER BY ASC( ?var2Label )


Question: Who are the creators of creative works listed in Wikidata?

SELECT ?work ?creator WHERE { ?work wdt:P170 ?creator . } LIMIT 100

List creative works and their creators from Wikidata.

Show me 100 examples of creative works along with the people or organizations who created them.

SELECT * WHERE { ?var1 ?var2 ?var3 . ?var1 <http://schema.org/creator> ?var4 . } LIMIT 100


Question: Musical groups with names starting with "met" and their genres

SELECT ?var1Label ?var2 ?var2Label WHERE { ?var2 wdt:P31 wd:Q215380 . ?var2 wdt:P136 ?var1 ; rdfs:label ?var2Label . FILTER (LANG(?var2Label) = "en") . FILTER (STRSTARTS(LCASE(?var2Label), "met")) . ?var1 rdfs:label ?var1Label . FILTER (LANG(?var1Label) = "en") . } LIMIT 10

What are the English-named musical groups whose names start with "met", and what genres do they belong to?

List musical groups whose names begin with "met" (case-insensitive), along with their English labels and music genres.

SELECT ?var1Label ?var2 ?var2Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q215380> . ?var2 <http://www.wikidata.org/prop/direct/P136> ?var1 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( STRSTARTS ( ?var2Label , "met" ) ) ) . } LIMIT 10


Question: Who are all the people and entities associated with the Roman Empire or Roman emperor?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  VALUES ?target {
    wd:Q842606 wd:Q125740
  }
  VALUES ?prop {
    wdt:P361 wdt:P463 wdt:P39 wdt:P166 wdt:P106 wdt:P31 wdt:P102
  }
  ?item ?prop ?target .
}
LIMIT 1000

Which individuals or items have a relationship such as occupation, membership, or position held with the Roman Empire or the office of Roman emperor?

List all entities linked to the Roman Empire or Roman emperor through any of their roles, affiliations, or classifications.

SELECT DISTINCT ?var1 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q842606> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P463> <http://www.wikidata.org/entity/Q842606> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q842606> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P166> <http://www.wikidata.org/entity/Q842606> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q842606> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q842606> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P102> <http://www.wikidata.org/entity/Q842606> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q125740> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P463> <http://www.wikidata.org/entity/Q125740> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q125740> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P166> <http://www.wikidata.org/entity/Q125740> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q125740> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q125740> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P102> <http://www.wikidata.org/entity/Q125740> . } } LIMIT 1000


Question: Films and their producers in English

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 ?film ?producer ?producerLabel WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film wdt:P162 ?producer .
  ?producer rdfs:label ?producerLabel .
  FILTER(LANG(?producerLabel) = "en")
}
LIMIT 100

Who are the producers of films listed on Wikidata, and what are their names in English?

List 100 films along with the names of their producers in English, ensuring the producers are properly labeled.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P162> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 13600


Question: Which entity and property are linked to the statement with ID s:Q24771269-52CDF16F-A4FC-47B8-ADDC-817C601B32A9?

PREFIX s: <http://www.wikidata.org/entity/statement/>
SELECT ?entity ?property WHERE {
  ?entity ?property s:Q24771269-52CDF16F-A4FC-47B8-ADDC-817C601B32A9 .
}

What entity has a statement using the property "part of" with the statement ID s:Q24771269-52CDF16F-A4FC-47B8-ADDC-817C601B32A9?

Find the entity and property associated with the statement that ClpA/B, conserved site 1 is part of Type VI secretion system, ATPase ClpV1.

SELECT ?var1 ?var2 WHERE { ?var1 ?var2 <http://www.wikidata.org/entity/statement/Q24771269-52CDF16F-A4FC-47B8-ADDC-817C601B32A9> . }


Question: What drugs or therapies are used to treat cancer?

SELECT ?treatment ?treatmentLabel WHERE { wd:Q12078 wdt:P2176 ?treatment . ?treatment rdfs:label ?treatmentLabel . FILTER(LANG(?treatmentLabel) = "en") }

Which treatments are prescribed for cancer according to Wikidata?

List the medications and therapies that are used to treat cancer.

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


Question: Creative works and their countries of origin in English

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

What are some creative works and the countries they originate from, with English labels?

Show me a list of creative works along with their English names and the countries they come from.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P495> ?var2 . } LIMIT 1000


Question: What source and details are associated with the reference for UniProt protein ID P20930 in Wikidata?

SELECT ?property ?value WHERE {
  # This is a reference node for a UniProt protein ID claim
  ref:a05640f52b0ef26a93307a34ae1eb004823c14fb ?property ?value .
}

What properties and values does the reference for the UniProt protein ID P20930 contain?

Show me the provenance information (source, retrieval date, etc.) for the UniProt protein ID P20930 in Wikidata.

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


Question: Image of the person with SNAC ARK ID w66971xz

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

What is the image associated with Walter Reed in Wikidata?

Can you show me the Wikimedia Commons image for the historical figure identified by the SNAC ARK ID w66971xz?

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


Question: What are all the broader categories or higher-level classes that the historical title "King of France and Navarre" belongs to?

SELECT DISTINCT ?subclass WHERE { { wd:Q3439798 wdt:P279 ?subclass . } UNION { wd:Q3439798 wdt:P279/wdt:P279 ?subclass . } UNION { wd:Q3439798 wdt:P279/wdt:P279/wdt:P279 ?subclass . } FILTER(STRSTARTS(STR(?subclass), "http://www.wikidata.org/entity/Q")) } LIMIT 100

List all the subclasses (ancestors) of the King of France and Navarre in the Wikidata hierarchy.

What types of roles or positions is the King of France and Navarre a subtype of?

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


Question: List up to 21 English-labeled creative works.

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

What are some examples of creative works in Wikidata, along with their English labels?

Can you show me 21 instances of creative works (like artworks or literary pieces) and their English names?

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


Question: List 200 films starting from the 128,000th entry in Wikidata, showing their English titles.

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 ?film ?filmLabel WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film rdfs:label ?filmLabel .
  FILTER(LANG(?filmLabel) = "en")
}
ORDER BY ASC(?film)
LIMIT 200
OFFSET 128000

What are the English titles of films that come after the first 128,000 films in Wikidata, in alphabetical order?

Please provide the next 200 films (after skipping 128,000) from Wikidata, along with their English names.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } } ORDER BY ASC( ?var1 ) LIMIT 200 OFFSET 128000


Question: What are some groups of settlements in Sweden, and what are two of their constituent parts?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?var1 ?var1Label ?var2Label ?var3Label WHERE {
  ?var1 wdt:P31 wd:Q25964111 ; wdt:P17 wd:Q34 ; wdt:P527 ?var2 ; wdt:P527 ?var3 .
  FILTER(?var2 != ?var3)
  .
  FILTER(?var2 != ?var1)
  .
  FILTER(?var3 != ?var1)
  .
  ?var1 rdfs:label ?var1Label .
  ?var2 rdfs:label ?var2Label .
  ?var3 rdfs:label ?var3Label .
  FILTER(LANG(?var1Label) = "en")
  FILTER(LANG(?var2Label) = "en")
  FILTER(LANG(?var3Label) = "en")
}

List pairs of parts that make up each group of settlements located in Sweden.

Show me groups of populated places in Sweden along with two of their component settlements, using English labels.

SELECT ?var1 ?var1Label ?var2Label ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q25964111> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q34> . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P527> ?var2 . ?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> "sv,en". } }


Question: Who are the actors that have portrayed James Bond in official films or media?

SELECT DISTINCT ?actor WHERE { wd:Q2009573 p:P1441 ?workStmt . ?workStmt ps:P1441 ?work . ?work p:P161 ?castStmt . ?castStmt ps:P161 ?actor . ?castStmt pq:P453 wd:Q2009573 . } LIMIT 1000

Which actors played the character James Bond, according to Wikidata?

Can you list all the performers who have taken on the role of 007 in licensed productions?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2009573> <http://www.wikidata.org/prop/P1441> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/P1441> ?var3 . ?var3 <http://www.wikidata.org/prop/P161> ?var1 . ?var1 <http://www.wikidata.org/prop/qualifier/P453> <http://www.wikidata.org/entity/Q2009573> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 1000


Question: Films and where their stories are set

SELECT ?film ?location ?locationLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P840 ?location . ?location rdfs:label ?locationLabel . FILTER(LANG(?locationLabel) = "en") }

What are the films and the locations where their narratives take place?

List films along with the English names of the places where their plots occur.

SELECT ?var1 ?var2 ?var2Label 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/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P840> ?var2 . }


Question: List all literary works in Wikidata.

SELECT ?literaryWork WHERE { ?literaryWork wdt:P31 wd:Q7725634 .}

What are all the works that are classified as literary works in Wikidata?

Can you show me all the items in Wikidata that are instances of a literary work?

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


Question: List all literary works in Wikidata.

SELECT ?literaryWork WHERE { ?literaryWork wdt:P31 wd:Q61002 . }

What are all the items classified as literary works on Wikidata?

Show me all the entities that are instances of a literary work, such as poems, books, or writings.

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


Question: Creative works based on other works, excluding cultivars and performing arts, with their types.

SELECT ?work ?workLabel ?type ?typeLabel WHERE {  ?work wdt:P144 ?basedOn .  ?work (wdt:P31/wdt:P279*) wd:Q386724 .  MINUS {  ?work (wdt:P31/wdt:P279*) wd:Q4886 .  }  MINUS {  ?work (wdt:P31/wdt:P279*) wd:Q43099500 .  }  OPTIONAL {  ?work wdt:P31 ?type .  }  ?work rdfs:label ?workLabel .  FILTER(LANG(?workLabel) = "en")  OPTIONAL {  ?type rdfs:label ?typeLabel .  FILTER(LANG(?typeLabel) = "en")  } } LIMIT 100

What are some creative works (like books or comics) that are based on other works, and what types are they, excluding cultivars and performing arts productions?

List English-labeled creative works that are adaptations of other works, but not cultivars or performing arts productions, along with their categories.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { { SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P144> [] . MINUS { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q386724> ) ( <http://www.wikidata.org/entity/Q4886> ) ( <http://www.wikidata.org/entity/Q43099500> ) } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } } LIMIT 1000 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: French-language books and their authors with VIAF and BnF identifiers

SELECT ?book ?title ?author ?viaf ?bnf WHERE { ?book wdt:P31 wd:Q571 ; wdt:P50 ?author ; wdt:P1476 ?title . FILTER(LANG(?title) = 'fr') OPTIONAL { ?author wdt:P214 ?viaf } OPTIONAL { ?author wdt:P268 ?bnf } }

What are French-language books and who are their authors, along with their VIAF and BnF IDs?

List books written in French, their authors, and the authors' VIAF and BnF identifiers.

SELECT * WHERE { ?var1 ?var2 ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q571> . ?var1 <http://www.wikidata.org/prop/direct/P50> ?var4 . FILTER ( ( ?var3 IN ( "string1"@fre ) ) ) . OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P214> ?var5 . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P268> ?var6 . } }


Question: Image of Tina Turner with SNAC ARK ID w6rx9jhq

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

What is the image associated with Tina Turner in the Social Networks and Archival Context system?

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

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


Question: Kings of the world, their age at death, and cause of death.

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 ?king ?kingLabel ?ageAtDeath ?causeOfDeathLabel WHERE {
  ?king wdt:P39 wd:Q12097 .
  ?king wdt:P569 ?birthDate .
  ?king wdt:P570 ?deathDate .
  ?king wdt:P509 ?causeOfDeath .
  BIND(YEAR(?birthDate) AS ?birthYear)
  BIND(YEAR(?deathDate) AS ?deathYear)
  BIND(?deathYear - ?birthYear AS ?ageAtDeath)
  ?king rdfs:label ?kingLabel .
  FILTER(LANG(?kingLabel) = "en")
  OPTIONAL {
    ?causeOfDeath rdfs:label ?causeOfDeathLabel .
    FILTER(LANG(?causeOfDeathLabel) = "en")
  }
}

How old were kings when they died, and what caused their deaths?

List all kings with their age at death and the English label of their cause of death.

SELECT ?var1 ?var1Label ?var2 ?var3Label WHERE { BIND ( ( ?var4 - ?var5 ) AS ?var6 ). BIND ( ( ?var6 /"365.2425"^^<http://www.w3.org/2001/XMLSchema#decimal> ) AS ?var7 ). BIND ( FLOOR ( ?var7 ) AS ?var2 ). ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q12097> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var5 . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P509> ?var3 . OPTIONAL { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var8 . FILTER ( ( ( LANG ( ?var8 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Entities with earliest known dates (P1319), including source (main statement or reference), with English labels.

SELECT ?item ?itemLabel ?earliestDate ?sourceType WHERE { { ?item p:P1319 ?statement . ?statement ps:P1319 ?earliestDate . BIND("mainsnak" AS ?sourceType) } UNION { ?item ?p ?statement . ?statement prov:wasDerivedFrom ?ref . ?ref pr:P1319 ?earliestDate . BIND("reference" AS ?sourceType) } ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 100

What are the items that have an earliest known date, and is that date from a main statement or a reference citation, along with their English labels?

List up to 100 items with their earliest known dates and whether the date comes from a main statement or a reference, including their English names.

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


Question: Protein families with references in Wikidata

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?entity ?reference WHERE {
  ?entity p:P31 ?statement .
  ?statement ps:P31 wd:Q417841 .
  ?statement prov:wasDerivedFrom ?reference .
}

Which entities are classified as protein families, and what sources support these classifications?

Show me the protein families and their citation references from Wikidata.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/statement/Q24725600-AC9F4E45-346A-4590-A828-6A80240EAE50> ?var1 ?var2 . }


Question: What are the properties of the Simpsons episode "Homer Goes to Prep School", along with their English labels, the number of English-labeled values each has, and what those values are?

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

For the episode "Homer Goes to Prep School", list each property used, its English name, how many English-labeled values it has, and what those values are.

Can you show me the English-labeled properties and their associated English-labeled values for the Simpsons episode "Homer Goes to Prep School", including counts?

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


Question: What is the UniProt ID and Wikidata item for the human protein that exactly matches http://purl.uniprot.org/uniprot/Q99572?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?proteinId ?proteinItem WHERE {
  ?proteinItem wdt:P352 ?proteinId ; wdt:P2888 <http://purl.uniprot.org/uniprot/Q99572> ; wdt:P703 wd:Q15978631 .
}

Which human protein has the UniProt ID Q99572 and is exactly matched to the UniProt entry Q99572?

Show me the UniProt identifier and the corresponding protein item in Wikidata for the human protein with exact match to http://purl.uniprot.org/uniprot/Q99572.

SELECT ?var1 ?var2 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P352> ?var1 ; <http://www.wikidata.org/prop/direct/P129> ?var3 ; <http://www.wikidata.org/prop/direct/P2888> <http://purl.uniprot.org/uniprot/Q99572> ; <http://www.wikidata.org/prop/direct/P703> <http://www.wikidata.org/entity/Q15978631> . FILTER ( ( !( isLITERAL ( <http://purl.uniprot.org/uniprot/Q99572> ) ) ) ) . }


Question: Human proteins that interact with enzyme inhibitors and their UniProt IDs.

SELECT ?useLabel ?interactor ?uniprotId ?protein WHERE { ?protein wdt:P352 ?uniprotId ; wdt:P703 wd:Q15978631 ; p:P129 ?stmt . ?stmt ps:P129 ?interactor ; pq:P366 ?use . ?use rdfs:label ?useLabel . FILTER ( ?use = wd:Q427492 ) FILTER ( LANG(?useLabel) = "en" ) }

Which human proteins physically interact with enzyme inhibitors, and what are the interacting molecules and their UniProt identifiers?

List all enzyme inhibitors that interact with human proteins, along with the protein names and their UniProt IDs.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P352> ?var3 ; <http://www.wikidata.org/prop/direct/P129> ?var2 ; <http://www.wikidata.org/prop/direct/P2888> <http://purl.uniprot.org/uniprot/Q9ULV1> ; <http://www.wikidata.org/prop/direct/P703> <http://www.wikidata.org/entity/Q15978631> ; <http://www.wikidata.org/prop/P129> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/P129> ?var2 ; <http://www.wikidata.org/prop/qualifier/P366> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var2 <http://www.wikidata.org/prop/direct/P31> ?var6 . FILTER ( ( !( isLITERAL ( <http://purl.uniprot.org/uniprot/Q9ULV1> ) ) ) ) . FILTER ( ( ( ?var1 = <http://www.wikidata.org/entity/Q427492> ) ) ) . FILTER ( ( ( "en" = LANG ( ?var1Label ) ) ) ) . }


Question: What medical condition has the ICD-10-CM code "23.0"?

SELECT ?condition ?conditionLabel WHERE { ?condition wdt:P4229 "23.0" . ?condition rdfs:label ?conditionLabel . FILTER(LANGMATCHES(LANG(?conditionLabel), "en")) }

Which disease is classified under ICD-10-CM code 23.0?

Can you tell me the name of the disorder with ICD-10-CM code 23.0?

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


Question: Lists of TV episodes not directly linked to their series via episode list page

SELECT ?list ?series WHERE { ?list wdt:P31 wd:Q13406463 . ?list wdt:P360 ?series . ?series wdt:P31 wd:Q5398426 . MINUS { ?series wdt:P1811 ?list . } }

Which lists of TV episodes are not connected to their corresponding TV series through the "list of episodes" property?

Show me lists of TV episodes where the associated TV series does not have a direct link to the list via the "list of episodes" property.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13406463> . ?var1 <http://www.wikidata.org/prop/direct/P360> ?var2 . ?var1 <http://www.wikidata.org/prop/P360> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P360> <http://www.wikidata.org/entity/Q21191270> . ?var3 <http://www.wikidata.org/prop/qualifier/P179> ?var2 . MINUS { ?var2 <http://www.wikidata.org/prop/direct/P1811> [] . } }


Question: Is The Robots a musical ensemble?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
ASK WHERE {
  wd:Q47009466 ( wdt:P31 / wdt:P279 * ) wd:Q2088357 .
}

Is the musical group "The Robots" an instance of a subclass of musical ensemble?

Confirm whether The Robots belongs to a category that is a subclass of musical ensemble.

ASK WHERE { <http://www.wikidata.org/entity/Q47009466> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Qnull> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: What properties are related to the IMDb ID in Wikidata?

SELECT ?relatedProperty WHERE { ?relatedProperty wdt:P1659 wd:P3329 . FILTER EXISTS { ?relatedProperty rdf:type wikibase:Property } }

Which Wikidata properties serve as alternatives or synonyms to the IMDb ID property?

Can you list the Wikidata properties that are linked as related to the IMDb ID?

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


Question: Films that are instances of the category "film", starting from the 58,601st entry, with their labels.

SELECT ?film ?filmLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film rdfs:label ?filmLabel . } ORDER BY ASC(?film) LIMIT 200 OFFSET 58600

What are the labels of films, ordered by their Wikidata ID, starting from the 58,601st film?

List 200 films (starting from the 58,601st) along with their labels.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } } ORDER BY ASC( ?var1 ) LIMIT 200 OFFSET 58600


Question: Which property item is most frequently used to link entities to the IMDb ID?

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

What property in Wikidata is used to indicate that another property is modeled after the IMDb ID, and how many times is it used?

Show me the property item that defines properties which have the IMDb ID as their model, along with the count of its usage.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/P2347> . ?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: Metadata of the statement that FeS cluster insertion, C-terminal, conserved site is part of Iron-binding protein IscA, proteobacteria.

SELECT ?property ?value WHERE { s:Q24722669-A050BEDE-FF73-491C-87A6-92E7E33EA213 ?property ?value . }

What are the rank, type, and reference of the statement claiming that FeS cluster insertion, C-terminal, conserved site is part of Iron-binding protein IscA, proteobacteria?

Show me the provenance and metadata for the claim that FeS cluster insertion, C-terminal, conserved site is part of Iron-binding protein IscA, proteobacteria.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/statement/Q24722669-A050BEDE-FF73-491C-87A6-92E7E33EA213> ?var1 ?var2 . }


Question: Cities with their earliest written records, ordered by date.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?city ?earliestRecord WHERE {
  ?city wdt:P31 wd:Q515 .
  ?city wdt:P1249 ?earliestRecord .
}
ORDER BY ASC(?earliestRecord)

Which cities have the earliest recorded written mentions, and when were they first attested?

List cities along with the date of their first written record, sorted from oldest to most recent.

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


Question: Images of John Motley Morehead identified by SNAC ARK ID w6x92bbp

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

What images are associated with the person having the SNAC ARK ID w6x92bbp?

Show me the Wikimedia Commons images for the individual with SNAC ARK ID w6x92bbp.

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


Question: What is the most specific category that both France and the NFL belong to through their types?

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

What is the highest-level concept that includes both a sovereign state and a professional sports league?

What do France and the NFL have in common in terms of their classification in Wikidata’s hierarchy?

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


Question: What are the French names of Los Angeles's sister cities?

SELECT ?sisterCity ?frenchLabel WHERE { wd:Q65 wdt:P190 ?sisterCity . ?sisterCity rdfs:label ?frenchLabel . FILTER (LANG(?frenchLabel) = "fr") } LIMIT 50

Show me the French-language labels for cities twinned with Los Angeles.

List the sister cities of Los Angeles along with their French labels.

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


Question: What topics are main subjects of works about the Lassa fever outbreak in Nigeria?

SELECT DISTINCT ?topic1 ?topic1Label ?topic2 ?topic2Label WHERE { ?work wdt:P921 ?topic1 ; wdt:P921 ?topic2 . FILTER(?topic1 != ?topic2) . FILTER(?topic1 = wd:Q706845 || ?topic2 = wd:Q706845) . FILTER(?topic1 = wd:Q1033 || ?topic2 = wd:Q1033) . ?topic1 rdfs:label ?topic1Label . ?topic2 rdfs:label ?topic2Label . FILTER(LANG(?topic1Label) = "en") . FILTER(LANG(?topic2Label) = "en") . FILTER(?topic1 < ?topic2) }

Which two topics are commonly associated as main subjects in scholarly articles about Lassa fever and Nigeria?

Show me the pair of topics (one being Lassa fever and the other Nigeria) that appear together as main subjects in works related to the outbreak.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P31> */ <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q22505455> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P361> +) <http://www.wikidata.org/entity/Q22505455> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P1269> +) <http://www.wikidata.org/entity/Q22505455> . } ?var3 <http://www.wikidata.org/prop/direct/P921> ?var1 , ?var2 . FILTER ( ( ( <http://www.wikidata.org/entity/Q22505455> != ?var1 ) && ( <http://www.wikidata.org/entity/Q22505455> != ?var2 ) && ( ?var1 != ?var2 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } }


Question: What types or categories is the entity "song" classified as an instance of?

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

Show me all the classes that a song belongs to according to Wikidata.

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


Question: What is the most specific category that both American football players and countries belong to, and how many subclass steps away is each from this category?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?common(COUNT(?mid1) AS ?dist1)(COUNT(?mid2) AS ?dist2)(?dist1 + ?dist2 AS ?totalDist) WHERE {
  wd:Q19204627 wdt:P279 * ?common .
  OPTIONAL {
    wd:Q19204627 wdt:P279 + ?mid1 .
    ?mid1 wdt:P279 * ?common .
    FILTER(?mid1 != ?common)
  }
  wd:Q3624078 wdt:P279 * ?common .
  OPTIONAL {
    wd:Q3624078 wdt:P279 + ?mid2 .
    ?mid2 wdt:P279 * ?common .
    FILTER(?mid2 != ?common)
  }
  FILTER(?common != wd:Q19204627)
  FILTER(?common != wd:Q3624078)
}
GROUP BY ?common
ORDER BY ASC(?totalDist)
LIMIT 1

Find the common superclass with the shortest combined path length from the occupation of Phil Dawson and the type of Russia.

Which entity is the closest common ancestor in the subclass hierarchy between an American football player and a country?

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


Question: What is the most specific category that both the National Football League and the National Basketball Association belong to?

SELECT ?commonAncestor ?label WHERE { VALUES ?nflClass { wd:Q124059801 wd:Q15991290 } VALUES ?nbaClass { wd:Q15986354 wd:Q15991290 wd:Q18536323 } ?nflClass wdt:P279* ?commonAncestor . ?nbaClass wdt:P279* ?commonAncestor . ?commonAncestor rdfs:label ?label . FILTER(LANG(?label) = "en") FILTER(?commonAncestor = wd:Q15991290) }

What do the NFL and NBA have in common as a shared classification in Wikidata?

Which superclass includes both the NFL and NBA as instances?

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


Question: What are some German-language works whose titles start with "Der St"?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?label WHERE {
  ?item rdfs:label ?label .
  FILTER ( LANG( ?label ) = 'de' ) .
  FILTER ( STRSTARTS( ?label , "Der St" ) )
}
LIMIT 10

List items in Wikidata with German labels beginning with "Der St".

Show me publications or works in German that have names starting with "Der St".

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q8242> . FILTER ( ( STRSTARTS ( ?var2 , "Der St" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } } LIMIT 10


Question: What InterPro domain does the UniProt protein A0A069ZQZ7 belong to, and what is its English name?

SELECT DISTINCT ?domain ?domainLabel ?interproId WHERE { ?protein wdt:P352 "A0A069ZQZ7" ; wdt:P361 ?domain . ?domain wdt:P2926 ?interproId ; rdfs:label ?domainLabel . FILTER(LANG(?domainLabel) = "en") }

Which protein domain family, identified by an InterPro ID, is the protein with UniProt ID A0A069ZQZ7 a part of?

Show me the InterPro ID and English label of the domain that includes the protein A0A069ZQZ7.

SELECT DISTINCT ?var1 ?var2 ?var3Label ?var4 ?var5Label ?var6 WHERE { ?var1Label <http://www.wikidata.org/prop/direct/P352> "A0A069ZQZ7"; <http://www.wikidata.org/prop/P527> ?var7 . ?var7 <http://www.wikidata.org/prop/statement/P527> ?var2 . ?var7 ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P248> ) ?var5 ; ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P854> ) ?var6 . ?var2 <http://www.wikidata.org/prop/direct/P2926> ?var4 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . }


Question: German Wikipedia articles on diseases with ICD-10 and UMLS identifiers

SELECT
  ?label
  ?wikipediaPage
  (GROUP_CONCAT(DISTINCT ?icd10Code; separator=", ") AS ?icd10Codes)
  (GROUP_CONCAT(DISTINCT ?umlsCui; separator=", ") AS ?umlsCuis)
WHERE {
  BIND('disease' AS ?label)
  ?disease (wdt:P31/wdt:P279*) wd:Q12136 .
  ?wikipediaPage schema:about ?disease ;
                 schema:inLanguage "de" ;
                 schema:isPartOf <https://de.wikipedia.org/> .
  OPTIONAL { ?disease wdt:P494 ?icd10Code . }
  OPTIONAL { ?disease wdt:P2892 ?umlsCui . }
}
GROUP BY ?label ?wikipediaPage
LIMIT 10000

What are the German Wikipedia pages for diseases, and what ICD-10 codes and UMLS CUIs are associated with them?

List all diseases on the German Wikipedia along with their ICD-10 codes and UMLS CUIs.

SELECT( "disease" AS ?var1 )( ?var2 AS ?var3 )( GROUP_CONCAT ( DISTINCT ?var4 ) AS ?var5 )( GROUP_CONCAT ( DISTINCT ?var6 ) AS ?var7 )( GROUP_CONCAT ( DISTINCT ?var8 ) AS ?var9 ) WHERE { ?var4 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q12136> . ?var2 <http://schema.org/about> ?var4 . ?var2 <http://schema.org/inLanguage> "de". ?var2 <http://schema.org/isPartOf> <https://de.wikipedia.org/> . OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P494> ?var6 . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P2892> ?var8 . } } GROUP BY ?var2 LIMIT 10000


Question: What are the main branches of the celiac artery, and what smaller arteries branch off from each of them?

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 ?directBranch ?directBranchLabel ?subBranch WHERE {
  wd:Q519368 wdt:P3262 ?directBranch .
  OPTIONAL {
    ?directBranch wdt:P3262 ?subBranch .
  }
  ?directBranch rdfs:label ?directBranchLabel .
  FILTER ( LANG( ?directBranchLabel ) = "en" )
}

List the arteries that directly branch from the celiac artery, along with their own branches in English.

Which arteries are supplied by the celiac trunk, and what are their secondary branches?

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


Question: What chemical substance has the UNII code 63G354M39Z?

SELECT ?substance WHERE { ?substance wdt:P652 "63G354M39Z" . }

Which substance is identified by the FDA UNII identifier 63G354M39Z?

Tell me the name of the chemical compound with UNII code 63G354M39Z.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P652> "63G354M39Z". }