Simple Question (Direct)
Simple Question
Q377577
P102
Q7210356
USER
Which party does Joseph P. Teasdale belong to ?
(Q377577,P102,c(Q7210356))
action filter_type
action find
entity Q377577
relation P102
type Q7210356
['Q377577', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?l WHERE { resource:Q377577 property:P102 ?l . ?l rdf:type ontology:Q7210356 }
Joseph P. Teasdale
action filter_type
action find
entity Joseph P. Teasdale
relation member of political party
type political organization
['Joseph P. Teasdale', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?l WHERE { resource:Joseph_P._Teasdale property:member_of_political_party ?l . ?l rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q377577,P102,c(Q7210356))
action filter_type
action find
entity Q377577
relation P102
type Q7210356
The [ANSWER] does Joseph P. Teasdale belong to
['Q377577', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?l WHERE { resource:Q377577 property:P102 ?l . ?l rdf:type ontology:Q7210356 }
Democratic Party
The Democratic Party does Joseph P. Teasdale belong to
Democratic Party
action filter_type
action find
entity Joseph P. Teasdale
relation member of political party
type political organization
['Joseph P. Teasdale', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?l WHERE { resource:Joseph_P._Teasdale property:member_of_political_party ?l . ?l rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29552
P462
Q1075
USER
Which color is that political organization associated with ?
(Q29552,P462,c(Q1075))
action filter_type
action find
entity Q29552
relation P462
type Q1075
['Q29552', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?a WHERE { resource:Q29552 property:P462 ?a . ?a rdf:type ontology:Q1075 }
Democratic Party
action filter_type
action find
entity Democratic Party
relation color
type color
['Democratic Party', 'color', {'concept': 'color'}]
SELECT DISTINCT ?a WHERE { resource:Democratic_Party property:color ?a . ?a rdf:type ontology:color }
[]
color
Q1088
SYSTEM
blue
Q1088
(Q29552,P462,c(Q1075))
action filter_type
action find
entity Q29552
relation P462
type Q1075
That political organization is associated with [ANSWER]
['Q29552', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?a WHERE { resource:Q29552 property:P462 ?a . ?a rdf:type ontology:Q1075 }
blue
That political organization is associated with blue
blue
action filter_type
action find
entity Democratic Party
relation color
type color
['Democratic Party', 'color', {'concept': 'color'}]
SELECT DISTINCT ?a WHERE { resource:Democratic_Party property:color ?a . ?a rdf:type ontology:color }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1088
P1884
Q15619164
USER
Who has that color colored hair ?
(c(Q15619164),P1884,Q1088)
action filter_type
action find_reverse
entity Q1088
relation P1884
type Q15619164
[{'concept': 'Q15619164'}, 'P1884', 'Q1088']
SELECT DISTINCT ?x WHERE { ?x property:P1884 resource:Q1088 . ?x rdf:type ontology:Q15619164 }
blue
action filter_type
action find_reverse
entity blue
relation hair color
type abstract being
[{'concept': 'abstract being'}, 'hair color', 'blue']
SELECT DISTINCT ?x WHERE { ?x property:hair_color resource:blue . ?x rdf:type ontology:abstract_being }
[]
abstract being
Q552682
SYSTEM
Hatsune Miku
Q552682
(c(Q15619164),P1884,Q1088)
action filter_type
action find_reverse
entity Q1088
relation P1884
type Q15619164
[ANSWER] has that color colored hair
[{'concept': 'Q15619164'}, 'P1884', 'Q1088']
SELECT DISTINCT ?x WHERE { ?x property:P1884 resource:Q1088 . ?x rdf:type ontology:Q15619164 }
Hatsune Miku
Hatsune Miku has that color colored hair
Hatsune Miku
action filter_type
action find_reverse
entity blue
relation hair color
type abstract being
[{'concept': 'abstract being'}, 'hair color', 'blue']
SELECT DISTINCT ?x WHERE { ?x property:hair_color resource:blue . ?x rdf:type ontology:abstract_being }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q552682 Q1066065 Q16662998
P725
Q502895
USER
Did Saki Fujita and Mariama Gueye do the dubbing for Q552682 ?
(Q552682,P725,Q1066065) (Q552682,P725,Q16662998)
action is_in
entity Q552682
action intersection
action find_reverse
entity Q1066065
relation P725
action find_reverse
entity Q16662998
relation P725
['Q552682', 'P725', 'Q1066065'] ['Q552682', 'P725', 'Q16662998']
ASK WHERE { resource:Q552682 property:P725 resource:Q1066065 . resource:Q552682 property:P725 resource:Q16662998 }
Hatsune Miku Saki Fujita Mariama Gueye
action is_in
entity Hatsune Miku
action intersection
action find_reverse
entity Saki Fujita
relation voice actor
action find_reverse
entity Mariama Gueye
relation voice actor
['Hatsune Miku', 'voice actor', 'Saki Fujita'] ['Hatsune Miku', 'voice actor', 'Mariama Gueye']
ASK WHERE { resource:Hatsune_Miku property:voice_actor resource:Saki_Fujita . resource:Hatsune_Miku property:voice_actor resource:Mariama_Gueye }
[]
common name
SYSTEM
YES and NO respectively
(Q552682,P725,Q1066065) (Q552682,P725,Q16662998)
action is_in
entity Q552682
action intersection
action find_reverse
entity Q1066065
relation P725
action find_reverse
entity Q16662998
relation P725
[ANSWER]
['Q552682', 'P725', 'Q1066065'] ['Q552682', 'P725', 'Q16662998']
ASK WHERE { resource:Q552682 property:P725 resource:Q1066065 . resource:Q552682 property:P725 resource:Q16662998 }
YES and NO respectively
action is_in
entity Hatsune Miku
action intersection
action find_reverse
entity Saki Fujita
relation voice actor
action find_reverse
entity Mariama Gueye
relation voice actor
['Hatsune Miku', 'voice actor', 'Saki Fujita'] ['Hatsune Miku', 'voice actor', 'Mariama Gueye']
ASK WHERE { resource:Hatsune_Miku property:voice_actor resource:Saki_Fujita . resource:Hatsune_Miku property:voice_actor resource:Mariama_Gueye }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q377577 Q82955 Q1123764
P106
Q12737077
USER
Does Joseph P. Teasdale have career as politician and Prime Minister of Armenia ?
(Q377577,P106,Q82955) (Q377577,P106,Q1123764)
action is_in
entity Q377577
action intersection
action find_reverse
entity Q82955
relation P106
action find_reverse
entity Q1123764
relation P106
['Q377577', 'P106', 'Q82955'] ['Q377577', 'P106', 'Q1123764']
ASK WHERE { resource:Q377577 property:P106 resource:Q82955 . resource:Q377577 property:P106 resource:Q1123764 }
Joseph P. Teasdale politician Prime Minister of Armenia
action is_in
entity Joseph P. Teasdale
action intersection
action find_reverse
entity politician
relation occupation
action find_reverse
entity Prime Minister of Armenia
relation occupation
['Joseph P. Teasdale', 'occupation', 'politician'] ['Joseph P. Teasdale', 'occupation', 'Prime Minister of Armenia']
ASK WHERE { resource:Joseph_P._Teasdale property:occupation resource:politician . resource:Joseph_P._Teasdale property:occupation resource:Prime_Minister_of_Armenia }
[]
occupation
SYSTEM
YES and NO respectively
(Q377577,P106,Q82955) (Q377577,P106,Q1123764)
action is_in
entity Q377577
action intersection
action find_reverse
entity Q82955
relation P106
action find_reverse
entity Q1123764
relation P106
[ANSWER]
['Q377577', 'P106', 'Q82955'] ['Q377577', 'P106', 'Q1123764']
ASK WHERE { resource:Q377577 property:P106 resource:Q82955 . resource:Q377577 property:P106 resource:Q1123764 }
YES and NO respectively
action is_in
entity Joseph P. Teasdale
action intersection
action find_reverse
entity politician
relation occupation
action find_reverse
entity Prime Minister of Armenia
relation occupation
['Joseph P. Teasdale', 'occupation', 'politician'] ['Joseph P. Teasdale', 'occupation', 'Prime Minister of Armenia']
ASK WHERE { resource:Joseph_P._Teasdale property:occupation resource:politician . resource:Joseph_P._Teasdale property:occupation resource:Prime_Minister_of_Armenia }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1145422
P180
Q1075 Q3305213 Q838948
USER
Which colors are demonstrated in around the same number of paintings and works of art as gray ?
(c(Q3305213)|c(Q838948),P180,c(Q1075))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q1075
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q1075
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1145422
relation P180
type Q3305213
type Q838948
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) ?k WHERE { { ?j property:P180 ?k . ?k rdf:type ontology:Q1075 . ?j rdf:type ontology:Q3305213 } UNION { ?j property:P180 ?k . ?k rdf:type ontology:Q1075 . ?j rdf:type ontology:Q838948 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:P180 resource:Q1145422 . { { ?o rdf:type ontology:Q3305213 } UNION { ?o rdf:type ontology:Q838948 } } } } . FILTER ( ?c = ?t ) }
gray
action approx
action union
action find_reverse_tuple_counts
relation depicts
type color
type painting
action find_reverse_tuple_counts
relation depicts
type color
type work of art
action count
action filter_multi_types
action find_reverse
entity gray
relation depicts
type painting
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'color'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) ?k WHERE { { ?j property:depicts ?k . ?k rdf:type ontology:color . ?j rdf:type ontology:painting } UNION { ?j property:depicts ?k . ?k rdf:type ontology:color . ?j rdf:type ontology:work_of_art } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:depicts resource:gray . { { ?o rdf:type ontology:painting } UNION { ?o rdf:type ontology:work_of_art } } } } . FILTER ( ?c = ?t ) }
[]
color painting work of art
Q152357 Q6933946 Q4930092
SYSTEM
red hair, white hair, blue hair
Q3142 Q6933946 Q18661358 Q4930092 Q2419551 Q943 Q1088 Q1922956 Q3133 Q2906904 Q152357 Q1145422 Q23445
(c(Q3305213)|c(Q838948),P180,c(Q1075))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q1075
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q1075
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1145422
relation P180
type Q3305213
type Q838948
[ANSWERS] are demonstrated in around the same number of paintings and works of art as gray
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) ?k WHERE { { ?j property:P180 ?k . ?k rdf:type ontology:Q1075 . ?j rdf:type ontology:Q3305213 } UNION { ?j property:P180 ?k . ?k rdf:type ontology:Q1075 . ?j rdf:type ontology:Q838948 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:P180 resource:Q1145422 . { { ?o rdf:type ontology:Q3305213 } UNION { ?o rdf:type ontology:Q838948 } } } } . FILTER ( ?c = ?t ) }
red white hair strawberry blond hair blue hair auburn yellow blue black hair green Titian hair red hair gray black
Red hair, white hair and blue hair are demonstrated in around the same number of paintings and works of art as gray
red hair white hair blue hair
action approx
action union
action find_reverse_tuple_counts
relation depicts
type color
type painting
action find_reverse_tuple_counts
relation depicts
type color
type work of art
action count
action filter_multi_types
action find_reverse
entity gray
relation depicts
type painting
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'color'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) ?k WHERE { { ?j property:depicts ?k . ?k rdf:type ontology:color . ?j rdf:type ontology:painting } UNION { ?j property:depicts ?k . ?k rdf:type ontology:color . ?j rdf:type ontology:work_of_art } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:depicts resource:gray . { { ?o rdf:type ontology:painting } UNION { ?o rdf:type ontology:work_of_art } } } } . FILTER ( ?c = ?t ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q6933946
P180
Q1075 Q3305213 Q838948
USER
And what about white hair?
(c(Q3305213)|c(Q838948),P180,c(Q1075))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q1075
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q1075
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q6933946
relation P180
type Q3305213
type Q838948
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?k ) WHERE { VALUES ( ?d ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } . ?a rdf:type ?d } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { ?l property:P180 resource:Q6933946 . { ?l rdf:type ?t . VALUES ( ?t ) { ( ontology:Q3305213 ) ( ontology:Q838948 ) } } } } . FILTER ( ?k = ?j ) }
white hair
action approx
action union
action find_reverse_tuple_counts
relation depicts
type color
type painting
action find_reverse_tuple_counts
relation depicts
type color
type work of art
action count
action filter_multi_types
action find_reverse
entity white hair
relation depicts
type painting
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'color'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?k ) WHERE { VALUES ( ?d ) { ( ontology:work_of_art ) ( ontology:painting ) } . ?a rdf:type ?d } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { ?l property:depicts resource:white_hair . { ?l rdf:type ?t . VALUES ( ?t ) { ( ontology:painting ) ( ontology:work_of_art ) } } } } . FILTER ( ?k = ?j ) }
[]
color painting work of art
Q152357 Q6933946 Q4930092
SYSTEM
red hair, white hair, blue hair
Q3142 Q6933946 Q18661358 Q4930092 Q2419551 Q943 Q5094009 Q1088 Q1922956 Q3133 Q2906904 Q152357 Q1145422 Q23445
(c(Q3305213)|c(Q838948),P180,c(Q1075))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q1075
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q1075
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q6933946
relation P180
type Q3305213
type Q838948
[ANSWERS]
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?k ) WHERE { VALUES ( ?d ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } . ?a rdf:type ?d } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { ?l property:P180 resource:Q6933946 . { ?l rdf:type ?t . VALUES ( ?t ) { ( ontology:Q3305213 ) ( ontology:Q838948 ) } } } } . FILTER ( ?k = ?j ) }
red white hair strawberry blond hair blue hair auburn yellow chestnut hair blue black hair green Titian hair red hair gray black
red hair white hair blue hair
action approx
action union
action find_reverse_tuple_counts
relation depicts
type color
type painting
action find_reverse_tuple_counts
relation depicts
type color
type work of art
action count
action filter_multi_types
action find_reverse
entity white hair
relation depicts
type painting
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'color'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?k ) WHERE { VALUES ( ?d ) { ( ontology:work_of_art ) ( ontology:painting ) } . ?a rdf:type ?d } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { ?l property:depicts resource:white_hair . { ?l rdf:type ?t . VALUES ( ?t ) { ( ontology:painting ) ( ontology:work_of_art ) } } } } . FILTER ( ?k = ?j ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q152357
P138
Q82799
USER
Which name is named after that color ?
(c(Q82799),P138,Q152357)
action filter_type
action find_reverse
entity Q152357
relation P138
type Q82799
[{'concept': 'Q82799'}, 'P138', 'Q152357']
SELECT DISTINCT ?m WHERE { ?m property:P138 resource:Q152357 . ?m rdf:type ontology:Q82799 }
red hair
action filter_type
action find_reverse
entity red hair
relation named after
type name
[{'concept': 'name'}, 'named after', 'red hair']
SELECT DISTINCT ?m WHERE { ?m property:named_after resource:red_hair . ?m rdf:type ontology:name }
[]
name
Clarification for simple ques.
Q6933946
SYSTEM
Did you mean white hair ?
Q152357 Q6933946 Q4930092
(c(Q82799),P138,Q152357) (c(Q82799),P138,Q6933946) (c(Q82799),P138,Q4930092)
[ANSWER]
[{'concept': 'Q82799'}, 'P138', 'Q152357'] [{'concept': 'Q82799'}, 'P138', 'Q6933946'] [{'concept': 'Q82799'}, 'P138', 'Q4930092']
SELECT DISTINCT ?m WHERE { ?m property:P138 resource:Q152357 . ?m rdf:type ontology:Q82799 }
red hair white hair blue hair
Did you mean white hair ?
white hair
[{'concept': 'name'}, 'named after', 'red hair'] [{'concept': 'name'}, 'named after', 'white hair'] [{'concept': 'name'}, 'named after', 'blue hair']
SELECT DISTINCT ?m WHERE { ?m property:named_after resource:red_hair . ?m rdf:type ontology:name }
[]
Simple Question (Coreferenced)
USER
No, I meant red hair. Could you tell me the answer for that?
(c(Q82799),P138,Q152357)
Q152357
[{'concept': 'Q82799'}, 'P138', 'Q152357']
[{'concept': 'name'}, 'named after', 'red hair']
[]
Q25201582
SYSTEM
Roux
Q25201582
(c(Q82799),P138,Q152357)
action filter_type
action find_reverse
entity Q152357
relation P138
type Q82799
Colour [ANSWER] is named after that color
[{'concept': 'Q82799'}, 'P138', 'Q152357']
SELECT DISTINCT ?m WHERE { ?m property:P138 resource:Q152357 . ?m rdf:type ontology:Q82799 }
Roux
Colour Roux is named after that color
Roux
action filter_type
action find_reverse
entity red hair
relation named after
type name
[{'concept': 'name'}, 'named after', 'red hair']
SELECT DISTINCT ?m WHERE { ?m property:named_after resource:red_hair . ?m rdf:type ontology:name }
[]