Simple Question (Direct)
Simple Question
Q772571
P39
Q12737077
USER
What were the positions for which Antonino Paternò-Castello were appointed ?
(Q772571,P39,c(Q12737077))
action filter_type
action find
entity Q772571
relation P39
type Q12737077
['Q772571', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q772571 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
Antonino Paternò-Castello
action filter_type
action find
entity Antonino Paternò-Castello
relation position held
type occupation
['Antonino Paternò-Castello', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Antonino_Paternò-Castello property:position_held ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q30185 Q26248695 Q27016755
SYSTEM
mayor, minister of Foreign Affairs of the Kingdom of Italy, minister of Posts and Telegraphs of the Kingdom of Italy
Q30185 Q26248695 Q27016755
(Q772571,P39,c(Q12737077))
action filter_type
action find
entity Q772571
relation P39
type Q12737077
[ANSWERS]
['Q772571', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q772571 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
mayor minister of Foreign Affairs of the Kingdom of Italy minister of Posts and Telegraphs of the Kingdom of Italy
Mayor, minister of Foreign Affairs of the Kingdom of Italy and minister of Posts and Telegraphs of the Kingdom of Italy
mayor minister of Foreign Affairs of the Kingdom of Italy minister of Posts and Telegraphs of the Kingdom of Italy
action filter_type
action find
entity Antonino Paternò-Castello
relation position held
type occupation
['Antonino Paternò-Castello', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Antonino_Paternò-Castello property:position_held ?h . ?h rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q27016755
P17
Q7275
USER
Which state does that occupation belong to ?
(Q27016755,P17,c(Q7275))
action filter_type
action find
entity Q27016755
relation P17
type Q7275
['Q27016755', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q7275 . resource:Q27016755 property:P17 ?r }
minister of Posts and Telegraphs of the Kingdom of Italy
action filter_type
action find
entity minister of Posts and Telegraphs of the Kingdom of Italy
relation country
type state
['minister of Posts and Telegraphs of the Kingdom of Italy', 'country', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:state . resource:minister_of_Posts_and_Telegraphs_of_the_Kingdom_of_Italy property:country ?r }
[]
state
Clarification for simple ques.
Q26248695
SYSTEM
Did you mean minister of Foreign Affairs of the Kingdom of Italy ?
Q30185 Q26248695 Q27016755
(Q30185,P17,c(Q7275)) (Q26248695,P17,c(Q7275)) (Q27016755,P17,c(Q7275))
[ANSWER]
['Q30185', 'P17', {'concept': 'Q7275'}] ['Q26248695', 'P17', {'concept': 'Q7275'}] ['Q27016755', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q7275 . resource:Q27016755 property:P17 ?r }
mayor minister of Foreign Affairs of the Kingdom of Italy minister of Posts and Telegraphs of the Kingdom of Italy
Did you mean minister of Foreign Affairs of the Kingdom of Italy ?
minister of Foreign Affairs of the Kingdom of Italy
['mayor', 'country', {'concept': 'state'}] ['minister of Foreign Affairs of the Kingdom of Italy', 'country', {'concept': 'state'}] ['minister of Posts and Telegraphs of the Kingdom of Italy', 'country', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:state . resource:minister_of_Posts_and_Telegraphs_of_the_Kingdom_of_Italy property:country ?r }
[]
Simple Question (Coreferenced)
USER
No, I meant minister of Posts and Telegraphs of the Kingdom of Italy. Could you tell me the answer for that?
(Q27016755,P17,c(Q7275))
Q27016755
['Q27016755', 'P17', {'concept': 'Q7275'}]
['minister of Posts and Telegraphs of the Kingdom of Italy', 'country', {'concept': 'state'}]
[]
Q172579
SYSTEM
Kingdom of Italy
Q172579
(Q27016755,P17,c(Q7275))
action filter_type
action find
entity Q27016755
relation P17
type Q7275
That occupation belongs to the [ANSWER]
['Q27016755', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q7275 . resource:Q27016755 property:P17 ?r }
Kingdom of Italy
That occupation belongs to the Kingdom of Italy
Kingdom of Italy
action filter_type
action find
entity minister of Posts and Telegraphs of the Kingdom of Italy
relation country
type state
['minister of Posts and Telegraphs of the Kingdom of Italy', 'country', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:state . resource:minister_of_Posts_and_Telegraphs_of_the_Kingdom_of_Italy property:country ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q172579
P35
Q502895
USER
Which people are the heads of state of that one ?
(Q172579,P35,c(Q502895))
action filter_type
action find
entity Q172579
relation P35
type Q502895
['Q172579', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q172579 property:P35 ?t . ?t rdf:type ontology:Q502895 }
Kingdom of Italy
action filter_type
action find
entity Kingdom of Italy
relation head of state
type common name
['Kingdom of Italy', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Kingdom_of_Italy property:head_of_state ?t . ?t rdf:type ontology:common_name }
[]
common name
Q150642 Q187149 Q168691
SYSTEM
Vittorio Emanuele III, Umberto II of Italy, Victor Emmanuel II of Savoy
Q150642 Q168691 Q187149 Q153688
(Q172579,P35,c(Q502895))
action filter_type
action find
entity Q172579
relation P35
type Q502895
[ANSWERS] are the heads of state of that one
['Q172579', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q172579 property:P35 ?t . ?t rdf:type ontology:Q502895 }
Vittorio Emanuele III Victor Emmanuel II of Savoy Umberto II of Italy Umberto I of Italy
Vittorio Emanuele III, Umberto II of Italy and Victor Emmanuel II of Savoy are the heads of state of that one
Vittorio Emanuele III Umberto II of Italy Victor Emmanuel II of Savoy
action filter_type
action find
entity Kingdom of Italy
relation head of state
type common name
['Kingdom of Italy', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Kingdom_of_Italy property:head_of_state ?t . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q168691
P22
Q502895
USER
How many people have Victor Emmanuel II of Savoy as dad ?
(c(Q502895),P22,Q168691)
action count
action filter_type
action find_reverse
entity Q168691
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q168691']
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:P22 resource:Q168691 . ?i rdf:type ontology:Q502895 }
Victor Emmanuel II of Savoy
action count
action filter_type
action find_reverse
entity Victor Emmanuel II of Savoy
relation father
type common name
[{'concept': 'common name'}, 'father', 'Victor Emmanuel II of Savoy']
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:father resource:Victor_Emmanuel_II_of_Savoy . ?i rdf:type ontology:common_name }
[]
common name
SYSTEM
7
Q3052717 Q3713758 Q923098 Q3880827 Q238487 Q153688 Q32432
(c(Q502895),P22,Q168691)
action count
action filter_type
action find_reverse
entity Q168691
relation P22
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q168691']
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:P22 resource:Q168691 . ?i rdf:type ontology:Q502895 }
Emmanuel Guerrieri de Mirafiori Donato Etna Princess Maria Clotilde of Savoy Prince Oddone, Duke of Montferrat Maria Pia of Savoy Umberto I of Italy Amadeo I of Spain
7
action count
action filter_type
action find_reverse
entity Victor Emmanuel II of Savoy
relation father
type common name
[{'concept': 'common name'}, 'father', 'Victor Emmanuel II of Savoy']
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:father resource:Victor_Emmanuel_II_of_Savoy . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q168691
P180
Q838948
USER
Which works of art depict that person ?
action filter_type
action find_reverse
entity Q168691
relation P180
type Q838948
SELECT DISTINCT ?g WHERE { ?g property:P180 resource:Q168691 . ?g rdf:type ontology:Q838948 }
Victor Emmanuel II of Savoy
action filter_type
action find_reverse
entity Victor Emmanuel II of Savoy
relation depicts
type work of art
SELECT DISTINCT ?g WHERE { ?g property:depicts resource:Victor_Emmanuel_II_of_Savoy . ?g rdf:type ontology:work_of_art }
[]
work of art
Q3862632 Q21141709 Q21141739
SYSTEM
monument to Victor Emmanuel II, Monument to Victor Emmanuel II, Monument to Victor Emmanuel II
Q21141739 Q22330300 Q21141728 Q21141729 Q21141651 Q21141709 Q3862632 Q21141682 Q21141751
action filter_type
action find_reverse
entity Q168691
relation P180
type Q838948
[ANSWERS] depict that person
SELECT DISTINCT ?g WHERE { ?g property:P180 resource:Q168691 . ?g rdf:type ontology:Q838948 }
Monument to Victor Emmanuel II The Encounter of Teano, Fiesole Equestrian statue of Victor Emmanuel II Equestrian statue of Vittorio Emanuele II Equestrian statue of Vittorio Emanuele II Monument to Victor Emmanuel II monument to Victor Emmanuel II Monument to Victor Emmanuel II Monument to Victor Emmanuel II
Monument to Victor Emmanuel II, Monument to Victor Emmanuel II and Monument to Victor Emmanuel II depict that person
monument to Victor Emmanuel II Monument to Victor Emmanuel II Monument to Victor Emmanuel II
action filter_type
action find_reverse
entity Victor Emmanuel II of Savoy
relation depicts
type work of art
SELECT DISTINCT ?g WHERE { ?g property:depicts resource:Victor_Emmanuel_II_of_Savoy . ?g rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q168691
P710
Q1190554
USER
What event did that person particiate in ?
(c(Q1190554),P710,Q3862632) (c(Q1190554),P710,Q21141709) (c(Q1190554),P710,Q21141739)
action filter_type
action find_reverse
entity Q168691
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q3862632'] [{'concept': 'Q1190554'}, 'P710', 'Q21141709'] [{'concept': 'Q1190554'}, 'P710', 'Q21141739']
SELECT DISTINCT ?o WHERE { ?o property:P710 resource:Q168691 . ?o rdf:type ontology:Q1190554 }
Victor Emmanuel II of Savoy
action filter_type
action find_reverse
entity Victor Emmanuel II of Savoy
relation participant
type event
[{'concept': 'event'}, 'participant', 'monument to Victor Emmanuel II'] [{'concept': 'event'}, 'participant', 'Monument to Victor Emmanuel II'] [{'concept': 'event'}, 'participant', 'Monument to Victor Emmanuel II']
SELECT DISTINCT ?o WHERE { ?o property:participant resource:Victor_Emmanuel_II_of_Savoy . ?o rdf:type ontology:event }
[]
event
Q254106
SYSTEM
Crimean War
Q254106
(c(Q1190554),P710,Q3862632) (c(Q1190554),P710,Q21141709) (c(Q1190554),P710,Q21141739)
action filter_type
action find_reverse
entity Q168691
relation P710
type Q1190554
That person particiated in [ANSWER]
[{'concept': 'Q1190554'}, 'P710', 'Q3862632'] [{'concept': 'Q1190554'}, 'P710', 'Q21141709'] [{'concept': 'Q1190554'}, 'P710', 'Q21141739']
SELECT DISTINCT ?o WHERE { ?o property:P710 resource:Q168691 . ?o rdf:type ontology:Q1190554 }
Crimean War
That person particiated in Crimean War
Crimean War
action filter_type
action find_reverse
entity Victor Emmanuel II of Savoy
relation participant
type event
[{'concept': 'event'}, 'participant', 'monument to Victor Emmanuel II'] [{'concept': 'event'}, 'participant', 'Monument to Victor Emmanuel II'] [{'concept': 'event'}, 'participant', 'Monument to Victor Emmanuel II']
SELECT DISTINCT ?o WHERE { ?o property:participant resource:Victor_Emmanuel_II_of_Savoy . ?o rdf:type ontology:event }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q254106 Q7721 Q83171
P710
Q502895
USER
Did Napoleon III and Alexander II of Russia participate in Crimean War ?
(Q254106,P710,Q7721) (Q254106,P710,Q83171)
action is_in
entity Q254106
action intersection
action find_reverse
entity Q7721
relation P710
action find_reverse
entity Q83171
relation P710
['Q254106', 'P710', 'Q7721'] ['Q254106', 'P710', 'Q83171']
ASK WHERE { resource:Q254106 property:P710 resource:Q7721 . resource:Q254106 property:P710 resource:Q83171 }
Crimean War Napoleon III Alexander II of Russia
action is_in
entity Crimean War
action intersection
action find_reverse
entity Napoleon III
relation participant
action find_reverse
entity Alexander II of Russia
relation participant
['Crimean War', 'participant', 'Napoleon III'] ['Crimean War', 'participant', 'Alexander II of Russia']
ASK WHERE { resource:Crimean_War property:participant resource:Napoleon_III . resource:Crimean_War property:participant resource:Alexander_II_of_Russia }
[]
common name
SYSTEM
YES
(Q254106,P710,Q7721) (Q254106,P710,Q83171)
action is_in
entity Q254106
action intersection
action find_reverse
entity Q7721
relation P710
action find_reverse
entity Q83171
relation P710
[ANSWER]
['Q254106', 'P710', 'Q7721'] ['Q254106', 'P710', 'Q83171']
ASK WHERE { resource:Q254106 property:P710 resource:Q7721 . resource:Q254106 property:P710 resource:Q83171 }
Yes
action is_in
entity Crimean War
action intersection
action find_reverse
entity Napoleon III
relation participant
action find_reverse
entity Alexander II of Russia
relation participant
['Crimean War', 'participant', 'Napoleon III'] ['Crimean War', 'participant', 'Alexander II of Russia']
ASK WHERE { resource:Crimean_War property:participant resource:Napoleon_III . resource:Crimean_War property:participant resource:Alexander_II_of_Russia }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3862632 Q326503
P180
Q1075
USER
How many colors are expressed in monument to Victor Emmanuel II or The Sleepers ?
(Q3862632,P180,c(Q1075)) (Q326503,P180,c(Q1075))
action count
action union
action filter_type
action find
entity Q3862632
relation P180
type Q1075
action filter_type
action find
entity Q326503
relation P180
type Q1075
['Q3862632', 'P180', {'concept': 'Q1075'}] ['Q326503', 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?v property:P180 ?g . VALUES ( ?v ) { ( resource:Q3862632 ) ( resource:Q326503 ) } }
monument to Victor Emmanuel II The Sleepers
action count
action union
action filter_type
action find
entity monument to Victor Emmanuel II
relation depicts
type color
action filter_type
action find
entity The Sleepers
relation depicts
type color
['monument to Victor Emmanuel II', 'depicts', {'concept': 'color'}] ['The Sleepers', 'depicts', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?v property:depicts ?g . VALUES ( ?v ) { ( resource:monument_to_Victor_Emmanuel_II ) ( resource:The_Sleepers ) } }
[]
color
SYSTEM
2
Q202466 Q2367101
(Q3862632,P180,c(Q1075)) (Q326503,P180,c(Q1075))
action count
action union
action filter_type
action find
entity Q3862632
relation P180
type Q1075
action filter_type
action find
entity Q326503
relation P180
type Q1075
[ANSWER]
['Q3862632', 'P180', {'concept': 'Q1075'}] ['Q326503', 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?v property:P180 ?g . VALUES ( ?v ) { ( resource:Q3862632 ) ( resource:Q326503 ) } }
blonde brown hair
2
action count
action union
action filter_type
action find
entity monument to Victor Emmanuel II
relation depicts
type color
action filter_type
action find
entity The Sleepers
relation depicts
type color
['monument to Victor Emmanuel II', 'depicts', {'concept': 'color'}] ['The Sleepers', 'depicts', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?v property:depicts ?g . VALUES ( ?v ) { ( resource:monument_to_Victor_Emmanuel_II ) ( resource:The_Sleepers ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q168691
P21 P22
Q502895
USER
Which people are the offspring of Victor Emmanuel II of Savoy and have the gender as male ?
AND((c(Q502895),P22,Q168691), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q168691
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q168691'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P21 resource:Q6581097 . ?i property:P22 resource:Q168691 }
male Victor Emmanuel II of Savoy
action filter_type
action intersection
action find_reverse
entity Victor Emmanuel II of Savoy
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Victor Emmanuel II of Savoy'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:gender resource:male . ?i property:father resource:Victor_Emmanuel_II_of_Savoy }
[]
common name
Q3713758 Q32432 Q3052717 Q3880827 Q153688
SYSTEM
Donato Etna, Amadeo I of Spain, Emmanuel Guerrieri de Mirafiori, Prince Oddone, Duke of Montferrat, Umberto I of Italy
Q3713758 Q32432 Q3052717 Q3880827 Q153688
AND((c(Q502895),P22,Q168691), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q168691
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] are the offspring of Victor Emmanuel II of Savoy and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q168691'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P21 resource:Q6581097 . ?i property:P22 resource:Q168691 }
Donato Etna Amadeo I of Spain Emmanuel Guerrieri de Mirafiori Prince Oddone, Duke of Montferrat Umberto I of Italy
Donato Etna, Amadeo I of Spain, Emmanuel Guerrieri de Mirafiori, Prince Oddone, Duke of Montferrat and Umberto I of Italy are the offspring of Victor Emmanuel II of Savoy and have the gender as male
Donato Etna Amadeo I of Spain Emmanuel Guerrieri de Mirafiori Prince Oddone, Duke of Montferrat Umberto I of Italy
action filter_type
action intersection
action find_reverse
entity Victor Emmanuel II of Savoy
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Victor Emmanuel II of Savoy'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:gender resource:male . ?i property:father resource:Victor_Emmanuel_II_of_Savoy }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q153688
P40
Q502895
USER
How many people are the children of Umberto I of Italy ?
(Q153688,P40,c(Q502895))
action count
action filter_type
action find
entity Q153688
relation P40
type Q502895
['Q153688', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q153688 property:P40 ?x . ?x rdf:type ontology:Q502895 }
Umberto I of Italy
action count
action filter_type
action find
entity Umberto I of Italy
relation child
type common name
['Umberto I of Italy', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Umberto_I_of_Italy property:child ?x . ?x rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q150642
(Q153688,P40,c(Q502895))
action count
action filter_type
action find
entity Q153688
relation P40
type Q502895
[ANSWER]
['Q153688', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q153688 property:P40 ?x . ?x rdf:type ontology:Q502895 }
Vittorio Emanuele III
1
action count
action filter_type
action find
entity Umberto I of Italy
relation child
type common name
['Umberto I of Italy', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Umberto_I_of_Italy property:child ?x . ?x rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q279873
Q502895
USER
And what about William Henry, Prince of Nassau-Usingen?
(Q279873,P40,c(Q502895))
action count
action filter_type
action find
entity Q279873
relation P40
type Q502895
['Q279873', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Q279873 property:P40 ?b . ?b rdf:type ontology:Q502895 }
William Henry, Prince of Nassau-Usingen
action count
action filter_type
action find
entity William Henry, Prince of Nassau-Usingen
relation child
type common name
['William Henry, Prince of Nassau-Usingen', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:William_Henry,_Prince_of_Nassau-Usingen property:child ?b . ?b rdf:type ontology:common_name }
[]
common name
SYSTEM
2
(Q279873,P40,c(Q502895))
action count
action filter_type
action find
entity Q279873
relation P40
type Q502895
[ANSWER]
['Q279873', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Q279873 property:P40 ?b . ?b rdf:type ontology:Q502895 }
2
action count
action filter_type
action find
entity William Henry, Prince of Nassau-Usingen
relation child
type common name
['William Henry, Prince of Nassau-Usingen', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:William_Henry,_Prince_of_Nassau-Usingen property:child ?b . ?b rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q18683605 Q326503
P180
Q14952
USER
Which headgears are expressed in The Sleepers and Trompe l'oeil ?
AND((Q326503,P180,c(Q14952)), (Q18683605,P180,c(Q14952)))
action filter_type
action intersection
action find
entity Q326503
relation P180
action find
entity Q18683605
relation P180
type Q14952
{'AND': [['Q326503', 'P180', {'concept': 'Q14952'}], ['Q18683605', 'P180', {'concept': 'Q14952'}]]}
SELECT DISTINCT ?h WHERE { resource:Q326503 property:P180 ?h . resource:Q18683605 property:P180 ?h . ?h rdf:type ontology:Q14952 }
Trompe l'oeil The Sleepers
action filter_type
action intersection
action find
entity The Sleepers
relation depicts
action find
entity Trompe l'oeil
relation depicts
type headgear
{'AND': [['The Sleepers', 'depicts', {'concept': 'headgear'}], ["Trompe l'oeil", 'depicts', {'concept': 'headgear'}]]}
SELECT DISTINCT ?h WHERE { resource:The_Sleepers property:depicts ?h . resource:Trompe_l'oeil property:depicts ?h . ?h rdf:type ontology:headgear }
[]
headgear
Q23834
SYSTEM
comb
Q23834
AND((Q326503,P180,c(Q14952)), (Q18683605,P180,c(Q14952)))
action filter_type
action intersection
action find
entity Q326503
relation P180
action find
entity Q18683605
relation P180
type Q14952
[ANSWER] is expressed in The Sleepers and Trompe l'oeil
{'AND': [['Q326503', 'P180', {'concept': 'Q14952'}], ['Q18683605', 'P180', {'concept': 'Q14952'}]]}
SELECT DISTINCT ?h WHERE { resource:Q326503 property:P180 ?h . resource:Q18683605 property:P180 ?h . ?h rdf:type ontology:Q14952 }
comb
Comb is expressed in The Sleepers and Trompe l'oeil
comb
action filter_type
action intersection
action find
entity The Sleepers
relation depicts
action find
entity Trompe l'oeil
relation depicts
type headgear
{'AND': [['The Sleepers', 'depicts', {'concept': 'headgear'}], ["Trompe l'oeil", 'depicts', {'concept': 'headgear'}]]}
SELECT DISTINCT ?h WHERE { resource:The_Sleepers property:depicts ?h . resource:Trompe_l'oeil property:depicts ?h . ?h rdf:type ontology:headgear }
[]