Question: What are the genres and formation year of Coldplay?

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 ?band ?bandLabel ?genre ?genreLabel ?inceptionDate WHERE {
  VALUES(?band) {(wd:Q45188)
  }
  OPTIONAL {
    ?band wdt:P136 ?genre .
  }
  OPTIONAL {
    ?band wdt:P571 ?inceptionDate .
  }
  OPTIONAL {
    ?band rdfs:label ?bandLabel .
    FILTER(LANG(?bandLabel) = "en")
  }
  OPTIONAL {
    ?genre rdfs:label ?genreLabel .
    FILTER(LANG(?genreLabel) = "en")
  }
}

What musical genres is Coldplay associated with, and when was the band formed?

Please list Coldplay’s musical genres and the year it was founded.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q45188> ) } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P136> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P571> ?var3 . } } LIMIT 1


Question: Musicians and singer-songwriters from the UK or US born after 1960 who have died, grouped by gender.

SELECT ?person ?personLabel ?genderLabel ?countryLabel ?birthDate ?deathDate ?ageApprox ?occupationLabel WHERE { ?person wdt:P31 wd:Q5 ; wdt:P106 ?occupation ; wdt:P27 ?country ; wdt:P569 ?birthDate ; wdt:P570 ?deathDate ; wdt:P21 ?gender . FILTER ( ?occupation IN (wd:Q639669, wd:Q488205) ) FILTER ( ?country IN (wd:Q145, wd:Q30) ) FILTER ( YEAR(?birthDate) > 1960 ) FILTER ( ?gender IN (wd:Q6581097, wd:Q6581072) ) BIND( YEAR(?deathDate) - YEAR(?birthDate) AS ?ageApprox ) ?person rdfs:label ?personLabel . ?occupation rdfs:label ?occupationLabel . ?country rdfs:label ?countryLabel . ?gender rdfs:label ?genderLabel . FILTER ( lang(?personLabel) = "en" ) FILTER ( lang(?occupationLabel) = "en" ) FILTER ( lang(?countryLabel) = "en" ) FILTER ( lang(?genderLabel) = "en" ) }

Who are the male and female musicians and singer-songwriters from the United Kingdom or the United States who were born after 1960 and have passed away, and how old were they when they died?

