Simple Question (Direct)
Simple Question
Q873851
P19
Q56061
USER
Which administrative territory was Narumi Yasuda born at ?
(Q873851,P19,c(Q56061))
action filter_type
action find
entity Q873851
relation P19
type Q56061
['Q873851', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q873851 property:P19 ?r . ?r rdf:type ontology:Q56061 }
Narumi Yasuda
action filter_type
action find
entity Narumi Yasuda
relation place of birth
type administrative territorial entity
['Narumi Yasuda', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Narumi_Yasuda property:place_of_birth ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1490
SYSTEM
Tokyo
Q1490
(Q873851,P19,c(Q56061))
action filter_type
action find
entity Q873851
relation P19
type Q56061
Narumi Yasuda was born in [ANSWER]
['Q873851', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q873851 property:P19 ?r . ?r rdf:type ontology:Q56061 }
Tokyo
Narumi Yasuda was born in Tokyo
Tokyo
action filter_type
action find
entity Narumi Yasuda
relation place of birth
type administrative territorial entity
['Narumi Yasuda', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Narumi_Yasuda property:place_of_birth ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q873851
P161
Q838948
USER
Which works of art do that person star in ?
(c(Q838948),P161,Q1490)
action filter_type
action find_reverse
entity Q873851
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q1490']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q838948 . ?h property:P161 resource:Q873851 }
Narumi Yasuda
action filter_type
action find_reverse
entity Narumi Yasuda
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Tokyo']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:work_of_art . ?h property:cast_member resource:Narumi_Yasuda }
[]
work of art
Q4982326 Q4849036 Q6863055
SYSTEM
Time Traveller: The Girl Who Leapt Through Time, Bakayaro! I'm Plenty Mad, Minami e hashire, umi no michi o!
Q6863055 Q4849036 Q7563606 Q4982326 Q6059255
(c(Q838948),P161,Q1490)
action filter_type
action find_reverse
entity Q873851
relation P161
type Q838948
[ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q1490']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q838948 . ?h property:P161 resource:Q873851 }
Minami e hashire, umi no michi o! Bakayaro! I'm Plenty Mad Sorobanzuku Time Traveller: The Girl Who Leapt Through Time Inuji ni Seshi Mono
That person star Time Traveller: The Girl Who Leapt Through Time, Bakayaro! I'm Plenty Mad and Minami e hashire, umi no michi o!
Time Traveller: The Girl Who Leapt Through Time Bakayaro! I'm Plenty Mad Minami e hashire, umi no michi o!
action filter_type
action find_reverse
entity Narumi Yasuda
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Tokyo']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:work_of_art . ?h property:cast_member resource:Narumi_Yasuda }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12483088 Q873851
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Narumi Yasuda or Framly Nainggolan ?
OR((Q873851,P27,c(Q15617994)), (Q12483088,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q873851
relation P27
action find
entity Q12483088
relation P27
type Q15617994
{'OR': [['Q873851', 'P27', {'concept': 'Q15617994'}], ['Q12483088', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q873851 property:P27 ?q } UNION { resource:Q12483088 property:P27 ?q } } . ?q rdf:type ontology:Q15617994 }
Framly Nainggolan Narumi Yasuda
action filter_type
action union
action find
entity Narumi Yasuda
relation country of citizenship
action find
entity Framly Nainggolan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Narumi Yasuda', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Framly Nainggolan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Narumi_Yasuda property:country_of_citizenship ?q } UNION { resource:Framly_Nainggolan property:country_of_citizenship ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q252
SYSTEM
Japan, Indonesia
Q17 Q252
OR((Q873851,P27,c(Q15617994)), (Q12483088,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q873851
relation P27
action find
entity Q12483088
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Narumi Yasuda or Framly Nainggolan
{'OR': [['Q873851', 'P27', {'concept': 'Q15617994'}], ['Q12483088', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q873851 property:P27 ?q } UNION { resource:Q12483088 property:P27 ?q } } . ?q rdf:type ontology:Q15617994 }
Japan Indonesia
Japan and Indonesia are the countries of citizenship of Narumi Yasuda or Framly Nainggolan
Japan Indonesia
action filter_type
action union
action find
entity Narumi Yasuda
relation country of citizenship
action find
entity Framly Nainggolan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Narumi Yasuda', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Framly Nainggolan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Narumi_Yasuda property:country_of_citizenship ?q } UNION { resource:Framly_Nainggolan property:country_of_citizenship ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P37
Q34770 Q5962346 Q15617994
USER
Which administrative territories have their official language as exactly 1 languages or classification schemes ?
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action equal
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
value 1
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?b WHERE { FILTER ( ?z = 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?z ) WHERE { { ?b property:P37 ?u . ?b rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q34770 } UNION { ?b property:P37 ?u . ?b rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q5962346 } } GROUP BY ?b } }
action equal
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?b WHERE { FILTER ( ?z = 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?z ) WHERE { { ?b property:official_language ?u . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:language } UNION { ?b property:official_language ?u . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:classification_scheme } } GROUP BY ?b } }
[]
language classification scheme designation for an administrative territorial entity
Q38 Q55 Q953
SYSTEM
Italy, Netherlands, Zambia
Q804 Q399 Q800 Q709 Q668 Q414 Q1948 Q783 Q784 Q493428 Q712 Q710 Q717 Q2003 Q258 Q1979 Q792 Q954 Q953 Q958 Q986 Q241 Q242 Q244 Q1974 Q811 Q53381 Q101526 Q924 Q34 Q928 Q39 Q38 Q739 Q733 Q734 Q55 Q1013 Q795587 Q693658 Q145 Q238 Q20 Q1044 Q1042 Q27 Q1049 Q1020 Q843 Q736 Q786 Q1904 Q96 Q1050 Q1989 Q686312 Q1036 Q1037 Q1033 Q1030 Q963 Q298 Q695 Q114 Q117 Q754 Q213 Q1005 Q833 Q1951 Q1009 Q243220 Q683 Q34020 Q686 Q760 Q77 Q774 Q1014 Q678 Q233 Q672 Q1952 Q2023
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action equal
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
value 1
[ANSWERS] have their official language as exactly 1 languages or classification schemes
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?b WHERE { FILTER ( ?z = 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?z ) WHERE { { ?b property:P37 ?u . ?b rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q34770 } UNION { ?b property:P37 ?u . ?b rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q5962346 } } GROUP BY ?b } }
Panama Armenia Costa Rica Marshall Islands India Argentina Manitoba Honduras Dominica Mistretta Fiji Kiribati Venezuela Newfoundland and Labrador South Africa Prince Edward Island El Salvador Zimbabwe Zambia South Sudan Eritrea Cuba Belize Barbados British Columbia Nicaragua Tolmezzo Rovetta Tanzania Sweden Philippines Switzerland Italy Colombia Paraguay Guyana Netherlands Lesotho Escuintla Izabal Department United Kingdom San Marino Norway Sierra Leone Seychelles Ireland Sudan Malawi Pakistan Ecuador Dominican Republic Ontario Mexico Swaziland Saskatchewan Duchy of Amalfi Uganda Rwanda Nigeria Namibia Botswana Chile Palau Kenya Ghana Trinidad and Tobago Czech Republic Gambia Malaysia Alberta Cameroon Rocca di Cave Samoa Niue Vanuatu Saint Lucia Uruguay Guatemala Liberia Tonga Malta Tuvalu Nova Scotia Nunavut
Italy, Netherlands and Zambia have their official language as exactly 1 languages or classification schemes
Italy Netherlands Zambia
action equal
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?b WHERE { FILTER ( ?z = 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?z ) WHERE { { ?b property:official_language ?u . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:language } UNION { ?b property:official_language ?u . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:classification_scheme } } GROUP BY ?b } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q953
P163
Q14660
USER
Which flag is associated with that administrative territory ?
(Q953,P163,c(Q14660))
action filter_type
action find
entity Q953
relation P163
type Q14660
['Q953', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?i WHERE { resource:Q953 property:P163 ?i . ?i rdf:type ontology:Q14660 }
Zambia
action filter_type
action find
entity Zambia
relation flag
type flag
['Zambia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?i WHERE { resource:Zambia property:flag ?i . ?i rdf:type ontology:flag }
[]
flag
Clarification for simple ques.
Q38
SYSTEM
Did you mean Italy ?
Q38 Q55 Q953
(Q38,P163,c(Q14660)) (Q55,P163,c(Q14660)) (Q953,P163,c(Q14660))
[ANSWER]
['Q38', 'P163', {'concept': 'Q14660'}] ['Q55', 'P163', {'concept': 'Q14660'}] ['Q953', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?i WHERE { resource:Q953 property:P163 ?i . ?i rdf:type ontology:Q14660 }
Italy Netherlands Zambia
Did you mean Italy ?
Italy
['Italy', 'flag', {'concept': 'flag'}] ['Netherlands', 'flag', {'concept': 'flag'}] ['Zambia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?i WHERE { resource:Zambia property:flag ?i . ?i rdf:type ontology:flag }
[]
Simple Question (Coreferenced)
USER
No, I meant Zambia. Could you tell me the answer for that?
(Q953,P163,c(Q14660))
Q953
['Q953', 'P163', {'concept': 'Q14660'}]
['Zambia', 'flag', {'concept': 'flag'}]
[]
Q170814
SYSTEM
Flag of Zambia
Q170814
(Q953,P163,c(Q14660))
action filter_type
action find
entity Q953
relation P163
type Q14660
[ANSWER] is associated with that administrative territory
['Q953', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?i WHERE { resource:Q953 property:P163 ?i . ?i rdf:type ontology:Q14660 }
Flag of Zambia
Flag of Zambia is associated with that administrative territory
Flag of Zambia
action filter_type
action find
entity Zambia
relation flag
type flag
['Zambia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?i WHERE { resource:Zambia property:flag ?i . ?i rdf:type ontology:flag }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q170814 Q953 Q6693606
P1001
Q15617994
USER
Does that flag applies to jurisdiction over Zambia and Lower Menadue ?
(Q170814,P1001,Q953) (Q170814,P1001,Q6693606)
action is_in
entity Q170814
action intersection
action find_reverse
entity Q953
relation P1001
action find_reverse
entity Q6693606
relation P1001
['Q170814', 'P1001', 'Q953'] ['Q170814', 'P1001', 'Q6693606']
ASK WHERE { resource:Q170814 property:P1001 resource:Q6693606 . resource:Q170814 property:P1001 resource:Q953 }
Flag of Zambia Zambia Lower Menadue
action is_in
entity Flag of Zambia
action intersection
action find_reverse
entity Zambia
relation applies to jurisdiction
action find_reverse
entity Lower Menadue
relation applies to jurisdiction
['Flag of Zambia', 'applies to jurisdiction', 'Zambia'] ['Flag of Zambia', 'applies to jurisdiction', 'Lower Menadue']
ASK WHERE { resource:Flag_of_Zambia property:applies_to_jurisdiction resource:Lower_Menadue . resource:Flag_of_Zambia property:applies_to_jurisdiction resource:Zambia }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q170814,P1001,Q953) (Q170814,P1001,Q6693606)
action is_in
entity Q170814
action intersection
action find_reverse
entity Q953
relation P1001
action find_reverse
entity Q6693606
relation P1001
[ANSWER]
['Q170814', 'P1001', 'Q953'] ['Q170814', 'P1001', 'Q6693606']
ASK WHERE { resource:Q170814 property:P1001 resource:Q6693606 . resource:Q170814 property:P1001 resource:Q953 }
YES and NO respectively
action is_in
entity Flag of Zambia
action intersection
action find_reverse
entity Zambia
relation applies to jurisdiction
action find_reverse
entity Lower Menadue
relation applies to jurisdiction
['Flag of Zambia', 'applies to jurisdiction', 'Zambia'] ['Flag of Zambia', 'applies to jurisdiction', 'Lower Menadue']
ASK WHERE { resource:Flag_of_Zambia property:applies_to_jurisdiction resource:Lower_Menadue . resource:Flag_of_Zambia property:applies_to_jurisdiction resource:Zambia }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q4982326 Q271886 Q2158897
P161
Q502895
USER
Does Time Traveller: The Girl Who Leapt Through Time star Riisa Naka and Robert Stewart, 1st Earl of March as actor ?
(Q4982326,P161,Q271886) (Q4982326,P161,Q2158897)
action is_in
entity Q4982326
action intersection
action find_reverse
entity Q271886
relation P161
action find_reverse
entity Q2158897
relation P161
['Q4982326', 'P161', 'Q271886'] ['Q4982326', 'P161', 'Q2158897']
ASK WHERE { resource:Q4982326 property:P161 resource:Q271886 . resource:Q4982326 property:P161 resource:Q2158897 }
Time Traveller: The Girl Who Leapt Through Time Riisa Naka Robert Stewart, 1st Earl of March
action is_in
entity Time Traveller: The Girl Who Leapt Through Time
action intersection
action find_reverse
entity Riisa Naka
relation cast member
action find_reverse
entity Robert Stewart, 1st Earl of March
relation cast member
['Time Traveller: The Girl Who Leapt Through Time', 'cast member', 'Riisa Naka'] ['Time Traveller: The Girl Who Leapt Through Time', 'cast member', 'Robert Stewart, 1st Earl of March']
ASK WHERE { resource:Time_Traveller:_The_Girl_Who_Leapt_Through_Time property:cast_member resource:Riisa_Naka . resource:Time_Traveller:_The_Girl_Who_Leapt_Through_Time property:cast_member resource:Robert_Stewart,_1st_Earl_of_March }
[]
common name
SYSTEM
YES and NO respectively
(Q4982326,P161,Q271886) (Q4982326,P161,Q2158897)
action is_in
entity Q4982326
action intersection
action find_reverse
entity Q271886
relation P161
action find_reverse
entity Q2158897
relation P161
[ANSWER]
['Q4982326', 'P161', 'Q271886'] ['Q4982326', 'P161', 'Q2158897']
ASK WHERE { resource:Q4982326 property:P161 resource:Q271886 . resource:Q4982326 property:P161 resource:Q2158897 }
YES and NO respectively
action is_in
entity Time Traveller: The Girl Who Leapt Through Time
action intersection
action find_reverse
entity Riisa Naka
relation cast member
action find_reverse
entity Robert Stewart, 1st Earl of March
relation cast member
['Time Traveller: The Girl Who Leapt Through Time', 'cast member', 'Riisa Naka'] ['Time Traveller: The Girl Who Leapt Through Time', 'cast member', 'Robert Stewart, 1st Earl of March']
ASK WHERE { resource:Time_Traveller:_The_Girl_Who_Leapt_Through_Time property:cast_member resource:Riisa_Naka . resource:Time_Traveller:_The_Girl_Who_Leapt_Through_Time property:cast_member resource:Robert_Stewart,_1st_Earl_of_March }
[]