Simple Question (Direct)
Simple Question
Q19362214
P39
Q12737077
USER
Which occupations were the positions for which Milan Pein were appointed ?
(Q19362214,P39,c(Q12737077))
action filter_type
action find
entity Q19362214
relation P39
type Q12737077
['Q19362214', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q19362214 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
Milan Pein
action filter_type
action find
entity Milan Pein
relation position held
type occupation
['Milan Pein', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Milan_Pein property:position_held ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q19360355 Q19362169
SYSTEM
Member of the Hamburg Parliament, Member of the 21st Hamburg Parliament
Q19360355 Q19362169
(Q19362214,P39,c(Q12737077))
action filter_type
action find
entity Q19362214
relation P39
type Q12737077
[ANSWERS] were the positions for which Milan Pein were appointed
['Q19362214', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q19362214 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
Member of the Hamburg Parliament Member of the 21st Hamburg Parliament
Member of the Hamburg Parliament and Member of the 21st Hamburg Parliament were the positions for which Milan Pein were appointed
Member of the Hamburg Parliament Member of the 21st Hamburg Parliament
action filter_type
action find
entity Milan Pein
relation position held
type occupation
['Milan Pein', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Milan_Pein property:position_held ?a . ?a rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q19360355
P361
Q1752346
USER
What is that occupation a portion of ?
(Q19360355,P361,c(Q1752346))
action filter_type
action find
entity Q19360355
relation P361
type Q1752346
['Q19360355', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1752346 . resource:Q19360355 property:P361 ?m }
Member of the Hamburg Parliament
action filter_type
action find
entity Member of the Hamburg Parliament
relation part of
type assembly
['Member of the Hamburg Parliament', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:assembly . resource:Member_of_the_Hamburg_Parliament property:part_of ?m }
[]
assembly
Clarification for simple ques.
Q19362169
SYSTEM
Did you mean Member of the 21st Hamburg Parliament ?
Q19360355 Q19362169
(Q19360355,P361,c(Q1752346)) (Q19362169,P361,c(Q1752346))
[ANSWER]
['Q19360355', 'P361', {'concept': 'Q1752346'}] ['Q19362169', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1752346 . resource:Q19360355 property:P361 ?m }
Member of the Hamburg Parliament Member of the 21st Hamburg Parliament
Did you mean Member of the 21st Hamburg Parliament ?
Member of the 21st Hamburg Parliament
['Member of the Hamburg Parliament', 'part of', {'concept': 'assembly'}] ['Member of the 21st Hamburg Parliament', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:assembly . resource:Member_of_the_Hamburg_Parliament property:part_of ?m }
[]
Simple Question (Coreferenced)
USER
No, I meant Member of the Hamburg Parliament. Could you tell me the answer for that?
(Q19360355,P361,c(Q1752346))
Q19360355
['Q19360355', 'P361', {'concept': 'Q1752346'}]
['Member of the Hamburg Parliament', 'part of', {'concept': 'assembly'}]
[]
Q636377
SYSTEM
Hamburg Parliament
Q636377
(Q19360355,P361,c(Q1752346))
action filter_type
action find
entity Q19360355
relation P361
type Q1752346
That occupation a portion of is the [ANSWER]
['Q19360355', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1752346 . resource:Q19360355 property:P361 ?m }
Hamburg Parliament
That occupation a portion of is the Hamburg Parliament
Hamburg Parliament
action filter_type
action find
entity Member of the Hamburg Parliament
relation part of
type assembly
['Member of the Hamburg Parliament', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:assembly . resource:Member_of_the_Hamburg_Parliament property:part_of ?m }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q636377 Q4326614 Q183
P17
Q1048835
USER
Is that assembly located in Novyi Hai and Germany ?
(Q636377,P17,Q4326614) (Q636377,P17,Q183)
action is_in
entity Q636377
action intersection
action find_reverse
entity Q4326614
relation P17
action find_reverse
entity Q183
relation P17
['Q636377', 'P17', 'Q4326614'] ['Q636377', 'P17', 'Q183']
ASK WHERE { resource:Q636377 property:P17 resource:Q4326614 . resource:Q636377 property:P17 resource:Q183 }
Hamburg Parliament Novyi Hai Germany
action is_in
entity Hamburg Parliament
action intersection
action find_reverse
entity Novyi Hai
relation country
action find_reverse
entity Germany
relation country
['Hamburg Parliament', 'country', 'Novyi Hai'] ['Hamburg Parliament', 'country', 'Germany']
ASK WHERE { resource:Hamburg_Parliament property:country resource:Novyi_Hai . resource:Hamburg_Parliament property:country resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q636377,P17,Q4326614) (Q636377,P17,Q183)
action is_in
entity Q636377
action intersection
action find_reverse
entity Q4326614
relation P17
action find_reverse
entity Q183
relation P17
[ANSWER]
['Q636377', 'P17', 'Q4326614'] ['Q636377', 'P17', 'Q183']
ASK WHERE { resource:Q636377 property:P17 resource:Q4326614 . resource:Q636377 property:P17 resource:Q183 }
NO and YES respectively
action is_in
entity Hamburg Parliament
action intersection
action find_reverse
entity Novyi Hai
relation country
action find_reverse
entity Germany
relation country
['Hamburg Parliament', 'country', 'Novyi Hai'] ['Hamburg Parliament', 'country', 'Germany']
ASK WHERE { resource:Hamburg_Parliament property:country resource:Novyi_Hai . resource:Hamburg_Parliament property:country resource:Germany }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q19362169 Q183
P17
Q1048835
USER
Does Member of the 21st Hamburg Parliament belong to Germany ?
(Q19362169,P17,Q183)
action is_in
entity Q183
action find
entity Q19362169
relation P17
['Q19362169', 'P17', 'Q183']
ASK WHERE { resource:Q19362169 property:P17 resource:Q183 }
Member of the 21st Hamburg Parliament Germany
action is_in
entity Germany
action find
entity Member of the 21st Hamburg Parliament
relation country
['Member of the 21st Hamburg Parliament', 'country', 'Germany']
ASK WHERE { resource:Member_of_the_21st_Hamburg_Parliament property:country resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q19362169,P17,Q183)
action is_in
entity Q183
action find
entity Q19362169
relation P17
[ANSWER]
['Q19362169', 'P17', 'Q183']
ASK WHERE { resource:Q19362169 property:P17 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Member of the 21st Hamburg Parliament
relation country
['Member of the 21st Hamburg Parliament', 'country', 'Germany']
ASK WHERE { resource:Member_of_the_21st_Hamburg_Parliament property:country resource:Germany }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q19360355 Q24342021
P17
Q1048835
USER
Is Member of the Hamburg Parliament present in Llanfihangel Cwmdu with Bwlch and Cathedine ?
(Q19360355,P17,Q24342021)
action is_in
entity Q24342021
action find
entity Q19360355
relation P17
['Q19360355', 'P17', 'Q24342021']
ASK WHERE { resource:Q19360355 property:P17 resource:Q24342021 }
Member of the Hamburg Parliament Llanfihangel Cwmdu with Bwlch and Cathedine
action is_in
entity Llanfihangel Cwmdu with Bwlch and Cathedine
action find
entity Member of the Hamburg Parliament
relation country
['Member of the Hamburg Parliament', 'country', 'Llanfihangel Cwmdu with Bwlch and Cathedine']
ASK WHERE { resource:Member_of_the_Hamburg_Parliament property:country resource:Llanfihangel_Cwmdu_with_Bwlch_and_Cathedine }
[]
political territorial entity
SYSTEM
NO
(Q19360355,P17,Q24342021)
action is_in
entity Q24342021
action find
entity Q19360355
relation P17
[ANSWER]
['Q19360355', 'P17', 'Q24342021']
ASK WHERE { resource:Q19360355 property:P17 resource:Q24342021 }
No
action is_in
entity Llanfihangel Cwmdu with Bwlch and Cathedine
action find
entity Member of the Hamburg Parliament
relation country
['Member of the Hamburg Parliament', 'country', 'Llanfihangel Cwmdu with Bwlch and Cathedine']
ASK WHERE { resource:Member_of_the_Hamburg_Parliament property:country resource:Llanfihangel_Cwmdu_with_Bwlch_and_Cathedine }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q477297 Q636377
P27 P17
Q1048835
USER
Which political territories do Hamburg Parliament belong to and do John Tripp belong to ?
AND((Q636377,P17,c(Q1048835)), (Q477297,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q636377
relation P17
action find
entity Q477297
relation P27
type Q1048835
{'AND': [['Q636377', 'P17', {'concept': 'Q1048835'}], ['Q477297', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { resource:Q636377 property:P17 ?j . resource:Q477297 property:P27 ?j . ?j rdf:type ontology:Q1048835 }
John Tripp Hamburg Parliament
action filter_type
action intersection
action find
entity Hamburg Parliament
relation country
action find
entity John Tripp
relation country of citizenship
type political territorial entity
{'AND': [['Hamburg Parliament', 'country', {'concept': 'political territorial entity'}], ['John Tripp', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Hamburg_Parliament property:country ?j . resource:John_Tripp property:country_of_citizenship ?j . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q636377,P17,c(Q1048835)), (Q477297,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q636377
relation P17
action find
entity Q477297
relation P27
type Q1048835
Hamburg Parliament belong to the [ANSWER]
{'AND': [['Q636377', 'P17', {'concept': 'Q1048835'}], ['Q477297', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { resource:Q636377 property:P17 ?j . resource:Q477297 property:P27 ?j . ?j rdf:type ontology:Q1048835 }
Germany
Hamburg Parliament belong to the Germany
Germany
action filter_type
action intersection
action find
entity Hamburg Parliament
relation country
action find
entity John Tripp
relation country of citizenship
type political territorial entity
{'AND': [['Hamburg Parliament', 'country', {'concept': 'political territorial entity'}], ['John Tripp', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Hamburg_Parliament property:country ?j . resource:John_Tripp property:country_of_citizenship ?j . ?j rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q183 Q419 Q77
P530
Q15617994
USER
Does that political territory have diplomatic associations with Peru and Uruguay ?
(Q183,P530,Q419) (Q183,P530,Q77)
action is_in
entity Q183
action intersection
action find_reverse
entity Q419
relation P530
action find_reverse
entity Q77
relation P530
['Q183', 'P530', 'Q419'] ['Q183', 'P530', 'Q77']
ASK WHERE { resource:Q183 property:P530 resource:Q419 . resource:Q183 property:P530 resource:Q77 }
Germany Peru Uruguay
action is_in
entity Germany
action intersection
action find_reverse
entity Peru
relation diplomatic relation
action find_reverse
entity Uruguay
relation diplomatic relation
['Germany', 'diplomatic relation', 'Peru'] ['Germany', 'diplomatic relation', 'Uruguay']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Peru . resource:Germany property:diplomatic_relation resource:Uruguay }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q183,P530,Q419) (Q183,P530,Q77)
action is_in
entity Q183
action intersection
action find_reverse
entity Q419
relation P530
action find_reverse
entity Q77
relation P530
[ANSWER]
['Q183', 'P530', 'Q419'] ['Q183', 'P530', 'Q77']
ASK WHERE { resource:Q183 property:P530 resource:Q419 . resource:Q183 property:P530 resource:Q77 }
Yes
action is_in
entity Germany
action intersection
action find_reverse
entity Peru
relation diplomatic relation
action find_reverse
entity Uruguay
relation diplomatic relation
['Germany', 'diplomatic relation', 'Peru'] ['Germany', 'diplomatic relation', 'Uruguay']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Peru . resource:Germany property:diplomatic_relation resource:Uruguay }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q783401 Q636377
P361
Q12737077
USER
Which occupations are a part of Hamburg Parliament or House of Representatives ?
OR((c(Q12737077),P361,Q636377), (c(Q12737077),P361,Q783401))
action filter_type
action union
action find_reverse
entity Q636377
relation P361
action find_reverse
entity Q783401
relation P361
type Q12737077
{'OR': [[{'concept': 'Q12737077'}, 'P361', 'Q636377'], [{'concept': 'Q12737077'}, 'P361', 'Q783401']]}
SELECT DISTINCT ?h WHERE { { { ?h property:P361 resource:Q636377 } UNION { ?h property:P361 resource:Q783401 } } . ?h rdf:type ontology:Q12737077 }
House of Representatives Hamburg Parliament
action filter_type
action union
action find_reverse
entity Hamburg Parliament
relation part of
action find_reverse
entity House of Representatives
relation part of
type occupation
{'OR': [[{'concept': 'occupation'}, 'part of', 'Hamburg Parliament'], [{'concept': 'occupation'}, 'part of', 'House of Representatives']]}
SELECT DISTINCT ?h WHERE { { { ?h property:part_of resource:Hamburg_Parliament } UNION { ?h property:part_of resource:House_of_Representatives } } . ?h rdf:type ontology:occupation }
[]
occupation
Q18912794 Q19360355 Q7574256
SYSTEM
Member of the Australian House of Representatives, Member of the Hamburg Parliament, Speaker of the House of Representatives
Q18912794 Q19360355 Q7574256
OR((c(Q12737077),P361,Q636377), (c(Q12737077),P361,Q783401))
action filter_type
action union
action find_reverse
entity Q636377
relation P361
action find_reverse
entity Q783401
relation P361
type Q12737077
[ANSWERS] are a part of Hamburg Parliament or House of Representatives
{'OR': [[{'concept': 'Q12737077'}, 'P361', 'Q636377'], [{'concept': 'Q12737077'}, 'P361', 'Q783401']]}
SELECT DISTINCT ?h WHERE { { { ?h property:P361 resource:Q636377 } UNION { ?h property:P361 resource:Q783401 } } . ?h rdf:type ontology:Q12737077 }
Member of the Australian House of Representatives Member of the Hamburg Parliament Speaker of the House of Representatives
Member of the Australian House of Representatives, Member of the Hamburg Parliament and Speaker of the House of Representatives are a part of Hamburg Parliament or House of Representatives
Member of the Australian House of Representatives Member of the Hamburg Parliament Speaker of the House of Representatives
action filter_type
action union
action find_reverse
entity Hamburg Parliament
relation part of
action find_reverse
entity House of Representatives
relation part of
type occupation
{'OR': [[{'concept': 'occupation'}, 'part of', 'Hamburg Parliament'], [{'concept': 'occupation'}, 'part of', 'House of Representatives']]}
SELECT DISTINCT ?h WHERE { { { ?h property:part_of resource:Hamburg_Parliament } UNION { ?h property:part_of resource:House_of_Representatives } } . ?h rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q18912794 Q19360355 Q7574256
P17
Q1048835
USER
Which political territories are Member of the Australian House of Representatives, Member of the Hamburg Parliament and Speaker of the House of Representatives a part of ?
(Q18912794,P17,c(Q1048835)) (Q19360355,P17,c(Q1048835)) (Q7574256,P17,c(Q1048835))
action union
action filter_type
action find
entity Q18912794
relation P17
type Q1048835
action filter_type
action find
entity Q19360355
relation P17
type Q1048835
action filter_type
action find
entity Q7574256
relation P17
type Q1048835
['Q18912794', 'P17', {'concept': 'Q1048835'}] ['Q19360355', 'P17', {'concept': 'Q1048835'}] ['Q7574256', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { ?r property:P17 ?s . VALUES ( ?r ) { ( resource:Q18912794 ) ( resource:Q19360355 ) } }
Member of the Australian House of Representatives Member of the Hamburg Parliament Speaker of the House of Representatives
action union
action filter_type
action find
entity Member of the Australian House of Representatives
relation country
type political territorial entity
action filter_type
action find
entity Member of the Hamburg Parliament
relation country
type political territorial entity
action filter_type
action find
entity Speaker of the House of Representatives
relation country
type political territorial entity
['Member of the Australian House of Representatives', 'country', {'concept': 'political territorial entity'}] ['Member of the Hamburg Parliament', 'country', {'concept': 'political territorial entity'}] ['Speaker of the House of Representatives', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { ?r property:country ?s . VALUES ( ?r ) { ( resource:Member_of_the_Australian_House_of_Representatives ) ( resource:Member_of_the_Hamburg_Parliament ) } }
[]
political territorial entity
Q408 Q183 Q408
SYSTEM
Australia for 1st, 3rd, Germany for 2nd
Q408 Q183 Q408
(Q18912794,P17,c(Q1048835)) (Q19360355,P17,c(Q1048835)) (Q7574256,P17,c(Q1048835))
action union
action filter_type
action find
entity Q18912794
relation P17
type Q1048835
action filter_type
action find
entity Q19360355
relation P17
type Q1048835
action filter_type
action find
entity Q7574256
relation P17
type Q1048835
[ANSWERS]
['Q18912794', 'P17', {'concept': 'Q1048835'}] ['Q19360355', 'P17', {'concept': 'Q1048835'}] ['Q7574256', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { ?r property:P17 ?s . VALUES ( ?r ) { ( resource:Q18912794 ) ( resource:Q19360355 ) } }
Australia Germany Australia
Australia, Germany and Australia are Member of the Australian House of Representatives, Member of the Hamburg Parliament and Speaker of the House of Representatives a part of
Australia Germany Australia
action union
action filter_type
action find
entity Member of the Australian House of Representatives
relation country
type political territorial entity
action filter_type
action find
entity Member of the Hamburg Parliament
relation country
type political territorial entity
action filter_type
action find
entity Speaker of the House of Representatives
relation country
type political territorial entity
['Member of the Australian House of Representatives', 'country', {'concept': 'political territorial entity'}] ['Member of the Hamburg Parliament', 'country', {'concept': 'political territorial entity'}] ['Speaker of the House of Representatives', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { ?r property:country ?s . VALUES ( ?r ) { ( resource:Member_of_the_Australian_House_of_Representatives ) ( resource:Member_of_the_Hamburg_Parliament ) } }
[]