Simple Question (Direct)
Simple Question
Q16738495
P40
Q502895
USER
Who is an offspring of Mary Randolph ?
(Q16738495,P40,c(Q502895))
action filter_type
action find
entity Q16738495
relation P40
type Q502895
['Q16738495', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q16738495 property:P40 ?l }
Mary Randolph
action filter_type
action find
entity Mary Randolph
relation child
type common name
['Mary Randolph', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Mary_Randolph property:child ?l }
[]
common name
Q8018851
SYSTEM
William Stith
Q8018851
(Q16738495,P40,c(Q502895))
action filter_type
action find
entity Q16738495
relation P40
type Q502895
An offspring of Mary Randolph is the [ANSWER]
['Q16738495', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q16738495 property:P40 ?l }
William Stith
An offspring of Mary Randolph is the William Stith
William Stith
action filter_type
action find
entity Mary Randolph
relation child
type common name
['Mary Randolph', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Mary_Randolph property:child ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8018851
P22
Q502895
USER
Which person was the father of that one ?
(Q8018851,P22,c(Q502895))
action filter_type
action find
entity Q8018851
relation P22
type Q502895
['Q8018851', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q8018851 property:P22 ?r . ?r rdf:type ontology:Q502895 }
William Stith
action filter_type
action find
entity William Stith
relation father
type common name
['William Stith', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:William_Stith property:father ?r . ?r rdf:type ontology:common_name }
[]
common name
Q16738498
SYSTEM
John Stith
Q16738498
(Q8018851,P22,c(Q502895))
action filter_type
action find
entity Q8018851
relation P22
type Q502895
[ANSWER] was the father of that one
['Q8018851', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q8018851 property:P22 ?r . ?r rdf:type ontology:Q502895 }
John Stith
John Stith was the father of that one
John Stith
action filter_type
action find
entity William Stith
relation father
type common name
['William Stith', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:William_Stith property:father ?r . ?r rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3838303 Q8018851
P27
Q15617994
USER
Which administrative territories are William Stith or Luca Toso a civilian of ?
OR((Q8018851,P27,c(Q15617994)), (Q3838303,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q8018851
relation P27
action find
entity Q3838303
relation P27
type Q15617994
{'OR': [['Q8018851', 'P27', {'concept': 'Q15617994'}], ['Q3838303', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q8018851 property:P27 ?j } UNION { resource:Q3838303 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
Luca Toso William Stith
action filter_type
action union
action find
entity William Stith
relation country of citizenship
action find
entity Luca Toso
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['William Stith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Luca Toso', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:William_Stith property:country_of_citizenship ?j } UNION { resource:Luca_Toso property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q38
SYSTEM
United States of America, Italy
Q30 Q38
OR((Q8018851,P27,c(Q15617994)), (Q3838303,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q8018851
relation P27
action find
entity Q3838303
relation P27
type Q15617994
[ANSWERS] are William Stith or Luca Toso a civilian of
{'OR': [['Q8018851', 'P27', {'concept': 'Q15617994'}], ['Q3838303', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q8018851 property:P27 ?j } UNION { resource:Q3838303 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
United States of America Italy
United States of America and Italy are William Stith or Luca Toso a civilian of
United States of America Italy
action filter_type
action union
action find
entity William Stith
relation country of citizenship
action find
entity Luca Toso
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['William Stith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Luca Toso', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:William_Stith property:country_of_citizenship ?j } UNION { resource:Luca_Toso property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q30 Q38
P463
Q874405
USER
What social groups were those administrative territories a member of ?
(Q30,P463,c(Q874405)) (Q38,P463,c(Q874405))
action filter_type
action find
entity prev_answer
relation P463
type Q874405
['Q30', 'P463', {'concept': 'Q874405'}] ['Q38', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q874405 . ?v property:P463 ?y . VALUES ( ?v ) { ( resource:Q30 ) ( resource:Q38 ) } }
United States of America Italy
action filter_type
action find
entity prev_answer
relation member of
type social group
['United States of America', 'member of', {'concept': 'social group'}] ['Italy', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:social_group . ?v property:member_of ?y . VALUES ( ?v ) { ( resource:United_States_of_America ) ( resource:Italy ) } }
[]
social group
Q7817 Q8908 Q41984
SYSTEM
World Health Organization, Council of Europe, International Atomic Energy Agency
Q782942 Q295875 Q663492 Q8908 Q376150 Q41984 Q782942 Q848633 Q1374456 Q7817
(Q30,P463,c(Q874405)) (Q38,P463,c(Q874405))
action filter_type
action find
entity prev_answer
relation P463
type Q874405
[ANSWERS] were those administrative territories a member of
['Q30', 'P463', {'concept': 'Q874405'}] ['Q38', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q874405 . ?v property:P463 ?y . VALUES ( ?v ) { ( resource:Q30 ) ( resource:Q38 ) } }
Australia Group ANZUS Eurocontrol Council of Europe International Telecommunication Union International Atomic Energy Agency Australia Group International Chamber of Commerce Euro-Atlantic Partnership Council World Health Organization
World Health Organization, Council of Europe and International Atomic Energy Agency were those administrative territories a member of
World Health Organization Council of Europe International Atomic Energy Agency
action filter_type
action find
entity prev_answer
relation member of
type social group
['United States of America', 'member of', {'concept': 'social group'}] ['Italy', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:social_group . ?v property:member_of ?y . VALUES ( ?v ) { ( resource:United_States_of_America ) ( resource:Italy ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7817
P37
Q34770
USER
What are the official languages of that social group ?
(Q7817,P37,c(Q34770))
action filter_type
action find
entity Q7817
relation P37
type Q34770
['Q7817', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q34770 . resource:Q7817 property:P37 ?r }
World Health Organization
action filter_type
action find
entity World Health Organization
relation official language
type language
['World Health Organization', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:language . resource:World_Health_Organization property:official_language ?r }
[]
language
Clarification for simple ques.
Q41984
SYSTEM
Did you mean International Atomic Energy Agency ?
Q7817 Q8908 Q41984
(Q7817,P37,c(Q34770)) (Q8908,P37,c(Q34770)) (Q41984,P37,c(Q34770))
[ANSWER]
['Q7817', 'P37', {'concept': 'Q34770'}] ['Q8908', 'P37', {'concept': 'Q34770'}] ['Q41984', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q34770 . resource:Q7817 property:P37 ?r }
World Health Organization Council of Europe International Atomic Energy Agency
Did you mean International Atomic Energy Agency ?
International Atomic Energy Agency
['World Health Organization', 'official language', {'concept': 'language'}] ['Council of Europe', 'official language', {'concept': 'language'}] ['International Atomic Energy Agency', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:language . resource:World_Health_Organization property:official_language ?r }
[]
Simple Question (Coreferenced)
USER
No, I meant World Health Organization. Could you tell me the answer for that?
(Q7817,P37,c(Q34770))
Q7817
['Q7817', 'P37', {'concept': 'Q34770'}]
['World Health Organization', 'official language', {'concept': 'language'}]
[]
Q1860 Q1321
SYSTEM
English, Spanish
Q1860 Q1321
(Q7817,P37,c(Q34770))
action filter_type
action find
entity Q7817
relation P37
type Q34770
The official languages of that social group are [ANSWERS]
['Q7817', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q34770 . resource:Q7817 property:P37 ?r }
English Spanish
The official languages of that social group are English and Spanish
English Spanish
action filter_type
action find
entity World Health Organization
relation official language
type language
['World Health Organization', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:language . resource:World_Health_Organization property:official_language ?r }
[]