Simple Question (Direct)
Simple Question
Q3703173
P27
Q15617994
USER
Which administrative territories are David Elliott an inhabitant of ?
(Q3703173,P27,c(Q15617994))
action filter_type
action find
entity Q3703173
relation P27
type Q15617994
['Q3703173', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q3703173 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
David Elliott
action filter_type
action find
entity David Elliott
relation country of citizenship
type designation for an administrative territorial entity
['David Elliott', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:David_Elliott property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145 Q34
SYSTEM
United Kingdom, Sweden
Q145 Q34
(Q3703173,P27,c(Q15617994))
action filter_type
action find
entity Q3703173
relation P27
type Q15617994
[ANSWERS] are David Elliott an inhabitant of
['Q3703173', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q3703173 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
United Kingdom Sweden
United Kingdom and Sweden are David Elliott an inhabitant of
United Kingdom Sweden
action filter_type
action find
entity David Elliott
relation country of citizenship
type designation for an administrative territorial entity
['David Elliott', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:David_Elliott property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3703173
P106
Q12737077
USER
What is the profession of that person ?
(Q145,P106,c(Q12737077)) (Q34,P106,c(Q12737077))
action filter_type
action find
entity Q3703173
relation P106
type Q12737077
['Q145', 'P106', {'concept': 'Q12737077'}] ['Q34', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q3703173 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
David Elliott
action filter_type
action find
entity David Elliott
relation occupation
type occupation
['United Kingdom', 'occupation', {'concept': 'occupation'}] ['Sweden', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:David_Elliott property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q674426
SYSTEM
curator
Q674426
(Q145,P106,c(Q12737077)) (Q34,P106,c(Q12737077))
action filter_type
action find
entity Q3703173
relation P106
type Q12737077
The profession of that person is called [ANSWER]
['Q145', 'P106', {'concept': 'Q12737077'}] ['Q34', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q3703173 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
curator
The profession of that person is called curator
curator
action filter_type
action find
entity David Elliott
relation occupation
type occupation
['United Kingdom', 'occupation', {'concept': 'occupation'}] ['Sweden', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:David_Elliott property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P35
Q502895
USER
Which people have the highest formal authority in United Kingdom ?
(Q145,P35,c(Q502895))
action filter_type
action find
entity Q145
relation P35
type Q502895
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q145 property:P35 ?l . ?l rdf:type ontology:Q502895 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:United_Kingdom property:head_of_state ?l . ?l rdf:type ontology:common_name }
[]
common name
Q9682 Q280856 Q269412
SYSTEM
Elizabeth II, George VI, George V
Q590227 Q269412 Q280856 Q9682
(Q145,P35,c(Q502895))
action filter_type
action find
entity Q145
relation P35
type Q502895
[ANSWERS] have the highest formal authority in United Kingdom
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q145 property:P35 ?l . ?l rdf:type ontology:Q502895 }
Edward VIII George V George VI Elizabeth II
Elizabeth II, George VI and George V have the highest formal authority in United Kingdom
Elizabeth II George VI George V
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:United_Kingdom property:head_of_state ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9682
P241
Q781132
USER
Which military branch is Elizabeth II affiliated to ?
(Q9682,P241,c(Q781132))
action filter_type
action find
entity Q9682
relation P241
type Q781132
['Q9682', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?x WHERE { resource:Q9682 property:P241 ?x . ?x rdf:type ontology:Q781132 }
Elizabeth II
action filter_type
action find
entity Elizabeth II
relation military branch
type military branch
['Elizabeth II', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?x WHERE { resource:Elizabeth_II property:military_branch ?x . ?x rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q9682,P241,c(Q781132))
action filter_type
action find
entity Q9682
relation P241
type Q781132
Elizabeth II is affiliated with [ANSWER]
['Q9682', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?x WHERE { resource:Q9682 property:P241 ?x . ?x rdf:type ontology:Q781132 }
British Army
Elizabeth II is affiliated with British Army
British Army
action filter_type
action find
entity Elizabeth II
relation military branch
type military branch
['Elizabeth II', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?x WHERE { resource:Elizabeth_II property:military_branch ?x . ?x rdf:type ontology:military_branch }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P361
Q781132 Q874405 Q781132
USER
Which military branches are more number of social groups or military branches a portion of than that military branch ?
(c(Q874405)|c(Q781132),P361,c(Q781132))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q874405
action find_reverse_tuple_counts
relation P361
type Q781132
type Q781132
action count
action filter_multi_types
action find_reverse
entity Q222595
relation P361
type Q874405
type Q781132
[[{'concept': 'Q874405'}, {'concept': 'Q781132'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?e ) WHERE { { ?j rdf:type ontology:Q781132 . ?f rdf:type ontology:Q874405 . ?f property:P361 ?j } UNION { ?f property:P361 ?j . ?f rdf:type ontology:Q781132 . ?j rdf:type ontology:Q781132 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:P361 resource:Q222595 . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:Q874405 ) ( ontology:Q781132 ) } } } } . FILTER ( ?e > ?g ) }
action greater
action union
action find_reverse_tuple_counts
relation part of
type military branch
type social group
action find_reverse_tuple_counts
relation part of
type military branch
type military branch
action count
action filter_multi_types
action find_reverse
entity British Army
relation part of
type social group
type military branch
[[{'concept': 'social group'}, {'concept': 'military branch'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?e ) WHERE { { ?j rdf:type ontology:military_branch . ?f rdf:type ontology:social_group . ?f property:part_of ?j } UNION { ?f property:part_of ?j . ?f rdf:type ontology:military_branch . ?j rdf:type ontology:military_branch } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:part_of resource:British_Army . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:social_group ) ( ontology:military_branch ) } } } } . FILTER ( ?e > ?g ) }
[]
military branch social group military branch
Q2862927 Q11220 Q355771
SYSTEM
Indonesian Army, United States Navy, Indian Army
Q11220 Q676404 Q313422 Q488756 Q1067064 Q2862927 Q1750688 Q208711 Q2292358 Q2301347 Q18643350 Q2258261 Q355771
(c(Q874405)|c(Q781132),P361,c(Q781132))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q874405
action find_reverse_tuple_counts
relation P361
type Q781132
type Q781132
action count
action filter_multi_types
action find_reverse
entity Q222595
relation P361
type Q874405
type Q781132
[ANSWERS] are more number of social groups or military branches a portion of than that military branch
[[{'concept': 'Q874405'}, {'concept': 'Q781132'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?e ) WHERE { { ?j rdf:type ontology:Q781132 . ?f rdf:type ontology:Q874405 . ?f property:P361 ?j } UNION { ?f property:P361 ?j . ?f rdf:type ontology:Q781132 . ?j rdf:type ontology:Q781132 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:P361 resource:Q222595 . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:Q874405 ) ( ontology:Q781132 ) } } } } . FILTER ( ?e > ?g ) }
United States Navy Spanish Navy German Army Republic of Korea Navy United States Special Operations Command Indonesian Army Brazilian Navy Chilean Navy Brazilian Army Argentine Army Islamic Republic of Iran Ground Force Pakistan Navy Indian Army
Indonesian Army, United States Navy and Indian Army are more number of social groups or military branches a portion of than that military branch
Indonesian Army United States Navy Indian Army
action greater
action union
action find_reverse_tuple_counts
relation part of
type military branch
type social group
action find_reverse_tuple_counts
relation part of
type military branch
type military branch
action count
action filter_multi_types
action find_reverse
entity British Army
relation part of
type social group
type military branch
[[{'concept': 'social group'}, {'concept': 'military branch'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?e ) WHERE { { ?j rdf:type ontology:military_branch . ?f rdf:type ontology:social_group . ?f property:part_of ?j } UNION { ?f property:part_of ?j . ?f rdf:type ontology:military_branch . ?j rdf:type ontology:military_branch } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:part_of resource:British_Army . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:social_group ) ( ontology:military_branch ) } } } } . FILTER ( ?e > ?g ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2862927 Q11220 Q355771
P17
Q15617994
USER
Which administrative territories are those military branches present in ?
(Q2862927,P17,c(Q15617994)) (Q11220,P17,c(Q15617994)) (Q355771,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q2862927', 'P17', {'concept': 'Q15617994'}] ['Q11220', 'P17', {'concept': 'Q15617994'}] ['Q355771', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . VALUES ( ?b ) { ( resource:Q11220 ) ( resource:Q676404 ) ( resource:Q313422 ) } . ?b property:P17 ?s }
Indonesian Army United States Navy Indian Army
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Indonesian Army', 'country', {'concept': 'designation for an administrative territorial entity'}] ['United States Navy', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Indian Army', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?b ) { ( resource:United_States_Navy ) ( resource:Spanish_Navy ) ( resource:German_Army ) } . ?b property:country ?s }
[]
designation for an administrative territorial entity
Q252 Q30 Q668
SYSTEM
Indonesia, United States of America, India
Q252 Q30 Q668
(Q2862927,P17,c(Q15617994)) (Q11220,P17,c(Q15617994)) (Q355771,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those military branches are in [ANSWERS]
['Q2862927', 'P17', {'concept': 'Q15617994'}] ['Q11220', 'P17', {'concept': 'Q15617994'}] ['Q355771', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . VALUES ( ?b ) { ( resource:Q11220 ) ( resource:Q676404 ) ( resource:Q313422 ) } . ?b property:P17 ?s }
Indonesia United States of America India
Those military branches are in Indonesia, United States of America and India
Indonesia United States of America India
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Indonesian Army', 'country', {'concept': 'designation for an administrative territorial entity'}] ['United States Navy', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Indian Army', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?b ) { ( resource:United_States_Navy ) ( resource:Spanish_Navy ) ( resource:German_Army ) } . ?b property:country ?s }
[]
Clarification
Simple Question|Single Entity|Indirect
Q252
P6
Q502895
USER
Who is the head of the government of that administrative territory ?
(Q252,P6,c(Q502895))
action filter_type
action find
entity Q252
relation P6
type Q502895
['Q252', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q252 property:P6 ?i . ?i rdf:type ontology:Q502895 }
Indonesia
action filter_type
action find
entity Indonesia
relation head of government
type common name
['Indonesia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Indonesia property:head_of_government ?i . ?i rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q252
SYSTEM
Did you mean Indonesia ?
Q252 Q30 Q668
(Q252,P6,c(Q502895)) (Q30,P6,c(Q502895)) (Q668,P6,c(Q502895))
[ANSWER]
['Q252', 'P6', {'concept': 'Q502895'}] ['Q30', 'P6', {'concept': 'Q502895'}] ['Q668', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q252 property:P6 ?i . ?i rdf:type ontology:Q502895 }
Indonesia United States of America India
Did you mean Indonesia ?
Indonesia
['Indonesia', 'head of government', {'concept': 'common name'}] ['United States of America', 'head of government', {'concept': 'common name'}] ['India', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Indonesia property:head_of_government ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q252,P6,c(Q502895))
['Q252', 'P6', {'concept': 'Q502895'}]
['Indonesia', 'head of government', {'concept': 'common name'}]
[]
Q3318231
SYSTEM
Joko Widodo
Q3318231
(Q252,P6,c(Q502895))
action filter_type
action find
entity Q252
relation P6
type Q502895
The head of the government of that administrative territory is the [ANSWER]
['Q252', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q252 property:P6 ?i . ?i rdf:type ontology:Q502895 }
Joko Widodo
The head of the government of that administrative territory is the Joko Widodo
Joko Widodo
action filter_type
action find
entity Indonesia
relation head of government
type common name
['Indonesia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Indonesia property:head_of_government ?i . ?i rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q3318231 Q524547 Q252
P27
Q15617994
USER
Is Joko Widodo a native of Westerborstel and Indonesia ?
(Q3318231,P27,Q524547) (Q3318231,P27,Q252)
action is_in
entity Q3318231
action intersection
action find_reverse
entity Q524547
relation P27
action find_reverse
entity Q252
relation P27
['Q3318231', 'P27', 'Q524547'] ['Q3318231', 'P27', 'Q252']
ASK WHERE { resource:Q3318231 property:P27 resource:Q524547 . resource:Q3318231 property:P27 resource:Q252 }
Joko Widodo Westerborstel Indonesia
action is_in
entity Joko Widodo
action intersection
action find_reverse
entity Westerborstel
relation country of citizenship
action find_reverse
entity Indonesia
relation country of citizenship
['Joko Widodo', 'country of citizenship', 'Westerborstel'] ['Joko Widodo', 'country of citizenship', 'Indonesia']
ASK WHERE { resource:Joko_Widodo property:country_of_citizenship resource:Westerborstel . resource:Joko_Widodo property:country_of_citizenship resource:Indonesia }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q3318231,P27,Q524547) (Q3318231,P27,Q252)
action is_in
entity Q3318231
action intersection
action find_reverse
entity Q524547
relation P27
action find_reverse
entity Q252
relation P27
[ANSWER]
['Q3318231', 'P27', 'Q524547'] ['Q3318231', 'P27', 'Q252']
ASK WHERE { resource:Q3318231 property:P27 resource:Q524547 . resource:Q3318231 property:P27 resource:Q252 }
NO and YES respectively
action is_in
entity Joko Widodo
action intersection
action find_reverse
entity Westerborstel
relation country of citizenship
action find_reverse
entity Indonesia
relation country of citizenship
['Joko Widodo', 'country of citizenship', 'Westerborstel'] ['Joko Widodo', 'country of citizenship', 'Indonesia']
ASK WHERE { resource:Joko_Widodo property:country_of_citizenship resource:Westerborstel . resource:Joko_Widodo property:country_of_citizenship resource:Indonesia }
[]