Simple Question (Direct)
Simple Question
Q651898
P53
Q13417114
USER
Which noble family did Albert III, Duke of Saxe-Wittenberg belong to ?
(Q651898,P53,c(Q13417114))
action filter_type
action find
entity Q651898
relation P53
type Q13417114
['Q651898', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?f WHERE { resource:Q651898 property:P53 ?f . ?f rdf:type ontology:Q13417114 }
Albert III, Duke of Saxe-Wittenberg
action filter_type
action find
entity Albert III, Duke of Saxe-Wittenberg
relation noble family
type noble family
['Albert III, Duke of Saxe-Wittenberg', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?f WHERE { resource:Albert_III,_Duke_of_Saxe-Wittenberg property:noble_family ?f . ?f rdf:type ontology:noble_family }
[]
noble family
Q168352
SYSTEM
House of Ascania
Q168352
(Q651898,P53,c(Q13417114))
action filter_type
action find
entity Q651898
relation P53
type Q13417114
[ANSWER] Albert III, Duke of Saxe-Wittenberg belonged to
['Q651898', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?f WHERE { resource:Q651898 property:P53 ?f . ?f rdf:type ontology:Q13417114 }
House of Ascania
House of Ascania Albert III, Duke of Saxe-Wittenberg belonged to
House of Ascania
action filter_type
action find
entity Albert III, Duke of Saxe-Wittenberg
relation noble family
type noble family
['Albert III, Duke of Saxe-Wittenberg', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?f WHERE { resource:Albert_III,_Duke_of_Saxe-Wittenberg property:noble_family ?f . ?f rdf:type ontology:noble_family }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q168352
P112
Q502895
USER
Who was the founder of that noble family ?
(Q168352,P112,c(Q502895))
action filter_type
action find
entity Q168352
relation P112
type Q502895
['Q168352', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q168352 property:P112 ?h }
House of Ascania
action filter_type
action find
entity House of Ascania
relation founder
type common name
['House of Ascania', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:House_of_Ascania property:founder ?h }
[]
common name
Q553082
SYSTEM
Esico of Ballenstedt
Q553082
(Q168352,P112,c(Q502895))
action filter_type
action find
entity Q168352
relation P112
type Q502895
The founder of that noble family was the [ANSWER]
['Q168352', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q168352 property:P112 ?h }
Esico of Ballenstedt
The founder of that noble family was the Esico of Ballenstedt
Esico of Ballenstedt
action filter_type
action find
entity House of Ascania
relation founder
type common name
['House of Ascania', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:House_of_Ascania property:founder ?h }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q553082 Q24004623
P40
Q502895
USER
Does Ray Smith have that one as an offspring ?
(Q24004623,P40,Q553082)
action is_in
entity Q24004623
action find
entity Q553082
relation P40
['Q24004623', 'P40', 'Q553082']
ASK WHERE { resource:Q553082 property:P40 resource:Q24004623 }
Esico of Ballenstedt Ray Smith
action is_in
entity Ray Smith
action find
entity Esico of Ballenstedt
relation child
['Ray Smith', 'child', 'Esico of Ballenstedt']
ASK WHERE { resource:Esico_of_Ballenstedt property:child resource:Ray_Smith }
[]
common name
SYSTEM
NO
(Q24004623,P40,Q553082)
action is_in
entity Q24004623
action find
entity Q553082
relation P40
[ANSWER]
['Q24004623', 'P40', 'Q553082']
ASK WHERE { resource:Q553082 property:P40 resource:Q24004623 }
No
action is_in
entity Ray Smith
action find
entity Esico of Ballenstedt
relation child
['Ray Smith', 'child', 'Esico of Ballenstedt']
ASK WHERE { resource:Esico_of_Ballenstedt property:child resource:Ray_Smith }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q553082
P22
Q502895
USER
How many people have Esico of Ballenstedt as dad ?
(c(Q502895),P22,Q553082)
action count
action filter_type
action find_reverse
entity Q553082
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q553082']
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { ?t property:P22 resource:Q553082 . ?t rdf:type ontology:Q502895 }
Esico of Ballenstedt
action count
action filter_type
action find_reverse
entity Esico of Ballenstedt
relation father
type common name
[{'concept': 'common name'}, 'father', 'Esico of Ballenstedt']
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { ?t property:father resource:Esico_of_Ballenstedt . ?t rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q347460
(c(Q502895),P22,Q553082)
action count
action filter_type
action find_reverse
entity Q553082
relation P22
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q553082']
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { ?t property:P22 resource:Q553082 . ?t rdf:type ontology:Q502895 }
Adalbert II, Count of Ballenstedt
1
action count
action filter_type
action find_reverse
entity Esico of Ballenstedt
relation father
type common name
[{'concept': 'common name'}, 'father', 'Esico of Ballenstedt']
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { ?t property:father resource:Esico_of_Ballenstedt . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q2285029
P22
Q502895
USER
And how about Sigmund von Gemmingen-Hornberg zu Treschklingen?
(c(Q502895),P22,Q2285029)
action count
action filter_type
action find_reverse
entity Q2285029
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q2285029']
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { ?q property:P22 resource:Q2285029 . ?q rdf:type ontology:Q502895 }
Sigmund von Gemmingen-Hornberg zu Treschklingen
action count
action filter_type
action find_reverse
entity Sigmund von Gemmingen-Hornberg zu Treschklingen
relation father
type common name
[{'concept': 'common name'}, 'father', 'Sigmund von Gemmingen-Hornberg zu Treschklingen']
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { ?q property:father resource:Sigmund_von_Gemmingen-Hornberg_zu_Treschklingen . ?q rdf:type ontology:common_name }
[]
common name
SYSTEM
4
Q2285002 Q365591 Q1447726 Q1556620
(c(Q502895),P22,Q2285029)
action count
action filter_type
action find_reverse
entity Q2285029
relation P22
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q2285029']
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { ?q property:P22 resource:Q2285029 . ?q rdf:type ontology:Q502895 }
Sigmund Reinhard von Gemmingen Adolph von Gemmingen Franz Karl von Gemmingen Gustav Gemmingen-Hagenschies
4
action count
action filter_type
action find_reverse
entity Sigmund von Gemmingen-Hornberg zu Treschklingen
relation father
type common name
[{'concept': 'common name'}, 'father', 'Sigmund von Gemmingen-Hornberg zu Treschklingen']
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { ?q property:father resource:Sigmund_von_Gemmingen-Hornberg_zu_Treschklingen . ?q rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q651898
P21 P40
Q502895
USER
Which people have Albert III, Duke of Saxe-Wittenberg as an offspring and have the gender as male ?
AND((c(Q502895),P40,Q651898), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q651898
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q651898'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?z WHERE { ?z property:P21 resource:Q6581097 . ?z property:P40 resource:Q651898 . ?z rdf:type ontology:Q502895 }
male Albert III, Duke of Saxe-Wittenberg
action filter_type
action intersection
action find_reverse
entity Albert III, Duke of Saxe-Wittenberg
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Albert III, Duke of Saxe-Wittenberg'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?z WHERE { ?z property:gender resource:male . ?z property:child resource:Albert_III,_Duke_of_Saxe-Wittenberg . ?z rdf:type ontology:common_name }
[]
common name
Q598379
SYSTEM
Wenceslas I, Duke of Saxe-Wittenberg
Q598379
AND((c(Q502895),P40,Q651898), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q651898
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Albert III, Duke of Saxe-Wittenberg as an offspring and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q651898'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?z WHERE { ?z property:P21 resource:Q6581097 . ?z property:P40 resource:Q651898 . ?z rdf:type ontology:Q502895 }
Wenceslas I, Duke of Saxe-Wittenberg
Wenceslas I, Duke of Saxe-Wittenberg have Albert III, Duke of Saxe-Wittenberg as an offspring and have the gender as male
Wenceslas I, Duke of Saxe-Wittenberg
action filter_type
action intersection
action find_reverse
entity Albert III, Duke of Saxe-Wittenberg
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Albert III, Duke of Saxe-Wittenberg'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?z WHERE { ?z property:gender resource:male . ?z property:child resource:Albert_III,_Duke_of_Saxe-Wittenberg . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P69
Q502895
USER
Who is an alumni of that sex ?
(c(Q502895),P69,Q598379)
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q598379']
SELECT DISTINCT ?v WHERE { ?v property:P69 resource:Q6581097 . ?v rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'Wenceslas I, Duke of Saxe-Wittenberg']
SELECT DISTINCT ?v WHERE { ?v property:educated_at resource:male . ?v rdf:type ontology:common_name }
[]
common name
Q4662307
SYSTEM
Aaron Parchem
Q4662307
(c(Q502895),P69,Q598379)
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
An alumni of that sex is named [ANSWER]
[{'concept': 'Q502895'}, 'P69', 'Q598379']
SELECT DISTINCT ?v WHERE { ?v property:P69 resource:Q6581097 . ?v rdf:type ontology:Q502895 }
Aaron Parchem
An alumni of that sex is named Aaron Parchem
Aaron Parchem
action filter_type
action find_reverse
entity male
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'Wenceslas I, Duke of Saxe-Wittenberg']
SELECT DISTINCT ?v WHERE { ?v property:educated_at resource:male . ?v rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q553082
P7
Q502895
USER
Which people had Esico of Ballenstedt as brother ?
(c(Q502895),P7,Q553082)
action filter_type
action find_reverse
entity Q553082
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q553082']
SELECT DISTINCT ?e WHERE { ?e property:P7 resource:Q553082 . ?e rdf:type ontology:Q502895 }
Esico of Ballenstedt
action filter_type
action find_reverse
entity Esico of Ballenstedt
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Esico of Ballenstedt']
SELECT DISTINCT ?e WHERE { ?e property:brother resource:Esico_of_Ballenstedt . ?e rdf:type ontology:common_name }
[]
common name
Q1592054 Q446304
SYSTEM
Hazecha von Ballenstedt, Uta von Ballenstedt
Q1592054 Q446304
(c(Q502895),P7,Q553082)
action filter_type
action find_reverse
entity Q553082
relation P7
type Q502895
[ANSWERS] had Esico of Ballenstedt as brother
[{'concept': 'Q502895'}, 'P7', 'Q553082']
SELECT DISTINCT ?e WHERE { ?e property:P7 resource:Q553082 . ?e rdf:type ontology:Q502895 }
Hazecha von Ballenstedt Uta von Ballenstedt
Hazecha von Ballenstedt and Uta von Ballenstedt had Esico of Ballenstedt as brother
Hazecha von Ballenstedt Uta von Ballenstedt
action filter_type
action find_reverse
entity Esico of Ballenstedt
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Esico of Ballenstedt']
SELECT DISTINCT ?e WHERE { ?e property:brother resource:Esico_of_Ballenstedt . ?e rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1592054
P9
Q502895
USER
Who is the sister of that one ?
(Q1592054,P9,c(Q502895))
action filter_type
action find
entity Q1592054
relation P9
type Q502895
['Q1592054', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q1592054 property:P9 ?o . ?o rdf:type ontology:Q502895 }
Hazecha von Ballenstedt
action filter_type
action find
entity Hazecha von Ballenstedt
relation sister
type common name
['Hazecha von Ballenstedt', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Hazecha_von_Ballenstedt property:sister ?o . ?o rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1592054
SYSTEM
Did you mean Hazecha von Ballenstedt ?
Q1592054 Q446304
(Q1592054,P9,c(Q502895)) (Q446304,P9,c(Q502895))
[ANSWER]
['Q1592054', 'P9', {'concept': 'Q502895'}] ['Q446304', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q1592054 property:P9 ?o . ?o rdf:type ontology:Q502895 }
Hazecha von Ballenstedt Uta von Ballenstedt
Did you mean Hazecha von Ballenstedt ?
Hazecha von Ballenstedt
['Hazecha von Ballenstedt', 'sister', {'concept': 'common name'}] ['Uta von Ballenstedt', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Hazecha_von_Ballenstedt property:sister ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1592054,P9,c(Q502895))
['Q1592054', 'P9', {'concept': 'Q502895'}]
['Hazecha von Ballenstedt', 'sister', {'concept': 'common name'}]
[]
Q446304
SYSTEM
Uta von Ballenstedt
Q446304
(Q1592054,P9,c(Q502895))
action filter_type
action find
entity Q1592054
relation P9
type Q502895
The sister of that one is the [ANSWER]
['Q1592054', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q1592054 property:P9 ?o . ?o rdf:type ontology:Q502895 }
Uta von Ballenstedt
The sister of that one is the Uta von Ballenstedt
Uta von Ballenstedt
action filter_type
action find
entity Hazecha von Ballenstedt
relation sister
type common name
['Hazecha von Ballenstedt', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Hazecha_von_Ballenstedt property:sister ?o . ?o rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q446304 Q7966220
P22
Q502895
USER
Was Walter Stuerzinger the dad of that one ?
(Q446304,P22,Q7966220)
action is_in
entity Q7966220
action find
entity Q446304
relation P22
['Q446304', 'P22', 'Q7966220']
ASK WHERE { resource:Q446304 property:P22 resource:Q7966220 }
Uta von Ballenstedt Walter Stuerzinger
action is_in
entity Walter Stuerzinger
action find
entity Uta von Ballenstedt
relation father
['Uta von Ballenstedt', 'father', 'Walter Stuerzinger']
ASK WHERE { resource:Uta_von_Ballenstedt property:father resource:Walter_Stuerzinger }
[]
common name
SYSTEM
NO
(Q446304,P22,Q7966220)
action is_in
entity Q7966220
action find
entity Q446304
relation P22
[ANSWER]
['Q446304', 'P22', 'Q7966220']
ASK WHERE { resource:Q446304 property:P22 resource:Q7966220 }
No
action is_in
entity Walter Stuerzinger
action find
entity Uta von Ballenstedt
relation father
['Uta von Ballenstedt', 'father', 'Walter Stuerzinger']
ASK WHERE { resource:Uta_von_Ballenstedt property:father resource:Walter_Stuerzinger }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16328792 Q4662307
P106
Q12737077
USER
Which occupations have Aaron Parchem or Spiridon Ikonomidis as his/her as a career ?
OR((Q4662307,P106,c(Q12737077)), (Q16328792,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q4662307
relation P106
action find
entity Q16328792
relation P106
type Q12737077
{'OR': [['Q4662307', 'P106', {'concept': 'Q12737077'}], ['Q16328792', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q4662307 property:P106 ?i } UNION { resource:Q16328792 property:P106 ?i } } . ?i rdf:type ontology:Q12737077 }
Spiridon Ikonomidis Aaron Parchem
action filter_type
action union
action find
entity Aaron Parchem
relation occupation
action find
entity Spiridon Ikonomidis
relation occupation
type occupation
{'OR': [['Aaron Parchem', 'occupation', {'concept': 'occupation'}], ['Spiridon Ikonomidis', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Aaron_Parchem property:occupation ?i } UNION { resource:Spiridon_Ikonomidis property:occupation ?i } } . ?i rdf:type ontology:occupation }
[]
occupation
Q13219587 Q1622272 Q593644
SYSTEM
figure skater, university teacher, chemist
Q13219587 Q1622272 Q593644
OR((Q4662307,P106,c(Q12737077)), (Q16328792,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q4662307
relation P106
action find
entity Q16328792
relation P106
type Q12737077
[ANSWERS] have Aaron Parchem or Spiridon Ikonomidis as his/her as a career
{'OR': [['Q4662307', 'P106', {'concept': 'Q12737077'}], ['Q16328792', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q4662307 property:P106 ?i } UNION { resource:Q16328792 property:P106 ?i } } . ?i rdf:type ontology:Q12737077 }
figure skater university teacher chemist
Figure skater, university teacher and chemist have Aaron Parchem or Spiridon Ikonomidis as his/her as a career
figure skater university teacher chemist
action filter_type
action union
action find
entity Aaron Parchem
relation occupation
action find
entity Spiridon Ikonomidis
relation occupation
type occupation
{'OR': [['Aaron Parchem', 'occupation', {'concept': 'occupation'}], ['Spiridon Ikonomidis', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Aaron_Parchem property:occupation ?i } UNION { resource:Spiridon_Ikonomidis property:occupation ?i } } . ?i rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q5575577
P417
Q502895 Q12737077
USER
Which people are the names of person who are the patron saints of more number of occupations than Gobnait ?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q5575577
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:P417 ?u . ?u rdf:type ontology:Q502895 . ?v rdf:type ontology:Q12737077 } GROUP BY ?u } . FILTER ( ?h > ?e ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ontology:Q502895 . resource:Q5575577 property:P417 ?f } } }
Gobnait
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Gobnait
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:patron_saint ?u . ?u rdf:type ontology:common_name . ?v rdf:type ontology:occupation } GROUP BY ?u } . FILTER ( ?h > ?e ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ontology:common_name . resource:Gobnait property:patron_saint ?f } } }
[]
common name occupation
Q166876 Q229190 Q44248
SYSTEM
Isidore of Seville, Catherine of Siena, Jerome
Q229190 Q328804 Q166876 Q170547 Q128538 Q183240 Q196653 Q44265 Q192816 Q43982 Q179718 Q43600 Q744884 Q151967 Q200895 Q44248
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q5575577
relation P417
type Q502895
[ANSWERS] are the names of person who are the patron saints of more number of occupations than Gobnait
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:P417 ?u . ?u rdf:type ontology:Q502895 . ?v rdf:type ontology:Q12737077 } GROUP BY ?u } . FILTER ( ?h > ?e ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ontology:Q502895 . resource:Q5575577 property:P417 ?f } } }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Luke the Evangelist Saint Lucy Saint Veronica Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle Zita Saint Blaise Agatha of Sicily Jerome
Isidore of Seville, Catherine of Siena and Jerome are the names of person who are the patron saints of more number of occupations than Gobnait
Isidore of Seville Catherine of Siena Jerome
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Gobnait
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:patron_saint ?u . ?u rdf:type ontology:common_name . ?v rdf:type ontology:occupation } GROUP BY ?u } . FILTER ( ?h > ?e ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ontology:common_name . resource:Gobnait property:patron_saint ?f } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q132100
P417
Q502895 Q12737077
USER
And what about Anterus?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q132100
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { resource:Q132100 property:P417 ?u . ?u rdf:type ontology:Q502895 } } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?w ) WHERE { ?z property:P417 ?y . ?y rdf:type ontology:Q502895 . ?z rdf:type ontology:Q12737077 } GROUP BY ?y } }
Anterus
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Anterus
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { resource:Anterus property:patron_saint ?u . ?u rdf:type ontology:common_name } } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?w ) WHERE { ?z property:patron_saint ?y . ?y rdf:type ontology:common_name . ?z rdf:type ontology:occupation } GROUP BY ?y } }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q132100
relation P417
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { resource:Q132100 property:P417 ?u . ?u rdf:type ontology:Q502895 } } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?w ) WHERE { ?z property:P417 ?y . ?y rdf:type ontology:Q502895 . ?z rdf:type ontology:Q12737077 } GROUP BY ?y } }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Anterus
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { resource:Anterus property:patron_saint ?u . ?u rdf:type ontology:common_name } } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?w ) WHERE { ?z property:patron_saint ?y . ?y rdf:type ontology:common_name . ?z rdf:type ontology:occupation } GROUP BY ?y } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q40185
P674
Q223393
USER
Do The Divine Comedy have the character those people ?
(Q40185,P674,Q9438) (Q40185,P674,Q60059) (Q40185,P674,Q166876)
action is_in
entity prev_answer
action find
entity Q40185
relation P674
['Q40185', 'P674', 'Q9438'] ['Q40185', 'P674', 'Q60059'] ['Q40185', 'P674', 'Q166876']
ASK WHERE { resource:Q40185 property:P674 ?g . VALUES ( ?g ) { ( resource:Q453698 ) ( resource:Q229190 ) ( resource:Q152457 ) } }
The Divine Comedy
action is_in
entity prev_answer
action find
entity The Divine Comedy
relation characters
['The Divine Comedy', 'characters', 'Thomas Aquinas'] ['The Divine Comedy', 'characters', 'Albertus Magnus'] ['The Divine Comedy', 'characters', 'Isidore of Seville']
ASK WHERE { resource:The_Divine_Comedy property:characters ?g . VALUES ( ?g ) { ( resource:Saint_Amand ) ( resource:Catherine_of_Siena ) ( resource:Saint_Roch ) } }
[]
literary genre
SYSTEM
YES
(Q40185,P674,Q9438) (Q40185,P674,Q60059) (Q40185,P674,Q166876)
action is_in
entity prev_answer
action find
entity Q40185
relation P674
[ANSWER]
['Q40185', 'P674', 'Q9438'] ['Q40185', 'P674', 'Q60059'] ['Q40185', 'P674', 'Q166876']
ASK WHERE { resource:Q40185 property:P674 ?g . VALUES ( ?g ) { ( resource:Q453698 ) ( resource:Q229190 ) ( resource:Q152457 ) } }
Yes
action is_in
entity prev_answer
action find
entity The Divine Comedy
relation characters
['The Divine Comedy', 'characters', 'Thomas Aquinas'] ['The Divine Comedy', 'characters', 'Albertus Magnus'] ['The Divine Comedy', 'characters', 'Isidore of Seville']
ASK WHERE { resource:The_Divine_Comedy property:characters ?g . VALUES ( ?g ) { ( resource:Saint_Amand ) ( resource:Catherine_of_Siena ) ( resource:Saint_Roch ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9438
P737
Q502895
USER
Which people influenced Thomas Aquinas ?
(Q9438,P737,c(Q502895))
action filter_type
action find
entity Q9438
relation P737
type Q502895
['Q9438', 'P737', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q9438 property:P737 ?y }
Thomas Aquinas
action filter_type
action find
entity Thomas Aquinas
relation influenced by
type common name
['Thomas Aquinas', 'influenced by', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:Thomas_Aquinas property:influenced_by ?y }
[]
common name
Q1541 Q859 Q868
SYSTEM
Cicero, Plato, Aristotle
Q859 Q9191 Q43939 Q9546 Q127398 Q39837 Q184500 Q102851 Q8011 Q1541 Q179759 Q60059 Q868 Q8018 Q9200
(Q9438,P737,c(Q502895))
action filter_type
action find
entity Q9438
relation P737
type Q502895
Influenced [ANSWERS] influenced Thomas Aquinas
['Q9438', 'P737', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q9438 property:P737 ?y }
Plato René Descartes Anselm of Canterbury Al-Ghazali Maimonides Averroes Johannes Scotus Eriugena Boethius Avicenna Cicero Al-Kindi Albertus Magnus Aristotle Augustine of Hippo Paul
Influenced Cicero, Plato and Aristotle influenced Thomas Aquinas
Cicero Plato Aristotle
action filter_type
action find
entity Thomas Aquinas
relation influenced by
type common name
['Thomas Aquinas', 'influenced by', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:Thomas_Aquinas property:influenced_by ?y }
[]