Question: What are the names and affiliations of humans who have an ORCID iD?

SELECT ?human ?humanLabel ?orcid ?affiliationLabel WHERE { ?human wdt:P31 wd:Q5 . OPTIONAL { ?human wdt:P496 ?orcid . } OPTIONAL { ?human wdt:P1416 ?affiliation . } OPTIONAL { ?human rdfs:label ?humanLabel . } OPTIONAL { ?affiliation rdfs:label ?affiliationLabel . } } LIMIT 10

List people along with their ORCID identifiers and organizational affiliations.

Show me humans, their labels, their ORCID numbers, and the organizations they are affiliated with.

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


Question: Who were the members of the 2nd Constituent Assembly of Nepal, and what were their political parties, electoral districts, and term start and end dates?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?member ?party ?district ?start ?end WHERE {
  ?member p:P39 ?statement .
  ?statement ps:P39 wd:Q21328597 ; pq:P2937 wd:Q44944635 .
  OPTIONAL {
    ?statement pq:P580 ?start .
  }
  OPTIONAL {
    ?statement pq:P582 ?end .
  }
  OPTIONAL {
    ?statement pq:P768 ?district .
  }
  OPTIONAL {
    ?statement pq:P4100 ?party .
  }
}

List all members of Nepal’s 2nd Constituent Assembly with their party affiliation, constituency, and term duration (start and end dates).

Can you show me a list of people who served in Nepal’s 2nd Constituent Assembly, including which party they belonged to, which district they represented, and when their term began and ended?

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q21328597> ; <http://www.wikidata.org/prop/qualifier/P2937> <http://www.wikidata.org/entity/Q44944635> . OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var4 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var5 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P768> ?var3 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P4100> ?var2 . } }


Question: What are the WikiPathways identifiers for biological pathways associated with humans?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?pathwayId WHERE {
  ?pathway wdt:P2410 ?pathwayId ; wdt:P703 wd:Q15978631 .
}

Can you list the WikiPathways IDs of human biological pathways?

Which WikiPathways pathways are linked to Homo sapiens?

SELECT ?var1 WHERE { <http://identifiers.org/wikipathways/WP3436_r88409> <http://www.wikidata.org/prop/direct/P2410> ?var1 ; <http://www.wikidata.org/prop/direct/P703> <http://www.wikidata.org/entity/Q15978631> . }


Question: What are the parts or components of the Bible?

SELECT ?bibleComponent ?label WHERE { ?bibleComponent wdt:P361 wd:Q1845 . ?bibleComponent rdfs:label ?label . FILTER(LANG(?label) = "en") }

Which books, passages, or elements are considered parts of the Bible according to Wikidata?

List the English-labeled components of the Bible, such as books, pericopes, or biblical stories, that are classified as parts of it in Wikidata.

SELECT ?var1 ?var2 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q1845> . }


Question: What is the image of John Wesley Work III in Wikidata?

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

Does the Wikidata entry for the SNAC ARK ID 'w69p3swt' have an associated image?

Show the Wikimedia Commons image for the individual with SNAC ARK ID w69p3swt.

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


Question: What geographic and administrative regions include the hamlet of Q16587666, either directly or through hierarchical relations?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?result WHERE {
  wd:Q16587666 ( wdt:P30 | wdt:P17 | wdt:P131 | wdt:P376 | wdt:P501 ) * ?result
}

Starting from the hamlet Q16587666, what places can be reached by following links of continent, country, administrative division, astronomical body, or enclave relationships?

List all locations that the hamlet Q16587666 is part of, including its country, region, and continent.

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


Question: Image of the person with SNAC ARK ID w63b61d8

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

What is the image associated with Wilhelm Furtwängler in Wikidata?

Can you show me the Wikimedia Commons image linked to the SNAC ARK ID w63b61d8?

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


Question: What properties are most commonly used to link entities to the Republic of Bosnia and Herzegovina?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ( COUNT( ?entity ) AS ?count ) WHERE {
  ?entity ?property wd:Q1274468 .
}
GROUP BY ?property
HAVING ( ?count > 1 )
ORDER BY DESC ( ?count )

Which properties connect the most entities to the Republic of Bosnia and Herzegovina, and how many times are they used?

Show me the top properties associated with the Republic of Bosnia and Herzegovina, excluding those used only once, sorted by frequency.

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


Question: What Unicode character has the HTML entity "φ"?

SELECT ?item ?description WHERE { ?item wdt:P4575 "φ" . OPTIONAL { ?item schema:description ?description . FILTER(LANG(?description) = "en") } }

Which character is represented by the HTML escape sequence "φ"?

Show me the English description of the Unicode character with HTML entity "φ".

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


Question: What is the English label and description of the Unicode character with HTML entity ∑?

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

What is the English name and description of the summation symbol (∑) in HTML?

Show me the English label and description of the HTML entity ∑ in Wikidata.

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


Question: Italian Chamber of Deputies ID 302103, English description and name

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

Who is the Italian deputy with ID 302103, and what is their English description?

Show me the name and English description of the Italian Chamber of Deputies member with ID 302103.

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


Question: How many countries have established diplomatic relations with any entity?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ( COUNT( DISTINCT ?country ) AS ?count ) WHERE {
  ?country wdt:P31 wd:Q6256 .
  ?country wdt:P530 ?relation .
}

What is the number of sovereign nations that are linked via diplomatic relations in Wikidata?

Can you tell me how many countries are involved in diplomatic relations according to Wikidata?

SELECT( COUNT ( DISTINCT ?var1 ) AS ?var2 ) WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . { { { ?var1 <http://www.wikidata.org/prop/direct/P530> ?var3 . } } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 50


Question: Find all English-language labels or descriptions equal to "S" that are not genes.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?property WHERE {
  ?item ?property "S" @en .
  FILTER(NOT EXISTS {
    ?item wdt:P31 wd:Q7187 .
  })
}

What items in Wikidata have an English label or description exactly equal to "S", excluding any items that are classified as genes?

Show me all non-gene items in Wikidata that use "S" as an English label, title, or description.

SELECT ?var1 ?var2 WHERE { ?var1 ?var2 "S"@en . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7187> . } ) ) . }


Question: Association football players from Germany, France, Italy, Spain, or the UK and the teams they played for.

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 ?player ?playerLabel ?awardLabel ?teamLabel ?countryLabel WHERE {
  ?player wdt:P106 wd:Q937857 .
  OPTIONAL {
    ?player wdt:P166 ?award .
    ?award rdfs:label ?awardLabel .
    FILTER(LANG(?awardLabel) = "en")
  }
  ?player wdt:P54 ?team .
  ?team rdfs:label ?teamLabel .
  FILTER(LANG(?teamLabel) = "en")
  ?team wdt:P17 ?country .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?countryLabel) = "en")
  FILTER(?country IN(wd:Q142 , wd:Q183 , wd:Q145 , wd:Q38 , wd:Q29))
  ?player rdfs:label ?playerLabel .
  FILTER(LANG(?playerLabel) = "en")
}
LIMIT 200

Which football players from Germany, France, Italy, Spain, or the United Kingdom have played for professional clubs, and what clubs did they play for?

List the names of football players who played for clubs in Germany, France, Italy, Spain, or the UK, along with the names of those clubs and any awards they received.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P166> ?var2 . } ?var1 <http://www.wikidata.org/prop/direct/P54> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P17> ?var4 . FILTER ( ( ?var4 IN ( <http://www.wikidata.org/entity/Q142> , <http://www.wikidata.org/entity/Q183> , <http://www.wikidata.org/entity/Q145> , <http://www.wikidata.org/entity/Q38> , <http://www.wikidata.org/entity/Q29> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } LIMIT 200


