Simple Question (Direct)
Simple Question
Q104177
P102
Q7210356
USER
Which party is Otto Lenz affiliated with ?
(Q104177,P102,c(Q7210356))
action filter_type
action find
entity Q104177
relation P102
type Q7210356
['Q104177', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { resource:Q104177 property:P102 ?t . ?t rdf:type ontology:Q7210356 }
Otto Lenz
action filter_type
action find
entity Otto Lenz
relation member of political party
type political organization
['Otto Lenz', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { resource:Otto_Lenz property:member_of_political_party ?t . ?t rdf:type ontology:political_organization }
[]
political organization
Q157537
SYSTEM
Centre Party
Q157537
(Q104177,P102,c(Q7210356))
action filter_type
action find
entity Q104177
relation P102
type Q7210356
Otto Lenz is affiliated with [ANSWER]
['Q104177', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { resource:Q104177 property:P102 ?t . ?t rdf:type ontology:Q7210356 }
Centre Party
Otto Lenz is affiliated with Centre Party
Centre Party
action filter_type
action find
entity Otto Lenz
relation member of political party
type political organization
['Otto Lenz', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { resource:Otto_Lenz property:member_of_political_party ?t . ?t rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q104177
P937
Q56061
USER
Which is the work location of Otto Lenz ?
(Q104177,P937,c(Q56061))
action filter_type
action find
entity Q104177
relation P937
type Q56061
['Q104177', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q104177 property:P937 ?v . ?v rdf:type ontology:Q56061 }
Otto Lenz
action filter_type
action find
entity Otto Lenz
relation work location
type administrative territorial entity
['Otto Lenz', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Otto_Lenz property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q586
SYSTEM
Bonn
Q586
(Q104177,P937,c(Q56061))
action filter_type
action find
entity Q104177
relation P937
type Q56061
[ANSWER] is the work location of Otto Lenz
['Q104177', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q104177 property:P937 ?v . ?v rdf:type ontology:Q56061 }
Bonn
Bonn is the work location of Otto Lenz
Bonn
action filter_type
action find
entity Otto Lenz
relation work location
type administrative territorial entity
['Otto Lenz', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Otto_Lenz property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q586 Q11543824 Q6022786
P6
Q502895
USER
Does that administrative territory have its government headed by Ryōma Hashimoto and Bengt Oelmann ?
(Q586,P6,Q11543824) (Q586,P6,Q6022786)
action is_in
entity Q586
action intersection
action find_reverse
entity Q11543824
relation P6
action find_reverse
entity Q6022786
relation P6
['Q586', 'P6', 'Q11543824'] ['Q586', 'P6', 'Q6022786']
ASK WHERE { resource:Q586 property:P6 resource:Q11543824 . resource:Q586 property:P6 resource:Q6022786 }
Bonn Ryōma Hashimoto Bengt Oelmann
action is_in
entity Bonn
action intersection
action find_reverse
entity Ryōma Hashimoto
relation head of government
action find_reverse
entity Bengt Oelmann
relation head of government
['Bonn', 'head of government', 'Ryōma Hashimoto'] ['Bonn', 'head of government', 'Bengt Oelmann']
ASK WHERE { resource:Bonn property:head_of_government resource:Ryōma_Hashimoto . resource:Bonn property:head_of_government resource:Bengt_Oelmann }
[]
common name
SYSTEM
NO
(Q586,P6,Q11543824) (Q586,P6,Q6022786)
action is_in
entity Q586
action intersection
action find_reverse
entity Q11543824
relation P6
action find_reverse
entity Q6022786
relation P6
[ANSWER]
['Q586', 'P6', 'Q11543824'] ['Q586', 'P6', 'Q6022786']
ASK WHERE { resource:Q586 property:P6 resource:Q11543824 . resource:Q586 property:P6 resource:Q6022786 }
No
action is_in
entity Bonn
action intersection
action find_reverse
entity Ryōma Hashimoto
relation head of government
action find_reverse
entity Bengt Oelmann
relation head of government
['Bonn', 'head of government', 'Ryōma Hashimoto'] ['Bonn', 'head of government', 'Bengt Oelmann']
ASK WHERE { resource:Bonn property:head_of_government resource:Ryōma_Hashimoto . resource:Bonn property:head_of_government resource:Bengt_Oelmann }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q586
P17
Q15617994
USER
How many administrative territories are Bonn present in ?
(Q586,P17,c(Q15617994))
action count
action filter_type
action find
entity Q586
relation P17
type Q15617994
['Q586', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Q586 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
Bonn
action count
action filter_type
action find
entity Bonn
relation country
type designation for an administrative territorial entity
['Bonn', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Bonn property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q142
(Q586,P17,c(Q15617994))
action count
action filter_type
action find
entity Q586
relation P17
type Q15617994
[ANSWER]
['Q586', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Q586 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
France
1
action count
action filter_type
action find
entity Bonn
relation country
type designation for an administrative territorial entity
['Bonn', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Bonn property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q4814073
Q15617994
USER
And what about Central District?
(Q4814073,P17,c(Q15617994))
action count
action filter_type
action find
entity Q4814073
relation P17
type Q15617994
['Q4814073', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Q4814073 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Central District
action count
action filter_type
action find
entity Central District
relation country
type designation for an administrative territorial entity
['Central District', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Central_District property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q4814073,P17,c(Q15617994))
action count
action filter_type
action find
entity Q4814073
relation P17
type Q15617994
[ANSWER]
['Q4814073', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Q4814073 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Central District
relation country
type designation for an administrative territorial entity
['Central District', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Central_District property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q586
P30
Q2221906
USER
Which geographic location is Bonn located in ?
(Q586,P30,c(Q2221906))
action filter_type
action find
entity Q586
relation P30
type Q2221906
['Q586', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?h WHERE { resource:Q586 property:P30 ?h . ?h rdf:type ontology:Q2221906 }
Bonn
action filter_type
action find
entity Bonn
relation continent
type geographic location
['Bonn', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?h WHERE { resource:Bonn property:continent ?h . ?h rdf:type ontology:geographic_location }
[]
geographic location
Q5401
SYSTEM
Eurasia
Q5401
(Q586,P30,c(Q2221906))
action filter_type
action find
entity Q586
relation P30
type Q2221906
Bonn is located in [ANSWER]
['Q586', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?h WHERE { resource:Q586 property:P30 ?h . ?h rdf:type ontology:Q2221906 }
Eurasia
Bonn is located in Eurasia
Eurasia
action filter_type
action find
entity Bonn
relation continent
type geographic location
['Bonn', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?h WHERE { resource:Bonn property:continent ?h . ?h rdf:type ontology:geographic_location }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q586
P127
Q43229
USER
Which organization is owned by Bonn ?
(c(Q43229),P127,Q586)
action filter_type
action find_reverse
entity Q586
relation P127
type Q43229
[{'concept': 'Q43229'}, 'P127', 'Q586']
SELECT DISTINCT ?g WHERE { ?g property:P127 resource:Q586 . ?g rdf:type ontology:Q43229 }
Bonn
action filter_type
action find_reverse
entity Bonn
relation owned by
type organization
[{'concept': 'organization'}, 'owned by', 'Bonn']
SELECT DISTINCT ?g WHERE { ?g property:owned_by resource:Bonn . ?g rdf:type ontology:organization }
[]
organization
Q1783048
SYSTEM
Poppelsdorfer Friedhof
Q1783048
(c(Q43229),P127,Q586)
action filter_type
action find_reverse
entity Q586
relation P127
type Q43229
[ANSWER] is owned by Bonn
[{'concept': 'Q43229'}, 'P127', 'Q586']
SELECT DISTINCT ?g WHERE { ?g property:P127 resource:Q586 . ?g rdf:type ontology:Q43229 }
Poppelsdorfer Friedhof
Poppelsdorfer Friedhof is owned by Bonn
Poppelsdorfer Friedhof
action filter_type
action find_reverse
entity Bonn
relation owned by
type organization
[{'concept': 'organization'}, 'owned by', 'Bonn']
SELECT DISTINCT ?g WHERE { ?g property:owned_by resource:Bonn . ?g rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q586
P1376
Q7275
USER
Which state has Bonn as its capital ?
(Q586,P1376,c(Q7275))
action filter_type
action find
entity Q586
relation P1376
type Q7275
['Q586', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?q WHERE { resource:Q586 property:P1376 ?q . ?q rdf:type ontology:Q7275 }
Bonn
action filter_type
action find
entity Bonn
relation capital of
type state
['Bonn', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?q WHERE { resource:Bonn property:capital_of ?q . ?q rdf:type ontology:state }
[]
state
Q713750
SYSTEM
West Germany
Q713750
(Q586,P1376,c(Q7275))
action filter_type
action find
entity Q586
relation P1376
type Q7275
[ANSWER] has Bonn as its capital
['Q586', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?q WHERE { resource:Q586 property:P1376 ?q . ?q rdf:type ontology:Q7275 }
West Germany
West Germany has Bonn as its capital
West Germany
action filter_type
action find
entity Bonn
relation capital of
type state
['Bonn', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?q WHERE { resource:Bonn property:capital_of ?q . ?q rdf:type ontology:state }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q649
Q7275
USER
And also tell me about Moscow?
(Q649,P1376,c(Q7275))
action filter_type
action find
entity Q649
relation P1376
type Q7275
['Q649', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?o WHERE { resource:Q649 property:P1376 ?o . ?o rdf:type ontology:Q7275 }
Moscow
action filter_type
action find
entity Moscow
relation capital of
type state
['Moscow', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?o WHERE { resource:Moscow property:capital_of ?o . ?o rdf:type ontology:state }
[]
state
Q15180 Q2184 Q186096
SYSTEM
Soviet Union, Russian Soviet Federative Socialist Republic, Tsardom of Russia
Q170770 Q15180 Q2184 Q186096 Q2305208
(Q649,P1376,c(Q7275))
action filter_type
action find
entity Q649
relation P1376
type Q7275
[ANSWERS]
['Q649', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?o WHERE { resource:Q649 property:P1376 ?o . ?o rdf:type ontology:Q7275 }
Grand Duchy of Moscow Soviet Union Russian Soviet Federative Socialist Republic Tsardom of Russia Soviet Russia
Soviet Union Russian Soviet Federative Socialist Republic Tsardom of Russia
action filter_type
action find
entity Moscow
relation capital of
type state
['Moscow', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?o WHERE { resource:Moscow property:capital_of ?o . ?o rdf:type ontology:state }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q53127 Q11543824
P47 P27
Q15617994
USER
Which administrative territories are the native countriesof Ryōma Hashimoto or share border with Farra d'Isonzo ?
OR((Q11543824,P27,c(Q15617994)), (Q53127,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q11543824
relation P27
action find
entity Q53127
relation P47
type Q15617994
{'OR': [['Q11543824', 'P27', {'concept': 'Q15617994'}], ['Q53127', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q11543824 property:P27 ?d } UNION { resource:Q53127 property:P47 ?d } } . ?d rdf:type ontology:Q15617994 }
Farra d'Isonzo Ryōma Hashimoto
action filter_type
action union
action find
entity Ryōma Hashimoto
relation country of citizenship
action find
entity Farra d'Isonzo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Ryōma Hashimoto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ["Farra d'Isonzo", 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Ryōma_Hashimoto property:country_of_citizenship ?d } UNION { resource:Farra_d'Isonzo property:shares_border_with ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q53138 Q53142 Q53129 Q53144 Q6596 Q53131 Q53135 Q53134
SYSTEM
Japan, Sagrado, San Lorenzo Isontino, Gradisca d'Isonzo, Savogna d'Isonzo, Gorizia, Mariano del Friuli, Mossa, Moraro
Q17 Q53138 Q53142 Q53129 Q53144 Q6596 Q53131 Q53135 Q53134
OR((Q11543824,P27,c(Q15617994)), (Q53127,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q11543824
relation P27
action find
entity Q53127
relation P47
type Q15617994
[ANSWERS] are the native countriesof Ryōma Hashimoto or share border with Farra d'Isonzo
{'OR': [['Q11543824', 'P27', {'concept': 'Q15617994'}], ['Q53127', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q11543824 property:P27 ?d } UNION { resource:Q53127 property:P47 ?d } } . ?d rdf:type ontology:Q15617994 }
Japan Sagrado San Lorenzo Isontino Gradisca d'Isonzo Savogna d'Isonzo Gorizia Mariano del Friuli Mossa Moraro
Japan, Sagrado, San Lorenzo Isontino, Gradisca d'Isonzo, Savogna d'Isonzo, Gorizia, Mariano del Friuli, Mossa and Moraro are the native countriesof Ryōma Hashimoto or share border with Farra d'Isonzo
Japan Sagrado San Lorenzo Isontino Gradisca d'Isonzo Savogna d'Isonzo Gorizia Mariano del Friuli Mossa Moraro
action filter_type
action union
action find
entity Ryōma Hashimoto
relation country of citizenship
action find
entity Farra d'Isonzo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Ryōma Hashimoto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ["Farra d'Isonzo", 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Ryōma_Hashimoto property:country_of_citizenship ?d } UNION { resource:Farra_d'Isonzo property:shares_border_with ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q17 Q53138 Q53142 Q53129 Q53144 Q6596 Q53131 Q53135 Q53134
P17
Q15617994
USER
Which administrative territories do those ones belong to ?
(Q17,P17,c(Q15617994)) (Q53138,P17,c(Q15617994)) (Q53142,P17,c(Q15617994)) (Q53129,P17,c(Q15617994)) (Q53144,P17,c(Q15617994)) (Q6596,P17,c(Q15617994)) (Q53131,P17,c(Q15617994)) (Q53135,P17,c(Q15617994)) (Q53134,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q17', 'P17', {'concept': 'Q15617994'}] ['Q53138', 'P17', {'concept': 'Q15617994'}] ['Q53142', 'P17', {'concept': 'Q15617994'}] ['Q53129', 'P17', {'concept': 'Q15617994'}] ['Q53144', 'P17', {'concept': 'Q15617994'}] ['Q6596', 'P17', {'concept': 'Q15617994'}] ['Q53131', 'P17', {'concept': 'Q15617994'}] ['Q53135', 'P17', {'concept': 'Q15617994'}] ['Q53134', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . ?s property:P17 ?x . VALUES ( ?s ) { ( resource:Q17 ) ( resource:Q53138 ) ( resource:Q53142 ) } }
Japan Sagrado San Lorenzo Isontino Gradisca d'Isonzo Savogna d'Isonzo Gorizia Mariano del Friuli Mossa Moraro
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Japan', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Sagrado', 'country', {'concept': 'designation for an administrative territorial entity'}] ['San Lorenzo Isontino', 'country', {'concept': 'designation for an administrative territorial entity'}] ["Gradisca d'Isonzo", 'country', {'concept': 'designation for an administrative territorial entity'}] ["Savogna d'Isonzo", 'country', {'concept': 'designation for an administrative territorial entity'}] ['Gorizia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Mariano del Friuli', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Mossa', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Moraro', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:country ?x . VALUES ( ?s ) { ( resource:Japan ) ( resource:Sagrado ) ( resource:San_Lorenzo_Isontino ) } }
[]
designation for an administrative territorial entity
Q38 Q38 Q38
SYSTEM
Italy
Q17 Q38 Q38 Q38 Q38 Q38 Q38 Q38 Q38
(Q17,P17,c(Q15617994)) (Q53138,P17,c(Q15617994)) (Q53142,P17,c(Q15617994)) (Q53129,P17,c(Q15617994)) (Q53144,P17,c(Q15617994)) (Q6596,P17,c(Q15617994)) (Q53131,P17,c(Q15617994)) (Q53135,P17,c(Q15617994)) (Q53134,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those ones belong to [ANSWER], [ANSWER] and [ANSWER]
['Q17', 'P17', {'concept': 'Q15617994'}] ['Q53138', 'P17', {'concept': 'Q15617994'}] ['Q53142', 'P17', {'concept': 'Q15617994'}] ['Q53129', 'P17', {'concept': 'Q15617994'}] ['Q53144', 'P17', {'concept': 'Q15617994'}] ['Q6596', 'P17', {'concept': 'Q15617994'}] ['Q53131', 'P17', {'concept': 'Q15617994'}] ['Q53135', 'P17', {'concept': 'Q15617994'}] ['Q53134', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . ?s property:P17 ?x . VALUES ( ?s ) { ( resource:Q17 ) ( resource:Q53138 ) ( resource:Q53142 ) } }
Japan Italy Italy Italy Italy Italy Italy Italy Italy
Those ones belong to Italy, Italy and Italy
Italy Italy Italy
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Japan', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Sagrado', 'country', {'concept': 'designation for an administrative territorial entity'}] ['San Lorenzo Isontino', 'country', {'concept': 'designation for an administrative territorial entity'}] ["Gradisca d'Isonzo", 'country', {'concept': 'designation for an administrative territorial entity'}] ["Savogna d'Isonzo", 'country', {'concept': 'designation for an administrative territorial entity'}] ['Gorizia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Mariano del Friuli', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Mossa', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Moraro', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:country ?x . VALUES ( ?s ) { ( resource:Japan ) ( resource:Sagrado ) ( resource:San_Lorenzo_Isontino ) } }
[]