List the names, genders, countries, birth and death dates, and occupations of all human musicians and singer-songwriters from the UK or US who were born after 1960 and have died, along with their approximate age at death.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11Label WHERE { BIND ( ( ( ?var5 - ?var4 ) /"365.25"^^<http://www.w3.org/2001/XMLSchema#decimal> ) AS ?var8 ). BIND ( YEAR ( ?var4 ) AS ?var6 ). BIND ( YEAR ( ?var5 ) AS ?var7 ). BIND ( CONCAT ( STR ( ?var6 ) , "string1" ) AS ?var12 ). BIND ( ( ( <http://www.w3.org/2001/XMLSchema#dateTime> ( ?var4 ) - <http://www.w3.org/2001/XMLSchema#dateTime> ( ?var12 ) ) +"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var9 ). BIND ( CONCAT ( STR ( ?var7 ) , "string1" ) AS ?var13 ). BIND ( ( ( <http://www.w3.org/2001/XMLSchema#dateTime> ( ?var5 ) - <http://www.w3.org/2001/XMLSchema#dateTime> ( ?var13 ) ) +"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var10 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> ?var11 . FILTER ( ( ( ?var11 = <http://www.wikidata.org/entity/Q639669> ) || ( ?var11 = <http://www.wikidata.org/entity/Q488205> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P27> ?var3 . FILTER ( ( ( ?var3 = <http://www.wikidata.org/entity/Q145> ) || ( ?var3 = <http://www.wikidata.org/entity/Q30> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var4 . FILTER ( ( ( YEAR ( ?var4 ) > "1960"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var5 . ?var1 <http://www.wikidata.org/prop/direct/P21> ?var2 . FILTER ( ( ( ?var2 = <http://www.wikidata.org/entity/Q6581097> ) || ( ?var2 = <http://www.wikidata.org/entity/Q6581072> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What are the most popular fictional characters across Wikipedia, listed by the number of language versions they have?

SELECT DISTINCT ?character ?label ?imdbId ?sitelinkCount WHERE { ?character wdt:P31/wdt:P279* wd:Q95074 . OPTIONAL { ?character wikibase:sitelinks ?sitelinkCount . } ?character rdfs:label ?label . OPTIONAL { ?character wdt:P345 ?imdbId . } FILTER (LANG(?label) = "en") } GROUP BY ?character ?label ?imdbId ?sitelinkCount ORDER BY DESC(?sitelinkCount)

List all fictional characters from books, movies, TV shows, and comics with their English names and IMDb IDs.

Which fictional characters have English Wikipedia pages and possibly IMDb entries?

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q15773317> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q15773347> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3658341> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q1114461> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q208255> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q15731071> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q4359230> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q1153462> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q4258797> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q15710942> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q15912738> . } OPTIONAL { ?var1 <http://wikiba.se/ontology#sitelinks> ?var4 . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . } FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } GROUP BY ?var1 ?var2 ?var3 ?var4 ORDER BY DESC( ?var4 )


Question: Articles citing "A Rapid Method for the Differential Staining of Blood Films and Malarial Parasites"

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?citingArticle WHERE {
  ?citingArticle wdt:P2860 wd:Q24683134 .
}

Which scholarly articles reference the paper on differential staining of blood films and malarial parasites?

List all academic works that cite the study on staining blood films and malarial parasites.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2860> <http://www.wikidata.org/entity/Q24683134> . } LIMIT 10000


Question: List of people and bands with Discogs artist IDs

SELECT ?entity ?discogsId WHERE { ?entity wdt:P1953 ?discogsId . } LIMIT 100

Which artists have a Discogs ID, and what are those IDs?

Show me the Discogs IDs for all artists in Wikidata.

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


Question: What are the English names of all musical performances listed in Wikidata?

SELECT ?item ?itemLabel WHERE { ?item (wdt:P31/wdt:P279*) wd:Q6942562 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en")}

Can you list all entities classified as musical performances or their subclasses in English?

Show me the English labels of everything in Wikidata that is a type of musical performance.

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


Question: Entities different from fictional characters

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item WHERE {
  ?statement ps:P1889 wd:Q95074 .
  ?item p:P1889 ?statement .
}
LIMIT 101

What entities are stated to be different from a fictional character in Wikidata?

List all items that are marked as different from a fictional character.

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


Question: Anime with MyAnimeList ID 1752

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?anime WHERE {
  ?anime wdt:P4086 "1752" .
}

Tell me the anime that corresponds to MyAnimeList ID 1752.

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


Question: What are the real-world entities (like countries or concepts) that have fictional counterparts, and what are their Russian labels and descriptions?

SELECT ?realEntity ?label ?description WHERE { ?fictionalEntity wdt:P1074 ?realEntity . ?realEntity rdfs:label ?label . ?realEntity schema:description ?description . FILTER(LANG(?label) = "ru") FILTER(LANG(?description) = "ru") } LIMIT 100

Show me Russian-language labels and descriptions of real-world entities that are analogs of fictional or mythical ones.

Which real-world things (e.g., places, concepts) are referenced by fictional versions in Russian, and what do they mean?

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


Question: What movie has the IMDb ID tt6698964?

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

Which film on Wikidata is associated with the IMDb identifier tt6698964?

Show me the Wikidata entry for the movie with IMDb ID tt6698964.

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


Question: What is the most specific common superclass of All Nippon Airways and Algeria in the Wikidata ontology?

SELECT ?common
WHERE {
  wd:Q204284 wdt:P31 ?type1 .
  wd:Q262 wdt:P31 ?type2 .
  ?type1 wdt:P279* ?common .
  ?type2 wdt:P279* ?common .
  FILTER(?common != ?type1 && ?common != ?type2)
}
ORDER BY ASC(?common)
LIMIT 1

Which entity is a shared ancestor in the subclass hierarchy between All Nippon Airways and Algeria?

Find the concept that both All Nippon Airways and Algeria are instances of, through their type 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/Q204284> ; <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/Q262> ; <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: Affiliations and employers of Matthias C. Rillig with start dates, images, and academic degrees.

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image ?organization ?organizationLabel ?start ?end ?degreeLabel WHERE {
  {
    wd:Q1453248 p:P1416 ?statement .
    ?statement ps:P1416 ?organization .
  } UNION {
    wd:Q1453248 p:P108 ?statement .
    ?statement ps:P108 ?organization .
  }
  ?organization rdfs:label ?organizationLabel .
  FILTER(LANG(?organizationLabel) = "en")
  OPTIONAL {
    ?organization wdt:P18 ?image .
  }
  OPTIONAL {
    ?statement pq:P580 ?start .
  }
  OPTIONAL {
    ?statement pq:P582 ?end .
  }
  OPTIONAL {
    ?statement pq:P512 ?degree .
    ?degree rdfs:label ?degreeLabel .
    FILTER(LANG(?degreeLabel) = "en")
  }
}

Where has Matthias C. Rillig worked or been affiliated with, when did he start, and is there an image of the institution?

Show me the institutions Matthias C. Rillig is associated with, including when he joined, whether he left, and any related images or academic degrees.

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


Question: What are the different language labels for the brain stem?

SELECT ?label (LANG(?label) AS ?language) WHERE { wd:Q182228 rdfs:label ?label . } LIMIT 10000

In which languages is the term "brain stem" labeled in Wikidata, and what are the corresponding language codes?

Show me all the translated names of the brain stem along with their language tags.

SELECT ?var1 ?var1Label ?var2 ( LANG ( ?var2 ) AS ?var3 ) WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } <http://www.wikidata.org/entity/Q182228> <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . } LIMIT 10000


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

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

Which movie on Wikidata has the IMDb identifier tt6129730?

Tell me the Wikidata entity for the film identified as tt6129730 on IMDb.

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


Question: What are the episodes of Lego Nexo Knights, season 2?

SELECT ?part ?partLabel WHERE { wd:Q47037268 wdt:P527 ?part . ?part rdfs:label ?partLabel . FILTER(LANG(?partLabel) = "en") } LIMIT 100

List the English titles of all episodes that are part of Lego Nexo Knights, season 2.

Which episodes make up the second season of Lego Nexo Knights?

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


Question: Multilingual descriptions of the brain stem

SELECT ?description (LANG(?description) AS ?language) WHERE { wd:Q182228 schema:description ?description .}

What are the descriptions of the brain stem in different languages?

Show me the brain stem’s definitions in various languages along with their language codes.

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


Question: Musicians and their dates of birth

SELECT ?musician ?birthDate WHERE { ?musician wdt:P31 wd:Q639669 . ?musician wdt:P569 ?birthDate . }

Who are the musicians and when were they born?

List all musicians along with their birth dates.

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


Question: Fictional characters and entities claimed to be the same as them

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?character ?same WHERE {
  ?character wdt:P31 wd:Q95074 .
  ?same p:P460 ?statement .
  ?statement ps:P460 ?character .
}
LIMIT 100

Which real or fictional entities are said to be the same as fictional characters in Wikidata?

List all fictional characters and the entities that are considered identical to them, according to Wikidata.

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


Question: What is the closest common ancestor in the subclass hierarchy between Islamism and investment bank?

SELECT ?ancestor ?ancestorLabel
WHERE {
  wd:Q189746 wdt:P279* ?ancestor .
  wd:Q319845 wdt:P279* ?ancestor .
  ?ancestor rdfs:label ?ancestorLabel .
  FILTER(LANG(?ancestorLabel) = "en")
}
ORDER BY ?ancestorLabel

Which concept do Islamism and investment bank share as a common parent in Wikidata's ontology?

What is the most specific category that includes both Islamism and investment bank?

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/Q189746> ; <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/Q193326> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: Who are all the fictional human characters that appear in The Simpsons?

SELECT ?character WHERE { ?character wdt:P1441 wd:Q886 . ?character wdt:P31 wd:Q15632617 . }

List all human-like fictional characters from The Simpsons TV show.

Which characters in The Simpsons are classified as fictional humans?

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


Question: What are some male humans and fictional characters 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 ?var1 ?var1Label WHERE {
  VALUES ?instanceOf {
    wd:Q5 wd:Q15632617
  }
  ?var1 wdt:P21 wd:Q6581097 .
  ?var1 wdt:P31 ?instanceOf .
  ?var1 rdfs:label ?var1Label .
  FILTER ( LANG( ?var1Label ) = "en" )
}
LIMIT 20

Can you list some male individuals and fictional characters along with their names?

Who are some fictional male characters and real men, as listed in Wikidata with their English names?

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


Question: Find television series with "Star Trek" in the title, along with their IMDb IDs and publication years.

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 ?series(YEAR(?publicationDate) AS ?year) ?label ?imdbId ?publicationDate WHERE {
  ?series wdt:P31 wd:Q5398426 .
  ?series wdt:P345 ?imdbId .
  ?series rdfs:label ?label .
  OPTIONAL {
    ?series wdt:P577 ?publicationDate .
  }
  FILTER(CONTAINS(LCASE(?label) , "star trek"))
}
ORDER BY ASC(?imdbId)
LIMIT 10

What are the television series containing "Star Trek" in their names, and what are their IMDb IDs and release years?

List all TV series whose titles include "Star Trek", showing their IMDb identifiers and the year they were first released, sorted by IMDb ID.

SELECT ?var1 ( YEAR ( ?var2 ) AS ?var3 ) ?var4 ?var5 ?var6 ?var2 ?var7 ?var8 ?var9Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5398426> . ?var1 <http://www.wikidata.org/prop/direct/P345> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var2 . } FILTER ( ( CONTAINS ( ?var4 , "string1" ) ) ) . } ORDER BY ASC( ?var5 ) OFFSET 0 LIMIT 250


Question: What are the short films that have won the Annecy Cristal for a Short Film award?

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

Can you list the English titles of all films (including animated and documentary shorts) that received the Annecy Cristal for a Short Film?

Which animated or cinematic works have been honored with the Annecy Cristal for a Short Film at the Annecy International Animated Film Festival?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P166> <http://www.wikidata.org/entity/Q30327090> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja". } } LIMIT 50


Question: What are the subclasses of public space?

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

What types of places are considered subclasses of public space?

List all types of public spaces that are more specific than public space itself.

SELECT ?var1 ?var2 WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q294440> ) } ?var1 <http://www.wikidata.org/prop/direct/P279> * ?var3 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P279> ?var2 . } }


Question: Recipients of the Academy Award for Best Animated Short Film with images

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

Who have won the Academy Award for Best Animated Short Film, and what are their images?

List the names and images of all recipients of the Academy Award for Best Animated Short Film, in English.

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


Question: List Academy Award for Best Animated Short Film winners with their country of origin and English labels.

SELECT ?film ?filmLabel ?countryLabel ?image WHERE { ?film wdt:P166 wd:Q917808 . ?film wdt:P495 ?country . OPTIONAL { ?film wdt:P18 ?image . } ?film rdfs:label ?filmLabel . ?country rdfs:label ?countryLabel . FILTER(LANG(?filmLabel) = "en") FILTER(LANG(?countryLabel) = "en") } LIMIT 100

Which animated short films have won the Academy Award for Best Animated Short Film, and in which countries were they produced?

Show me the names and countries of origin of films that won the Academy Award for Best Animated Short Film, along with any available images of them.

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


Question: What are the fictional universes with the highest number of characters, and what percentage of those characters are female or trans women?

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 ?universe ?universeLabel ?percentage ?femaleTransCount ?totalCount WHERE {
  {
    SELECT ?universe(SUM(?isFemaleOrTrans) AS ?femaleTransCount)(COUNT(*) AS ?totalCount)(SAMPLE(?label) AS ?universeLabel) WHERE {
      ?character wdt:P1080 ?universe ; wdt:P21 ?gender .
      ?universe rdfs:label ?label .
      FILTER(LANG(?label) = "en")
      BIND(IF(?gender IN(wd:Q6581072 , wd:Q1052281) , 1 , 0) AS ?isFemaleOrTrans)
    }
    GROUP BY ?universe
  }
  BIND(ROUND((?femaleTransCount * 100.0 / ?totalCount)) AS ?percentageInt)
  BIND(CONCAT(STR(?percentageInt) , "%") AS ?percentage)
}
ORDER BY DESC(?totalCount)
LIMIT 10

Which fictional universes have the most characters with specified gender, and what proportion of them are female or trans?

Show the top fictional universes by character count and the percentage of female or trans characters among those with known gender.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { { SELECT ?var1 ( SUM ( ?var5 ) AS ?var3 )( COUNT (* ) AS ?var4 ) WHERE { BIND ( IF ( ?var6 IN ( <http://www.wikidata.org/entity/Q6581072> , <http://www.wikidata.org/entity/Q1052281> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var5 ). ?var7 <http://www.wikidata.org/prop/direct/P1080> ?var1 ; <http://www.wikidata.org/prop/direct/P21> ?var6 . } GROUP BY ?var1 } BIND ( ( ?var3 / ?var4 ) AS ?var8 ). BIND ( ( "100"^^<http://www.w3.org/2001/XMLSchema#integer> * ?var8 ) AS ?var9 ). BIND ( CONCAT ( SUBSTR ( STR ( ?var9 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"5"^^<http://www.w3.org/2001/XMLSchema#integer> ) , "%" ) AS ?var2 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it,en". } } ORDER BY DESC( ?var4 )


Question: Fictional universes with most female or trans women characters

SELECT ?universe ?universeLabel WHERE { { SELECT ?universe (COUNT(*) AS ?count) WHERE { ?character wdt:P1080 ?universe ; wdt:P21 ?gender . FILTER( ?gender IN ( wd:Q6581072, wd:Q1052281 ) ) } GROUP BY ?universe ORDER BY DESC(?count) } ?universe rdfs:label ?universeLabel . FILTER(LANG(?universeLabel) = "en") }

Which fictional universes have the highest number of female or trans women characters?

List the fictional universes ranked by how many female or trans women characters appear in them, in descending order.

SELECT ?var1 ?var1Label ( CONCAT ( SUBSTR ( STR ( ( "100"^^<http://www.w3.org/2001/XMLSchema#integer> * ?var2 ) ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"5"^^<http://www.w3.org/2001/XMLSchema#integer> ) , "%" ) AS ?var3 ) WHERE { { SELECT ?var1 ( SUM ( ?var4 ) AS ?var5 )( COUNT (* ) AS ?var6 ) WHERE { BIND ( IF ( ?var7 IN ( <http://www.wikidata.org/entity/Q6581072> , <http://www.wikidata.org/entity/Q1052281> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var4 ). ?var8 <http://www.wikidata.org/prop/direct/P1080> ?var1 ; <http://www.wikidata.org/prop/direct/P21> ?var7 . } GROUP BY ?var1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY DESC( ?var6 )


Question: What are the genre, formation location, and MusicBrainz ID of the American heavy metal band S.A. Slayer?

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 ?image ?website ?locationLabel ?facebook ?genreLabel ?musicbrainzId WHERE {
  wd:Q7387130 wdt:P31 wd:Q215380 .
  OPTIONAL {
    wd:Q7387130 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q7387130 wdt:P856 ?website .
  }
  OPTIONAL {
    wd:Q7387130 wdt:P740 ?location .
    ?location rdfs:label ?locationLabel .
    FILTER ( LANG( ?locationLabel ) = "en" )
  }
  OPTIONAL {
    wd:Q7387130 wdt:P2013 ?facebook .
  }
  OPTIONAL {
    wd:Q7387130 wdt:P136 ?genre .
    ?genre rdfs:label ?genreLabel .
    FILTER ( LANG( ?genreLabel ) = "en" )
  }
  OPTIONAL {
    wd:Q7387130 wdt:P434 ?musicbrainzId .
  }
  wd:Q7387130 rdfs:label ?groupLabel .
  FILTER ( LANG( ?groupLabel ) = "en" )
}

Can you tell me the English label, formation location, genre, and MusicBrainz artist ID for the musical group S.A. Slayer?

Please provide the official details of S.A. Slayer, including where they were formed, their music genre, and their MusicBrainz ID, along with their English name.

SELECT ?var1Label ?var2 ?var3 ?var4Label ?var5 ?var6Label ?var7 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> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P740> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2013> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P136> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P434> ?var7 . } FILTER ( ( ( ?var1 = <http://www.wikidata.org/entity/Q7387130> ) ) ) . } LIMIT 1


Question: Who are the human composers in Wikidata, and what are their notable works?

SELECT ?composer ?notableWork WHERE { ?composer wdt:P31 wd:Q5 . ?composer wdt:P31 wd:Q36834 . OPTIONAL { ?composer wdt:P800 ?notableWork . } } LIMIT 20

Can you list humans who are composers and their notable compositions?

Which people are both human and composers, and what works are they known for?

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


Question: What are the categories that American Airlines and Boko Haram belong to in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?airlineType ?terroristType WHERE {
  wd:Q32396 wdt:P31 ?airlineType .
  wd:Q212372 wdt:P31 ?terroristType .
}

Can you list all the types associated with American Airlines and Boko Haram to see if they share any classification?

Are American Airlines and Boko Haram classified under any common categories in Wikidata?

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/Q32396> ; <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/Q212372> ; <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: Indian films and their directors

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?film ?filmLabel ?director ?directorLabel WHERE {
  ?film wdt:P31 wd:Q11424 ; wdt:P495 wd:Q668 .
  OPTIONAL {
    ?film wdt:P57 ?director .
  }
  ?film rdfs:label ?filmLabel .
  FILTER ( LANG( ?filmLabel ) = "en" ) OPTIONAL {
    ?director rdfs:label ?directorLabel .
    FILTER ( LANG( ?directorLabel ) = "en" )
  }
}
LIMIT 100

Which films from India have directors listed, and who directed them?

List Indian films along with their English titles and director names, if available.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . OPTIONAL { } ?var1 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q668> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P57> ?var2 . } }


Question: What is the English Wikipedia page for the film with IMDb ID tt6522634?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT ?film ?wikipedia_page ?filmLabel WHERE {
  ?film wdt:P345 "tt6522634" .
  ?wikipedia_page schema:about ?film ; schema:inLanguage ?lang .
  FILTER(?lang = "en" || ?lang = "de")
  .
  ?film rdfs:label ?filmLabel .
  FILTER(LANG(?filmLabel) = "en")
}

Which English-language Wikipedia article is about the movie identified by the IMDb ID tt6522634?

Show me the title and English Wikipedia link for the movie with IMDb ID tt6522634.

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


Question: What is the most specific category that both the English language and Boko Haram 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 DISTINCT ?commonClass ?label WHERE {
  wd:Q1860 wdt:P279 * ?commonClass .
  wd:Q212372 wdt:P31 / wdt:P279 * ?commonClass .
  ?commonClass rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}
ORDER BY ?label
LIMIT 1

Find the highest-level common class shared by English and Boko Haram in the Wikidata taxonomy.

What abstract concept do English and Boko Haram have in common in terms of their classification?

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/Q1860> ; <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/Q212372> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: Who are people with a birth name who play a musical instrument, and what are their birth names and instruments?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?birthName ?instrument WHERE {
  ?person wdt:P1477 ?birthName .
  ?person wdt:P1303 ?instrument .
}
LIMIT 10

List people with their birth names and the musical instruments they play.

Show me up to 10 people who have a recorded birth name and play at least one musical instrument, along with their birth names and instruments.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1477> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P1303> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P1303> ?var3 . } LIMIT 10


Question: What RNA molecule in Escherichia coli K-12 substr. MG1655 has Entrez Gene ID 2847751?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?rna WHERE {
  ?rna wdt:P703 wd:Q21102938 .
  ?rna wdt:P31 wd:Q11053 .
  ?rna wdt:P351 "2847751" .
}

Which RNA is encoded by the gene with Entrez ID 2847751 in the E. coli K-12 MG1655 strain?

Find the RNA found in E. coli K-12 MG1655 that corresponds to Entrez Gene ID 2847751.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P703> <http://www.wikidata.org/entity/Q21102938> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11053> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11053> . } ?var1 <http://www.wikidata.org/prop/direct/P351> "2847751". ?var1 <http://www.wikidata.org/prop/direct/P351> "2847751". }


Question: What is the English Wikipedia page for the TV show with IMDb ID tt0351885?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?wikipedia_page WHERE {
  ?item wdt:P345 "tt0351885" .
  ?wikipedia_page schema:about ?item ; schema:inLanguage ?lang .
  FILTER ( ?lang = "en" || ?lang = "de" )
}

Which Wikipedia article in English or German is about the movie or show identified by IMDb ID tt0351885?

Please show me the Wikipedia link for the item with IMDb ID tt0351885, if it exists in English or German.

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


Question: Most general category shared by Pennsylvania and Boko Haram

SELECT ?commonAncestor WHERE { wd:Q1400 wdt:P31 ?cls1 . wd:Q212372 wdt:P31 ?cls2 . ?cls1 wdt:P279* ?commonAncestor . ?cls2 wdt:P279* ?commonAncestor . } ORDER BY ASC(STRLEN(STR(?commonAncestor))) LIMIT 1

What is the highest-level common classification that includes both Pennsylvania and Boko Haram?

Find the most abstract entity type that both Pennsylvania and Boko Haram 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/Q1400> ; <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/Q212372> ; <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: British musical groups influenced by The Beatles

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 ?band ?bandLabel WHERE {
  ?band wdt:P31 wd:Q215380 .
  ?band wdt:P495 wd:Q145 .
  ?band wdt:P737 wd:Q1299 .
  ?band rdfs:label ?bandLabel .
  FILTER(LANG(?bandLabel) = "en")
}
LIMIT 100

Which British bands were influenced by The Beatles?

List English-language names of British musical groups that take inspiration from The Beatles.

SELECT ?var1 ?var1Label WHERE { ?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/Q145> . ?var1 <http://www.wikidata.org/prop/direct/P737> <http://www.wikidata.org/entity/Q1299> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: What nerves innervate the liver?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?nerve WHERE {
  wd:Q9368 wdt:P3189 ?nerve .
}

Which nerves are connected to the liver through innervation?

Can you list the nerves that provide innervation to the liver?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q9368> <http://www.wikidata.org/entity/P3189> ?var1 . } LIMIT 10


Question: PubMed ID for Assembly and budding of influenza virus

SELECT ?pubmedId WHERE { wd:Q27863797 wdt:P698 ?pubmedId .}

What is the PubMed ID of the publication on assembly and budding of influenza virus?

Can you find the PubMed ID associated with the scientific article on assembly and budding of influenza virus?

SELECT ?var1 ?var2 WHERE { ?var1 ?var2 <http://www.wikidata.org/entity/statement/Q27863797-C9B89D39-1DFA-48AC-A423-6B5D9299A43D> . }


Question: Who has the Twitter username "MaximeCochard_"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterUsername WHERE {
  ?item wdt:P2002 ?twitterUsername .
  VALUES ?twitterUsername {
    "MaximeCochard_"
  }
}

What is the Wikidata item for the Twitter account MaximeCochard_?

Which person is associated with the Twitter handle MaximeCochard_?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "MCochard_" ) } } ORDER BY ASC( ?var3 )


Question: Singer-songwriters with MusicBrainz ID 20244d07-534f-4eff-b4d4-930878889970

Who is the singer-songwriter with the MusicBrainz artist ID 20244d07-534f-4eff-b4d4-930878889970?

Find the person who is a singer-songwriter and has the MusicBrainz ID 20244d07-534f-4eff-b4d4-930878889970.

SELECT ?var1 WHERE { { SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P434> "string1". FILTER ( ( ?var2 IN ( <http://www.wikidata.org/entity/Q488205> , <http://www.wikidata.org/entity/Q177220> ) ) ) . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 20


Question: What Gene Ontology terms (molecular function, biological process, or cellular component) are associated with the UniProt protein O84068, and what are their sources?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?goTermLabel ?goId ?goTerm ?goCategory ?sourceLabel WHERE {
  ?protein wdt:P352 "O84068" .
  {
    ?protein p:P680 ?goStatement .
    ?goStatement ps:P680 ?goTerm .
  } UNION {
    ?protein p:P681 ?goStatement .
    ?goStatement ps:P681 ?goTerm .
  } UNION {
    ?protein p:P682 ?goStatement .
    ?goStatement ps:P682 ?goTerm .
  }
  ?goTerm wdt:P686 ?goId ; wdt:P279 * ?goCategory .
  FILTER(?goCategory IN(wd:Q2996394 , wd:Q5058355 , wd:Q14860489))
  ?goStatement(prov:wasDerivedFrom / pr:P248) ?source .
  OPTIONAL {
    ?goTerm rdfs:label ?goTermLabel .
    FILTER(LANG(?goTermLabel) = "en")
  }
  OPTIONAL {
    ?source rdfs:label ?sourceLabel .
    FILTER(LANG(?sourceLabel) = "en")
  }
}
LIMIT 100

For the UniProt entry O84068, which GO annotations (like nucleotide binding or membrane localization) does it have, what category do they belong to (molecular function, biological process, or cellular component), and where are these annotations cited from?

List all Gene Ontology terms linked to the protein with UniProt ID O84068, including their GO IDs, whether they describe molecular functions, biological processes, or cellular components, and the source database that provided the annotation.

SELECT DISTINCT ?var1Label ?var2 ?var1 ?var3 ?var4Label ?var5Label ?var6Label ?var7 WHERE { ?var8 <http://www.wikidata.org/prop/direct/P352> "O84068". { ?var8 <http://www.wikidata.org/prop/P680> ?var9 . } UNION { ?var8 <http://www.wikidata.org/prop/P681> ?var9 . } UNION { ?var8 <http://www.wikidata.org/prop/P682> ?var9 . } ?var9 <http://www.wikidata.org/prop/qualifier/P459> ?var4 . ?var9 ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P248> ) ?var5 . ?var9 ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P813> ) ?var6 . OPTIONAL { ?var9 ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P698> ) ?var10 . } { ?var9 <http://www.wikidata.org/prop/statement/P680> ?var1 . } UNION { ?var9 <http://www.wikidata.org/prop/statement/P681> ?var1 . } UNION { ?var9 <http://www.wikidata.org/prop/statement/P682> ?var1 . } ?var1 <http://www.wikidata.org/prop/direct/P279> * ?var3 ; <http://www.wikidata.org/prop/direct/P686> ?var2 . FILTER ( ( ( ?var3 = <http://www.wikidata.org/entity/Q2996394> ) || ( ?var3 = <http://www.wikidata.org/entity/Q5058355> ) || ( ?var3 = <http://www.wikidata.org/entity/Q14860489> ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P591> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What infrastructure and sites in Germany were established between 1875 and 1916, and what types are they?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item ?itemLabel ?typeLabel ?coord ?startTime ?type WHERE {
  ?item wdt:P580 ?startTime .
  ?item wdt:P17 wd:Q183 .
  ?item wdt:P31 ?type .
  OPTIONAL {
    ?item wdt:P625 ?coord .
  }
  ?item rdfs:label ?itemLabel .
  ?type rdfs:label ?typeLabel .
  FILTER ( LANG( ?itemLabel ) = "en" ) FILTER ( LANG( ?typeLabel ) = "en" ) FILTER ( ?startTime >= "1875-01-01T00:00:00Z" ^^ xsd:dateTime ) FILTER ( ?startTime < "1917-01-01T00:00:00Z" ^^ xsd:dateTime )
}
ORDER BY ASC ( ?typeLabel )

Which buildings, facilities, or events in Germany started operating between 1875 and 1916, and what are their categories?

List all German locations or structures with known start dates from 1875 to 1916, including their types and coordinates if available, sorted by type name.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 ?var2 WHERE { ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q18636219> . ?var1 <http://www.wikidata.org/prop/direct/P580> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . } FILTER ( ( ( ?var4 >= "1875-00-00T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( ( ?var4 <= "1916-00-00T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY ASC( ?var2Label )


Question: Gene in E. coli K-12 MG1655 with locus tag b2696 or Entrez ID 947176 and alias csrA.

PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?gene WHERE {
  ?gene wdt:P703 wd:Q21102938 ; wdt:P31 wd:Q7187 ; ( wdt:P2393 | wdt:P351 ) ?id .
  FILTER ( ?id = "b2696" || ?id = "947176" ) .
  ?gene skos:altLabel ?altLabel .
  FILTER ( LANG( ?altLabel ) = "en" ) .
  FILTER ( STR( ?altLabel ) = "csrA" || STR( ?altLabel ) = "b2696" )
}

What gene in Escherichia coli str. K-12 substr. MG1655 has the alias "csrA" and either the NCBI locus tag "b2696" or Entrez Gene ID "947176"?

Find the gene in E. coli K-12 MG1655 that is known as "csrA" and has either the NCBI locus tag "b2696" or the Entrez ID "947176".

SELECT DISTINCT ?var1 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P703> <http://www.wikidata.org/entity/Q21102938> . } { { ?var1 ?var2Label "csrA"@en . } UNION { ?var1 ?var3Label "csrA"@en . } UNION { ?var1 ?var2Label "b2696"@en . } UNION { ?var1 ?var3Label "b2696"@en . } } { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7187> . } } { { ?var1 <http://www.wikidata.org/prop/direct/P2393> "b2696". } UNION { ?var1 <http://www.wikidata.org/prop/direct/P351> "947176". } } }


Question: What organizations has Neil D. Lawrence been affiliated with or employed by, and when did those affiliations start and end?

SELECT ?image ?organization ?organizationLabel ?start ?end WHERE { { wd:Q31735302 p:P108 ?statement . ?statement ps:P108 ?organization . } UNION { wd:Q31735302 p:P1416 ?statement . ?statement ps:P1416 ?organization . } ?organization rdfs:label ?organizationLabel . FILTER(LANG(?organizationLabel) = "en") OPTIONAL { ?organization wdt:P18 ?image . } OPTIONAL { ?statement pq:P580 ?start . } OPTIONAL { ?statement pq:P582 ?end . } }

Show me images of the universities and research institutions Neil D. Lawrence has worked for, along with the start and end dates of his tenure.

List Neil D. Lawrence’s employers and affiliations in English, including any available images and the time periods he was associated with them.

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


Question: Singers and their music genres on Wikidata

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?person ?personLabel ?genre ?genreLabel WHERE {
  ?person wdt:P106 ?occupation .
  ?occupation wdt:P279 * wd:Q177220 .
  ?person wdt:P136 ?genre .
  ?person rdfs:label ?personLabel
  FILTER ( LANG( ?personLabel ) = 'en' ) .
  ?genre rdfs:label ?genreLabel FILTER ( LANG( ?genreLabel ) = 'en' )
}
LIMIT 100

What music genres are associated with people whose occupation is a type of singer?

List people who are singers (or subtypes like rock singer or lead vocalist) along with their music genres.

SELECT ?var1 ?var2Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P106> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q177220> . ?var1 <http://www.wikidata.org/prop/direct/P136> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 200000


Question: Male singer-songwriters and their birthplace coordinates

SELECT ?person ?personLabel ?place ?placeLabel ?coord WHERE { ?person wdt:P106 wd:Q488205 ; wdt:P21 wd:Q6581097 ; wdt:P19 ?place . ?place wdt:P625 ?coord . OPTIONAL { ?person rdfs:label ?personLabel FILTER(LANG(?personLabel) = "en") } OPTIONAL { ?place rdfs:label ?placeLabel FILTER(LANG(?placeLabel) = "en") } } LIMIT 10

Where were male singer-songwriters born, and what are the geographic coordinates of those places?

List male singer-songwriters along with the names and coordinates of their birthplaces.

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


Question: Male singer-songwriters and their birth coordinates

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel ?birthCoordinates WHERE {
  ?person wdt:P106 wd:Q488205 ; wdt:P21 wd:Q6581097 ; wdt:P19 / wdt:P625 ?birthCoordinates .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}

Who are the male singer-songwriters and where were they born?

List all male singer-songwriters with their English names and the geographic coordinates of their birthplaces.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q488205> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581097> . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What awards did Atlas Shrugged receive without any citations?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?award ?awardLabel WHERE {
  wd:Q374098 p:P166 ?statement .
  ?statement ps:P166 ?award .
  ?award rdfs:label ?awardLabel .
  FILTER ( NOT EXISTS {
    ?statement prov:wasDerivedFrom ?ref
  }
  )
}

Which awards have been given to the novel Atlas Shrugged, and which of them have no source references?

List all the awards won by Atlas Shrugged that are not backed by any references.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/P166> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/P166> <http://www.wikidata.org/entity/Q374098> . FILTER ( ( NOT EXISTS { ?var2 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var3 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Common superclasses of Abu Dhabi Grand Prix and continent

SELECT ?commonSuperclass WHERE { wd:Q7849 wdt:P279* ?commonSuperclass . wd:Q5107 wdt:P279* ?commonSuperclass . }

What are the shared superclass categories between the 2012 Abu Dhabi Grand Prix and Africa?

Show me the ontological categories that both the Abu Dhabi Grand Prix and Africa belong to through their subclass 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/Q11916> ; <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/Q15> ; <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 general category that both Iran and the Promenade des Anglais belong to, based on their hierarchical classifications?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?ancestor ?distIran ?distProm ( ?distIran + ?distProm AS ?totalDist ) WHERE {
  {
    SELECT ?ancestor ( COUNT( ?mid ) AS ?distIran ) WHERE {
      wd:Q794 wdt:P31 ?typeIran .
      ?typeIran wdt:P279 + ?mid .
      ?mid wdt:P279 * ?ancestor .
    }
    GROUP BY ?ancestor
  }
  {
    SELECT ?ancestor ( COUNT( ?mid ) AS ?distProm ) WHERE {
      wd:Q1849491 wdt:P31 ?typeProm .
      ?typeProm wdt:P279 + ?mid .
      ?mid wdt:P279 * ?ancestor .
    }
    GROUP BY ?ancestor
  }
  FILTER ( ?ancestor != wd:Q794 && ?ancestor != wd:Q1849491 )
}
ORDER BY ASC ( ?totalDist )
LIMIT 1

Which geographic or administrative category is the closest common ancestor between Iran and the Promenade des Anglais in Wikidata’s subclass hierarchy?

How are Iran and the Promenade des Anglais connected through their types in the Wikidata ontology, and what is the most general shared category?

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/Q794> ; <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/Q1849491> ; <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: How many biological processes are regulated by the CACNA1C gene?

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

What is the number of biological processes regulated by the human CACNA1C gene?

List the count of biological processes that the CACNA1C gene regulates.

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


Question: Who are Homer Simpson’s children according to Wikidata?

SELECT ?entity ?entityLabel WHERE { ?entity wdt:P40 wd:Q7810 . ?entity rdfs:label ?entityLabel . FILTER(LANG(?entityLabel) = "en") }

Which characters are listed as children of Homer Simpson on Wikidata?

List the entities that Wikidata classifies as children of Homer Simpson.

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


Question: Who are the children of Homer Simpson?

SELECT ?child WHERE { ?child wdt:P22 wd:Q7810 }

List all children of Homer Simpson.
Children of Homer Simpson

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


Question: What is the title of the literary work "Der Steppenwolf"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?work ?title WHERE {
  ?work wdt:P31 wd:Q7725634 .
  ?work wdt:P1476 ?title .
  FILTER ( STRSTARTS( STR( ?title ) , "Der Steppenwolf" ) )
}
LIMIT 10

Can you find any literary works whose titles start with "Der Steppenwolf"?

Show me the work titled "Der Steppenwolf" and confirm it is classified as a literary work.

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


Question: What Wikidata item has the IMDb ID tt0396930?

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

Which film is identified by the IMDb identifier tt0396930?

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

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


Question: Subclasses of fictional human

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

What are some examples of fictional human characters in fiction?

List the types of fictional humans, such as virtual influencers or Santa Claus in fiction.

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


Question: What substances are part of Benzo(a)pyrene metabolism?

SELECT ?part WHERE { wd:Q30230995 wdt:P527 ?part . }

Which chemicals and enzymes are involved in the metabolism of Benzo(a)pyrene?

List the components of Benzo(a)pyrene metabolism.

SELECT ?var1 ?var2 WHERE { ?var1 ?var2 <http://www.wikidata.org/entity/statement/Q30230995-23BF8FAC-1262-4E0D-9D01-833458202A32> . }


Question: What is the Wikidata property for genre and its German and English labels?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?propertyLabel ?propertyDescription WHERE {
  BIND( wd:P136 AS ?property ) ?property rdfs:label ?propertyLabel .
  ?property schema:description ?propertyDescription .
  FILTER ( LANG( ?propertyLabel ) IN ( "en" , "de" ) ) FILTER ( LANG( ?propertyDescription ) IN ( "en" , "de" ) )
}

Which property in Wikidata is used to indicate the genre of a creative work, and what are its labels and descriptions in German and English?

Please provide the German and English labels and descriptions of the Wikidata property for genre.

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


Question: What genes in E. coli K-12 MG1655 have "fda" in their name or alternative names?

SELECT ?gene ?geneLabel ?altLabel WHERE { ?gene wdt:P31 wd:Q7187 . ?gene wdt:P703 wd:Q21102938 . ?gene rdfs:label ?geneLabel . ?gene skos:altLabel ?altLabel . FILTER ( ( CONTAINS( LCASE( ?geneLabel ), "fda" ) || CONTAINS( LCASE( ?altLabel ), "fda" ) ) ) .}

List the genes found in E. coli K-12 MG1655 that are labeled or alternatively labeled as containing "fda".

Which genes in the E. coli K-12 strain are known by the abbreviation "fda"?

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7187> . ?var1 <http://www.wikidata.org/prop/direct/P703> <http://www.wikidata.org/entity/Q21102938> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var2Label . FILTER ( ( CONTAINS ( ?var1Label , "frda" ) || CONTAINS ( ?var2Label , "frda" ) ) ) . }


Question: What is the most general category that both Christian Horner and Nature Air belong to, and how many subclass steps separate each from it?

SELECT ?commonAncestor ?dist1 ?dist2 (?dist1 + ?dist2 AS ?totalDist) WHERE { { SELECT (COUNT(?mid) AS ?dist1) WHERE { wd:Q5 wdt:P279+ ?mid . ?mid wdt:P279* wd:Q35120 . } } { SELECT (COUNT(?mid) AS ?dist2) WHERE { wd:Q46970 wdt:P279+ ?mid . ?mid wdt:P279* wd:Q35120 . } } BIND(wd:Q35120 AS ?commonAncestor) } ORDER BY ASC(?totalDist) LIMIT 1

How far apart, in terms of Wikipedia’s classification hierarchy, are Christian Horner and Nature Air, and what is their closest shared category?

Find the common ancestor in the subclass hierarchy between the human Christian Horner and the airline Nature Air, and compute the total number of subclass relationships needed to reach it 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/Q173472> ; <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/Q980781> ; <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: How many documentary television series have recorded filming locations in Wikidata?

SELECT (COUNT(?series) AS ?count) WHERE { ?series wdt:P31 wd:Q5398426 . ?series wdt:P136 wd:Q93204 . ?series wdt:P915 ?location . }

What is the number of TV series that are documentaries and were filmed somewhere?

Can you tell me how many documentary TV shows have specified where they were filmed?

SELECT( COUNT ( ?var1 ) AS ?var2 ) WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it,en". } ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5398426> . ?var3 <http://www.wikidata.org/prop/direct/P136> <http://www.wikidata.org/entity/Q93204> . ?var3 <http://www.wikidata.org/prop/direct/P915> ?var1 . } GROUP BY ?var1 ?var3


Question: Common country of Detroit and Wrigley Field

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 ?country ?countryLabel WHERE {
  wd:Q12439 wdt:P17 ?country .
  wd:Q1052807 wdt:P17 ?country .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?countryLabel) = "en")
}

In which country are both Detroit and Wrigley Field located?

Tell me the country that both Detroit and Wrigley Field 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/Q12439> ; <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/Q1052807> ; <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 Pittsburgh Steelers and Newsweek belong to?

SELECT ?commonAncestor ?commonAncestorLabel (COUNT(?ancestor) AS ?depth) WHERE { wd:Q17156793 wdt:P279* ?commonAncestor . wd:Q1153191 wdt:P279* ?commonAncestor . wd:Q1684600 wdt:P279* ?commonAncestor . ?commonAncestor wdt:P279* ?ancestor . ?commonAncestor rdfs:label ?commonAncestorLabel . FILTER(LANG(?commonAncestorLabel) = "en") } GROUP BY ?commonAncestor ?commonAncestorLabel ORDER BY DESC(?depth) LIMIT 1

What do the Pittsburgh Steelers and Newsweek have in common in terms of their classification in Wikidata?

Find the highest-level shared classification between the Pittsburgh Steelers (an American football team) and Newsweek (a news magazine).

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/Q191477> ; <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/Q188413> ; <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 protein is encoded by the gene with locus tag CT_621 in Chlamydia trachomatis?

SELECT DISTINCT ?gene ?protein WHERE { ?taxon wdt:P685 "272561" . ?gene wdt:P2393 "CT_621" ; wdt:P703 ?taxon ; wdt:P688 ?protein . }

Find the gene and its encoded protein in Chlamydia trachomatis where the gene has the NCBI locus tag CT_621.

Which gene in Chlamydia trachomatis has the locus tag CT_621, and what protein does it code for?

SELECT DISTINCT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P685> "272561". ?var1 <http://www.wikidata.org/prop/direct/P2393> "CT_621"; <http://www.wikidata.org/prop/direct/P703> ?var3 ; <http://www.wikidata.org/prop/direct/P688> ?var2 . }


Question: What organizations is Francisco Câmara Pereira affiliated with or employed by, and what are their images and start dates?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image ?organization ?organizationLabel ?start ?end ?degreeLabel WHERE {
  {
    wd:Q40424579 p:P1416 ?statement .
    ?statement ps:P1416 ?organization .
  } UNION {
    wd:Q40424579 p:P108 ?statement .
    ?statement ps:P108 ?organization .
  }
  ?organization rdfs:label ?organizationLabel .
  FILTER(LANG(?organizationLabel) = "en")
  OPTIONAL {
    ?organization wdt:P18 ?image .
  }
  OPTIONAL {
    ?statement pq:P580 ?start .
  }
  OPTIONAL {
    ?statement pq:P582 ?end .
  }
  OPTIONAL {
    ?statement pq:P512 ?degree .
    ?degree rdfs:label ?degreeLabel .
    FILTER(LANG(?degreeLabel) = "en")
  }
}

Can you list the institutions Francisco Câmara Pereira has been associated with, including their images, when he started working there, and any academic degrees linked to those affiliations?

Show me the organizations linked to Francisco Câmara Pereira through employment or affiliation, along with their English names, images, start dates, and any academic degrees associated with those relationships — all in English.

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


Question: What films and other works have organized crime as their main subject, like Pulp Fiction?

SELECT ?film2 WHERE { wd:Q104123 wdt:P921 ?topic . ?film2 wdt:P921 ?topic . }

Which movies or books share the same main theme — organized crime — as the film Pulp Fiction?

Show me all creative works that have organized crime as their primary topic, excluding Pulp Fiction itself.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 ?var4 ?var2 . ?var3 ?var4 ?var2 . VALUES ( ?var4 ) { ( <http://www.wikidata.org/prop/direct/P921> ) } VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q104123> ) } }


Question: Employers of Lars Juhl Jensen, their locations, coordinates, and images

SELECT DISTINCT ?image ?employer ?employerLabel ?location ?coordinates ?propertyLabel WHERE { wd:Q26837548 wdt:P108 ?employer . ?employer wdt:P276 ?location . ?location wdt:P625 ?coordinates . OPTIONAL { ?employer wdt:P18 ?image . } ?employer rdfs:label ?employerLabel . wd:P108 rdfs:label ?propertyLabel . FILTER(LANG(?employerLabel) = "en") FILTER(LANG(?propertyLabel) = "en") }

What are the employers of Lars Juhl Jensen, where are they located, what are their coordinates, and do they have images?

Show me the employers of Lars Juhl Jensen, their locations (with coordinates), and any associated images, along with the property name "employer" in English.

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ( ?var4Label AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q26837548> ?var6 ?var2 . ?var2 (( <http://www.wikidata.org/prop/P159> / <http://www.wikidata.org/prop/qualifier/P625> )|( <http://www.wikidata.org/prop/direct/P276> */ <http://www.wikidata.org/prop/direct/P625> )) ?var3 . ?var7 <http://wikiba.se/ontology#directClaim> ?var6 . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,es,fr,jp,nl,no,ru,sv,zh". } ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . }


Question: Chinese labels for fictional characters on Wikidata

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

What are the Chinese names of fictional characters and their subclasses in Wikidata?

List all fictional characters (including subtypes) that have Chinese-language labels.

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


Question: List genes from Chlamydia pneumoniae with their genomic start/end positions, strand orientation, locus tags, and gene 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/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?start ?end ?strand(GROUP_CONCAT(DISTINCT ?altLabel ; SEPARATOR = " ") AS ?geneNames) ?locusTag ?geneLabel ?partOfLabel WHERE {
  ?gene wdt:P31 wd:Q7187 ; wdt:P703 ?taxon ; wdt:P2548 ?strandOrientation ; wdt:P644 ?start ; wdt:P645 ?end ; wdt:P2393 ?locusTag ; wdt:P361 ?partOf ; skos:altLabel ?altLabel .
  ?taxon wdt:P685 "115713" .
  BIND(IF(?strandOrientation = wd:Q22809680 , "+" , "-") AS ?strand)
  ?gene rdfs:label ?geneLabel .
  ?partOf rdfs:label ?partOfLabel .
  FILTER(LANG(?geneLabel) = "en")
  FILTER(LANG(?partOfLabel) = "en")
  FILTER(LANG(?altLabel) = "en")
}
GROUP BY ?start ?end ?strand ?locusTag ?geneLabel ?partOfLabel
ORDER BY ASC(?start)

What are the coordinates, strand direction, and names of all genes in Chlamydia pneumoniae, along with their NCBI locus tags and the operons they belong to?

Show me a table of all genes in Chlamydia pneumoniae, including their genomic start and end positions, whether they are on the forward or reverse strand, their alternative names, NCBI locus tags, official gene labels, and which operon they are part of.

SELECT ?var1 ?var2 ?var3 ?var4 ( GROUP_CONCAT ( DISTINCT ?var5 ; SEPARATOR = " " ) AS ?var6 ) ?var7 ?var8Label ?var9Label WHERE { BIND ( IF ( ( ?var10 = <http://www.wikidata.org/entity/Q22809680> ), "+", "-" ) AS ?var3 ). ?var11 <http://www.wikidata.org/prop/direct/P685> "115713". ?var8 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7187> ; <http://www.wikidata.org/prop/direct/P703> ?var11 ; <http://www.wikidata.org/prop/direct/P2548> ?var10 ; <http://www.wikidata.org/prop/direct/P644> ?var1 ; <http://www.wikidata.org/prop/direct/P645> ?var2 ; <http://www.wikidata.org/prop/direct/P2393> ?var7 ; <http://www.wikidata.org/prop/direct/P351> ?var12 ; <http://www.w3.org/2004/02/skos/core#altLabel> ?var5 ; <http://www.wikidata.org/prop/direct/P361> ?var9 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var8Label ?var9Label ?var7 ?var1 ?var2 ?var3 ?var4 ORDER BY ASC( ?var13 )


Question: What country is both Brownsville and the Detroit Lions located in?

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

In which country do Brownsville and the Detroit Lions share a location?

Where are Brownsville and the Detroit Lions both located?

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/Q51693> ; <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/Q271880> ; <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: Human musicians who perform pop music

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 ?musician ?musicianLabel WHERE {
  ?musician wdt:P31 wd:Q5 .
  ?musician wdt:P106 wd:Q639669 .
  ?musician wdt:P136 wd:Q37073 .
  ?musician rdfs:label ?musicianLabel .
  FILTER ( LANG( ?musicianLabel ) = "en" )
}
LIMIT 10000

Who are the human musicians whose music genre is pop?

List all pop music musicians who are human.

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


Question: Affiliations of Jan Kalbitzer with English labels, images, start/end dates, and academic degrees.

SELECT ?organization ?organizationLabel ?image ?startDate ?endDate ?degreeLabel WHERE { wd:Q27177587 p:P1416 ?statement . ?statement ps:P1416 ?organization . ?organization rdfs:label ?organizationLabel . FILTER(LANG(?organizationLabel) = "en") OPTIONAL { ?organization wdt:P18 ?image . } OPTIONAL { ?statement pq:P580 ?startDate . } OPTIONAL { ?statement pq:P582 ?endDate . } OPTIONAL { ?statement pq:P512 ?degree . ?degree rdfs:label ?degreeLabel . FILTER(LANG(?degreeLabel) = "en") } }

What research units is Jan Kalbitzer affiliated with, and do any of these affiliations have start dates, end dates, images, or associated academic degrees?

Show me the English names of the organizations Jan Kalbitzer is affiliated with, along with any available images, time periods of affiliation, and academic degrees linked to those affiliations.

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


Question: What is the most specific shared category (class) that both Ben Roethlisberger and Richard Branson belong to?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?commonClass ?label ( COUNT( ?super ) AS ?depth ) WHERE {
  wd:Q537679 wdt:P31 ?type1 .
  wd:Q194419 wdt:P31 ?type2 .
  ?type1 wdt:P279 * ?commonClass .
  ?type2 wdt:P279 * ?commonClass .
  ?commonClass rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" ) OPTIONAL {
    ?commonClass wdt:P279 ?super .
  }
}
GROUP BY ?commonClass ?label
ORDER BY DESC ( ?depth )
LIMIT 1

What is the lowest common ancestor in the Wikidata taxonomy for the individuals Ben Roethlisberger and Richard Branson?

Find the most specific human category that applies to both the American football player Ben Roethlisberger and the entrepreneur Richard Branson.

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/Q537679> ; <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/Q194419> ; <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: People who are violinists and their names.

SELECT ?person ?personLabel WHERE { ?person wdt:P106 wd:Q1259917 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

Who are the violinists listed in Wikidata, and what are their names in English?

List the English names of all people whose occupation is violinist.

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


Question: What is the Twitter/X username for the entity "Meetup" on Wikidata?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES ?username { "Meetup" } }

Which Wikidata item has the Twitter handle "Meetup"?

Show me the Wikidata item that uses "Meetup" as its X (Twitter) username.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "Meetup" ) ( "string1" ) } } ORDER BY ASC( ?var3 )


Question: Humans who are citizens of countries located in the territory of ancient civilizations

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 ?human ?humanLabel ?countryLabel WHERE {
  ?human wdt:P31 wd:Q5 .
  ?human wdt:P27 ?country .
  ?country wdt:P31 wd:Q3624078 .
  ?ancientCivilization wdt:P17 ?country .
  ?ancientCivilization wdt:P31 wd:Q28171280 .
  ?human rdfs:label ?humanLabel .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?humanLabel) = "en")
  FILTER(LANG(?countryLabel) = "en")
}

Which modern countries have territories that were once part of ancient civilizations, and who are their citizens?

List people who are citizens of countries that currently occupy the land of ancient civilizations, along with their country names.

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


Question: List freakbeat musical groups with their country of origin, MusicBrainz ID, and image.

SELECT ?groupLabel ?website ?facebookUsername ?countryLabel ?musicBrainzId ?image WHERE { ?group wdt:P31 wd:Q215380 . ?group wdt:P136 wd:Q2607836 . 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 . } OPTIONAL { ?group rdfs:label ?groupLabel . FILTER(LANG(?groupLabel) = "en") } OPTIONAL { ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") } } LIMIT 10000

What are the names, countries, MusicBrainz IDs, and images of musical groups that perform freakbeat music?

Show me all freakbeat bands along with their official country, MusicBrainz identifier, and any available images.

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/Q2607836> . 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 protein is encoded by the gene with NCBI locus tag CT_061 in Chlamydia trachomatis?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?gene ?protein WHERE {
  ?gene wdt:P2393 "CT_061" ; wdt:P703 wd:Q20800373 ; wdt:P688 ?protein .
}

Which protein does the gene CT_061 in Chlamydia trachomatis encode?

Show me the protein product of the gene CT_061 found in Chlamydia trachomatis.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P685> "272561". ?var1 <http://www.wikidata.org/prop/direct/P2393> "CT_061"; <http://www.wikidata.org/prop/direct/P703> ?var3 ; <http://www.wikidata.org/prop/direct/P688> ?var2 . }


Question: List all works by Arthur Conan Doyle with their titles, illustrators, publishers, and publication dates.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?work ?title ?illustratorLabel ?publisherLabel ?publicationDate WHERE {
  ?work wdt:P50 wd:Q35610 .
  ?work wdt:P1476 ?title .
  OPTIONAL {
    ?work wdt:P110 ?illustrator .
    ?illustrator rdfs:label ?illustratorLabel .
    FILTER ( LANG( ?illustratorLabel ) = "en" )
  }
  OPTIONAL {
    ?work wdt:P123 ?publisher .
    ?publisher rdfs:label ?publisherLabel .
    FILTER ( LANG( ?publisherLabel ) = "en" )
  }
  ?work wdt:P577 ?publicationDate .
  FILTER ( isLiteral( ?title ) && LANG( ?title ) = "en" )
}

What are the titles, illustrators, publishers, and publication dates of all books written by Arthur Conan Doyle?

Show me the English titles, illustrators, publishers, and publication dates of every work authored by Arthur Conan Doyle.

SELECT ?var1 ?var2 ?var3Label ?var4Label ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q35610> . { ?var1 <http://www.wikidata.org/prop/direct/P1476> ?var2 . } { ?var1 <http://www.wikidata.org/prop/direct/P110> ?var3 . } { ?var1 <http://www.wikidata.org/prop/direct/P123> ?var4 . } { ?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> "nl". } }


Question: What protein is encoded by the gene with NCBI locus tag CT_167 in Chlamydia trachomatis?

SELECT DISTINCT ?gene ?protein WHERE { ?gene wdt:P2393 "CT_167" ; wdt:P703/wdt:P685 "272561" ; wdt:P688 ?protein . }

For the gene CT_167 in Chlamydia trachomatis, which protein does it encode?

Show me the protein product of the CT_167 gene in Chlamydia trachomatis.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P685> "272561". ?var1 <http://www.wikidata.org/prop/direct/P2393> "CT_167"; <http://www.wikidata.org/prop/direct/P703> ?var3 ; <http://www.wikidata.org/prop/direct/P688> ?var2 . }