Question: Association football players who played for teams in top-tier leagues in France, Germany, Italy, Spain, or the UK.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?player ?playerLabel ?awardLabel ?teamLabel ?leagueLabel ?countryLabel WHERE {
  ?player wdt:P106 wd:Q937857 .
  OPTIONAL {
    ?player wdt:P166 ?award .
  }
  ?player wdt:P54 ?team .
  ?team wdt:P118 ?league .
  ?team wdt:P17 ?country .
  ?league wdt:P3983 ?level .
  FILTER(?level = "1.0" ^^ xsd:decimal)
  FILTER(?country IN(wd:Q142 , wd:Q145 , wd:Q183 , wd:Q29 , wd:Q38))
  ?player rdfs:label ?playerLabel .
  ?team rdfs:label ?teamLabel .
  ?league rdfs:label ?leagueLabel .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?playerLabel) = "en")
  FILTER(LANG(?teamLabel) = "en")
  FILTER(LANG(?leagueLabel) = "en")
  FILTER(LANG(?countryLabel) = "en")
  OPTIONAL {
    ?award rdfs:label ?awardLabel .
    FILTER(LANG(?awardLabel) = "en")
  }
}
LIMIT 5000

Which football players have been members of teams competing in the highest division of leagues in France, Germany, Italy, Spain, or the United Kingdom?

List all football players who have played for clubs in the top-level leagues of France, Germany, Italy, Spain, or the UK, along with the team, league, and country names.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4 ?var5 ?var6 ?var7 ?var8Label ?var9Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P166> ?var2 . } ?var1 <http://www.wikidata.org/prop/direct/P54> ?var3 . ?var3 <http://www.wikidata.org/prop/qualifier/P580> ?var4 . ?var3 <http://www.wikidata.org/prop/qualifier/P582> ?var5 . ?var3 <http://www.wikidata.org/prop/direct/P118> ?var8 . ?var3 <http://www.wikidata.org/prop/direct/P17> ?var9 . FILTER ( ( ?var9 IN ( <http://www.wikidata.org/entity/Q142> , <http://www.wikidata.org/entity/Q183> , <http://www.wikidata.org/entity/Q145> , <http://www.wikidata.org/entity/Q38> , <http://www.wikidata.org/entity/Q29> ) ) ) . ?var8 <http://www.wikidata.org/prop/direct/P3983> ?var10 . FILTER ( ( ( ?var10 = "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } LIMIT 5000


Question: Who are the living politicians who have been named in TIME’s 100 Most Influential People list, and what do they look like?

SELECT ?person ?personLabel ?image WHERE { ?person wdt:P106 wd:Q82955 . ?person wdt:P166 wd:Q604370 . ?person wdt:P18 ?image . FILTER (NOT EXISTS { ?person wdt:P570 [] }) . ?person rdfs:label ?personLabel . FILTER (LANG(?personLabel) = "en") }

List the names and images of all living politicians who received the TIME 100 award.

Which influential living political figures have been featured in TIME Magazine’s annual list of the 100 most influential people?

SELECT ?var1 ?var2Label ?var1Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> . ?var1 <http://www.wikidata.org/prop/direct/P166> <http://www.wikidata.org/entity/Q604370> . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } ) ) . } GROUP BY ?var1 ?var2Label ?var1Label ?var3


Question: Image of the person with SNAC ARK ID w67f863b

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

What is the image associated with Joel Spolsky’s SNAC ARK ID (w67f863b)?

Show me the Wikimedia Commons images for the individual identified by the SNAC ARK ID w67f863b.

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


Question: Current union territories of India that have not been dissolved

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 ?utLabel WHERE {
  ?ut wdt:P31 wd:Q467745 .
  FILTER(NOT EXISTS {
    ?ut wdt:P576 []
  })
  .
  ?ut rdfs:label ?utLabel .
  FILTER(LANG(?utLabel) = "en")
}

Which union territories of India are still active and have not been abolished?

List the names of all union territories of India that still exist today.

SELECT ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13390680> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q467745> . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P576> ?var3 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Image of L. P. Hartley using SNAC ARK ID w6794rhf

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

What is the image associated with L. P. Hartley’s SNAC ARK ID w6794rhf?

Show me the Wikimedia Commons image linked to the SNAC ARK ID w6794rhf.

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


Question: Lighthouses without English labels on Wikidata

SELECT ?lighthouse WHERE { ?lighthouse wdt:P31 wd:Q39715 . OPTIONAL { ?lighthouse rdfs:label ?label . FILTER (LANG(?label) = "en") } FILTER (!BOUND(?label)) }

Which lighthouses on Wikidata do not have an English label?

Find all lighthouse structures in Wikidata that are missing an English-language name, so they can be added by editors.

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


Question: What are the top curator sources and evidence codes for gene function annotations in house mouse proteins?

PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
SELECT ( COUNT( * ) AS ?count ) ?curator ?evidence_code WHERE {
  ?protein wdt:P703 wd:Q83310 .
  ?protein wdt:P352 ?uniprot_id .
  ?protein p:P680 ?statement .
  ?statement ps:P680 ?go_term .
  ?statement pq:P459 ?evidence_code .
  ?statement prov:wasDerivedFrom ?source .
  ?source pr:P1640 ?curator .
}
GROUP BY ?curator ?evidence_code
ORDER BY DESC ( ?count )

How many gene ontology annotations for mouse proteins are attributed to each database and evidence code type?

Show me the count of molecular function annotations for Mus musculus grouped by the source database and the experimental evidence used.

SELECT( COUNT (* ) AS ?var1 ) ?var2 ?var3 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P703> <http://www.wikidata.org/entity/Q83310> . ?var4 <http://www.wikidata.org/prop/direct/P352> ?var5 . ?var4 <http://www.wikidata.org/prop/P680> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P680> ?var7 . ?var6 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var8 . ?var8 <http://www.wikidata.org/prop/reference/P1640> ?var2 . ?var6 <http://www.wikidata.org/prop/qualifier/P459> ?var3 . } GROUP BY ?var2 ?var3


Question: New York City Subway stations with their coordinates and connecting rail lines

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 ?station ?stationLabel ?coordinates ?line ?lineLabel WHERE {
  ?station wdt:P31 wd:Q928830 .
  ?station wdt:P16 wd:Q7733 .
  ?station wdt:P625 ?coordinates .
  ?station wdt:P81 ?line .
  ?station rdfs:label ?stationLabel .
  ?line rdfs:label ?lineLabel .
  FILTER(LANG(?stationLabel) = "en")
  FILTER(LANG(?lineLabel) = "en")
}

What are the metro stations in the New York City Subway system, their geographic locations, and which rail lines do they connect to?

List all subway stations in New York City, including their coordinates and the train lines they serve, with English labels.

SELECT ?var1 ?var1Label ?var2 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q928830> . ?var1 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q7733> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P81> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Top 50 authors with most publications in PLoS Neglected Tropical Diseases, with image and count.

SELECT (SAMPLE(?image) AS ?sampleImage) ?author ?authorLabel ?publicationCount WHERE { { SELECT ?author (COUNT(?article) AS ?publicationCount) WHERE { ?article wdt:P1433 wd:Q3359737 ; wdt:P50 ?author . } GROUP BY ?author } ?author wdt:P18 ?image . ?author rdfs:label ?authorLabel . FILTER(LANG(?authorLabel) = "en") } GROUP BY ?author ?authorLabel ?publicationCount ORDER BY DESC(?publicationCount) LIMIT 50

Who are the top 50 authors who have published the most articles in PLoS Neglected Tropical Diseases, and how many articles did each publish?

Show me the 50 most prolific authors of PLoS Neglected Tropical Diseases, including their names, the number of articles they published, and a sample image of each.

