Simple Question (Direct)
Simple Question
Q761670
P937
Q56061
USER
What is the work location of August Heine ?
(Q761670,P937,c(Q56061))
action filter_type
action find
entity Q761670
relation P937
type Q56061
['Q761670', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q761670 property:P937 ?i . ?i rdf:type ontology:Q56061 }
August Heine
action filter_type
action find
entity August Heine
relation work location
type administrative territorial entity
['August Heine', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:August_Heine property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q761670,P937,c(Q56061))
action filter_type
action find
entity Q761670
relation P937
type Q56061
The work location of August Heine is in [ANSWER]
['Q761670', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q761670 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Berlin
The work location of August Heine is in Berlin
Berlin
action filter_type
action find
entity August Heine
relation work location
type administrative territorial entity
['August Heine', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:August_Heine property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q761670
P102
Q7278
USER
Which political party is August Heine a member of ?
(Q761670,P102,c(Q7278))
action filter_type
action find
entity Q761670
relation P102
type Q7278
['Q761670', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q7278 . resource:Q761670 property:P102 ?m }
August Heine
action filter_type
action find
entity August Heine
relation member of political party
type political party
['August Heine', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_party . resource:August_Heine property:member_of_political_party ?m }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(Q761670,P102,c(Q7278))
action filter_type
action find
entity Q761670
relation P102
type Q7278
Party [ANSWER] is August Heine a member of
['Q761670', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q7278 . resource:Q761670 property:P102 ?m }
Social Democratic Party of Germany
Party Social Democratic Party of Germany is August Heine a member of
Social Democratic Party of Germany
action filter_type
action find
entity August Heine
relation member of political party
type political party
['August Heine', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_party . resource:August_Heine property:member_of_political_party ?m }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q109203 Q761670
P102
Q7278
USER
And also Heinz Fromm
AND((Q761670,P102,c(Q7278)), (Q109203,P102,c(Q7278)))
action filter_type
action intersection
action find
entity Q761670
relation P102
action find
entity Q109203
relation P102
type Q7278
{'AND': [['Q761670', 'P102', {'concept': 'Q7278'}], ['Q109203', 'P102', {'concept': 'Q7278'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7278 . resource:Q109203 property:P102 ?i . resource:Q761670 property:P102 ?i }
Heinz Fromm August Heine
action filter_type
action intersection
action find
entity August Heine
relation member of political party
action find
entity Heinz Fromm
relation member of political party
type political party
{'AND': [['August Heine', 'member of political party', {'concept': 'political party'}], ['Heinz Fromm', 'member of political party', {'concept': 'political party'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_party . resource:Heinz_Fromm property:member_of_political_party ?i . resource:August_Heine property:member_of_political_party ?i }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
AND((Q761670,P102,c(Q7278)), (Q109203,P102,c(Q7278)))
action filter_type
action intersection
action find
entity Q761670
relation P102
action find
entity Q109203
relation P102
type Q7278
[ANSWER]
{'AND': [['Q761670', 'P102', {'concept': 'Q7278'}], ['Q109203', 'P102', {'concept': 'Q7278'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7278 . resource:Q109203 property:P102 ?i . resource:Q761670 property:P102 ?i }
Social Democratic Party of Germany
Social Democratic Party of Germany
action filter_type
action intersection
action find
entity August Heine
relation member of political party
action find
entity Heinz Fromm
relation member of political party
type political party
{'AND': [['August Heine', 'member of political party', {'concept': 'political party'}], ['Heinz Fromm', 'member of political party', {'concept': 'political party'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_party . resource:Heinz_Fromm property:member_of_political_party ?i . resource:August_Heine property:member_of_political_party ?i }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q19291102 Q761670
P106
Q12737077
USER
Which occupations are the job of August Heine and Gustau Gili i Torra ?
AND((Q761670,P106,c(Q12737077)), (Q19291102,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q761670
relation P106
action find
entity Q19291102
relation P106
type Q12737077
{'AND': [['Q761670', 'P106', {'concept': 'Q12737077'}], ['Q19291102', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { resource:Q761670 property:P106 ?v . resource:Q19291102 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Gustau Gili i Torra August Heine
action filter_type
action intersection
action find
entity August Heine
relation occupation
action find
entity Gustau Gili i Torra
relation occupation
type occupation
{'AND': [['August Heine', 'occupation', {'concept': 'occupation'}], ['Gustau Gili i Torra', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { resource:August_Heine property:occupation ?v . resource:Gustau_Gili_i_Torra property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q1607826
SYSTEM
editor
Q1607826
AND((Q761670,P106,c(Q12737077)), (Q19291102,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q761670
relation P106
action find
entity Q19291102
relation P106
type Q12737077
The [ANSWER] is the job of August Heine and Gustau Gili i Torra
{'AND': [['Q761670', 'P106', {'concept': 'Q12737077'}], ['Q19291102', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { resource:Q761670 property:P106 ?v . resource:Q19291102 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
editor
The editor is the job of August Heine and Gustau Gili i Torra
editor
action filter_type
action intersection
action find
entity August Heine
relation occupation
action find
entity Gustau Gili i Torra
relation occupation
type occupation
{'AND': [['August Heine', 'occupation', {'concept': 'occupation'}], ['Gustau Gili i Torra', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { resource:August_Heine property:occupation ?v . resource:Gustau_Gili_i_Torra property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q821860 Q761670
P47 P27
Q1048835
USER
Which political territories are August Heine an inhabitant of or have a shared border with Sahagún ?
OR((Q761670,P27,c(Q1048835)), (Q821860,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q761670
relation P27
action find
entity Q821860
relation P47
type Q1048835
{'OR': [['Q761670', 'P27', {'concept': 'Q1048835'}], ['Q821860', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q761670 property:P27 ?u } UNION { resource:Q821860 property:P47 ?u } } . ?u rdf:type ontology:Q1048835 }
Sahagún August Heine
action filter_type
action union
action find
entity August Heine
relation country of citizenship
action find
entity Sahagún
relation shares border with
type political territorial entity
{'OR': [['August Heine', 'country of citizenship', {'concept': 'political territorial entity'}], ['Sahagún', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:August_Heine property:country_of_citizenship ?u } UNION { resource:Sahagún property:shares_border_with ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1919472 Q183 Q930641 Q1020421 Q138253 Q1640178 Q137151 Q926796
SYSTEM
Melgar de Arriba, Germany, Santervás de Campos, Moratinos, Palencia, Gordaliza del Pino, Villamol, Cea, Calzada del Coto
Q1919472 Q183 Q930641 Q1020421 Q138253 Q1640178 Q137151 Q926796
OR((Q761670,P27,c(Q1048835)), (Q821860,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q761670
relation P27
action find
entity Q821860
relation P47
type Q1048835
[ANSWERS] are August Heine an inhabitant of or have a shared border with Sahagún
{'OR': [['Q761670', 'P27', {'concept': 'Q1048835'}], ['Q821860', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q761670 property:P27 ?u } UNION { resource:Q821860 property:P47 ?u } } . ?u rdf:type ontology:Q1048835 }
Melgar de Arriba Germany Santervás de Campos Moratinos, Palencia Gordaliza del Pino Villamol Cea Calzada del Coto
Melgar de Arriba, Germany, Santervás de Campos, Moratinos, Palencia, Gordaliza del Pino, Villamol, Cea and Calzada del Coto are August Heine an inhabitant of or have a shared border with Sahagún
Melgar de Arriba Germany Santervás de Campos Moratinos, Palencia Gordaliza del Pino Villamol Cea Calzada del Coto
action filter_type
action union
action find
entity August Heine
relation country of citizenship
action find
entity Sahagún
relation shares border with
type political territorial entity
{'OR': [['August Heine', 'country of citizenship', {'concept': 'political territorial entity'}], ['Sahagún', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:August_Heine property:country_of_citizenship ?u } UNION { resource:Sahagún property:shares_border_with ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q761670
P39
Q12737077
USER
Which occupation was a position for which August Heine was appointed ?
(Q761670,P39,c(Q12737077))
action filter_type
action find
entity Q761670
relation P39
type Q12737077
['Q761670', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q761670 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
August Heine
action filter_type
action find
entity August Heine
relation position held
type occupation
['August Heine', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:August_Heine property:position_held ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q17854096
SYSTEM
member of the Reichstag of the German Empire
Q17854096
(Q761670,P39,c(Q12737077))
action filter_type
action find
entity Q761670
relation P39
type Q12737077
A [ANSWER] was a position for which August Heine was appointed
['Q761670', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q761670 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
member of the Reichstag of the German Empire
A member of the Reichstag of the German Empire was a position for which August Heine was appointed
member of the Reichstag of the German Empire
action filter_type
action find
entity August Heine
relation position held
type occupation
['August Heine', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:August_Heine property:position_held ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17854096
P17
Q3024240
USER
Which former country does that occupation belong to ?
(Q17854096,P17,c(Q3024240))
action filter_type
action find
entity Q17854096
relation P17
type Q3024240
['Q17854096', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ?j WHERE { resource:Q17854096 property:P17 ?j . ?j rdf:type ontology:Q3024240 }
member of the Reichstag of the German Empire
action filter_type
action find
entity member of the Reichstag of the German Empire
relation country
type former country
['member of the Reichstag of the German Empire', 'country', {'concept': 'former country'}]
SELECT DISTINCT ?j WHERE { resource:member_of_the_Reichstag_of_the_German_Empire property:country ?j . ?j rdf:type ontology:former_country }
[]
former country
Q43287
SYSTEM
German Empire
Q43287
(Q17854096,P17,c(Q3024240))
action filter_type
action find
entity Q17854096
relation P17
type Q3024240
That occupation belongs to the [ANSWER]
['Q17854096', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ?j WHERE { resource:Q17854096 property:P17 ?j . ?j rdf:type ontology:Q3024240 }
German Empire
That occupation belongs to the German Empire
German Empire
action filter_type
action find
entity member of the Reichstag of the German Empire
relation country
type former country
['member of the Reichstag of the German Empire', 'country', {'concept': 'former country'}]
SELECT DISTINCT ?j WHERE { resource:member_of_the_Reichstag_of_the_German_Empire property:country ?j . ?j rdf:type ontology:former_country }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q43287
P710
Q1190554
USER
Which events have that former country as their participant ?
(c(Q1190554),P710,Q43287)
action filter_type
action find_reverse
entity Q43287
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q43287']
SELECT DISTINCT ?x WHERE { ?x property:P710 resource:Q43287 . ?x rdf:type ontology:Q1190554 }
German Empire
action filter_type
action find_reverse
entity German Empire
relation participant
type event
[{'concept': 'event'}, 'participant', 'German Empire']
SELECT DISTINCT ?x WHERE { ?x property:participant resource:German_Empire . ?x rdf:type ontology:event }
[]
event
Q1694094 Q750567 Q1130507
SYSTEM
Second Battle of the Aisne, Spring Offensive, Hundred Days Offensive
Q1999020 Q620215 Q2665626 Q4873010 Q1320675 Q233219 Q130847 Q1130507 Q239255 Q4870258 Q2890541 Q1694094 Q1063735 Q853976 Q1096151 Q911448 Q989093 Q654374 Q3636355 Q2221800 Q1780536 Q750567
(c(Q1190554),P710,Q43287)
action filter_type
action find_reverse
entity Q43287
relation P710
type Q1190554
[ANSWERS] have that former country as their participant
[{'concept': 'Q1190554'}, 'P710', 'Q43287']
SELECT DISTINCT ?x WHERE { ?x property:P710 resource:Q43287 . ?x rdf:type ontology:Q1190554 }
Battle of the Hills Battle of Mont Saint-Quentin Battle of Beersheba Battle of the Scarpe Battle of Havrincourt Second Battle of Ypres Battle of Verdun Hundred Days Offensive Battle of Arras Battle of Aleppo (1918) Battle of La Malmaison Second Battle of the Aisne Second Battle of the Somme First Battle of Ypres Battle of Delville Wood Battle of Amiens First Battle of Champagne Battle of Cambrai Battle of Broodseinde First Battle of Artois Battle of Hill 60 Spring Offensive
Second Battle of the Aisne, Spring Offensive and Hundred Days Offensive have that former country as their participant
Second Battle of the Aisne Spring Offensive Hundred Days Offensive
action filter_type
action find_reverse
entity German Empire
relation participant
type event
[{'concept': 'event'}, 'participant', 'German Empire']
SELECT DISTINCT ?x WHERE { ?x property:participant resource:German_Empire . ?x rdf:type ontology:event }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q64
P190
Q515
USER
How many cities are sister towns of Berlin ?
(Q64,P190,c(Q515))
action count
action filter_type
action find
entity Q64
relation P190
type Q515
['Q64', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Q64 property:P190 ?p . ?p rdf:type ontology:Q515 }
Berlin
action count
action filter_type
action find
entity Berlin
relation sister city
type city
['Berlin', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Berlin property:sister_city ?p . ?p rdf:type ontology:city }
[]
city
SYSTEM
3
Q9005 Q3935 Q1486
(Q64,P190,c(Q515))
action count
action filter_type
action find
entity Q64
relation P190
type Q515
[ANSWER]
['Q64', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Q64 property:P190 ?p . ?p rdf:type ontology:Q515 }
Brussels Windhoek Buenos Aires
3
action count
action filter_type
action find
entity Berlin
relation sister city
type city
['Berlin', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Berlin property:sister_city ?p . ?p rdf:type ontology:city }
[]