Simple Question (Direct)
Simple Question
Q18758159
P495
Q15617994
USER
What is the origin of Koisuru Vampire ?
(Q18758159,P495,c(Q15617994))
action filter_type
action find
entity Q18758159
relation P495
type Q15617994
['Q18758159', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q18758159 property:P495 ?q . ?q rdf:type ontology:Q15617994 }
Koisuru Vampire
action filter_type
action find
entity Koisuru Vampire
relation country of origin
type designation for an administrative territorial entity
['Koisuru Vampire', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Koisuru_Vampire property:country_of_origin ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q18758159,P495,c(Q15617994))
action filter_type
action find
entity Q18758159
relation P495
type Q15617994
The origin of Koisuru Vampire is from [ANSWER]
['Q18758159', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q18758159 property:P495 ?q . ?q rdf:type ontology:Q15617994 }
Japan
The origin of Koisuru Vampire is from Japan
Japan
action filter_type
action find
entity Koisuru Vampire
relation country of origin
type designation for an administrative territorial entity
['Koisuru Vampire', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Koisuru_Vampire property:country_of_origin ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18758159
P161
Q502895
USER
Which people are in Koisuru Vampire ?
(Q18758159,P161,c(Q502895))
action filter_type
action find
entity Q18758159
relation P161
type Q502895
['Q18758159', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q18758159 property:P161 ?z . ?z rdf:type ontology:Q502895 }
Koisuru Vampire
action filter_type
action find
entity Koisuru Vampire
relation cast member
type common name
['Koisuru Vampire', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Koisuru_Vampire property:cast_member ?z . ?z rdf:type ontology:common_name }
[]
common name
Q1068023 Q873876 Q1053102
SYSTEM
Mirei Kiritani, Ittoku Kishibe, Seiichi Tanabe
Q1053102 Q6991592 Q1068023 Q873876 Q5103567 Q717129
(Q18758159,P161,c(Q502895))
action filter_type
action find
entity Q18758159
relation P161
type Q502895
[ANSWERS] are in Koisuru Vampire
['Q18758159', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q18758159 property:P161 ?z . ?z rdf:type ontology:Q502895 }
Seiichi Tanabe Nene Otsuka Mirei Kiritani Ittoku Kishibe Choi Jin-hyuk Ekin Cheng
Mirei Kiritani, Ittoku Kishibe and Seiichi Tanabe are in Koisuru Vampire
Mirei Kiritani Ittoku Kishibe Seiichi Tanabe
action filter_type
action find
entity Koisuru Vampire
relation cast member
type common name
['Koisuru Vampire', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Koisuru_Vampire property:cast_member ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q179532
Q502895
USER
And what about The Clockmaker?
(Q179532,P161,c(Q502895))
action filter_type
action find
entity Q179532
relation P161
type Q502895
['Q179532', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q179532 property:P161 ?w . ?w rdf:type ontology:Q502895 }
The Clockmaker
action filter_type
action find
entity The Clockmaker
relation cast member
type common name
['The Clockmaker', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:The_Clockmaker property:cast_member ?w . ?w rdf:type ontology:common_name }
[]
common name
Q106482 Q106555 Q451637
SYSTEM
Philippe Noiret, Jean Rochefort, Christine Pascal
Q21483300 Q21483303 Q451637 Q21483304 Q21483282 Q534537 Q3528268 Q3158699 Q274043 Q2979692 Q21483251 Q21483277 Q21483273 Q3371829 Q21483305 Q370457 Q21483479 Q106482 Q21483299 Q21483297 Q3573442 Q21483293 Q3568923 Q21483432 Q1122249 Q21483510 Q2831251 Q21483350 Q106555 Q21483262 Q2848982
(Q179532,P161,c(Q502895))
action filter_type
action find
entity Q179532
relation P161
type Q502895
[ANSWERS]
['Q179532', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q179532 property:P161 ?w . ?w rdf:type ontology:Q502895 }
Johnny Wessler Jeanne Berdin Christine Pascal Papa Chauvin Bernard Frangin Cécile Vassort Tiffany Tavernier Jacques Denis Monique Chaumette Clotilde Joano Sylvain Rougerie Sacha Bauer Hervé Morel Paul Mercey Jacqueline Corot Jacques Hilling André San Fratello Philippe Noiret Henri Vart René Morard Yves Afonso Georges Baconnier William Sabatier Henri Pasquale Julien Bertheau Jacques Barrac Albert Husson Jean Marigny Jean Rochefort Liza Braconnier Andrée Tainsy
Philippe Noiret Jean Rochefort Christine Pascal
action filter_type
action find
entity The Clockmaker
relation cast member
type common name
['The Clockmaker', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:The_Clockmaker property:cast_member ?w . ?w rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5274196 Q179532
P27 P915
Q15617994
USER
Which administrative territories were The Clockmaker filmed on or do Didier van der Hove belong to ?
OR((Q179532,P915,c(Q15617994)), (Q5274196,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q179532
relation P915
action find
entity Q5274196
relation P27
type Q15617994
{'OR': [['Q179532', 'P915', {'concept': 'Q15617994'}], ['Q5274196', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q5274196 property:P27 ?n } UNION { resource:Q179532 property:P915 ?n } } . ?n rdf:type ontology:Q15617994 }
Didier van der Hove The Clockmaker
action filter_type
action union
action find
entity The Clockmaker
relation filming location
action find
entity Didier van der Hove
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['The Clockmaker', 'filming location', {'concept': 'designation for an administrative territorial entity'}], ['Didier van der Hove', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Didier_van_der_Hove property:country_of_citizenship ?n } UNION { resource:The_Clockmaker property:filming_location ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q12569 Q739
SYSTEM
Loire, Colombia
Q12569 Q739
OR((Q179532,P915,c(Q15617994)), (Q5274196,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q179532
relation P915
action find
entity Q5274196
relation P27
type Q15617994
The Clockmaker were filmed do the [ANSWERS]
{'OR': [['Q179532', 'P915', {'concept': 'Q15617994'}], ['Q5274196', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q5274196 property:P27 ?n } UNION { resource:Q179532 property:P915 ?n } } . ?n rdf:type ontology:Q15617994 }
Loire Colombia
The Clockmaker were filmed do the Loire and Colombia
Loire Colombia
action filter_type
action union
action find
entity The Clockmaker
relation filming location
action find
entity Didier van der Hove
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['The Clockmaker', 'filming location', {'concept': 'designation for an administrative territorial entity'}], ['Didier van der Hove', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Didier_van_der_Hove property:country_of_citizenship ?n } UNION { resource:The_Clockmaker property:filming_location ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q739
P37
Q34770
USER
What is recognized as the official language of that administrative territory ?
(Q739,P37,c(Q34770))
action filter_type
action find
entity Q739
relation P37
type Q34770
['Q739', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q34770 . resource:Q739 property:P37 ?h }
Colombia
action filter_type
action find
entity Colombia
relation official language
type language
['Colombia', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:language . resource:Colombia property:official_language ?h }
[]
language
Clarification for simple ques.
Q739
SYSTEM
Did you mean Colombia ?
Q12569 Q739
(Q12569,P37,c(Q34770)) (Q739,P37,c(Q34770))
[ANSWER]
['Q12569', 'P37', {'concept': 'Q34770'}] ['Q739', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q34770 . resource:Q739 property:P37 ?h }
Loire Colombia
Did you mean Colombia ?
Colombia
['Loire', 'official language', {'concept': 'language'}] ['Colombia', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:language . resource:Colombia property:official_language ?h }
[]
Simple Question (Coreferenced)
USER
Yes
(Q739,P37,c(Q34770))
['Q739', 'P37', {'concept': 'Q34770'}]
['Colombia', 'official language', {'concept': 'language'}]
[]
Q1321
SYSTEM
Spanish
Q1321
(Q739,P37,c(Q34770))
action filter_type
action find
entity Q739
relation P37
type Q34770
Of [ANSWER] is recognized as the official language of that administrative territory
['Q739', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q34770 . resource:Q739 property:P37 ?h }
Spanish
Of Spanish is recognized as the official language of that administrative territory
Spanish
action filter_type
action find
entity Colombia
relation official language
type language
['Colombia', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:language . resource:Colombia property:official_language ?h }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1321 Q9024968
P1412
Q502895
USER
Does Luis Callejo speak that language ?
(Q9024968,P1412,Q1321)
action is_in
entity Q1321
action find
entity Q9024968
relation P1412
['Q9024968', 'P1412', 'Q1321']
ASK WHERE { resource:Q9024968 property:P1412 resource:Q1321 }
Spanish Luis Callejo
action is_in
entity Spanish
action find
entity Luis Callejo
relation languages spoken, written or signed
['Luis Callejo', 'languages spoken, written or signed', 'Spanish']
ASK WHERE { resource:Luis_Callejo property:languages_spoken,_written_or_signed resource:Spanish }
[]
common name
SYSTEM
YES
(Q9024968,P1412,Q1321)
action is_in
entity Q1321
action find
entity Q9024968
relation P1412
[ANSWER]
['Q9024968', 'P1412', 'Q1321']
ASK WHERE { resource:Q9024968 property:P1412 resource:Q1321 }
Yes
action is_in
entity Spanish
action find
entity Luis Callejo
relation languages spoken, written or signed
['Luis Callejo', 'languages spoken, written or signed', 'Spanish']
ASK WHERE { resource:Luis_Callejo property:languages_spoken,_written_or_signed resource:Spanish }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q739
P1532
Q502895 Q1194951
USER
How many people and national sports teams play for Colombia ?
(c(Q502895),P1532,Q739) (c(Q1194951),P1532,Q739)
action count
action union
action filter_type
action find_reverse
entity Q739
relation P1532
type Q502895
action filter_type
action find_reverse
entity Q739
relation P1532
type Q1194951
[{'concept': 'Q502895'}, 'P1532', 'Q739'] [{'concept': 'Q1194951'}, 'P1532', 'Q739']
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { VALUES ( ?t ) { ( ontology:Q502895 ) ( ontology:Q1194951 ) } . ?e rdf:type ?t }
Colombia
action count
action union
action filter_type
action find_reverse
entity Colombia
relation country for sport
type common name
action filter_type
action find_reverse
entity Colombia
relation country for sport
type national sports team
[{'concept': 'common name'}, 'country for sport', 'Colombia'] [{'concept': 'national sports team'}, 'country for sport', 'Colombia']
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { VALUES ( ?t ) { ( ontology:common_name ) ( ontology:national_sports_team ) } . ?e rdf:type ?t }
[]
common name national sports team
SYSTEM
5 people and 1 national sports teams
Q212564 Q5924870 Q24452151 Q20966282 Q22045465 Q23041624
(c(Q502895),P1532,Q739) (c(Q1194951),P1532,Q739)
action count
action union
action filter_type
action find_reverse
entity Q739
relation P1532
type Q502895
action filter_type
action find_reverse
entity Q739
relation P1532
type Q1194951
[ANSWER]
[{'concept': 'Q502895'}, 'P1532', 'Q739'] [{'concept': 'Q1194951'}, 'P1532', 'Q739']
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { VALUES ( ?t ) { ( ontology:Q502895 ) ( ontology:Q1194951 ) } . ?e rdf:type ?t }
Colombia national football team Jaime Aparicio Evelis Aguilar Gerald Giraldo Luis Fernando Fernández López Jacinto Navarrete
5 people and 1 national sports teams
action count
action union
action filter_type
action find_reverse
entity Colombia
relation country for sport
type common name
action filter_type
action find_reverse
entity Colombia
relation country for sport
type national sports team
[{'concept': 'common name'}, 'country for sport', 'Colombia'] [{'concept': 'national sports team'}, 'country for sport', 'Colombia']
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { VALUES ( ?t ) { ( ontology:common_name ) ( ontology:national_sports_team ) } . ?e rdf:type ?t }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q15617994 Q15416 Q838948
USER
Which administrative territories are the narrative locations of exactly 2 television programs and works of art ?
(c(Q15416)|c(Q838948),P840,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
value 2
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:P840 ?z . ?z rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q838948 } UNION { ?z rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15416 . ?f property:P840 ?z } } GROUP BY ?z } . FILTER ( ?a = 2 ) }
action equal
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
value 2
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:narrative_location ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:work_of_art } UNION { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:television_program . ?f property:narrative_location ?z } } GROUP BY ?z } . FILTER ( ?a = 2 ) }
[]
designation for an administrative territorial entity television program work of art
Q796 Q1028 Q236
SYSTEM
Iraq, Morocco, Montenegro
Q804 Q796 Q881 Q236 Q1028 Q1030 Q14859 Q2742 Q774
(c(Q15416)|c(Q838948),P840,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
value 2
[ANSWERS] are the narrative locations of exactly 2 television programs and works of art
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:P840 ?z . ?z rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q838948 } UNION { ?z rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15416 . ?f property:P840 ?z } } GROUP BY ?z } . FILTER ( ?a = 2 ) }
Panama Iraq Vietnam Montenegro Morocco Namibia Ansbach Münster Guatemala
Iraq, Morocco and Montenegro are the narrative locations of exactly 2 television programs and works of art
Iraq Morocco Montenegro
action equal
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
value 2
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:narrative_location ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:work_of_art } UNION { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:television_program . ?f property:narrative_location ?z } } GROUP BY ?z } . FILTER ( ?a = 2 ) }
[]