Simple Question (Direct)
Simple Question
Q716497
P7
Q502895
USER
Who have Tran Hien Tong as their sibling ?
(Q716497,P7,c(Q502895))
action filter_type
action find
entity Q716497
relation P7
type Q502895
['Q716497', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q716497 property:P7 ?i . ?i rdf:type ontology:Q502895 }
Tran Hien Tong
action filter_type
action find
entity Tran Hien Tong
relation brother
type common name
['Tran Hien Tong', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Tran_Hien_Tong property:brother ?i . ?i rdf:type ontology:common_name }
[]
common name
Q716809 Q711858 Q711635
SYSTEM
Tran Du Tong, Tran Due Tong, Tran Nghe Tong
Q716809 Q711858 Q711635
(Q716497,P7,c(Q502895))
action filter_type
action find
entity Q716497
relation P7
type Q502895
[ANSWERS] have Tran Hien Tong as their sibling
['Q716497', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q716497 property:P7 ?i . ?i rdf:type ontology:Q502895 }
Tran Du Tong Tran Due Tong Tran Nghe Tong
Tran Du Tong, Tran Due Tong and Tran Nghe Tong have Tran Hien Tong as their sibling
Tran Du Tong Tran Due Tong Tran Nghe Tong
action filter_type
action find
entity Tran Hien Tong
relation brother
type common name
['Tran Hien Tong', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Tran_Hien_Tong property:brother ?i . ?i rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q711858
P40
Q502895
USER
Whose child is that one ?
(c(Q502895),P40,Q711858)
action filter_type
action find_reverse
entity Q711858
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q711858']
SELECT DISTINCT ?x WHERE { ?x property:P40 resource:Q711858 . ?x rdf:type ontology:Q502895 }
Tran Due Tong
action filter_type
action find_reverse
entity Tran Due Tong
relation child
type common name
[{'concept': 'common name'}, 'child', 'Tran Due Tong']
SELECT DISTINCT ?x WHERE { ?x property:child resource:Tran_Due_Tong . ?x rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q716809
SYSTEM
Did you mean Tran Du Tong ?
Q716809 Q711858 Q711635
(c(Q502895),P40,Q716809) (c(Q502895),P40,Q711858) (c(Q502895),P40,Q711635)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q716809'] [{'concept': 'Q502895'}, 'P40', 'Q711858'] [{'concept': 'Q502895'}, 'P40', 'Q711635']
SELECT DISTINCT ?x WHERE { ?x property:P40 resource:Q711858 . ?x rdf:type ontology:Q502895 }
Tran Du Tong Tran Due Tong Tran Nghe Tong
Did you mean Tran Du Tong ?
Tran Du Tong
[{'concept': 'common name'}, 'child', 'Tran Du Tong'] [{'concept': 'common name'}, 'child', 'Tran Due Tong'] [{'concept': 'common name'}, 'child', 'Tran Nghe Tong']
SELECT DISTINCT ?x WHERE { ?x property:child resource:Tran_Due_Tong . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Tran Due Tong. Could you tell me the answer for that?
(c(Q502895),P40,Q711858)
Q711858
[{'concept': 'Q502895'}, 'P40', 'Q711858']
[{'concept': 'common name'}, 'child', 'Tran Due Tong']
[]
Q711416
SYSTEM
Trần Minh Tông
Q711416
(c(Q502895),P40,Q711858)
action filter_type
action find_reverse
entity Q711858
relation P40
type Q502895
C [ANSWER] is that one
[{'concept': 'Q502895'}, 'P40', 'Q711858']
SELECT DISTINCT ?x WHERE { ?x property:P40 resource:Q711858 . ?x rdf:type ontology:Q502895 }
Trần Minh Tông
C Trần Minh Tông is that one
Trần Minh Tông
action filter_type
action find_reverse
entity Tran Due Tong
relation child
type common name
[{'concept': 'common name'}, 'child', 'Tran Due Tong']
SELECT DISTINCT ?x WHERE { ?x property:child resource:Tran_Due_Tong . ?x rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can min number of people perform with ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?m ) WHERE { ?c property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ( MIN ( ?r ) AS ?b ) { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?r ) WHERE { ?j rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 . ?u property:P1303 ?j } GROUP BY ?j } } }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?m ) WHERE { ?c property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ( MIN ( ?r ) AS ?b ) { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?r ) WHERE { ?j rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name . ?u property:instrument ?j } GROUP BY ?j } } }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Min number of people can perform the [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?m ) WHERE { ?c property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ( MIN ( ?r ) AS ?b ) { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?r ) WHERE { ?j rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 . ?u property:P1303 ?j } GROUP BY ?j } } }
spoon cajón wind instrument
Min number of people can perform the spoon, cajón and wind instrument
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?m ) WHERE { ?c property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ( MIN ( ?r ) AS ?b ) { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?r ) WHERE { ?j rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name . ?u property:instrument ?j } GROUP BY ?j } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q711858
P53
Q13417114
USER
Which noble family did Tran Due Tong belong to ?
(Q711858,P53,c(Q13417114))
action filter_type
action find
entity Q711858
relation P53
type Q13417114
['Q711858', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?k WHERE { resource:Q711858 property:P53 ?k . ?k rdf:type ontology:Q13417114 }
Tran Due Tong
action filter_type
action find
entity Tran Due Tong
relation noble family
type noble family
['Tran Due Tong', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?k WHERE { resource:Tran_Due_Tong property:noble_family ?k . ?k rdf:type ontology:noble_family }
[]
noble family
Q3111454
SYSTEM
Tran dynasty
Q3111454
(Q711858,P53,c(Q13417114))
action filter_type
action find
entity Q711858
relation P53
type Q13417114
Tran Due Tong belonged to [ANSWER]
['Q711858', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?k WHERE { resource:Q711858 property:P53 ?k . ?k rdf:type ontology:Q13417114 }
Tran dynasty
Tran Due Tong belonged to Tran dynasty
Tran dynasty
action filter_type
action find
entity Tran Due Tong
relation noble family
type noble family
['Tran Due Tong', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?k WHERE { resource:Tran_Due_Tong property:noble_family ?k . ?k rdf:type ontology:noble_family }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q711858
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q3111454,P27,c(Q15617994))
action filter_type
action find
entity Q711858
relation P27
type Q15617994
['Q3111454', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q711858 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Tran Due Tong
action filter_type
action find
entity Tran Due Tong
relation country of citizenship
type designation for an administrative territorial entity
['Tran dynasty', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Tran_Due_Tong property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q881
SYSTEM
Vietnam
Q881
(Q3111454,P27,c(Q15617994))
action filter_type
action find
entity Q711858
relation P27
type Q15617994
The [ANSWER] is that person a civilian of
['Q3111454', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q711858 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Vietnam
The Vietnam is that person a civilian of
Vietnam
action filter_type
action find
entity Tran Due Tong
relation country of citizenship
type designation for an administrative territorial entity
['Tran dynasty', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Tran_Due_Tong property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q881 Q7298723
P20
Q502895
USER
Does Raymond Duc have that administrative territory as the area of death ?
(Q7298723,P20,Q881)
action is_in
entity Q881
action find
entity Q7298723
relation P20
['Q7298723', 'P20', 'Q881']
ASK WHERE { resource:Q7298723 property:P20 resource:Q881 }
Vietnam Raymond Duc
action is_in
entity Vietnam
action find
entity Raymond Duc
relation place of death
['Raymond Duc', 'place of death', 'Vietnam']
ASK WHERE { resource:Raymond_Duc property:place_of_death resource:Vietnam }
[]
common name
SYSTEM
YES
(Q7298723,P20,Q881)
action is_in
entity Q881
action find
entity Q7298723
relation P20
[ANSWER]
['Q7298723', 'P20', 'Q881']
ASK WHERE { resource:Q7298723 property:P20 resource:Q881 }
Yes
action is_in
entity Vietnam
action find
entity Raymond Duc
relation place of death
['Raymond Duc', 'place of death', 'Vietnam']
ASK WHERE { resource:Raymond_Duc property:place_of_death resource:Vietnam }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12316319 Q716809
P7
Q502895
USER
Which people are the brother of Tran Du Tong or Henrik Bohr ?
OR((Q716809,P7,c(Q502895)), (Q12316319,P7,c(Q502895)))
action filter_type
action union
action find
entity Q716809
relation P7
action find
entity Q12316319
relation P7
type Q502895
{'OR': [['Q716809', 'P7', {'concept': 'Q502895'}], ['Q12316319', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . { { resource:Q12316319 property:P7 ?o } UNION { resource:Q716809 property:P7 ?o } } }
Henrik Bohr Tran Du Tong
action filter_type
action union
action find
entity Tran Du Tong
relation brother
action find
entity Henrik Bohr
relation brother
type common name
{'OR': [['Tran Du Tong', 'brother', {'concept': 'common name'}], ['Henrik Bohr', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . { { resource:Henrik_Bohr property:brother ?o } UNION { resource:Tran_Du_Tong property:brother ?o } } }
[]
common name
Q711635 Q716497 Q711858 Q135503
SYSTEM
Tran Nghe Tong, Tran Hien Tong, Tran Due Tong, Christian Bohr
Q711635 Q716497 Q711858 Q135503
OR((Q716809,P7,c(Q502895)), (Q12316319,P7,c(Q502895)))
action filter_type
action union
action find
entity Q716809
relation P7
action find
entity Q12316319
relation P7
type Q502895
[ANSWERS] are the brother of Tran Du Tong or Henrik Bohr
{'OR': [['Q716809', 'P7', {'concept': 'Q502895'}], ['Q12316319', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . { { resource:Q12316319 property:P7 ?o } UNION { resource:Q716809 property:P7 ?o } } }
Tran Nghe Tong Tran Hien Tong Tran Due Tong Christian Bohr
Tran Nghe Tong, Tran Hien Tong, Tran Due Tong and Christian Bohr are the brother of Tran Du Tong or Henrik Bohr
Tran Nghe Tong Tran Hien Tong Tran Due Tong Christian Bohr
action filter_type
action union
action find
entity Tran Du Tong
relation brother
action find
entity Henrik Bohr
relation brother
type common name
{'OR': [['Tran Du Tong', 'brother', {'concept': 'common name'}], ['Henrik Bohr', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . { { resource:Henrik_Bohr property:brother ?o } UNION { resource:Tran_Du_Tong property:brother ?o } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1124402
P122
Q1307214 Q22676587 Q13417114
USER
Which noble families have around the same number of forms of government or monarchic systems as the form of government as Tughlaq dynasty ?
(c(Q13417114),P122,c(Q1307214)|c(Q22676587))
action approx
action union
action find_tuple_counts
relation P122
type Q13417114
type Q1307214
action find_tuple_counts
relation P122
type Q13417114
type Q22676587
action count
action filter_multi_types
action find
entity Q1124402
relation P122
type Q1307214
type Q22676587
[{'concept': 'Q13417114'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?y ) WHERE { { ?e rdf:type ontology:Q13417114 . ?l rdf:type ontology:Q1307214 . ?e property:P122 ?l } UNION { ?e property:P122 ?l . ?e rdf:type ontology:Q13417114 . ?l rdf:type ontology:Q22676587 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { resource:Q1124402 property:P122 ?h . { { ?h rdf:type ontology:Q1307214 } UNION { ?h rdf:type ontology:Q22676587 } } } } . FILTER ( ?y = ?b ) }
Tughlaq dynasty
action approx
action union
action find_tuple_counts
relation basic form of government
type noble family
type form of government
action find_tuple_counts
relation basic form of government
type noble family
type monarchic system
action count
action filter_multi_types
action find
entity Tughlaq dynasty
relation basic form of government
type form of government
type monarchic system
[{'concept': 'noble family'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?y ) WHERE { { ?e rdf:type ontology:noble_family . ?l rdf:type ontology:form_of_government . ?e property:basic_form_of_government ?l } UNION { ?e property:basic_form_of_government ?l . ?e rdf:type ontology:noble_family . ?l rdf:type ontology:monarchic_system } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { resource:Tughlaq_dynasty property:basic_form_of_government ?h . { { ?h rdf:type ontology:form_of_government } UNION { ?h rdf:type ontology:monarchic_system } } } } . FILTER ( ?y = ?b ) }
[]
form of government monarchic system noble family
Q1331421 Q189326 Q161205
SYSTEM
Sayyid dynasty, Qajar dynasty, Safavid dynasty
Q1331421 Q189326 Q161205 Q1136188 Q919071 Q847420 Q207991 Q970799 Q1124402
(c(Q13417114),P122,c(Q1307214)|c(Q22676587))
action approx
action union
action find_tuple_counts
relation P122
type Q13417114
type Q1307214
action find_tuple_counts
relation P122
type Q13417114
type Q22676587
action count
action filter_multi_types
action find
entity Q1124402
relation P122
type Q1307214
type Q22676587
[ANSWERS] have around the same number of forms of government or monarchic systems as the form of government as Tughlaq dynasty
[{'concept': 'Q13417114'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?y ) WHERE { { ?e rdf:type ontology:Q13417114 . ?l rdf:type ontology:Q1307214 . ?e property:P122 ?l } UNION { ?e property:P122 ?l . ?e rdf:type ontology:Q13417114 . ?l rdf:type ontology:Q22676587 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { resource:Q1124402 property:P122 ?h . { { ?h rdf:type ontology:Q1307214 } UNION { ?h rdf:type ontology:Q22676587 } } } } . FILTER ( ?y = ?b ) }
Sayyid dynasty Qajar dynasty Safavid dynasty Saadi dynasty Khilji dynasty Mamluk sultanate Pahlavi dynasty Wattasid dynasty Tughlaq dynasty
Sayyid dynasty, Qajar dynasty and Safavid dynasty have around the same number of forms of government or monarchic systems as the form of government as Tughlaq dynasty
Sayyid dynasty Qajar dynasty Safavid dynasty
action approx
action union
action find_tuple_counts
relation basic form of government
type noble family
type form of government
action find_tuple_counts
relation basic form of government
type noble family
type monarchic system
action count
action filter_multi_types
action find
entity Tughlaq dynasty
relation basic form of government
type form of government
type monarchic system
[{'concept': 'noble family'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?y ) WHERE { { ?e rdf:type ontology:noble_family . ?l rdf:type ontology:form_of_government . ?e property:basic_form_of_government ?l } UNION { ?e property:basic_form_of_government ?l . ?e rdf:type ontology:noble_family . ?l rdf:type ontology:monarchic_system } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { resource:Tughlaq_dynasty property:basic_form_of_government ?h . { { ?h rdf:type ontology:form_of_government } UNION { ?h rdf:type ontology:monarchic_system } } } } . FILTER ( ?y = ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q161205
P122
Q1307214 Q22676587 Q13417114
USER
And how about Safavid dynasty?
(c(Q13417114),P122,c(Q1307214)|c(Q22676587))
action approx
action union
action find_tuple_counts
relation P122
type Q13417114
type Q1307214
action find_tuple_counts
relation P122
type Q13417114
type Q22676587
action count
action filter_multi_types
action find
entity Q161205
relation P122
type Q1307214
type Q22676587
[{'concept': 'Q13417114'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Q161205 property:P122 ?k . { { ?k rdf:type ontology:Q1307214 } UNION { ?k rdf:type ontology:Q22676587 } } } } . FILTER ( ?f = ?p ) . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?f ) WHERE { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:Q22676587 ) ( ontology:Q1307214 ) } } GROUP BY ?y } }
Safavid dynasty
action approx
action union
action find_tuple_counts
relation basic form of government
type noble family
type form of government
action find_tuple_counts
relation basic form of government
type noble family
type monarchic system
action count
action filter_multi_types
action find
entity Safavid dynasty
relation basic form of government
type form of government
type monarchic system
[{'concept': 'noble family'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Safavid_dynasty property:basic_form_of_government ?k . { { ?k rdf:type ontology:form_of_government } UNION { ?k rdf:type ontology:monarchic_system } } } } . FILTER ( ?f = ?p ) . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?f ) WHERE { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:monarchic_system ) ( ontology:form_of_government ) } } GROUP BY ?y } }
[]
form of government monarchic system noble family
Q1331421 Q189326 Q161205
SYSTEM
Sayyid dynasty, Qajar dynasty, Safavid dynasty
Q1331421 Q189326 Q161205 Q1136188 Q919071 Q847420 Q207991 Q970799 Q1124402
(c(Q13417114),P122,c(Q1307214)|c(Q22676587))
action approx
action union
action find_tuple_counts
relation P122
type Q13417114
type Q1307214
action find_tuple_counts
relation P122
type Q13417114
type Q22676587
action count
action filter_multi_types
action find
entity Q161205
relation P122
type Q1307214
type Q22676587
[ANSWERS]
[{'concept': 'Q13417114'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Q161205 property:P122 ?k . { { ?k rdf:type ontology:Q1307214 } UNION { ?k rdf:type ontology:Q22676587 } } } } . FILTER ( ?f = ?p ) . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?f ) WHERE { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:Q22676587 ) ( ontology:Q1307214 ) } } GROUP BY ?y } }
Sayyid dynasty Qajar dynasty Safavid dynasty Saadi dynasty Khilji dynasty Mamluk sultanate Pahlavi dynasty Wattasid dynasty Tughlaq dynasty
Sayyid dynasty Qajar dynasty Safavid dynasty
action approx
action union
action find_tuple_counts
relation basic form of government
type noble family
type form of government
action find_tuple_counts
relation basic form of government
type noble family
type monarchic system
action count
action filter_multi_types
action find
entity Safavid dynasty
relation basic form of government
type form of government
type monarchic system
[{'concept': 'noble family'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Safavid_dynasty property:basic_form_of_government ?k . { { ?k rdf:type ontology:form_of_government } UNION { ?k rdf:type ontology:monarchic_system } } } } . FILTER ( ?f = ?p ) . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?f ) WHERE { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:monarchic_system ) ( ontology:form_of_government ) } } GROUP BY ?y } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q3111454
P21 P53
Q502895
USER
Which people are from Tran dynasty and have the gender as male ?
AND((c(Q502895),P53,Q3111454), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3111454
relation P53
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P53', 'Q3111454'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?f WHERE { ?f property:P53 resource:Q3111454 . ?f property:P21 resource:Q6581097 . ?f rdf:type ontology:Q502895 }
male Tran dynasty
action filter_type
action intersection
action find_reverse
entity Tran dynasty
relation noble family
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'noble family', 'Tran dynasty'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?f WHERE { ?f property:noble_family resource:Tran_dynasty . ?f property:gender resource:male . ?f rdf:type ontology:common_name }
[]
common name
Q716814 Q1156050 Q712473 Q7833304 Q4798254 Q72083 Q5220454 Q7833312 Q1085482 Q716533
SYSTEM
Some of them are Tran Thieu De, Trần Ích Tắc, Tran Thu Do, Tran Khanh Du, Tran Binh Trong, Trần Nhân Tông, Tran Quang Khai, Tran Nhat Duat, Pham Ngu Lao, Trần Phế Đế
Q7833326 Q1156050 Q704110 Q1085482 Q511375 Q711441 Q716533 Q711635 Q6507454 Q716809 Q7833317 Q7833314 Q7833315 Q7833312 Q72083 Q716761 Q716497 Q4798254 Q711858 Q711456 Q712473 Q5220454 Q713224 Q716814 Q711416 Q7833304
AND((c(Q502895),P53,Q3111454), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3111454
relation P53
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] are from Tran dynasty and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P53', 'Q3111454'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?f WHERE { ?f property:P53 resource:Q3111454 . ?f property:P21 resource:Q6581097 . ?f rdf:type ontology:Q502895 }
Tran Thua Trần Ích Tắc Tran Lieu Pham Ngu Lao Tran Hung Dao Trần Anh Tông Trần Phế Đế Tran Nghe Tong Le Phu Tran Tran Du Tong Tran Quoc Toan Tran Quoc Khang Tran Quoc Tang Tran Nhat Duat Trần Nhân Tông Trần Thuận Tông Tran Hien Tong Tran Binh Trong Tran Due Tong Trần Thánh Tông Tran Thu Do Tran Quang Khai Trần Thái Tông Tran Thieu De Trần Minh Tông Tran Khanh Du
Tran Thieu De, Trần Ích Tắc, Tran Thu Do, Tran Khanh Du, Tran Binh Trong, Trần Nhân Tông, Tran Quang Khai, Tran Nhat Duat, Pham Ngu Lao and Trần Phế Đế are from Tran dynasty and have the gender as male
Tran Thieu De Trần Ích Tắc Tran Thu Do Tran Khanh Du Tran Binh Trong Trần Nhân Tông Tran Quang Khai Tran Nhat Duat Pham Ngu Lao Trần Phế Đế
action filter_type
action intersection
action find_reverse
entity Tran dynasty
relation noble family
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'noble family', 'Tran dynasty'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?f WHERE { ?f property:noble_family resource:Tran_dynasty . ?f property:gender resource:male . ?f rdf:type ontology:common_name }
[]