Simple Question (Direct)
Simple Question
Q3504441
P140
Q879146
USER
Which Christian denomination does Józef Warszawski relate to ?
(Q3504441,P140,c(Q879146))
action filter_type
action find
entity Q3504441
relation P140
type Q879146
['Q3504441', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?w WHERE { resource:Q3504441 property:P140 ?w . ?w rdf:type ontology:Q879146 }
Józef Warszawski
action filter_type
action find
entity Józef Warszawski
relation religion
type Christian denomination
['Józef Warszawski', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?w WHERE { resource:Józef_Warszawski property:religion ?w . ?w rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q3504441,P140,c(Q879146))
action filter_type
action find
entity Q3504441
relation P140
type Q879146
Józef Warszawski relates to [ANSWER]
['Q3504441', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?w WHERE { resource:Q3504441 property:P140 ?w . ?w rdf:type ontology:Q879146 }
Roman Catholic Church
Józef Warszawski relates to Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Józef Warszawski
relation religion
type Christian denomination
['Józef Warszawski', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?w WHERE { resource:Józef_Warszawski property:religion ?w . ?w rdf:type ontology:Christian_denomination }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3504441
P611
Q1530022
USER
What religion is Józef Warszawski affiliated to ?
(Q3504441,P611,c(Q1530022))
action filter_type
action find
entity Q3504441
relation P611
type Q1530022
['Q3504441', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?w WHERE { resource:Q3504441 property:P611 ?w . ?w rdf:type ontology:Q1530022 }
Józef Warszawski
action filter_type
action find
entity Józef Warszawski
relation religious order
type religious organization
['Józef Warszawski', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?w WHERE { resource:Józef_Warszawski property:religious_order ?w . ?w rdf:type ontology:religious_organization }
[]
religious organization
Q36380
SYSTEM
Society of Jesus
Q36380
(Q3504441,P611,c(Q1530022))
action filter_type
action find
entity Q3504441
relation P611
type Q1530022
Józef Warszawski is affiliated to [ANSWER]
['Q3504441', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?w WHERE { resource:Q3504441 property:P611 ?w . ?w rdf:type ontology:Q1530022 }
Society of Jesus
Józef Warszawski is affiliated to Society of Jesus
Society of Jesus
action filter_type
action find
entity Józef Warszawski
relation religious order
type religious organization
['Józef Warszawski', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?w WHERE { resource:Józef_Warszawski property:religious_order ?w . ?w rdf:type ontology:religious_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5730740
Q1530022
USER
And how about Henry de Bury?
(Q5730740,P611,c(Q1530022))
action filter_type
action find
entity Q5730740
relation P611
type Q1530022
['Q5730740', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1530022 . resource:Q5730740 property:P611 ?o }
Henry de Bury
action filter_type
action find
entity Henry de Bury
relation religious order
type religious organization
['Henry de Bury', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:religious_organization . resource:Henry_de_Bury property:religious_order ?o }
[]
religious organization
Q131132
SYSTEM
Order of Saint Benedict
Q131132
(Q5730740,P611,c(Q1530022))
action filter_type
action find
entity Q5730740
relation P611
type Q1530022
[ANSWER]
['Q5730740', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1530022 . resource:Q5730740 property:P611 ?o }
Order of Saint Benedict
Order of Saint Benedict
action filter_type
action find
entity Henry de Bury
relation religious order
type religious organization
['Henry de Bury', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:religious_organization . resource:Henry_de_Bury property:religious_order ?o }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q131132 Q20999847 Q1703456
P112
Q502895
USER
Was that religious organization founded by Wolf Aniol and Jonny Löhr ?
(Q131132,P112,Q20999847) (Q131132,P112,Q1703456)
action is_in
entity Q131132
action intersection
action find_reverse
entity Q20999847
relation P112
action find_reverse
entity Q1703456
relation P112
['Q131132', 'P112', 'Q20999847'] ['Q131132', 'P112', 'Q1703456']
ASK WHERE { resource:Q131132 property:P112 resource:Q20999847 . resource:Q131132 property:P112 resource:Q1703456 }
Order of Saint Benedict Wolf Aniol Jonny Löhr
action is_in
entity Order of Saint Benedict
action intersection
action find_reverse
entity Wolf Aniol
relation founder
action find_reverse
entity Jonny Löhr
relation founder
['Order of Saint Benedict', 'founder', 'Wolf Aniol'] ['Order of Saint Benedict', 'founder', 'Jonny Löhr']
ASK WHERE { resource:Order_of_Saint_Benedict property:founder resource:Wolf_Aniol . resource:Order_of_Saint_Benedict property:founder resource:Jonny_Löhr }
[]
common name
SYSTEM
NO
(Q131132,P112,Q20999847) (Q131132,P112,Q1703456)
action is_in
entity Q131132
action intersection
action find_reverse
entity Q20999847
relation P112
action find_reverse
entity Q1703456
relation P112
[ANSWER]
['Q131132', 'P112', 'Q20999847'] ['Q131132', 'P112', 'Q1703456']
ASK WHERE { resource:Q131132 property:P112 resource:Q20999847 . resource:Q131132 property:P112 resource:Q1703456 }
No
action is_in
entity Order of Saint Benedict
action intersection
action find_reverse
entity Wolf Aniol
relation founder
action find_reverse
entity Jonny Löhr
relation founder
['Order of Saint Benedict', 'founder', 'Wolf Aniol'] ['Order of Saint Benedict', 'founder', 'Jonny Löhr']
ASK WHERE { resource:Order_of_Saint_Benedict property:founder resource:Wolf_Aniol . resource:Order_of_Saint_Benedict property:founder resource:Jonny_Löhr }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P608
Q667276 Q1656682 Q502895
USER
Which people were displayed at max number of art exhibitions or events ?
(c(Q502895),P608,c(Q667276)|c(Q1656682))
action argmax
action union
action find_tuple_counts
relation P608
type Q502895
type Q667276
action find_tuple_counts
relation P608
type Q502895
type Q1656682
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q667276'}, {'concept': 'Q1656682'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?p ) { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?o ) WHERE { { ?h property:P608 ?b . ?h rdf:type ontology:Q502895 . ?b rdf:type ontology:Q667276 } UNION { ?h property:P608 ?b . ?h rdf:type ontology:Q502895 . ?b rdf:type ontology:Q1656682 } } GROUP BY ?h } } . FILTER ( ?m = ?p ) . { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?m ) WHERE { { ?g property:P608 ?i . ?i rdf:type ontology:Q667276 . ?g rdf:type ontology:Q502895 } UNION { ?g property:P608 ?i . ?g rdf:type ontology:Q502895 . ?i rdf:type ontology:Q1656682 } } GROUP BY ?g } }
action argmax
action union
action find_tuple_counts
relation exhibition history
type common name
type art exhibition
action find_tuple_counts
relation exhibition history
type common name
type event
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'art exhibition'}, {'concept': 'event'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?p ) { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?o ) WHERE { { ?h property:exhibition_history ?b . ?h rdf:type ontology:common_name . ?b rdf:type ontology:art_exhibition } UNION { ?h property:exhibition_history ?b . ?h rdf:type ontology:common_name . ?b rdf:type ontology:event } } GROUP BY ?h } } . FILTER ( ?m = ?p ) . { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?m ) WHERE { { ?g property:exhibition_history ?i . ?i rdf:type ontology:art_exhibition . ?g rdf:type ontology:common_name } UNION { ?g property:exhibition_history ?i . ?g rdf:type ontology:common_name . ?i rdf:type ontology:event } } GROUP BY ?g } }
[]
art exhibition event common name
Q3335569
SYSTEM
Nancy Elizabeth Prophet
Q3335569
(c(Q502895),P608,c(Q667276)|c(Q1656682))
action argmax
action union
action find_tuple_counts
relation P608
type Q502895
type Q667276
action find_tuple_counts
relation P608
type Q502895
type Q1656682
[ANSWER] was displayed at max number of art exhibitions or events
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q667276'}, {'concept': 'Q1656682'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?p ) { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?o ) WHERE { { ?h property:P608 ?b . ?h rdf:type ontology:Q502895 . ?b rdf:type ontology:Q667276 } UNION { ?h property:P608 ?b . ?h rdf:type ontology:Q502895 . ?b rdf:type ontology:Q1656682 } } GROUP BY ?h } } . FILTER ( ?m = ?p ) . { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?m ) WHERE { { ?g property:P608 ?i . ?i rdf:type ontology:Q667276 . ?g rdf:type ontology:Q502895 } UNION { ?g property:P608 ?i . ?g rdf:type ontology:Q502895 . ?i rdf:type ontology:Q1656682 } } GROUP BY ?g } }
Nancy Elizabeth Prophet
Nancy Elizabeth Prophet was displayed at max number of art exhibitions or events
Nancy Elizabeth Prophet
action argmax
action union
action find_tuple_counts
relation exhibition history
type common name
type art exhibition
action find_tuple_counts
relation exhibition history
type common name
type event
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'art exhibition'}, {'concept': 'event'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?p ) { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?o ) WHERE { { ?h property:exhibition_history ?b . ?h rdf:type ontology:common_name . ?b rdf:type ontology:art_exhibition } UNION { ?h property:exhibition_history ?b . ?h rdf:type ontology:common_name . ?b rdf:type ontology:event } } GROUP BY ?h } } . FILTER ( ?m = ?p ) . { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?m ) WHERE { { ?g property:exhibition_history ?i . ?i rdf:type ontology:art_exhibition . ?g rdf:type ontology:common_name } UNION { ?g property:exhibition_history ?i . ?g rdf:type ontology:common_name . ?i rdf:type ontology:event } } GROUP BY ?g } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16874278 Q131132
P112 P50
Q502895
USER
Which people are the names of the founders of Order of Saint Benedict or authored Nomenclature of amphiboles: report (1997) ?
OR((Q131132,P112,c(Q502895)), (Q16874278,P50,c(Q502895)))
action filter_type
action union
action find
entity Q131132
relation P112
action find
entity Q16874278
relation P50
type Q502895
{'OR': [['Q131132', 'P112', {'concept': 'Q502895'}], ['Q16874278', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . { { resource:Q131132 property:P112 ?a } UNION { resource:Q16874278 property:P50 ?a } } }
Nomenclature of amphiboles: report (1997) Order of Saint Benedict
action filter_type
action union
action find
entity Order of Saint Benedict
relation founder
action find
entity Nomenclature of amphiboles: report (1997)
relation author
type common name
{'OR': [['Order of Saint Benedict', 'founder', {'concept': 'common name'}], ['Nomenclature of amphiboles: report (1997)', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . { { resource:Order_of_Saint_Benedict property:founder ?a } UNION { resource:Nomenclature_of_amphiboles:_report_(1997) property:author ?a } } }
[]
common name
Q15924558 Q4893100 Q16874503 Q16874457 Q1318970 Q16874494 Q16874464 Q16874522 Q15920770 Q5487165
SYSTEM
Some of them are William D. Birch, Bernard Elgey Leake, Luciano Ungaretti, K. Linthout, Joseph Anthony Mandarino, David C. Smith, J. Laird, G. Youzhi, John C. Schumacher, Frank Hawthorne
Q5487165 Q4893100 Q1318970 Q15924610 Q16874464 Q15924596 Q16874522 Q16874503 Q11399267 Q15920770 Q1356348 Q15924545 Q16874292 Q16874433 Q15924589 Q15924582 Q15924603 Q16874473 Q16874457 Q15920736 Q16874494 Q15924558 Q44265
OR((Q131132,P112,c(Q502895)), (Q16874278,P50,c(Q502895)))
action filter_type
action union
action find
entity Q131132
relation P112
action find
entity Q16874278
relation P50
type Q502895
[ANSWERS] are the names of the founders of Order of Saint Benedict or authored Nomenclature of amphiboles: report (1997)
{'OR': [['Q131132', 'P112', {'concept': 'Q502895'}], ['Q16874278', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . { { resource:Q131132 property:P112 ?a } UNION { resource:Q16874278 property:P50 ?a } } }
Frank Hawthorne Bernard Elgey Leake Joseph Anthony Mandarino Eric James Williams Whittaker J. Laird Vladimir Gerasimovich Krivovichev G. Youzhi Luciano Ungaretti Akira Katō John C. Schumacher Ernest Henry Nickel Alan Robert Woolley Charles Edward Samuel Arps M. Charles Gilbert Hanan Josef Kisch Joel D. Grice Nicholas C. N. Stephenson Nicholas M. S. Rock K. Linthout Walter V. Maresch David C. Smith William D. Birch Benedict of Nursia
William D. Birch, Bernard Elgey Leake, Luciano Ungaretti, K. Linthout, Joseph Anthony Mandarino, David C. Smith, J. Laird, G. Youzhi, John C. Schumacher and Frank Hawthorne are the names of the founders of Order of Saint Benedict or authored Nomenclature of amphiboles: report (1997)
William D. Birch Bernard Elgey Leake Luciano Ungaretti K. Linthout Joseph Anthony Mandarino David C. Smith J. Laird G. Youzhi John C. Schumacher Frank Hawthorne
action filter_type
action union
action find
entity Order of Saint Benedict
relation founder
action find
entity Nomenclature of amphiboles: report (1997)
relation author
type common name
{'OR': [['Order of Saint Benedict', 'founder', {'concept': 'common name'}], ['Nomenclature of amphiboles: report (1997)', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . { { resource:Order_of_Saint_Benedict property:founder ?a } UNION { resource:Nomenclature_of_amphiboles:_report_(1997) property:author ?a } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16874494
P734
Q82799
USER
Which name is associated with that person ?
(Q16874494,P734,c(Q82799))
action filter_type
action find
entity Q16874494
relation P734
type Q82799
['Q16874494', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q16874494 property:P734 ?u . ?u rdf:type ontology:Q82799 }
David C. Smith
action filter_type
action find
entity David C. Smith
relation family name
type name
['David C. Smith', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:David_C._Smith property:family_name ?u . ?u rdf:type ontology:name }
[]
name
Clarification for simple ques.
Q15924558
SYSTEM
Did you mean William D. Birch ?
Q15924558 Q4893100 Q16874503 Q16874457 Q1318970 Q16874494 Q16874464 Q16874522 Q15920770 Q5487165
(Q15924558,P734,c(Q82799)) (Q4893100,P734,c(Q82799)) (Q16874503,P734,c(Q82799)) (Q16874457,P734,c(Q82799)) (Q1318970,P734,c(Q82799)) (Q16874494,P734,c(Q82799)) (Q16874464,P734,c(Q82799)) (Q16874522,P734,c(Q82799)) (Q15920770,P734,c(Q82799)) (Q5487165,P734,c(Q82799))
[ANSWER]
['Q15924558', 'P734', {'concept': 'Q82799'}] ['Q4893100', 'P734', {'concept': 'Q82799'}] ['Q16874503', 'P734', {'concept': 'Q82799'}] ['Q16874457', 'P734', {'concept': 'Q82799'}] ['Q1318970', 'P734', {'concept': 'Q82799'}] ['Q16874494', 'P734', {'concept': 'Q82799'}] ['Q16874464', 'P734', {'concept': 'Q82799'}] ['Q16874522', 'P734', {'concept': 'Q82799'}] ['Q15920770', 'P734', {'concept': 'Q82799'}] ['Q5487165', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q16874494 property:P734 ?u . ?u rdf:type ontology:Q82799 }
William D. Birch Bernard Elgey Leake Luciano Ungaretti K. Linthout Joseph Anthony Mandarino David C. Smith J. Laird G. Youzhi John C. Schumacher Frank Hawthorne
Did you mean William D. Birch ?
William D. Birch
['William D. Birch', 'family name', {'concept': 'name'}] ['Bernard Elgey Leake', 'family name', {'concept': 'name'}] ['Luciano Ungaretti', 'family name', {'concept': 'name'}] ['K. Linthout', 'family name', {'concept': 'name'}] ['Joseph Anthony Mandarino', 'family name', {'concept': 'name'}] ['David C. Smith', 'family name', {'concept': 'name'}] ['J. Laird', 'family name', {'concept': 'name'}] ['G. Youzhi', 'family name', {'concept': 'name'}] ['John C. Schumacher', 'family name', {'concept': 'name'}] ['Frank Hawthorne', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:David_C._Smith property:family_name ?u . ?u rdf:type ontology:name }
[]
Simple Question (Coreferenced)
USER
No, I meant David C. Smith. Could you tell me the answer for that?
(Q16874494,P734,c(Q82799))
Q16874494
['Q16874494', 'P734', {'concept': 'Q82799'}]
['David C. Smith', 'family name', {'concept': 'name'}]
[]
Q1158446
SYSTEM
Smith
Q1158446
(Q16874494,P734,c(Q82799))
action filter_type
action find
entity Q16874494
relation P734
type Q82799
[ANSWER] is associated with that person
['Q16874494', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q16874494 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Smith
Smith is associated with that person
Smith
action filter_type
action find
entity David C. Smith
relation family name
type name
['David C. Smith', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:David_C._Smith property:family_name ?u . ?u rdf:type ontology:name }
[]