Simple Question (Direct)
Simple Question
Q87392
P27
Q1048835
USER
Which political territory does Louis Nathaniel de Rothschild belong to ?
(Q87392,P27,c(Q1048835))
action filter_type
action find
entity Q87392
relation P27
type Q1048835
['Q87392', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q87392 property:P27 ?z . ?z rdf:type ontology:Q1048835 }
Louis Nathaniel de Rothschild
action filter_type
action find
entity Louis Nathaniel de Rothschild
relation country of citizenship
type political territorial entity
['Louis Nathaniel de Rothschild', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Louis_Nathaniel_de_Rothschild property:country_of_citizenship ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
(Q87392,P27,c(Q1048835))
action filter_type
action find
entity Q87392
relation P27
type Q1048835
Louis Nathaniel de Rothschild belongs to [ANSWER]
['Q87392', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q87392 property:P27 ?z . ?z rdf:type ontology:Q1048835 }
Austria
Louis Nathaniel de Rothschild belongs to Austria
Austria
action filter_type
action find
entity Louis Nathaniel de Rothschild
relation country of citizenship
type political territorial entity
['Louis Nathaniel de Rothschild', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Louis_Nathaniel_de_Rothschild property:country_of_citizenship ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q87392
P53
Q874405
USER
What is the royal family that that person is a part of ?
(Q40,P53,c(Q874405))
action filter_type
action find
entity Q87392
relation P53
type Q874405
['Q40', 'P53', {'concept': 'Q874405'}]
SELECT DISTINCT ?a WHERE { resource:Q87392 property:P53 ?a . ?a rdf:type ontology:Q874405 }
Louis Nathaniel de Rothschild
action filter_type
action find
entity Louis Nathaniel de Rothschild
relation noble family
type social group
['Austria', 'noble family', {'concept': 'social group'}]
SELECT DISTINCT ?a WHERE { resource:Louis_Nathaniel_de_Rothschild property:noble_family ?a . ?a rdf:type ontology:social_group }
[]
social group
Q159386
SYSTEM
Rothschild family
Q159386
(Q40,P53,c(Q874405))
action filter_type
action find
entity Q87392
relation P53
type Q874405
The royal family that person is a part of is a [ANSWER]
['Q40', 'P53', {'concept': 'Q874405'}]
SELECT DISTINCT ?a WHERE { resource:Q87392 property:P53 ?a . ?a rdf:type ontology:Q874405 }
Rothschild family
The royal family that person is a part of is a Rothschild family
Rothschild family
action filter_type
action find
entity Louis Nathaniel de Rothschild
relation noble family
type social group
['Austria', 'noble family', {'concept': 'social group'}]
SELECT DISTINCT ?a WHERE { resource:Louis_Nathaniel_de_Rothschild property:noble_family ?a . ?a rdf:type ontology:social_group }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q1048835 Q1048835 Q337567
USER
Which political territories are max number of political territories or still waterss a part of ?
(c(Q1048835)|c(Q337567),P17,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q337567
[[{'concept': 'Q1048835'}, {'concept': 'Q337567'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) ?v WHERE { VALUES ( ?r ) { ( ontology:Q337567 ) ( ontology:Q1048835 ) } . ?w rdf:type ?r } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?s WHERE { { ?m property:P17 ?s . ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q337567 } UNION { ?m property:P17 ?s . ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q1048835 } } GROUP BY ?s } . FILTER ( ?j = ?y ) }
action argmax
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation country
type political territorial entity
type still waters
[[{'concept': 'political territorial entity'}, {'concept': 'still waters'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) ?v WHERE { VALUES ( ?r ) { ( ontology:still_waters ) ( ontology:political_territorial_entity ) } . ?w rdf:type ?r } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?s WHERE { { ?m property:country ?s . ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:still_waters } UNION { ?m property:country ?s . ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:political_territorial_entity } } GROUP BY ?s } . FILTER ( ?j = ?y ) }
[]
political territorial entity political territorial entity still waters
Q408
SYSTEM
Australia
Q408
(c(Q1048835)|c(Q337567),P17,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q337567
[ANSWER] is max number of political territories or still waterss a part of
[[{'concept': 'Q1048835'}, {'concept': 'Q337567'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) ?v WHERE { VALUES ( ?r ) { ( ontology:Q337567 ) ( ontology:Q1048835 ) } . ?w rdf:type ?r } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?s WHERE { { ?m property:P17 ?s . ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q337567 } UNION { ?m property:P17 ?s . ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q1048835 } } GROUP BY ?s } . FILTER ( ?j = ?y ) }
Australia
Australia is max number of political territories or still waterss a part of
Australia
action argmax
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation country
type political territorial entity
type still waters
[[{'concept': 'political territorial entity'}, {'concept': 'still waters'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) ?v WHERE { VALUES ( ?r ) { ( ontology:still_waters ) ( ontology:political_territorial_entity ) } . ?w rdf:type ?r } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?s WHERE { { ?m property:country ?s . ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:still_waters } UNION { ?m property:country ?s . ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:political_territorial_entity } } GROUP BY ?s } . FILTER ( ?j = ?y ) }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q408 Q697 Q1345024
P530
Q15617994
USER
Does that political territory have diplomatic associations with Nauru and Huimin District ?
(Q408,P530,Q697) (Q408,P530,Q1345024)
action is_in
entity Q408
action intersection
action find_reverse
entity Q697
relation P530
action find_reverse
entity Q1345024
relation P530
['Q408', 'P530', 'Q697'] ['Q408', 'P530', 'Q1345024']
ASK WHERE { resource:Q408 property:P530 resource:Q697 . resource:Q408 property:P530 resource:Q1345024 }
Australia Nauru Huimin District
action is_in
entity Australia
action intersection
action find_reverse
entity Nauru
relation diplomatic relation
action find_reverse
entity Huimin District
relation diplomatic relation
['Australia', 'diplomatic relation', 'Nauru'] ['Australia', 'diplomatic relation', 'Huimin District']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Nauru . resource:Australia property:diplomatic_relation resource:Huimin_District }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q408,P530,Q697) (Q408,P530,Q1345024)
action is_in
entity Q408
action intersection
action find_reverse
entity Q697
relation P530
action find_reverse
entity Q1345024
relation P530
[ANSWER]
['Q408', 'P530', 'Q697'] ['Q408', 'P530', 'Q1345024']
ASK WHERE { resource:Q408 property:P530 resource:Q697 . resource:Q408 property:P530 resource:Q1345024 }
YES and NO respectively
action is_in
entity Australia
action intersection
action find_reverse
entity Nauru
relation diplomatic relation
action find_reverse
entity Huimin District
relation diplomatic relation
['Australia', 'diplomatic relation', 'Nauru'] ['Australia', 'diplomatic relation', 'Huimin District']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Nauru . resource:Australia property:diplomatic_relation resource:Huimin_District }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q408 Q2641601
P122
Q1307214
USER
How many forms of government best describe the type of government of Australia or Darul Islam ?
(Q408,P122,c(Q1307214)) (Q2641601,P122,c(Q1307214))
action count
action union
action filter_type
action find
entity Q408
relation P122
type Q1307214
action filter_type
action find
entity Q2641601
relation P122
type Q1307214
['Q408', 'P122', {'concept': 'Q1307214'}] ['Q2641601', 'P122', {'concept': 'Q1307214'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?z ) { ( resource:Q408 ) ( resource:Q2641601 ) } . ?z property:P122 ?h }
Australia Darul Islam
action count
action union
action filter_type
action find
entity Australia
relation basic form of government
type form of government
action filter_type
action find
entity Darul Islam
relation basic form of government
type form of government
['Australia', 'basic form of government', {'concept': 'form of government'}] ['Darul Islam', 'basic form of government', {'concept': 'form of government'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?z ) { ( resource:Australia ) ( resource:Darul_Islam ) } . ?z property:basic_form_of_government ?h }
[]
form of government
SYSTEM
2
Q131401 Q43702
(Q408,P122,c(Q1307214)) (Q2641601,P122,c(Q1307214))
action count
action union
action filter_type
action find
entity Q408
relation P122
type Q1307214
action filter_type
action find
entity Q2641601
relation P122
type Q1307214
[ANSWER]
['Q408', 'P122', {'concept': 'Q1307214'}] ['Q2641601', 'P122', {'concept': 'Q1307214'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?z ) { ( resource:Q408 ) ( resource:Q2641601 ) } . ?z property:P122 ?h }
caliphate federation
2
action count
action union
action filter_type
action find
entity Australia
relation basic form of government
type form of government
action filter_type
action find
entity Darul Islam
relation basic form of government
type form of government
['Australia', 'basic form of government', {'concept': 'form of government'}] ['Darul Islam', 'basic form of government', {'concept': 'form of government'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?z ) { ( resource:Australia ) ( resource:Darul_Islam ) } . ?z property:basic_form_of_government ?h }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q159386 Q118922
P159
Q56061
USER
How many administrative territories are the headquarter locations of Rothschild family or United Nations Observer Mission in Georgia ?
(Q159386,P159,c(Q56061)) (Q118922,P159,c(Q56061))
action count
action union
action filter_type
action find
entity Q159386
relation P159
type Q56061
action filter_type
action find
entity Q118922
relation P159
type Q56061
['Q159386', 'P159', {'concept': 'Q56061'}] ['Q118922', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { resource:Q118922 property:P159 ?h . ?h rdf:type ontology:Q56061 } UNION { resource:Q159386 property:P159 ?h . ?h rdf:type ontology:Q56061 } }
Rothschild family United Nations Observer Mission in Georgia
action count
action union
action filter_type
action find
entity Rothschild family
relation headquarters location
type administrative territorial entity
action filter_type
action find
entity United Nations Observer Mission in Georgia
relation headquarters location
type administrative territorial entity
['Rothschild family', 'headquarters location', {'concept': 'administrative territorial entity'}] ['United Nations Observer Mission in Georgia', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { resource:United_Nations_Observer_Mission_in_Georgia property:headquarters_location ?h . ?h rdf:type ontology:administrative_territorial_entity } UNION { resource:Rothschild_family property:headquarters_location ?h . ?h rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
SYSTEM
2
Q40811 Q994
(Q159386,P159,c(Q56061)) (Q118922,P159,c(Q56061))
action count
action union
action filter_type
action find
entity Q159386
relation P159
type Q56061
action filter_type
action find
entity Q118922
relation P159
type Q56061
[ANSWER]
['Q159386', 'P159', {'concept': 'Q56061'}] ['Q118922', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { resource:Q118922 property:P159 ?h . ?h rdf:type ontology:Q56061 } UNION { resource:Q159386 property:P159 ?h . ?h rdf:type ontology:Q56061 } }
Sokhumi Tbilisi
2
action count
action union
action filter_type
action find
entity Rothschild family
relation headquarters location
type administrative territorial entity
action filter_type
action find
entity United Nations Observer Mission in Georgia
relation headquarters location
type administrative territorial entity
['Rothschild family', 'headquarters location', {'concept': 'administrative territorial entity'}] ['United Nations Observer Mission in Georgia', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { resource:United_Nations_Observer_Mission_in_Georgia property:headquarters_location ?h . ?h rdf:type ontology:administrative_territorial_entity } UNION { resource:Rothschild_family property:headquarters_location ?h . ?h rdf:type ontology:administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q422065 Q2641601
P122
Q1307214
USER
What are the types of government for Darul Islam or Sultanate of Sulu ?
OR((Q2641601,P122,c(Q1307214)), (Q422065,P122,c(Q1307214)))
action filter_type
action union
action find
entity Q2641601
relation P122
action find
entity Q422065
relation P122
type Q1307214
{'OR': [['Q2641601', 'P122', {'concept': 'Q1307214'}], ['Q422065', 'P122', {'concept': 'Q1307214'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q2641601 property:P122 ?z } UNION { resource:Q422065 property:P122 ?z } } . ?z rdf:type ontology:Q1307214 }
Sultanate of Sulu Darul Islam
action filter_type
action union
action find
entity Darul Islam
relation basic form of government
action find
entity Sultanate of Sulu
relation basic form of government
type form of government
{'OR': [['Darul Islam', 'basic form of government', {'concept': 'form of government'}], ['Sultanate of Sulu', 'basic form of government', {'concept': 'form of government'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Darul_Islam property:basic_form_of_government ?z } UNION { resource:Sultanate_of_Sulu property:basic_form_of_government ?z } } . ?z rdf:type ontology:form_of_government }
[]
form of government
Q131401 Q7269
SYSTEM
caliphate, monarchy
Q131401 Q7269
OR((Q2641601,P122,c(Q1307214)), (Q422065,P122,c(Q1307214)))
action filter_type
action union
action find
entity Q2641601
relation P122
action find
entity Q422065
relation P122
type Q1307214
The types of government for Darul Islam or Sultanate of Sulu are the [ANSWERS]
{'OR': [['Q2641601', 'P122', {'concept': 'Q1307214'}], ['Q422065', 'P122', {'concept': 'Q1307214'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q2641601 property:P122 ?z } UNION { resource:Q422065 property:P122 ?z } } . ?z rdf:type ontology:Q1307214 }
caliphate monarchy
The types of government for Darul Islam or Sultanate of Sulu are the caliphate and monarchy
caliphate monarchy
action filter_type
action union
action find
entity Darul Islam
relation basic form of government
action find
entity Sultanate of Sulu
relation basic form of government
type form of government
{'OR': [['Darul Islam', 'basic form of government', {'concept': 'form of government'}], ['Sultanate of Sulu', 'basic form of government', {'concept': 'form of government'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Darul_Islam property:basic_form_of_government ?z } UNION { resource:Sultanate_of_Sulu property:basic_form_of_government ?z } } . ?z rdf:type ontology:form_of_government }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q17145499
P159
Q56061
USER
How many administrative territories are the headquarters of Pax World Funds located ?
(Q17145499,P159,c(Q56061))
action count
action filter_type
action find
entity Q17145499
relation P159
type Q56061
['Q17145499', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Q17145499 property:P159 ?p . ?p rdf:type ontology:Q56061 }
Pax World Funds
action count
action filter_type
action find
entity Pax World Funds
relation headquarters location
type administrative territorial entity
['Pax World Funds', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Pax_World_Funds property:headquarters_location ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q49191
(Q17145499,P159,c(Q56061))
action count
action filter_type
action find
entity Q17145499
relation P159
type Q56061
[ANSWER]
['Q17145499', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Q17145499 property:P159 ?p . ?p rdf:type ontology:Q56061 }
Portsmouth
1
action count
action filter_type
action find
entity Pax World Funds
relation headquarters location
type administrative territorial entity
['Pax World Funds', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Pax_World_Funds property:headquarters_location ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q17084664
Q56061
USER
And also tell me about Paige's Music?
(Q17084664,P159,c(Q56061))
action count
action filter_type
action find
entity Q17084664
relation P159
type Q56061
['Q17084664', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n rdf:type ontology:Q56061 . resource:Q17084664 property:P159 ?n }
Paige's Music
action count
action filter_type
action find
entity Paige's Music
relation headquarters location
type administrative territorial entity
["Paige's Music", 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Paige's_Music property:headquarters_location ?n }
[]
administrative territorial entity
SYSTEM
1
(Q17084664,P159,c(Q56061))
action count
action filter_type
action find
entity Q17084664
relation P159
type Q56061
[ANSWER]
['Q17084664', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n rdf:type ontology:Q56061 . resource:Q17084664 property:P159 ?n }
1
action count
action filter_type
action find
entity Paige's Music
relation headquarters location
type administrative territorial entity
["Paige's Music", 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Paige's_Music property:headquarters_location ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q131401
P361
Q15617994
USER
Which administrative territory is a component of caliphate ?
(c(Q15617994),P361,Q131401)
action filter_type
action find_reverse
entity Q131401
relation P361
type Q15617994
[{'concept': 'Q15617994'}, 'P361', 'Q131401']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . ?y property:P361 resource:Q131401 }
caliphate
action filter_type
action find_reverse
entity caliphate
relation part of
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'part of', 'caliphate']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:part_of resource:caliphate }
[]
designation for an administrative territorial entity
Q12536
SYSTEM
Abbasid caliphate
Q12536
(c(Q15617994),P361,Q131401)
action filter_type
action find_reverse
entity Q131401
relation P361
type Q15617994
[ANSWER] is a component of caliphate
[{'concept': 'Q15617994'}, 'P361', 'Q131401']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . ?y property:P361 resource:Q131401 }
Abbasid caliphate
Abbasid caliphate is a component of caliphate
Abbasid caliphate
action filter_type
action find_reverse
entity caliphate
relation part of
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'part of', 'caliphate']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:part_of resource:caliphate }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q131401
P1313
Q12737077
USER
What is the occupation held by caliphate ?
(Q131401,P1313,c(Q12737077))
action filter_type
action find
entity Q131401
relation P1313
type Q12737077
['Q131401', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q131401 property:P1313 ?k }
caliphate
action filter_type
action find
entity caliphate
relation office held by head of government
type occupation
['caliphate', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:caliphate property:office_held_by_head_of_government ?k }
[]
occupation
Q65997
SYSTEM
caliph
Q65997
(Q131401,P1313,c(Q12737077))
action filter_type
action find
entity Q131401
relation P1313
type Q12737077
The occupation held by [ANSWER]ate is not [ANSWER]
['Q131401', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q131401 property:P1313 ?k }
caliph
The occupation held by caliphate is not caliph
caliph
action filter_type
action find
entity caliphate
relation office held by head of government
type occupation
['caliphate', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:caliphate property:office_held_by_head_of_government ?k }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q65997
P106
Q502895
USER
Which people have career as that occupation ?
(c(Q502895),P106,Q65997)
action filter_type
action find_reverse
entity Q65997
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q65997']
SELECT DISTINCT ?z WHERE { ?z property:P106 resource:Q65997 . ?z rdf:type ontology:Q502895 }
caliph
action filter_type
action find_reverse
entity caliph
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'caliph']
SELECT DISTINCT ?z WHERE { ?z property:occupation resource:caliph . ?z rdf:type ontology:common_name }
[]
common name
Q284759 Q169640 Q285426
SYSTEM
Al-Muttaqi, Hisham II, Al-Mustakfi I of Cairo
Q284759 Q169640 Q285426
(c(Q502895),P106,Q65997)
action filter_type
action find_reverse
entity Q65997
relation P106
type Q502895
[ANSWERS] have career as that occupation
[{'concept': 'Q502895'}, 'P106', 'Q65997']
SELECT DISTINCT ?z WHERE { ?z property:P106 resource:Q65997 . ?z rdf:type ontology:Q502895 }
Al-Muttaqi Hisham II Al-Mustakfi I of Cairo
Al-Muttaqi, Hisham II and Al-Mustakfi I of Cairo have career as that occupation
Al-Muttaqi Hisham II Al-Mustakfi I of Cairo
action filter_type
action find_reverse
entity caliph
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'caliph']
SELECT DISTINCT ?z WHERE { ?z property:occupation resource:caliph . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q284759 Q169640 Q285426
P22
Q502895
USER
Who were the father of those ones ?
(Q284759,P22,c(Q502895)) (Q169640,P22,c(Q502895)) (Q285426,P22,c(Q502895))
action filter_type
action find
entity prev_answer
relation P22
type Q502895
['Q284759', 'P22', {'concept': 'Q502895'}] ['Q169640', 'P22', {'concept': 'Q502895'}] ['Q285426', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?o property:P22 ?d . VALUES ( ?o ) { ( resource:Q284759 ) ( resource:Q169640 ) ( resource:Q285426 ) } }
Al-Muttaqi Hisham II Al-Mustakfi I of Cairo
action filter_type
action find
entity prev_answer
relation father
type common name
['Al-Muttaqi', 'father', {'concept': 'common name'}] ['Hisham II', 'father', {'concept': 'common name'}] ['Al-Mustakfi I of Cairo', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?o property:father ?d . VALUES ( ?o ) { ( resource:Al-Muttaqi ) ( resource:Hisham_II ) ( resource:Al-Mustakfi_I_of_Cairo ) } }
[]
common name
Q201465 Q284531 Q284627
SYSTEM
Al-Muqtadir, Al-Hakam II, Al-Hakim I
Q201465 Q284531 Q284627
(Q284759,P22,c(Q502895)) (Q169640,P22,c(Q502895)) (Q285426,P22,c(Q502895))
action filter_type
action find
entity prev_answer
relation P22
type Q502895
The father of those ones were [ANSWERS]
['Q284759', 'P22', {'concept': 'Q502895'}] ['Q169640', 'P22', {'concept': 'Q502895'}] ['Q285426', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?o property:P22 ?d . VALUES ( ?o ) { ( resource:Q284759 ) ( resource:Q169640 ) ( resource:Q285426 ) } }
Al-Muqtadir Al-Hakam II Al-Hakim I
The father of those ones were Al-Muqtadir, Al-Hakam II and Al-Hakim I
Al-Muqtadir Al-Hakam II Al-Hakim I
action filter_type
action find
entity prev_answer
relation father
type common name
['Al-Muttaqi', 'father', {'concept': 'common name'}] ['Hisham II', 'father', {'concept': 'common name'}] ['Al-Mustakfi I of Cairo', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?o property:father ?d . VALUES ( ?o ) { ( resource:Al-Muttaqi ) ( resource:Hisham_II ) ( resource:Al-Mustakfi_I_of_Cairo ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q284627
P40
Q502895
USER
Which person is a child of that one ?
(Q284627,P40,c(Q502895))
action filter_type
action find
entity Q284627
relation P40
type Q502895
['Q284627', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q284627 property:P40 ?k . ?k rdf:type ontology:Q502895 }
Al-Hakim I
action filter_type
action find
entity Al-Hakim I
relation child
type common name
['Al-Hakim I', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Al-Hakim_I property:child ?k . ?k rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q201465
SYSTEM
Did you mean Al-Muqtadir ?
Q201465 Q284531 Q284627
(Q201465,P40,c(Q502895)) (Q284531,P40,c(Q502895)) (Q284627,P40,c(Q502895))
[ANSWER]
['Q201465', 'P40', {'concept': 'Q502895'}] ['Q284531', 'P40', {'concept': 'Q502895'}] ['Q284627', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q284627 property:P40 ?k . ?k rdf:type ontology:Q502895 }
Al-Muqtadir Al-Hakam II Al-Hakim I
Did you mean Al-Muqtadir ?
Al-Muqtadir
['Al-Muqtadir', 'child', {'concept': 'common name'}] ['Al-Hakam II', 'child', {'concept': 'common name'}] ['Al-Hakim I', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Al-Hakim_I property:child ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Al-Hakim I. Could you tell me the answer for that?
(Q284627,P40,c(Q502895))
Q284627
['Q284627', 'P40', {'concept': 'Q502895'}]
['Al-Hakim I', 'child', {'concept': 'common name'}]
[]
Q285426
SYSTEM
Al-Mustakfi I of Cairo
Q285426
(Q284627,P40,c(Q502895))
action filter_type
action find
entity Q284627
relation P40
type Q502895
[ANSWER] is a child of that one
['Q284627', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q284627 property:P40 ?k . ?k rdf:type ontology:Q502895 }
Al-Mustakfi I of Cairo
Al-Mustakfi I of Cairo is a child of that one
Al-Mustakfi I of Cairo
action filter_type
action find
entity Al-Hakim I
relation child
type common name
['Al-Hakim I', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Al-Hakim_I property:child ?k . ?k rdf:type ontology:common_name }
[]