Simple Question (Direct)
Simple Question
Q7459528
P106
Q12737077
USER
What is the job of Seán Hayes ?
(Q7459528,P106,c(Q12737077))
action filter_type
action find
entity Q7459528
relation P106
type Q12737077
['Q7459528', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q7459528 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Seán Hayes
action filter_type
action find
entity Seán Hayes
relation occupation
type occupation
['Seán Hayes', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Seán_Hayes property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q7459528,P106,c(Q12737077))
action filter_type
action find
entity Q7459528
relation P106
type Q12737077
The job of Seán Hayes is a [ANSWER]
['Q7459528', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q7459528 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
politician
The job of Seán Hayes is a politician
politician
action filter_type
action find
entity Seán Hayes
relation occupation
type occupation
['Seán Hayes', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Seán_Hayes property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7459528
P39
Q12737077
USER
What were the positions held by that person ?
(Q82955,P39,c(Q12737077))
action filter_type
action find
entity Q7459528
relation P39
type Q12737077
['Q82955', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q7459528 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Seán Hayes
action filter_type
action find
entity Seán Hayes
relation position held
type occupation
['politician', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Seán_Hayes property:position_held ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q654291 Q16707842
SYSTEM
Deputy to the Dáil, Member of Parliament in the United Kingdom
Q654291 Q16707842
(Q82955,P39,c(Q12737077))
action filter_type
action find
entity Q7459528
relation P39
type Q12737077
The positions held by that person were [ANSWERS]
['Q82955', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q7459528 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Deputy to the Dáil Member of Parliament in the United Kingdom
The positions held by that person were Deputy to the Dáil and Member of Parliament in the United Kingdom
Deputy to the Dáil Member of Parliament in the United Kingdom
action filter_type
action find
entity Seán Hayes
relation position held
type occupation
['politician', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Seán_Hayes property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q654291 Q16707842
P1001
Q15617994
USER
Which administrative territories belong to jurisdiction of Deputy to the Dáil and Member of Parliament in the United Kingdom ?
(Q654291,P1001,c(Q15617994)) (Q16707842,P1001,c(Q15617994))
action union
action filter_type
action find
entity Q654291
relation P1001
type Q15617994
action filter_type
action find
entity Q16707842
relation P1001
type Q15617994
['Q654291', 'P1001', {'concept': 'Q15617994'}] ['Q16707842', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?w property:P1001 ?k . VALUES ( ?w ) { ( resource:Q16707842 ) ( resource:Q654291 ) } }
Deputy to the Dáil Member of Parliament in the United Kingdom
action union
action filter_type
action find
entity Deputy to the Dáil
relation applies to jurisdiction
type designation for an administrative territorial entity
action filter_type
action find
entity Member of Parliament in the United Kingdom
relation applies to jurisdiction
type designation for an administrative territorial entity
['Deputy to the Dáil', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['Member of Parliament in the United Kingdom', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?w property:applies_to_jurisdiction ?k . VALUES ( ?w ) { ( resource:Member_of_Parliament_in_the_United_Kingdom ) ( resource:Deputy_to_the_Dáil ) } }
[]
designation for an administrative territorial entity
Q27 Q145
SYSTEM
Ireland, United Kingdom
Q27 Q145
(Q654291,P1001,c(Q15617994)) (Q16707842,P1001,c(Q15617994))
action union
action filter_type
action find
entity Q654291
relation P1001
type Q15617994
action filter_type
action find
entity Q16707842
relation P1001
type Q15617994
[ANSWERS] belong to jurisdiction of Deputy to the Dáil and Member of Parliament in the United Kingdom
['Q654291', 'P1001', {'concept': 'Q15617994'}] ['Q16707842', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?w property:P1001 ?k . VALUES ( ?w ) { ( resource:Q16707842 ) ( resource:Q654291 ) } }
Ireland United Kingdom
Ireland and United Kingdom belong to jurisdiction of Deputy to the Dáil and Member of Parliament in the United Kingdom
Ireland United Kingdom
action union
action filter_type
action find
entity Deputy to the Dáil
relation applies to jurisdiction
type designation for an administrative territorial entity
action filter_type
action find
entity Member of Parliament in the United Kingdom
relation applies to jurisdiction
type designation for an administrative territorial entity
['Deputy to the Dáil', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['Member of Parliament in the United Kingdom', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?w property:applies_to_jurisdiction ?k . VALUES ( ?w ) { ( resource:Member_of_Parliament_in_the_United_Kingdom ) ( resource:Deputy_to_the_Dáil ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q27 Q145
P463
Q874405
USER
What were Ireland and United Kingdom a member of ?
(Q27,P463,c(Q874405)) (Q145,P463,c(Q874405))
action union
action filter_type
action find
entity Q27
relation P463
type Q874405
action filter_type
action find
entity Q145
relation P463
type Q874405
['Q27', 'P463', {'concept': 'Q874405'}] ['Q145', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?f WHERE { ?s property:P463 ?f . VALUES ( ?s ) { ( resource:Q27 ) ( resource:Q145 ) } }
Ireland United Kingdom
action union
action filter_type
action find
entity Ireland
relation member of
type social group
action filter_type
action find
entity United Kingdom
relation member of
type social group
['Ireland', 'member of', {'concept': 'social group'}] ['United Kingdom', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?f WHERE { ?s property:member_of ?f . VALUES ( ?s ) { ( resource:Ireland ) ( resource:United_Kingdom ) } }
[]
social group
Q8908 Q8908 Q782942
SYSTEM
Australia Group for 3rd, Council of Europe for 1st, 2nd
Q782942 Q8908 Q8908 Q782942
(Q27,P463,c(Q874405)) (Q145,P463,c(Q874405))
action union
action filter_type
action find
entity Q27
relation P463
type Q874405
action filter_type
action find
entity Q145
relation P463
type Q874405
[ANSWERS]
['Q27', 'P463', {'concept': 'Q874405'}] ['Q145', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?f WHERE { ?s property:P463 ?f . VALUES ( ?s ) { ( resource:Q27 ) ( resource:Q145 ) } }
Australia Group Council of Europe Council of Europe Australia Group
The Council of Europe, Council of Europe and Australia Group were Ireland and United Kingdom a member of
Council of Europe Council of Europe Australia Group
action union
action filter_type
action find
entity Ireland
relation member of
type social group
action filter_type
action find
entity United Kingdom
relation member of
type social group
['Ireland', 'member of', {'concept': 'social group'}] ['United Kingdom', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?f WHERE { ?s property:member_of ?f . VALUES ( ?s ) { ( resource:Ireland ) ( resource:United_Kingdom ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q654291
P921
Q12139612
USER
Which enumeration is Deputy to the Dáil a main subject of ?
(c(Q12139612),P921,Q654291)
action filter_type
action find_reverse
entity Q654291
relation P921
type Q12139612
[{'concept': 'Q12139612'}, 'P921', 'Q654291']
SELECT DISTINCT ?l WHERE { ?l property:P921 resource:Q654291 . ?l rdf:type ontology:Q12139612 }
Deputy to the Dáil
action filter_type
action find_reverse
entity Deputy to the Dáil
relation main subject
type enumeration
[{'concept': 'enumeration'}, 'main subject', 'Deputy to the Dáil']
SELECT DISTINCT ?l WHERE { ?l property:main_subject resource:Deputy_to_the_Dáil . ?l rdf:type ontology:enumeration }
[]
enumeration
Q23301347
SYSTEM
Dáil Éireann Members' Directory
Q23301347
(c(Q12139612),P921,Q654291)
action filter_type
action find_reverse
entity Q654291
relation P921
type Q12139612
The [ANSWER] is Deputy to the Dáil a main subject of
[{'concept': 'Q12139612'}, 'P921', 'Q654291']
SELECT DISTINCT ?l WHERE { ?l property:P921 resource:Q654291 . ?l rdf:type ontology:Q12139612 }
Dáil Éireann Members' Directory
The Dáil Éireann Members' Directory is Deputy to the Dáil a main subject of
Dáil Éireann Members' Directory
action filter_type
action find_reverse
entity Deputy to the Dáil
relation main subject
type enumeration
[{'concept': 'enumeration'}, 'main subject', 'Deputy to the Dáil']
SELECT DISTINCT ?l WHERE { ?l property:main_subject resource:Deputy_to_the_Dáil . ?l rdf:type ontology:enumeration }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21856214 Q7459528
P1412
Q34770
USER
Which languages do Seán Hayes or Cecilia Moreau speak in ?
OR((Q7459528,P1412,c(Q34770)), (Q21856214,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q7459528
relation P1412
action find
entity Q21856214
relation P1412
type Q34770
{'OR': [['Q7459528', 'P1412', {'concept': 'Q34770'}], ['Q21856214', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?q ) { ( resource:Q7459528 ) ( resource:Q21856214 ) } . ?q property:P1412 ?d } . ?d rdf:type ontology:Q34770 }
Cecilia Moreau Seán Hayes
action filter_type
action union
action find
entity Seán Hayes
relation languages spoken, written or signed
action find
entity Cecilia Moreau
relation languages spoken, written or signed
type language
{'OR': [['Seán Hayes', 'languages spoken, written or signed', {'concept': 'language'}], ['Cecilia Moreau', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?q ) { ( resource:Seán_Hayes ) ( resource:Cecilia_Moreau ) } . ?q property:languages_spoken,_written_or_signed ?d } . ?d rdf:type ontology:language }
[]
language
Q1860 Q1321
SYSTEM
English, Spanish
Q1860 Q1321
OR((Q7459528,P1412,c(Q34770)), (Q21856214,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q7459528
relation P1412
action find
entity Q21856214
relation P1412
type Q34770
Seán Hayes or Cecilia Moreau speak [ANSWERS]
{'OR': [['Q7459528', 'P1412', {'concept': 'Q34770'}], ['Q21856214', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?q ) { ( resource:Q7459528 ) ( resource:Q21856214 ) } . ?q property:P1412 ?d } . ?d rdf:type ontology:Q34770 }
English Spanish
Seán Hayes or Cecilia Moreau speak English and Spanish
English Spanish
action filter_type
action union
action find
entity Seán Hayes
relation languages spoken, written or signed
action find
entity Cecilia Moreau
relation languages spoken, written or signed
type language
{'OR': [['Seán Hayes', 'languages spoken, written or signed', {'concept': 'language'}], ['Cecilia Moreau', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?q ) { ( resource:Seán_Hayes ) ( resource:Cecilia_Moreau ) } . ?q property:languages_spoken,_written_or_signed ?d } . ?d rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q654291
P17
Q15617994
USER
Which administrative territory is Deputy to the Dáil located in ?
(Q654291,P17,c(Q15617994))
action filter_type
action find
entity Q654291
relation P17
type Q15617994
['Q654291', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q654291 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
Deputy to the Dáil
action filter_type
action find
entity Deputy to the Dáil
relation country
type designation for an administrative territorial entity
['Deputy to the Dáil', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Deputy_to_the_Dáil property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q27
SYSTEM
Ireland
Q27
(Q654291,P17,c(Q15617994))
action filter_type
action find
entity Q654291
relation P17
type Q15617994
Deputy to the Dáil is located in [ANSWER]
['Q654291', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q654291 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
Ireland
Deputy to the Dáil is located in Ireland
Ireland
action filter_type
action find
entity Deputy to the Dáil
relation country
type designation for an administrative territorial entity
['Deputy to the Dáil', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Deputy_to_the_Dáil property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q27 Q188822 Q1065
P463
Q484652
USER
Is that administrative territory a member of Asian Development Bank and United Nations ?
(Q27,P463,Q188822) (Q27,P463,Q1065)
action is_in
entity Q27
action intersection
action find_reverse
entity Q188822
relation P463
action find_reverse
entity Q1065
relation P463
['Q27', 'P463', 'Q188822'] ['Q27', 'P463', 'Q1065']
ASK WHERE { resource:Q27 property:P463 resource:Q188822 . resource:Q27 property:P463 resource:Q1065 }
Ireland Asian Development Bank United Nations
action is_in
entity Ireland
action intersection
action find_reverse
entity Asian Development Bank
relation member of
action find_reverse
entity United Nations
relation member of
['Ireland', 'member of', 'Asian Development Bank'] ['Ireland', 'member of', 'United Nations']
ASK WHERE { resource:Ireland property:member_of resource:Asian_Development_Bank . resource:Ireland property:member_of resource:United_Nations }
[]
international organization
SYSTEM
YES
(Q27,P463,Q188822) (Q27,P463,Q1065)
action is_in
entity Q27
action intersection
action find_reverse
entity Q188822
relation P463
action find_reverse
entity Q1065
relation P463
[ANSWER]
['Q27', 'P463', 'Q188822'] ['Q27', 'P463', 'Q1065']
ASK WHERE { resource:Q27 property:P463 resource:Q188822 . resource:Q27 property:P463 resource:Q1065 }
Yes
action is_in
entity Ireland
action intersection
action find_reverse
entity Asian Development Bank
relation member of
action find_reverse
entity United Nations
relation member of
['Ireland', 'member of', 'Asian Development Bank'] ['Ireland', 'member of', 'United Nations']
ASK WHERE { resource:Ireland property:member_of resource:Asian_Development_Bank . resource:Ireland property:member_of resource:United_Nations }
[]