Simple Question (Direct)
Simple Question
Q276010
P451
Q502895
USER
Who is the mistress of Diane de Poitiers ?
(Q276010,P451,c(Q502895))
action filter_type
action find
entity Q276010
relation P451
type Q502895
['Q276010', 'P451', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q276010 property:P451 ?o . ?o rdf:type ontology:Q502895 }
Diane de Poitiers
action filter_type
action find
entity Diane de Poitiers
relation partner
type common name
['Diane de Poitiers', 'partner', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Diane_de_Poitiers property:partner ?o . ?o rdf:type ontology:common_name }
[]
common name
Q132545
SYSTEM
Henry II of France
Q132545
(Q276010,P451,c(Q502895))
action filter_type
action find
entity Q276010
relation P451
type Q502895
The mistress of Diane de Poitiers is King [ANSWER]
['Q276010', 'P451', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q276010 property:P451 ?o . ?o rdf:type ontology:Q502895 }
Henry II of France
The mistress of Diane de Poitiers is King Henry II of France
Henry II of France
action filter_type
action find
entity Diane de Poitiers
relation partner
type common name
['Diane de Poitiers', 'partner', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Diane_de_Poitiers property:partner ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q132545
P22
Q502895
USER
Which people have that one as father ?
(c(Q502895),P22,Q132545)
action filter_type
action find_reverse
entity Q132545
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q132545']
SELECT DISTINCT ?f WHERE { ?f property:P22 resource:Q132545 . ?f rdf:type ontology:Q502895 }
Henry II of France
action filter_type
action find_reverse
entity Henry II of France
relation father
type common name
[{'concept': 'common name'}, 'father', 'Henry II of France']
SELECT DISTINCT ?f WHERE { ?f property:father resource:Henry_II_of_France . ?f rdf:type ontology:common_name }
[]
common name
Q53448 Q134309 Q242336
SYSTEM
Henry III of France, Charles IX of France, Claude of Valois
Q242336 Q1134100 Q113422 Q220845 Q134309 Q2322001 Q53448 Q176041 Q132548 Q1122656 Q2376774 Q318380 Q4542229
(c(Q502895),P22,Q132545)
action filter_type
action find_reverse
entity Q132545
relation P22
type Q502895
[ANSWERS] have that one as father
[{'concept': 'Q502895'}, 'P22', 'Q132545']
SELECT DISTINCT ?f WHERE { ?f property:P22 resource:Q132545 . ?f rdf:type ontology:Q502895 }
Claude of Valois Victoria of Valois Diane de France Margaret of Valois Charles IX of France Henri d'Angoulême Henry III of France Elisabeth of Valois Francis II of France Louis of Valois Henri de Saint-Rémi Francis, Duke of Anjou Joan of Valois
Henry III of France, Charles IX of France and Claude of Valois have that one as father
Henry III of France Charles IX of France Claude of Valois
action filter_type
action find_reverse
entity Henry II of France
relation father
type common name
[{'concept': 'common name'}, 'father', 'Henry II of France']
SELECT DISTINCT ?f WHERE { ?f property:father resource:Henry_II_of_France . ?f rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q11563240
P40
Q502895
USER
Do Kureha Kozuki have those ones as a child ?
(Q11563240,P40,Q53448) (Q11563240,P40,Q134309) (Q11563240,P40,Q242336)
action is_in
entity prev_answer
action find
entity Q11563240
relation P40
['Q11563240', 'P40', 'Q53448'] ['Q11563240', 'P40', 'Q134309'] ['Q11563240', 'P40', 'Q242336']
ASK WHERE { VALUES ( ?v ) { ( resource:Q242336 ) ( resource:Q1134100 ) ( resource:Q113422 ) } . resource:Q11563240 property:P40 ?v }
Kureha Kozuki
action is_in
entity prev_answer
action find
entity Kureha Kozuki
relation child
['Kureha Kozuki', 'child', 'Henry III of France'] ['Kureha Kozuki', 'child', 'Charles IX of France'] ['Kureha Kozuki', 'child', 'Claude of Valois']
ASK WHERE { VALUES ( ?v ) { ( resource:Claude_of_Valois ) ( resource:Victoria_of_Valois ) ( resource:Diane_de_France ) } . resource:Kureha_Kozuki property:child ?v }
[]
common name
SYSTEM
NO
(Q11563240,P40,Q53448) (Q11563240,P40,Q134309) (Q11563240,P40,Q242336)
action is_in
entity prev_answer
action find
entity Q11563240
relation P40
[ANSWER]
['Q11563240', 'P40', 'Q53448'] ['Q11563240', 'P40', 'Q134309'] ['Q11563240', 'P40', 'Q242336']
ASK WHERE { VALUES ( ?v ) { ( resource:Q242336 ) ( resource:Q1134100 ) ( resource:Q113422 ) } . resource:Q11563240 property:P40 ?v }
No
action is_in
entity prev_answer
action find
entity Kureha Kozuki
relation child
['Kureha Kozuki', 'child', 'Henry III of France'] ['Kureha Kozuki', 'child', 'Charles IX of France'] ['Kureha Kozuki', 'child', 'Claude of Valois']
ASK WHERE { VALUES ( ?v ) { ( resource:Claude_of_Valois ) ( resource:Victoria_of_Valois ) ( resource:Diane_de_France ) } . resource:Kureha_Kozuki property:child ?v }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q132545 Q958378
P7
Q502895
USER
Does Charles II de Valois, Duke of Orléans have Henry II of France as their sibling ?
(Q132545,P7,Q958378)
action is_in
entity Q958378
action find
entity Q132545
relation P7
['Q132545', 'P7', 'Q958378']
ASK WHERE { resource:Q132545 property:P7 resource:Q958378 }
Henry II of France Charles II de Valois, Duke of Orléans
action is_in
entity Charles II de Valois, Duke of Orléans
action find
entity Henry II of France
relation brother
['Henry II of France', 'brother', 'Charles II de Valois, Duke of Orléans']
ASK WHERE { resource:Henry_II_of_France property:brother resource:Charles_II_de_Valois,_Duke_of_Orléans }
[]
common name
SYSTEM
YES
(Q132545,P7,Q958378)
action is_in
entity Q958378
action find
entity Q132545
relation P7
[ANSWER]
['Q132545', 'P7', 'Q958378']
ASK WHERE { resource:Q132545 property:P7 resource:Q958378 }
Yes
action is_in
entity Charles II de Valois, Duke of Orléans
action find
entity Henry II of France
relation brother
['Henry II of France', 'brother', 'Charles II de Valois, Duke of Orléans']
ASK WHERE { resource:Henry_II_of_France property:brother resource:Charles_II_de_Valois,_Duke_of_Orléans }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by approximately 2894 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2894
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?d = 2894 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2894
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?d = 2894 ) }
[]
musical instrument common name
Q8338 Q1444 Q128309
SYSTEM
trumpet, organ, drum kit
Q8338 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2894
[ANSWERS] are played by approximately 2894 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?d = 2894 ) }
trumpet organ drum kit
Trumpet, organ and drum kit are played by approximately 2894 people
trumpet organ drum kit
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2894
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?d = 2894 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q53448 Q16198642
P25
Q502895
USER
How many people were the mom of Henry III of France or Keaweaweulaokalani ?
(Q53448,P25,c(Q502895)) (Q16198642,P25,c(Q502895))
action count
action union
action filter_type
action find
entity Q53448
relation P25
type Q502895
action filter_type
action find
entity Q16198642
relation P25
type Q502895
['Q53448', 'P25', {'concept': 'Q502895'}] ['Q16198642', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { ?v rdf:type ontology:Q502895 . resource:Q53448 property:P25 ?v } UNION { resource:Q16198642 property:P25 ?v . ?v rdf:type ontology:Q502895 } }
Henry III of France Keaweaweulaokalani
action count
action union
action filter_type
action find
entity Henry III of France
relation mother
type common name
action filter_type
action find
entity Keaweaweulaokalani
relation mother
type common name
['Henry III of France', 'mother', {'concept': 'common name'}] ['Keaweaweulaokalani', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { ?v rdf:type ontology:common_name . resource:Henry_III_of_France property:mother ?v } UNION { resource:Keaweaweulaokalani property:mother ?v . ?v rdf:type ontology:common_name } }
[]
common name
SYSTEM
2
Q131552 Q3437678
(Q53448,P25,c(Q502895)) (Q16198642,P25,c(Q502895))
action count
action union
action filter_type
action find
entity Q53448
relation P25
type Q502895
action filter_type
action find
entity Q16198642
relation P25
type Q502895
[ANSWER]
['Q53448', 'P25', {'concept': 'Q502895'}] ['Q16198642', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { ?v rdf:type ontology:Q502895 . resource:Q53448 property:P25 ?v } UNION { resource:Q16198642 property:P25 ?v . ?v rdf:type ontology:Q502895 } }
Catherine of Medici Kalama
2
action count
action union
action filter_type
action find
entity Henry III of France
relation mother
type common name
action filter_type
action find
entity Keaweaweulaokalani
relation mother
type common name
['Henry III of France', 'mother', {'concept': 'common name'}] ['Keaweaweulaokalani', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { ?v rdf:type ontology:common_name . resource:Henry_III_of_France property:mother ?v } UNION { resource:Keaweaweulaokalani property:mother ?v . ?v rdf:type ontology:common_name } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16075330 Q53448
P7
Q502895
USER
Which people are siblings of Henry III of France or Zhao Bing ?
OR((c(Q502895),P7,Q53448), (c(Q502895),P7,Q16075330))
action filter_type
action union
action find_reverse
entity Q53448
relation P7
action find_reverse
entity Q16075330
relation P7
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P7', 'Q53448'], [{'concept': 'Q502895'}, 'P7', 'Q16075330']]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?b ) { ( resource:Q53448 ) ( resource:Q16075330 ) } . ?g property:P7 ?b } . ?g rdf:type ontology:Q502895 }
Zhao Bing Henry III of France
action filter_type
action union
action find_reverse
entity Henry III of France
relation brother
action find_reverse
entity Zhao Bing
relation brother
type common name
{'OR': [[{'concept': 'common name'}, 'brother', 'Henry III of France'], [{'concept': 'common name'}, 'brother', 'Zhao Bing']]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?b ) { ( resource:Henry_III_of_France ) ( resource:Zhao_Bing ) } . ?g property:brother ?b } . ?g rdf:type ontology:common_name }
[]
common name
Q16075373 Q113422 Q10883878 Q16078792 Q10931691 Q24897866 Q16075307 Q15926392 Q16075344 Q220845
SYSTEM
Some of them are Zhao Mu, Diane de France, Renfu Diji, Zhao Dong, Shoushu Diji, Baofu Diji, Zhao Di, Zhao Zhen, Zhao Cai, Margaret of Valois
Q16075388 Q16075356 Q2322001 Q8253491 Q16077916 Q7489 Q242336 Q16078407 Q132548 Q15926392 Q1122656 Q113422 Q16075373 Q16075370 Q11052908 Q220845 Q16075415 Q16075410 Q16078102 Q10883878 Q16075331 Q16075348 Q16075318 Q318380 Q10884517 Q24897866 Q15927754 Q16075365 Q16075392 Q134309 Q176041 Q7488 Q16077821 Q10887681 Q16078299 Q1134100 Q8253462 Q10931691 Q16075377 Q16603509 Q10946964 Q11063955 Q4542229 Q16075283 Q16078792 Q16603589 Q15953734 Q16075362 Q16075284 Q16075321 Q16075344 Q16075369 Q16075403 Q16075402 Q10921640 Q16075307 Q10946739 Q16075407 Q16075341
OR((c(Q502895),P7,Q53448), (c(Q502895),P7,Q16075330))
action filter_type
action union
action find_reverse
entity Q53448
relation P7
action find_reverse
entity Q16075330
relation P7
type Q502895
[ANSWERS] are siblings of Henry III of France or Zhao Bing
{'OR': [[{'concept': 'Q502895'}, 'P7', 'Q53448'], [{'concept': 'Q502895'}, 'P7', 'Q16075330']]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?b ) { ( resource:Q53448 ) ( resource:Q16075330 ) } . ?g property:P7 ?b } . ?g rdf:type ontology:Q502895 }
Zhao Yang Zhao Xiang Henri d'Angoulême Rongde Diji Zhao Ji Emperor Gaozong of Song Claude of Valois Zhao Yi Francis II of France Zhao Zhen Louis of Valois Diane de France Zhao Mu Zhao Ji Chongde Diji Margaret of Valois Zhao Tong Zhao Si Zhao Qi Renfu Diji Zhao Xu Zhao Gong Zhao E Francis, Duke of Anjou Yifu Diji Baofu Diji Zhao Kai Zhao Shi Zhao Tan Charles IX of France Elisabeth of Valois Emperor Qinzong of Song Zhao Zhu Baoshu Diji Zhao Jian Victoria of Valois Jiade-diji Shoushu Diji Zhao Yue Xishu Diji Anshu Diji Kangshu Diji Joan of Valois Zhao Cheng Zhao Dong Princess Fujin Zhao Shu Zhao Ji Zhao Pu Zhao Wo Zhao Cai Zhao Chan Zhao Chun Zhao Yu Hefu Diji Zhao Di Ande Diji Zhao Zhi Zhao Cong
Zhao Mu, Diane de France, Renfu Diji, Zhao Dong, Shoushu Diji, Baofu Diji, Zhao Di, Zhao Zhen, Zhao Cai and Margaret of Valois are siblings of Henry III of France or Zhao Bing
Zhao Mu Diane de France Renfu Diji Zhao Dong Shoushu Diji Baofu Diji Zhao Di Zhao Zhen Zhao Cai Margaret of Valois
action filter_type
action union
action find_reverse
entity Henry III of France
relation brother
action find_reverse
entity Zhao Bing
relation brother
type common name
{'OR': [[{'concept': 'common name'}, 'brother', 'Henry III of France'], [{'concept': 'common name'}, 'brother', 'Zhao Bing']]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?b ) { ( resource:Henry_III_of_France ) ( resource:Zhao_Bing ) } . ?g property:brother ?b } . ?g rdf:type ontology:common_name }
[]