SELECT( SAMPLE ( ?var1 ) AS ?var2 ) ?var3 ?var3Label ?var4 WHERE { { SELECT ?var3 ( COUNT ( ?var5 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P1433> <http://www.wikidata.org/entity/Q3359737> ; <http://www.wikidata.org/prop/direct/P50> ?var3 . } GROUP BY ?var3 } ?var3 <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,fr,zh,jp,es". } } GROUP BY ?var3 ?var3Label ?var4 ORDER BY DESC( ?var4 ) LIMIT 50


Question: People associated with atheism

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 ?itemLabel WHERE {
  ?item wdt:P140 wd:Q7066 .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}

Who are some notable individuals who identify as atheists?

List the names of people in Wikidata who are linked to atheism as their worldview.

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


Question: Top 10 official languages of UN specialized agencies by number of member countries.

SELECT ?language ?languageLabel ?count WHERE { { SELECT ?language (COUNT(?country) AS ?count) WHERE { ?country wdt:P31 wd:Q6256 . ?country wdt:P463 ?organization . ?organization wdt:P31 wd:Q15925165 . ?organization wdt:P37 ?language . } GROUP BY ?language ORDER BY DESC(?count) LIMIT 10 } ?language rdfs:label ?languageLabel . FILTER(LANG(?languageLabel) = "en") } ORDER BY DESC(?count)

Which are the most commonly used official languages among United Nations specialized agencies, and how many member countries use each?

Show me the top 10 official languages of UN specialized agencies, ranked by how many countries are members of those agencies.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 )( COUNT ( DISTINCT ?var4 ) AS ?var3 ) WHERE { { SELECT ?var1 ?var4 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . { { { ?var4 <http://www.wikidata.org/prop/direct/P463> ?var5 . { { ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q21104425> . } } } } } ?var4 <http://www.wikidata.org/prop/direct/P463> ?var6 . { { ?var6 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q21104425> . } } ?var6 <http://www.wikidata.org/prop/direct/P37> ?var1 . } LIMIT 2000000 } } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 10 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var2 )


Question: Buildings in Poland

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 ?buildingLabel ?building WHERE {
  ?building wdt:P31 wd:Q41176 .
  ?building wdt:P17 wd:Q36 .
  ?building rdfs:label ?buildingLabel .
  FILTER ( LANG( ?buildingLabel ) = "en" )
}

What are the buildings located in Poland?

List the English-labeled buildings in Poland, including their Wikidata IDs.

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


Question: List all Peugeot automobile models with their English names.

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

What are the English names of all car models produced by Peugeot?

Show me the English-labeled automobile models that are branded by Peugeot and classified as car models.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3231690> . 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/P1716> <http://www.wikidata.org/entity/Q6742> . } ORDER BY ASC( ?var1Label ) LIMIT 1000


Question: What are the birth and death dates of Charles Francis Adams Jr.?

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

When was Charles Francis Adams Jr. born and when did he die, according to Wikidata?

Can you tell me the birth date and all recorded death dates for Charles Francis Adams Jr.?

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


Question: What are the key biographical details and authority identifiers for Benvenuto Terracini, including his birth and death dates, and descriptions mentioning "Italian" and "linguist"?

SELECT ?label ?image ?birthDate ?deathDate ?desc1text ?desc2text ?sbnId ?viafId ?treccaniId ?lccnId ?gndId ?bnfId WHERE { wd:Q818389 rdfs:label ?label . FILTER(LANG(?label) = "en") OPTIONAL { wd:Q818389 wdt:P18 ?image . } OPTIONAL { wd:Q818389 wdt:P569 ?birthDate . } OPTIONAL { wd:Q818389 wdt:P570 ?deathDate . } OPTIONAL { wd:Q818389 wdt:P396 ?sbnId . } OPTIONAL { wd:Q818389 wdt:P214 ?viafId . } OPTIONAL { wd:Q818389 wdt:P1986 ?treccaniId . } OPTIONAL { wd:Q818389 wdt:P244 ?lccnId . } OPTIONAL { wd:Q818389 wdt:P227 ?gndId . } OPTIONAL { wd:Q818389 wdt:P268 ?bnfId . } OPTIONAL { wd:Q818389 schema:description ?desc1text . FILTER(CONTAINS(STR(?desc1text), "Italian")) } OPTIONAL { wd:Q818389 schema:description ?desc2text . FILTER(CONTAINS(STR(?desc2text), "linguist")) } } LIMIT 1

Can you provide the VIAF, GND, BnF, and other ID numbers for the Italian linguist Benvenuto Terracini, along with his birth and death dates?

Show me the Wikipedia-style description of Benvenuto Terracini that includes the words "Italian" and "linguist", along with his life dates and international identifiers.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 ?var12 ?var13 ?var14 ?var15 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". <http://www.wikidata.org/entity/Q818389> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . <http://www.wikidata.org/entity/Q818389> <http://schema.org/description> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q818389> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q818389> <http://www.wikidata.org/prop/direct/P569> ?var4 . } OPTIONAL { <http://www.wikidata.org/entity/Q818389> <http://www.wikidata.org/prop/direct/P19> ?var16 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var16 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . } } OPTIONAL { <http://www.wikidata.org/entity/Q818389> <http://www.wikidata.org/prop/direct/P570> ?var6 . } OPTIONAL { <http://www.wikidata.org/entity/Q818389> <http://www.wikidata.org/prop/direct/P20> ?var17 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var17 <http://www.w3.org/2000/01/rdf-schema#label> ?var7 . } } OPTIONAL { <http://www.wikidata.org/entity/Q818389> <http://www.wikidata.org/prop/direct/P396> ?var10 . } OPTIONAL { <http://www.wikidata.org/entity/Q818389> <http://www.wikidata.org/prop/direct/P214> ?var11 . } OPTIONAL { <http://www.wikidata.org/entity/Q818389> <http://www.wikidata.org/prop/direct/P1986> ?var12 . } OPTIONAL { <http://www.wikidata.org/entity/Q818389> <http://www.wikidata.org/prop/direct/P244> ?var13 . } OPTIONAL { <http://www.wikidata.org/entity/Q818389> <http://www.wikidata.org/prop/direct/P227> ?var14 . } OPTIONAL { <http://www.wikidata.org/entity/Q818389> <http://www.wikidata.org/prop/direct/P268> ?var15 . } OPTIONAL { BIND ( STR ( ?var18 ) AS ?var8 ). ?var18 <http://schema.org/about> <http://www.wikidata.org/entity/Q818389> . FILTER ( ( CONTAINS ( STR ( ?var18 ) , "string2" ) ) ) . } OPTIONAL { BIND ( STR ( ?var19 ) AS ?var9 ). ?var19 <http://schema.org/about> <http://www.wikidata.org/entity/Q818389> . FILTER ( ( CONTAINS ( STR ( ?var19 ) , "string3" ) ) ) . } }


Question: What is Tony Scotti’s date of birth and is he still alive?

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 ?personLabel ?birthDate ?deathDate WHERE {
  BIND(wd:Q936333 AS ?person)
  ?person wdt:P31 wd:Q5 .
  OPTIONAL {
    ?person wdt:P569 ?birthDate .
  }
  OPTIONAL {
    ?person wdt:P570 ?deathDate .
  }
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}

Can you tell me the birth date and full name of the American actor Tony Scotti?

Who is Tony Scotti, and when was he born? What is his date of death?

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


Question: What are Manfredo Tafuri’s date of birth, date of death, authority IDs (VIAF, GND, BnF, etc.), and Wikipedia description snippets containing “Italian” and “architectural historian”?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?label ?image ?birthDate ?deathDate ?sbnId ?viafId ?treccaniId ?lccnId ?gndId ?bnfId ?desc1 ?desc2 WHERE {
  wd:Q2723428 rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  OPTIONAL {
    wd:Q2723428 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q2723428 wdt:P569 ?birthDate .
  }
  OPTIONAL {
    wd:Q2723428 wdt:P570 ?deathDate .
  }
  OPTIONAL {
    wd:Q2723428 wdt:P396 ?sbnId .
  }
  OPTIONAL {
    wd:Q2723428 wdt:P214 ?viafId .
  }
  OPTIONAL {
    wd:Q2723428 wdt:P1986 ?treccaniId .
  }
  OPTIONAL {
    wd:Q2723428 wdt:P244 ?lccnId .
  }
  OPTIONAL {
    wd:Q2723428 wdt:P227 ?gndId .
  }
  OPTIONAL {
    wd:Q2723428 wdt:P268 ?bnfId .
  }
  OPTIONAL {
    ?desc1Uri schema:about wd:Q2723428 ; schema:description ?desc1Text .
    FILTER(CONTAINS(STR(?desc1Text) , "architectural historian"))
    BIND(STR(?desc1Text) AS ?desc1)
  }
  OPTIONAL {
    ?desc2Uri schema:about wd:Q2723428 ; schema:description ?desc2Text .
    FILTER(CONTAINS(STR(?desc2Text) , "Italian"))
    BIND(STR(?desc2Text) AS ?desc2)
  }
}

Can you provide the biographical details of Manfredo Tafuri, including his birth and death dates, identifiers from international libraries, and any Wikipedia descriptions mentioning he was an Italian architectural historian?

Show me Manfredo Tafuri’s image, birth and death dates, and all his library authority IDs, along with any Wikipedia descriptions that mention he was an Italian architectural historian.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 ?var12 ?var13 ?var14 ?var15 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". <http://www.wikidata.org/entity/Q2723428> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . <http://www.wikidata.org/entity/Q2723428> <http://schema.org/description> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q2723428> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q2723428> <http://www.wikidata.org/prop/direct/P569> ?var4 . } OPTIONAL { <http://www.wikidata.org/entity/Q2723428> <http://www.wikidata.org/prop/direct/P19> ?var16 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var16 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . } } OPTIONAL { <http://www.wikidata.org/entity/Q2723428> <http://www.wikidata.org/prop/direct/P570> ?var6 . } OPTIONAL { <http://www.wikidata.org/entity/Q2723428> <http://www.wikidata.org/prop/direct/P20> ?var17 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var17 <http://www.w3.org/2000/01/rdf-schema#label> ?var7 . } } OPTIONAL { <http://www.wikidata.org/entity/Q2723428> <http://www.wikidata.org/prop/direct/P396> ?var10 . } OPTIONAL { <http://www.wikidata.org/entity/Q2723428> <http://www.wikidata.org/prop/direct/P214> ?var11 . } OPTIONAL { <http://www.wikidata.org/entity/Q2723428> <http://www.wikidata.org/prop/direct/P1986> ?var12 . } OPTIONAL { <http://www.wikidata.org/entity/Q2723428> <http://www.wikidata.org/prop/direct/P244> ?var13 . } OPTIONAL { <http://www.wikidata.org/entity/Q2723428> <http://www.wikidata.org/prop/direct/P227> ?var14 . } OPTIONAL { <http://www.wikidata.org/entity/Q2723428> <http://www.wikidata.org/prop/direct/P268> ?var15 . } OPTIONAL { BIND ( STR ( ?var18 ) AS ?var8 ). ?var18 <http://schema.org/about> <http://www.wikidata.org/entity/Q2723428> . FILTER ( ( CONTAINS ( STR ( ?var18 ) , "string2" ) ) ) . } OPTIONAL { BIND ( STR ( ?var19 ) AS ?var9 ). ?var19 <http://schema.org/about> <http://www.wikidata.org/entity/Q2723428> . FILTER ( ( CONTAINS ( STR ( ?var19 ) , "string3" ) ) ) . } }


Question: Image of the person with SNAC ARK ID w61v5g64

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

What is the image associated with Max Born in Wikidata?

Show me the Wikimedia Commons image for the individual identified by the SNAC ARK ID w61v5g64.

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


Question: Image of the person with SNAC ARK ID w6kk9gbn

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

What is the image associated with Jim Hogg in Wikidata?

Show me the Wikimedia Commons image for the individual identified by SNAC ARK ID w6kk9gbn.

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


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

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

Can you show me the Wikimedia Commons image for Vess Ossman?

Is there an image available for the individual identified by the SNAC ARK ID w60h8zcj?

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


Question: List all ships in Wikidata.

SELECT ?ship WHERE { ?ship wdt:P31 wd:Q11446 }

What are all the individual ships recorded in Wikidata?

Can you show me all entities that are instances of a ship?

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


Question: What are Victor Hugo’s birth and death dates, along with his identifiers in major library databases like VIAF, GND, and BnF?

SELECT ?label ?image ?birthDate ?deathDate ?sbnId ?viafId ?treccaniId ?lccnId ?gndId ?bnfId WHERE { wd:Q535 rdfs:label ?label . FILTER(LANG(?label) = "en") OPTIONAL { wd:Q535 wdt:P18 ?image . } OPTIONAL { wd:Q535 wdt:P569 ?birthDate . } OPTIONAL { wd:Q535 wdt:P570 ?deathDate . } OPTIONAL { wd:Q535 wdt:P396 ?sbnId . } OPTIONAL { wd:Q535 wdt:P214 ?viafId . } OPTIONAL { wd:Q535 wdt:P1986 ?treccaniId . } OPTIONAL { wd:Q535 wdt:P244 ?lccnId . } OPTIONAL { wd:Q535 wdt:P227 ?gndId . } OPTIONAL { wd:Q535 wdt:P268 ?bnfId . } }

Can you provide Victor Hugo’s image, date of birth, date of death, and his IDs from the Library of Congress, SBN, Treccani, and other authority files?

Show me Victor Hugo’s biographical data including his image, birth/death dates, and international authority identifiers.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 ?var12 ?var13 ?var14 ?var15 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". <http://www.wikidata.org/entity/Q535> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . <http://www.wikidata.org/entity/Q535> <http://schema.org/description> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q535> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q535> <http://www.wikidata.org/prop/direct/P569> ?var4 . } OPTIONAL { <http://www.wikidata.org/entity/Q535> <http://www.wikidata.org/prop/direct/P19> ?var16 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var16 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . } } OPTIONAL { <http://www.wikidata.org/entity/Q535> <http://www.wikidata.org/prop/direct/P570> ?var6 . } OPTIONAL { <http://www.wikidata.org/entity/Q535> <http://www.wikidata.org/prop/direct/P20> ?var17 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var17 <http://www.w3.org/2000/01/rdf-schema#label> ?var7 . } } OPTIONAL { <http://www.wikidata.org/entity/Q535> <http://www.wikidata.org/prop/direct/P396> ?var10 . } OPTIONAL { <http://www.wikidata.org/entity/Q535> <http://www.wikidata.org/prop/direct/P214> ?var11 . } OPTIONAL { <http://www.wikidata.org/entity/Q535> <http://www.wikidata.org/prop/direct/P1986> ?var12 . } OPTIONAL { <http://www.wikidata.org/entity/Q535> <http://www.wikidata.org/prop/direct/P244> ?var13 . } OPTIONAL { <http://www.wikidata.org/entity/Q535> <http://www.wikidata.org/prop/direct/P227> ?var14 . } OPTIONAL { <http://www.wikidata.org/entity/Q535> <http://www.wikidata.org/prop/direct/P268> ?var15 . } OPTIONAL { BIND ( STR ( ?var18 ) AS ?var8 ). ?var18 <http://schema.org/about> <http://www.wikidata.org/entity/Q535> . FILTER ( ( CONTAINS ( STR ( ?var18 ) , "string2" ) ) ) . } OPTIONAL { BIND ( STR ( ?var19 ) AS ?var9 ). ?var19 <http://schema.org/about> <http://www.wikidata.org/entity/Q535> . FILTER ( ( CONTAINS ( STR ( ?var19 ) , "string3" ) ) ) . } }


Question: Most common causes of death among humans, with examples of individuals

SELECT ?human ?humanLabel ?causeOfDeath ?causeOfDeathLabel WHERE {  ?human (wdt:P31/wdt:P279*) wd:Q5 .  ?human wdt:P509 ?causeOfDeath .  ?human rdfs:label ?humanLabel .  ?causeOfDeath rdfs:label ?causeOfDeathLabel .  FILTER(LANG(?humanLabel) = "en")  FILTER(LANG(?causeOfDeathLabel) = "en")  {    SELECT ?causeOfDeath (COUNT(?human) AS ?freq) WHERE {      ?human (wdt:P31/wdt:P279*) wd:Q5 .      ?human wdt:P509 ?causeOfDeath .    }    GROUP BY ?causeOfDeath  }} ORDER BY DESC(?freq) ASC(?causeOfDeath) LIMIT 50

Who are some people who died from the most frequent causes of death, and what were those causes?

List 50 humans along with their cause of death, sorted by how frequently each cause occurs, with English labels.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P509> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var3 )ASC( ?var2 ) LIMIT 50


Question: What property is most frequently used to classify entities as "siege"?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property(COUNT(?property) AS ?count) WHERE {
  ?subject ?property wd:Q188055 .
  FILTER(STRSTARTS(STR(?property) , "http://www.wikidata.org/prop/direct/"))
}
GROUP BY ?property
ORDER BY DESC(?count)
LIMIT 1

Which direct property connects the highest number of entities to the entity "siege"?

Among all properties pointing to "siege", which one is used the most, and how many times?

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


Question: Players who have played for FC Bayern Munich

SELECT ?player ?playerLabel WHERE { ?player wdt:P54 wd:Q15789 . ?player rdfs:label ?playerLabel . FILTER(LANG(?playerLabel) = "en") }

Who are the players that have been members of FC Bayern Munich?

List the English names of all people who have been part of FC Bayern Munich.

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


Question: What is the international airport in Kathmandu, Nepal, and what is its IATA code?

SELECT DISTINCT ?airport ?airportLabel ?city ?cityLabel ?iataCode ?coordinates WHERE { ?airport wdt:P31 wd:Q644371 . ?airport wdt:P17 wd:Q837 . ?airport wdt:P238 ?iataCode . ?airport wdt:P131 wd:Q3037 . ?airport rdfs:label ?airportLabel . FILTER(LANG(?airportLabel) = "en") . ?city rdfs:label ?cityLabel . FILTER(LANG(?cityLabel) = "en") . OPTIONAL { ?airport wdt:P625 ?coordinates . } } LIMIT 1

Which international airport is located in Kathmandu and what are its details including coordinates?

Find the main international airport serving Kathmandu, including its name, city, IATA code, and location coordinates.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 WHERE { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q515> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q644371> . ?var1 ?var5 ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P238> ?var3 . SERVICE <http://wikiba.se/ontology#around> { ?var2 <http://www.wikidata.org/prop/direct/P625> ?var6 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> "POINT(87 28)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "200". <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#distance> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P625> ?var4 . } } ORDER BY ASC( ?var7 ) LIMIT 1


Question: What are the different types of arts festivals, and how many instances does each type have?

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(COUNT(?instance) AS ?instanceCount) WHERE {
  ?subclass wdt:P279 wd:Q4801521 .
  ?instance(wdt:P31 / wdt:P279 *) ?subclass .
  ?subclass rdfs:label ?subclassLabel .
  FILTER(LANG(?subclassLabel) = "en")
}
GROUP BY ?subclass ?subclassLabel
ORDER BY DESC(?instanceCount)

Which subclasses of arts festivals have the most instances, and how many are there?

Can you list the categories of arts festivals ranked by how many events belong to each?

SELECT DISTINCT * WHERE { { SELECT ?var1 ?var1Label ?var2 WHERE { { SELECT ?var1 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4801521> . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var1 . } GROUP BY ?var1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } } UNION { SELECT ?var4 ?var4Label ?var2 WHERE { { SELECT ?var4 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q4801521> . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var4 . } GROUP BY ?var4 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } } }


Question: List all music festivals and their subtypes in Wikidata with English labels.

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 ?item ?itemLabel WHERE {
  {
    ?item wdt:P31 wd:Q868557 .
  } UNION {
    ?item wdt:P279 wd:Q868557 .
  }
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER ( LANG( ?itemLabel ) = "en" )
  }
}

What are the music festivals and their subclasses in Wikidata, along with their English names?

Show me all entities that are either music festivals or subtypes of music festivals, including their English labels.

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


Question: What is the English description of the album "Tango" by Charly García and Pedro Aznar, and does it have an image or English title?

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

Can you find the English label and description of the 1986 album "Tango" by Charly García and Pedro Aznar, along with its image on Wikimedia Commons?

Show me the English name, description, and image of the album "Tango" released in 1986.

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


Question: Genes expressed in the parietal lobe with their expression evidence ranking.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?gene ?statement ?seriesOrdinal WHERE {
  ?gene p:P5572 ?statement .
  ?statement ps:P5572 wd:Q815334 .
  ?statement pq:P1545 ?seriesOrdinal .
}
LIMIT 101

Which genes are expressed in the parietal lobe, and what is the series ordinal of their expression evidence?

List the genes expressed in the parietal lobe along with the rank (series ordinal) of the expression data supporting each association.

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q815334> . ?var1 ?var7 ?var2 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#claim> ?var7 . FILTER ( ( ( ?var3 != <http://www.wikidata.org/entity/P31> ) ) ) . } LIMIT 101 } OPTIONAL { ?var2 ?var4 ?var8 . ?var9 <http://wikiba.se/ontology#qualifier> ?var4 . } } GROUP BY ?var1 ?var2 ?var3


Question: What RDF types are assigned to the properties used in Antoine Furetière’s Wikidata profile?

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?type WHERE {
  wd:Q586211 ?property ?value .
  ?property rdf:type ?type .
}

List all properties that describe Antoine Furetière and their corresponding RDF classes.

Are all identifiers linked to Antoine Furetière classified as object properties in RDF?

SELECT * WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q586211> ) } ?var1 ?var2 ?var3 . ?var2 ?var4 ?var5 . }


Question: List of sovereign states with French Wikipedia pages and their English names.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?country ?countryLabel ?wikipediaPage WHERE {
  ?country wdt:P31 wd:Q3624078 .
  ?wikipediaPage schema:about ?country .
  ?wikipediaPage schema:isPartOf <https://fr.wikipedia.org/> .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?countryLabel) = "en")
}

Which countries are sovereign states and have a corresponding page on the French Wikipedia, along with their English names?

Show me the English names of all sovereign states that have a Wikipedia page in French, along with the URLs of those pages.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3624078> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/isPartOf> <https://fr.wikipedia.org/> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Image of Thomas L. McKenney with SNAC ARK ID w6pn96pf

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

What image is linked to Thomas L. McKenney in Wikidata, given his SNAC ARK ID is w6pn96pf?

Show me the Wikimedia Commons image associated with the person identified by SNAC ARK ID w6pn96pf.

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


Question: Scholarly articles authored by Magnus Knuth, including co-authors, publication venues, number of pages, and publication dates.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT(MIN(?publicationDate) AS ?earliestPublicationDate) ?work ?workLabel(GROUP_CONCAT(DISTINCT ?typeLabel ; SEPARATOR = ", ") AS ?types)(SAMPLE(?pages) AS ?numberOfPages) ?venue ?venueLabel(GROUP_CONCAT(DISTINCT ?authorLabel ; SEPARATOR = ", ") AS ?authors) WHERE {
  ?work wdt:P50 wd:Q30342960 .
  ?work wdt:P50 ?author .
  OPTIONAL {
    ?author rdfs:label ?authorLabel .
    FILTER(LANG(?authorLabel) = "en")
  }
  OPTIONAL {
    ?work wdt:P31 ?type .
    ?type rdfs:label ?typeLabel .
    FILTER(LANG(?typeLabel) = "en")
  }
  OPTIONAL {
    ?work wdt:P577 ?publicationDateRaw .
    BIND(xsd:date(?publicationDateRaw) AS ?publicationDate)
  }
  OPTIONAL {
    ?work wdt:P1104 ?pages .
  }
  OPTIONAL {
    ?work wdt:P1433 ?venue .
    ?venue rdfs:label ?venueLabel .
    FILTER(LANG(?venueLabel) = "en")
  }
}
GROUP BY ?work ?workLabel ?venue ?venueLabel
ORDER BY DESC(?earliestPublicationDate)

What are the scholarly works written by Magnus Knuth, who are the co-authors, where were they published, how many pages do they have, and when were they published?

List all scholarly articles authored by Magnus Knuth, showing their publication dates (earliest), number of pages, publication venues, and a comma-separated list of all authors involved.

SELECT( MIN ( ?var1 ) AS ?var2 ) ?var3 ?var3Label ( GROUP_CONCAT ( DISTINCT ?var4Label ; SEPARATOR = ", " ) AS ?var5 )( SAMPLE ( ?var6 ) AS ?var7 ) ?var8 ?var8Label ( GROUP_CONCAT ( DISTINCT ?var9Label ; SEPARATOR = ", " ) AS ?var10 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q30342960> . ?var3 <http://www.wikidata.org/prop/direct/P50> ?var11 . OPTIONAL { ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var12 . FILTER ( ( ( LANG ( ?var12 ) = "en" ) ) ) . } BIND ( COALESCE ( ?var12 , SUBSTR ( STR ( ?var11 ) ,"32"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var9Label ). OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P31> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } OPTIONAL { BIND ( <http://www.w3.org/2001/XMLSchema#date> ( ?var13 ) AS ?var1 ). ?var3 <http://www.wikidata.org/prop/direct/P577> ?var13 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1104> ?var6 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1433> ?var8 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,es,fr,jp,no,ru,sv,zh". } } GROUP BY ?var3 ?var3Label ?var8 ?var8Label ORDER BY DESC( ?var2 )


Question: Top pride parade events by number of associated events, including Dyke March and Christopher Street Day.

SELECT DISTINCT ?event ?eventLabel ?count WHERE { { SELECT ?event (COUNT(?instance) AS ?count) WHERE { ?event wdt:P31 wd:Q51404 . ?instance (wdt:P31/wdt:P279*) ?event . } GROUP BY ?event } UNION { SELECT ?event (COUNT(?instance) AS ?count) WHERE { ?event wdt:P279 wd:Q51404 . ?instance (wdt:P31/wdt:P279*) ?event . } GROUP BY ?event } OPTIONAL { ?event rdfs:label ?eventLabel . FILTER(LANG(?eventLabel) = "en") } } ORDER BY DESC(?count) LIMIT 50

Which pride parade events have the most instances, and how many are there for each?

List the most popular pride parade events based on how many specific events are linked to them, with counts.

SELECT DISTINCT * WHERE { { SELECT ?var1 ?var1Label ?var2 WHERE { { SELECT ?var1 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q51404> . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var1 . } GROUP BY ?var1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } } UNION { SELECT ?var4 ?var4Label ?var2 WHERE { { SELECT ?var4 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q51404> . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var4 . } GROUP BY ?var4 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } } }


Question: Works linked to Axel Gauffin and the properties used, including qualifiers like start time.

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

What works are associated with Axel Gauffin, and what properties link them to him? Are there any qualifiers, such as start dates, on those links?

List all items created, owned, or curated by Axel Gauffin, along with the relationship type and any associated time qualifiers.

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q5753340> . ?var1 ?var7 ?var2 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#claim> ?var7 . FILTER ( ( ( ?var3 != <http://www.wikidata.org/entity/P31> ) ) ) . } LIMIT 101 } OPTIONAL { ?var2 ?var4 ?var8 . ?var9 <http://wikiba.se/ontology#qualifier> ?var4 . } } GROUP BY ?var1 ?var2 ?var3


Question: Fictional characters who are magicians or wizards.

SELECT ?character ?characterLabel WHERE { ?character (wdt:P106 / wdt:P279*) wd:Q148401 . OPTIONAL { ?character rdfs:label ?characterLabel . FILTER(LANG(?characterLabel) = "en") } } LIMIT 10000

Who are the fictional characters that have an occupation such as magician, witch, or wizard?

List all fictional characters whose profession is a type of magician, including subclasses like wizard or witch.

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


Question: How many research institutions have both a GRID ID and an official website?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT(COUNT(?institution) AS ?count) WHERE {
  ?institution wdt:P2427 ?gridId ; wdt:P856 ?website .
}

What is the number of organizations in Wikidata that are identified by a GRID ID and have an official website?

Count the entities in Wikidata that have both a GRID institutional identifier and a specified official website URL.

SELECT( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2427> ?var3 ; <http://www.wikidata.org/prop/direct/P856> ?var4 . }


Question: List of stage magicians with their English names.

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

Who are the people whose occupation is stage magician?

Can you show me the names of stage magicians in English?

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


Question: Countries with English and Arabic demonyms

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?country ?countryLabel ?demonymEn ?demonymAr WHERE {
  {
    ?country wdt:P31 wd:Q6256 .
  } UNION {
    ?country wdt:P31 wd:Q3336843 .
  }
  ?country rdfs:label ?countryLabel .
  FILTER ( LANG( ?countryLabel ) = "en" ) ?country wdt:P1549 ?demonymEn .
  FILTER ( LANG( ?demonymEn ) = "en" ) ?country wdt:P1549 ?demonymAr .
  FILTER ( LANG( ?demonymAr ) = "ar" )
}

Which countries have both an English and an Arabic demonym?

List the countries (including UK constituent countries) along with their English and Arabic demonyms.

SELECT ?var1 ?var2Label ?var3 ?var4 ?var5 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3336843> . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://www.wikidata.org/prop/direct/P1549> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P1549> ?var4 . ?var5 <http://www.wikidata.org/prop/direct/P518> ?var4 . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var4 ) = "ar" ) ) ) . }


Question: Remarkable trees in Czech Republic districts and their administrative hierarchy levels

SELECT ?tree ?treeLabel ?districtLabel ?regionLabel ?level WHERE { ?tree wdt:P31 wd:Q811534 . ?tree wdt:P131 ?municipality . ?municipality wdt:P131 ?district . ?district wdt:P131 ?region . OPTIONAL { BIND( IF( EXISTS { ?district wdt:P31 wd:Q548611 }, "L2", IF( EXISTS { ?region wdt:P31 wd:Q548611 }, "L3", "XX" ) ) AS ?level ) } ?tree rdfs:label ?treeLabel . ?district rdfs:label ?districtLabel . ?region rdfs:label ?regionLabel . FILTER(LANG(?treeLabel) = "en") FILTER(LANG(?districtLabel) = "en") FILTER(LANG(?regionLabel) = "en") } LIMIT 8000

Which remarkable trees in the Czech Republic are located in districts, and what is their administrative level?

List remarkable trees in the Czech Republic along with the names of their district and region, and indicate if they are at the second or third administrative level.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4 ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q811534> . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P131> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P131> ?var3 . OPTIONAL { BIND ( IF ( EXISTS { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q548611> . } , "L2", IF ( EXISTS { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q548611> . } , "L3", IF ( EXISTS { ?var6 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q548611> . } , "L4", "XX" ) ) ) AS ?var4 ). } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } } LIMIT 8000


Question: What are the most recent publications in the Journal of the Chester Archaeological Society, and who authored them?

SELECT (MIN(?year) AS ?earliestYear) ?item ?itemLabel (GROUP_CONCAT(?authorLabel; SEPARATOR=" // ") AS ?authors)
WHERE {
  ?item wdt:P1433 wd:Q27716017 .  # published in Journal of the Chester Archaeological Society
  OPTIONAL {
    ?item wdt:P577 ?date .
    BIND(year(?date) AS ?year)
  }
  OPTIONAL {
    ?item wdt:P50 ?author .
    ?author rdfs:label ?authorLabel .
    FILTER(LANG(?authorLabel) = "en")
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}
GROUP BY ?item ?itemLabel
ORDER BY DESC(?earliestYear)
LIMIT 1000

List articles published in the Journal of the Chester Archaeological Society, sorted by year from newest to oldest, along with their English-language authors.

Can you show me a list of publications from the Journal of the Chester Archaeological Society, including their publication years and author names, with the newest ones first?

SELECT( MIN ( ?var1 ) AS ?var2 ) ?var3 ?var3Label ( GROUP_CONCAT ( ?var4Label ; SEPARATOR = " // " ) AS ?var5 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P1433> <http://www.wikidata.org/entity/Q27716017> . OPTIONAL { BIND ( <http://www.w3.org/2001/XMLSchema#date> ( ?var6 ) AS ?var1 ). ?var3 <http://www.wikidata.org/prop/direct/P577> ?var6 . } OPTIONAL { ?var3 ( <http://www.wikidata.org/prop/direct/P50> / <http://www.w3.org/2000/01/rdf-schema#label> ) ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } 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". } } GROUP BY ?var3 ?var3Label ORDER BY DESC( ?var2 ) LIMIT 1000


Question: Remarkable trees in the Czech Republic with their districts and regions.

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 ?tree ?treeLabel ?district ?districtLabel ?region ?regionLabel WHERE {
  ?tree wdt:P31 wd:Q811534 .
  ?tree wdt:P17 wd:Q213 .
  ?tree wdt:P131 ?municipality .
  ?municipality wdt:P131 ?district .
  ?district wdt:P131 ?region .
  ?district wdt:P31 wd:Q548611 .
  ?tree rdfs:label ?treeLabel .
  ?district rdfs:label ?districtLabel .
  ?region rdfs:label ?regionLabel .
  FILTER ( LANG( ?treeLabel ) = "en" ) FILTER ( LANG( ?districtLabel ) = "en" ) FILTER ( LANG( ?regionLabel ) = "en" )
}
LIMIT 800

What are the notable trees in the Czech Republic, and which districts and regions are they located in?

List all remarkable trees in the Czech Republic along with the district and region they belong to, using English labels.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4 ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q811534> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q213> . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P131> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P131> ?var3 . OPTIONAL { BIND ( IF ( EXISTS { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q548611> . } , ?var2 , IF ( EXISTS { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q548611> . } , ?var3 , IF ( EXISTS { ?var6 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q548611> . } , ?var6 , "XX" ) ) ) AS ?var4 ). } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } } LIMIT 800


Question: What are the Spanish labels of properties and their corresponding values for Jochi, along with how many values each property has?

SELECT ?property (SAMPLE(?pl) AS ?propertyLabel) (COUNT(?value) AS ?count) (GROUP_CONCAT(?valueLabel; SEPARATOR=", ") AS ?valueLabels) WHERE { wd:Q186581 ?property ?value . ?value rdfs:label ?valueLabel . FILTER(LANG(?valueLabel) = "es") . ?propertyItem wikibase:directClaim ?property . ?propertyItem rdfs:label ?pl . FILTER(LANG(?pl) = "es") . } GROUP BY ?property

In Spanish, what are Jochi’s attributes, their labels, the number of values each has, and what are those values?

Show me all the Spanish-language property names and their associated values for Jochi, grouped by property, including how many values each property has.

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


Question: What templates use the "distinct value constraint" for their main topic, and what qualifiers are applied to those template-topic statements?

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

Are there any qualifier properties used on template-topic statements that are constrained to have distinct values?

List templates that require distinct values for their main topic and show any additional qualifiers on those statements.

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


Question: Image of Richard Phillips (chemist) with SNAC ARK ID w6w66hr9

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

What is the Wikimedia Commons image for Richard Phillips (chemist), identified by SNAC ARK ID w6w66hr9?

Show me the picture of the person whose SNAC ARK ID is w6w66hr9.

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


Question: What are horror films starring French actors, and when were they released?

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 ?film ?filmLabel(MIN(?pubDate) AS ?publicationDate) WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film wdt:P136 wd:Q200092 .
  ?film(wdt:P161 | wdt:P175) ?actor .
  ?actor wdt:P106 wd:Q10800557 .
  ?actor(wdt:P27 | wdt:P172) wd:Q142 .
  OPTIONAL {
    ?film wdt:P577 ?pubDate .
  }
  ?film rdfs:label ?filmLabel .
  FILTER(LANG(?filmLabel) = "en")
}
GROUP BY ?film ?filmLabel
LIMIT 110

List English-labeled horror films with French cast members, along with their earliest publication dates.

Show me French film actors who appeared in horror movies, and the release years of those movies.

SELECT DISTINCT ?var1 ?var1Label ( MIN ( ?var2 ) AS ?var3 )( MIN ( ?var4 ) AS ?var5 )( MIN ( ?var6 ) AS ?var7 )( MAX ( ?var8 ) AS ?var9 ) WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#queryEngineChunkHandler> "Managed". ?var1 (( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P106> | <http://www.wikidata.org/prop/direct/P136> )/ <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q11424> . ?var1 ( <http://www.wikidata.org/prop/direct/P136> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q16575965> . { ?var10 (^ <http://www.wikidata.org/prop/direct/P161> |^ <http://www.wikidata.org/prop/direct/P175> ) ?var1 . } ?var10 (( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P106> | <http://www.wikidata.org/prop/direct/P136> )/ <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q10800557> . ?var10 ( <http://www.wikidata.org/prop/direct/P27> | <http://www.wikidata.org/prop/direct/P172> ) <http://www.wikidata.org/entity/Q142> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2437> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P580> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P582> ?var6 . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . } GROUP BY ?var1 ?var1Label LIMIT 110


Question: What film has the elCinema ID 1618955?

SELECT ?film WHERE { ?film wdt:P3135 "1618955" .}

Which movie on Wikidata is identified by the elCinema film ID 1618955?

Find the Wikidata item for the film with elCinema ID 1618955.

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


Question: What is the English name and description of the venue in Theatricalia with ID 156?

SELECT ?theatre ?theatreLabel ?description WHERE { ?theatre wdt:P2468 "156" . OPTIONAL { ?theatre schema:description ?description . FILTER (LANG(?description) = "en") } ?theatre rdfs:label ?theatreLabel . FILTER (LANG(?theatreLabel) = "en") }

Can you tell me the label and description in English for the Theatricalia ID 156?

Which entity has the Theatricalia ID 156, and what is its English name and description?

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


Question: What are the organizations in Wikidata with the fewest properties listed?

SELECT ?organization (COUNT(DISTINCT ?property) AS ?propertyCount) WHERE { ?organization wdt:P31 wd:Q43229 . OPTIONAL { ?organization ?property ?anyObject . } } GROUP BY ?organization ORDER BY ASC(?propertyCount)

Which organizations have the smallest number of associated properties in Wikidata, and how many properties do they have?

List organizations sorted by how minimally described they are in Wikidata, showing the count of properties each has.

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q43229> . OPTIONAL { ?var1 ?var2 ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1 ORDER BY ASC( ?var3 )


Question: All properties and values for George Orwell in Wikidata.

SELECT ?property ?value WHERE { wd:Q3335 ?property ?value .}

What are all the properties and their values associated with George Orwell on Wikidata?

Show me every piece of information Wikidata has about George Orwell, including descriptions in different languages and external identifiers.

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


Question: List of manga and manga-related works in 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 ?item ?itemLabel WHERE {
  ?item wdt:P31 / wdt:279 * wd:Q8274 .
  ?item rdfs:label ?itemLabel .
}
ORDER BY ASC ( ?itemLabel )
LIMIT 100

What are the titles of manga and their subclasses in Wikidata?

Show me up to 100 manga titles and related works, sorted alphabetically.

SELECT DISTINCT ?var1 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/279> *) <http://www.wikidata.org/entity/Q8274> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } ORDER BY ASC( ?var1Label ) LIMIT 100


Question: What is the Soccerway player ID for the Brazilian footballer Hulk?

SELECT DISTINCT ?soccerwayId WHERE { wd:Q62786 wdt:P2369 ?soccerwayId . }

Can you find the Soccerway identifier for the footballer known as Hulk?

Which Soccerway ID is associated with the player Givanildo Vieira de Sousa, who is nicknamed Hulk?

SELECT DISTINCT * WHERE { ?var1 <http://www.wikidata.org/prop/P2369> ?var2 ; <http://www.w3.org/2000/01/rdf-schema#label> "Hulk". }


Question: What are the reference details (such as URL and retrieval date) for the citation supporting Albert Einstein's occupation as a physicist?

SELECT ?refProp ?refValue WHERE { ref:0017e77f9ff58f99594b9cd7adbef7822e57a3df ?refProp ?refValue . }

Show all properties and values associated with the reference that cites the source for Albert Einstein being a physicist.

Retrieve the reference information, including the source URL and when it was accessed, for the claim that Albert Einstein was a physicist.

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


Question: Belize: official website, coordinates, image, and Wikipedia link in English, German, French, and Italian.

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

What are the label, image, geographic coordinates, English Wikipedia page, and official website of Belize, listed in English, German, French, and Italian order?

Please provide the multilingual labels of Belize along with its topography image, coordinates, English Wikipedia article, and official website, sorted by language preference (English first).

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


Question: What are some Japanese musical groups?

SELECT ?group ?groupLabel WHERE { ?group wdt:P31 wd:Q215380 . ?group wdt:P495 wd:Q17 . OPTIONAL { ?group rdfs:label ?groupLabel . FILTER(LANG(?groupLabel) = 'en') } } LIMIT 100

List musical groups from Japan.
Can you show me bands from Japan?

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/Q215380> . ?var2 <http://www.wikidata.org/prop/direct/P175> <http://www.wikidata.org/entity/Q1050499> . } LIMIT 100


Question: Films released in November 2017

SELECT DISTINCT ?film WHERE { ?film (wdt:P31/wdt:P279*) wd:Q11424 . ?film wdt:P577 ?releaseDate . FILTER ( ?releaseDate >= "2017-11-01T00:00:00Z"^^xsd:dateTime && ?releaseDate <= "2017-11-30T00:00:00Z"^^xsd:dateTime ) }

Which films were released in November 2017?

List all films (including subtypes like documentaries or animated films) that had their publication date in November 2017.

SELECT DISTINCT ?var1 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/P577> ?var2 . FILTER ( ( ( ?var2 >= "2017-11-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "2017-11-30T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: Musical groups from South Africa

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 ?group ?groupLabel WHERE {
  ?group wdt:P31 wd:Q215380 .
  ?group wdt:P495 wd:Q258 .
  ?group rdfs:label ?groupLabel .
  FILTER ( LANG( ?groupLabel ) = "en" )
}
LIMIT 100

What are some musical groups that originate from South Africa?

List the names of South African musical groups.

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/Q215380> . ?var1 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q258> . } LIMIT 100


Question: English label, description, and image of Saintes (Q191126)

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

What is the English name, description, and image of the commune Saintes in France?

Show me the English name and description of Saintes, along with its associated image from Wikimedia Commons.

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


Question: Which football player named Hulk played for a team in Portugal and has a FIFA ID?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?player ?team WHERE {
  ?player rdfs:label "Hulk" @en .
  ?player p:P1469 ?fifaStmt .
  ?player p:P54 ?teamStmt .
  ?teamStmt ps:P54 ?team .
  ?team p:P17 ?countryStmt .
  ?countryStmt ps:P17 wd:Q45 .
}

Who is the Brazilian footballer Hulk that played for a club in Portugal and is listed in FIFA’s player database?

Find the FIFA-registered football player named Hulk who played for a Portuguese team.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/P1469> ?var5 . ?var1 ?var6Label "Hulk"@en . ?var1 <http://www.wikidata.org/prop/P54> ?var7 . ?var7 <http://www.wikidata.org/prop/statement/P54> ?var2 . ?var2 <http://www.wikidata.org/prop/P17> ?var8 . ?var8 <http://www.wikidata.org/prop/statement/P17> <http://www.wikidata.org/entity/Q45> . }


Question: How many colleges are listed in Wikidata?

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

What is the total number of institutions classified as colleges in Wikidata?

Count the number of entities that are instances of the class "college".

SELECT DISTINCT( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3578400> . } LIMIT 10


Question: What resources have the German label "Katze"?

SELECT ?item WHERE { ?item schema:name "Katze"@de . }

Show me everything labeled "Katze" in German.

Which items in Wikidata or related datasets are called "Katze" in German?

SELECT * WHERE { ?var1 ?var2Label "Katze"@de . } LIMIT 1


Question: Administrative hierarchy of Lyngby-Taarbæk Municipality

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 ?administrativeEntity ( STR( ?label ) AS ?administrativeEntityLabel ) WHERE {
  wd:Q493826 wdt:P131 * ?administrativeEntity .
  ?administrativeEntity rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}

What administrative regions is Lyngby-Taarbæk Municipality part of, including itself?

List all administrative entities that Lyngby-Taarbæk Municipality belongs to, from the municipality up to the kingdom.

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


Question: What are the geographic coordinates of Saratov?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?coordinates WHERE {
  wd:Q5332 wdt:P625 ?coordinates .
}

Where is Saratov located? (in coordinates)

Give me the latitude and longitude of the city of Saratov.

SELECT DISTINCT ?var1 WHERE { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q5332> . ?var2 <http://www.wikidata.org/prop/direct/P625> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { } } ORDER BY DESC( ?var3 ) LIMIT 100


Question: List brutal death metal bands with their official websites, Facebook usernames, countries of origin, MusicBrainz IDs, and images.

SELECT ?group ?groupLabel ?website ?facebookUsername ?countryLabel ?musicBrainzId ?image WHERE { ?group wdt:P31 wd:Q215380 . ?group wdt:P136 wd:Q2265866 . OPTIONAL { ?group wdt:P856 ?website . } OPTIONAL { ?group wdt:P2013 ?facebookUsername . } OPTIONAL { ?group wdt:P495 ?country . } ?group wdt:P434 ?musicBrainzId . OPTIONAL { ?group wdt:P18 ?image . } ?group rdfs:label ?groupLabel . FILTER(LANG(?groupLabel) = "en") OPTIONAL { ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") } }

Which brutal death metal musical groups have official websites, Facebook profiles, known countries of origin, MusicBrainz IDs, and images on Wikimedia Commons?

Show me the names, countries, websites, Facebook usernames, MusicBrainz IDs, and images of all brutal death metal bands in Wikidata.

SELECT ?var1 ?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/Q2265866> . 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 . } ?var1 <http://www.wikidata.org/prop/direct/P434> ?var5 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var6 . } }


Question: What is the image of Mikhail Bakhtin in Wikimedia Commons?

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

Can you show me the picture associated with the SNAC ARK ID w6fg5vj3?

Show the Commons image for the person identified by the SNAC ARK ID w6fg5vj3.

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


Question: What Olympic Games took place in the year 2000?

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 ?olympicEvent ?label WHERE {
  ?olympicEvent wdt:P31 ?olympicClass .
  ?olympicClass wdt:P279 wd:Q5389 .
  ?olympicEvent wdt:P580 ?startDate .
  FILTER(YEAR(?startDate) = 2000)
  OPTIONAL {
    ?olympicEvent rdfs:label ?label .
    FILTER(LANG(?label) = "en")
  }
}

Which event, as a subclass of the Olympic Games, started in 2000?

Can you list the Summer Olympics that began in the year 2000?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q5389> . ?var1 <http://www.wikidata.org/prop/direct/P580> ?var3 . FILTER ( ( REGEX ( STR ( ?var3 ) , "^.*2000", "i" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the Portuguese names and descriptions of the colors in the Brazilian flag?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?color ?colorLabel ?description WHERE {
  wd:Q82194 wdt:P462 ?color .
  ?color rdfs:label ?colorLabel .
  ?color schema:description ?description .
  FILTER ( LANG( ?colorLabel ) = "pt" ) .
  FILTER ( LANG( ?description ) = "pt" ) .
}
LIMIT 100

Show me the Portuguese labels and descriptions for the colors that make up Brazil’s national flag.

Which colors appear on the Brazilian flag, and how are they described in Portuguese?

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/P527> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "pt" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "pt" ) ) ) . } LIMIT 100


Question: Where was Alfred Korzybski born?

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 ?placeOfBirthLabel WHERE {
  wd:Q333402 wdt:P19 ?placeOfBirth .
  ?placeOfBirth rdfs:label ?placeOfBirthLabel .
  FILTER(LANG(?placeOfBirthLabel) = "en")
}

What is the place of birth of the Polish-American philosopher Alfred Korzybski?

In which city was Alfred Korzybski born?

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


Question: List all dolls in Wikidata.

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

What are some examples of dolls documented in Wikidata?

Show me the entities representing dolls, along with their labels.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/q144> . 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/Q168658> . }


Question: Spouse of George Washington

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

What is the name of George Washington’s wife in English?

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


Question: Films from the United States with IMDb IDs.

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

Which films produced in the United States have IMDb identifiers?

List films originating from the United States along with their IMDb IDs.

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