Simple Question (Direct)
Simple Question
Q654372
P86
Q502895
USER
Who was Pizza composed by ?
(Q654372,P86,c(Q502895))
action filter_type
action find
entity Q654372
relation P86
type Q502895
['Q654372', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q654372 property:P86 ?p . ?p rdf:type ontology:Q502895 }
Pizza
action filter_type
action find
entity Pizza
relation composer
type common name
['Pizza', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Pizza property:composer ?p . ?p rdf:type ontology:common_name }
[]
common name
Q16733171
SYSTEM
Santhosh Narayanan
Q16733171
(Q654372,P86,c(Q502895))
action filter_type
action find
entity Q654372
relation P86
type Q502895
Pizza was composed by [ANSWER] by
['Q654372', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q654372 property:P86 ?p . ?p rdf:type ontology:Q502895 }
Santhosh Narayanan
Pizza was composed by Santhosh Narayanan by
Santhosh Narayanan
action filter_type
action find
entity Pizza
relation composer
type common name
['Pizza', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Pizza property:composer ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q654372
P272
Q43229
USER
Which organization produces Pizza ?
(Q654372,P272,c(Q43229))
action filter_type
action find
entity Q654372
relation P272
type Q43229
['Q654372', 'P272', {'concept': 'Q43229'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q43229 . resource:Q654372 property:P272 ?r }
Pizza
action filter_type
action find
entity Pizza
relation production company
type organization
['Pizza', 'production company', {'concept': 'organization'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:organization . resource:Pizza property:production_company ?r }
[]
organization
Q7785300
SYSTEM
Thirukumaran Entertainment
Q7785300
(Q654372,P272,c(Q43229))
action filter_type
action find
entity Q654372
relation P272
type Q43229
[ANSWER] produces Pizza
['Q654372', 'P272', {'concept': 'Q43229'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q43229 . resource:Q654372 property:P272 ?r }
Thirukumaran Entertainment
Thirukumaran Entertainment produces Pizza
Thirukumaran Entertainment
action filter_type
action find
entity Pizza
relation production company
type organization
['Pizza', 'production company', {'concept': 'organization'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:organization . resource:Pizza property:production_company ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q654372
P161
Q502895
USER
Which people are in Pizza ?
(Q654372,P161,c(Q502895))
action filter_type
action find
entity Q654372
relation P161
type Q502895
['Q654372', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q654372 property:P161 ?o . ?o rdf:type ontology:Q502895 }
Pizza
action filter_type
action find
entity Pizza
relation cast member
type common name
['Pizza', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Pizza property:cast_member ?o . ?o rdf:type ontology:common_name }
[]
common name
Q1749451 Q7929207
SYSTEM
Remya Nambeesan, Vijay Sethupathi
Q1749451 Q7929207
(Q654372,P161,c(Q502895))
action filter_type
action find
entity Q654372
relation P161
type Q502895
[ANSWERS] are in Pizza
['Q654372', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q654372 property:P161 ?o . ?o rdf:type ontology:Q502895 }
Remya Nambeesan Vijay Sethupathi
Remya Nambeesan and Vijay Sethupathi are in Pizza
Remya Nambeesan Vijay Sethupathi
action filter_type
action find
entity Pizza
relation cast member
type common name
['Pizza', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Pizza property:cast_member ?o . ?o rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3147664 Q654372
P27 P495
Q15617994
USER
Which administrative territories did Pizza originate or are the countries of citizenship of Ichikawa Ebizō XI ?
OR((Q654372,P495,c(Q15617994)), (Q3147664,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q654372
relation P495
action find
entity Q3147664
relation P27
type Q15617994
{'OR': [['Q654372', 'P495', {'concept': 'Q15617994'}], ['Q3147664', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q654372 property:P495 ?x } UNION { resource:Q3147664 property:P27 ?x } } . ?x rdf:type ontology:Q15617994 }
Ichikawa Ebizō XI Pizza
action filter_type
action union
action find
entity Pizza
relation country of origin
action find
entity Ichikawa Ebizō XI
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Pizza', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Ichikawa Ebizō XI', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Pizza property:country_of_origin ?x } UNION { resource:Ichikawa_Ebizō_XI property:country_of_citizenship ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q668
SYSTEM
Japan, India
Q17 Q668
OR((Q654372,P495,c(Q15617994)), (Q3147664,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q654372
relation P495
action find
entity Q3147664
relation P27
type Q15617994
Pizza originated in [ANSWERS] or are the countries of citizenship of Ichikawa Ebizō XI
{'OR': [['Q654372', 'P495', {'concept': 'Q15617994'}], ['Q3147664', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q654372 property:P495 ?x } UNION { resource:Q3147664 property:P27 ?x } } . ?x rdf:type ontology:Q15617994 }
Japan India
Pizza originated in Japan and India or are the countries of citizenship of Ichikawa Ebizō XI
Japan India
action filter_type
action union
action find
entity Pizza
relation country of origin
action find
entity Ichikawa Ebizō XI
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Pizza', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Ichikawa Ebizō XI', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Pizza property:country_of_origin ?x } UNION { resource:Ichikawa_Ebizō_XI property:country_of_citizenship ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q668
P6
Q502895
USER
Which person is the head of government of that administrative territory ?
(Q668,P6,c(Q502895))
action filter_type
action find
entity Q668
relation P6
type Q502895
['Q668', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q668 property:P6 ?r . ?r rdf:type ontology:Q502895 }
India
action filter_type
action find
entity India
relation head of government
type common name
['India', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:India property:head_of_government ?r . ?r rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q17
SYSTEM
Did you mean Japan ?
Q17 Q668
(Q17,P6,c(Q502895)) (Q668,P6,c(Q502895))
[ANSWER]
['Q17', 'P6', {'concept': 'Q502895'}] ['Q668', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q668 property:P6 ?r . ?r rdf:type ontology:Q502895 }
Japan India
Did you mean Japan ?
Japan
['Japan', 'head of government', {'concept': 'common name'}] ['India', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:India property:head_of_government ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant India. Could you tell me the answer for that?
(Q668,P6,c(Q502895))
Q668
['Q668', 'P6', {'concept': 'Q502895'}]
['India', 'head of government', {'concept': 'common name'}]
[]
Q1058
SYSTEM
Narendra Modi
Q1058
(Q668,P6,c(Q502895))
action filter_type
action find
entity Q668
relation P6
type Q502895
[ANSWER] is the head of government of that administrative territory
['Q668', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q668 property:P6 ?r . ?r rdf:type ontology:Q502895 }
Narendra Modi
Narendra Modi is the head of government of that administrative territory
Narendra Modi
action filter_type
action find
entity India
relation head of government
type common name
['India', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:India property:head_of_government ?r . ?r rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q1001378
USER
How many cinematic techniques had their voice dubbing done by atleast 44 people ?
(c(Q1001378),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 44
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?d ) WHERE { ?g rdf:type ontology:Q1001378 . ?k rdf:type ontology:Q502895 . ?g property:P725 ?k } GROUP BY ?g } . FILTER ( ?d >= 44 ) }
action count
action atleast
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 44
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?d ) WHERE { ?g rdf:type ontology:cinematic_technique . ?k rdf:type ontology:common_name . ?g property:voice_actor ?k } GROUP BY ?g } . FILTER ( ?d >= 44 ) }
[]
common name cinematic technique
SYSTEM
2
Q15270647 Q9321426
(c(Q1001378),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 44
[ANSWER]
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?d ) WHERE { ?g rdf:type ontology:Q1001378 . ?k rdf:type ontology:Q502895 . ?g property:P725 ?k } GROUP BY ?g } . FILTER ( ?d >= 44 ) }
Zootopia Finding Dory
2
action count
action atleast
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 44
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?d ) WHERE { ?g rdf:type ontology:cinematic_technique . ?k rdf:type ontology:common_name . ?g property:voice_actor ?k } GROUP BY ?g } . FILTER ( ?d >= 44 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11617 Q1749451
P161
Q838948
USER
Which works of art have Remya Nambeesan or Aaliyah in their star cast ?
OR((c(Q838948),P161,Q1749451), (c(Q838948),P161,Q11617))
action filter_type
action union
action find_reverse
entity Q1749451
relation P161
action find_reverse
entity Q11617
relation P161
type Q838948
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q1749451'], [{'concept': 'Q838948'}, 'P161', 'Q11617']]}
SELECT DISTINCT ?o WHERE { { { ?o property:P161 resource:Q1749451 } UNION { ?o property:P161 resource:Q11617 } } . ?o rdf:type ontology:Q838948 }
Aaliyah Remya Nambeesan
action filter_type
action union
action find_reverse
entity Remya Nambeesan
relation cast member
action find_reverse
entity Aaliyah
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Remya Nambeesan'], [{'concept': 'work of art'}, 'cast member', 'Aaliyah']]}
SELECT DISTINCT ?o WHERE { { { ?o property:cast_member resource:Remya_Nambeesan } UNION { ?o property:cast_member resource:Aaliyah } } . ?o rdf:type ontology:work_of_art }
[]
work of art
Q202982 Q3259810 Q748080 Q7697872 Q7070652 Q7288893 Q5065981 Q7832440 Q654372 Q4830885
SYSTEM
Some of them are Queen of the Damned, Ilaignan, Romeo Must Die, Telugabbai, Nuvvila, Raman Thediya Seethai, Chaappa Kurishu, Traffic, Pizza, Ayalum Njanum Thammil
Q6443105 Q11268003 Q7193399 Q3259810 Q202982 Q7288893 Q7487116 Q7105151 Q6096947 Q7697872 Q7832440 Q21645997 Q7144784 Q654372 Q5065981 Q5071730 Q4830885 Q7070652 Q4764364 Q748080
OR((c(Q838948),P161,Q1749451), (c(Q838948),P161,Q11617))
action filter_type
action union
action find_reverse
entity Q1749451
relation P161
action find_reverse
entity Q11617
relation P161
type Q838948
[ANSWERS] have Remya Nambeesan or Aaliyah in their star cast
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q1749451'], [{'concept': 'Q838948'}, 'P161', 'Q11617']]}
SELECT DISTINCT ?o WHERE { { { ?o property:P161 resource:Q1749451 } UNION { ?o property:P161 resource:Q11617 } } . ?o rdf:type ontology:Q838948 }
Kullanari Koottam Husbands in Goa Pigman Ilaignan Queen of the Damned Raman Thediya Seethai Shalabam Oru Yathrayil Ivan Megharoopan Telugabbai Traffic Aalathoorile Ethiri Vettam Pathiramanal Pizza Chaappa Kurishu Changathipoocha Ayalum Njanum Thammil Nuvvila Anhoni Romeo Must Die
Queen of the Damned, Ilaignan, Romeo Must Die, Telugabbai, Nuvvila, Raman Thediya Seethai, Chaappa Kurishu, Traffic, Pizza and Ayalum Njanum Thammil have Remya Nambeesan or Aaliyah in their star cast
Queen of the Damned Ilaignan Romeo Must Die Telugabbai Nuvvila Raman Thediya Seethai Chaappa Kurishu Traffic Pizza Ayalum Njanum Thammil
action filter_type
action union
action find_reverse
entity Remya Nambeesan
relation cast member
action find_reverse
entity Aaliyah
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Remya Nambeesan'], [{'concept': 'work of art'}, 'cast member', 'Aaliyah']]}
SELECT DISTINCT ?o WHERE { { { ?o property:cast_member resource:Remya_Nambeesan } UNION { ?o property:cast_member resource:Aaliyah } } . ?o rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q654372
P344
Q502895
USER
Who is the director of photography for that work of art ?
(Q654372,P344,c(Q502895))
action filter_type
action find
entity Q654372
relation P344
type Q502895
['Q654372', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q654372 property:P344 ?t . ?t rdf:type ontology:Q502895 }
Pizza
action filter_type
action find
entity Pizza
relation director of photography
type common name
['Pizza', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Pizza property:director_of_photography ?t . ?t rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q202982
SYSTEM
Did you mean Queen of the Damned ?
Q202982 Q3259810 Q748080 Q7697872 Q7070652 Q7288893 Q5065981 Q7832440 Q654372 Q4830885
(Q202982,P344,c(Q502895)) (Q3259810,P344,c(Q502895)) (Q748080,P344,c(Q502895)) (Q7697872,P344,c(Q502895)) (Q7070652,P344,c(Q502895)) (Q7288893,P344,c(Q502895)) (Q5065981,P344,c(Q502895)) (Q7832440,P344,c(Q502895)) (Q654372,P344,c(Q502895)) (Q4830885,P344,c(Q502895))
[ANSWER]
['Q202982', 'P344', {'concept': 'Q502895'}] ['Q3259810', 'P344', {'concept': 'Q502895'}] ['Q748080', 'P344', {'concept': 'Q502895'}] ['Q7697872', 'P344', {'concept': 'Q502895'}] ['Q7070652', 'P344', {'concept': 'Q502895'}] ['Q7288893', 'P344', {'concept': 'Q502895'}] ['Q5065981', 'P344', {'concept': 'Q502895'}] ['Q7832440', 'P344', {'concept': 'Q502895'}] ['Q654372', 'P344', {'concept': 'Q502895'}] ['Q4830885', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q654372 property:P344 ?t . ?t rdf:type ontology:Q502895 }
Queen of the Damned Ilaignan Romeo Must Die Telugabbai Nuvvila Raman Thediya Seethai Chaappa Kurishu Traffic Pizza Ayalum Njanum Thammil
Did you mean Queen of the Damned ?
Queen of the Damned
['Queen of the Damned', 'director of photography', {'concept': 'common name'}] ['Ilaignan', 'director of photography', {'concept': 'common name'}] ['Romeo Must Die', 'director of photography', {'concept': 'common name'}] ['Telugabbai', 'director of photography', {'concept': 'common name'}] ['Nuvvila', 'director of photography', {'concept': 'common name'}] ['Raman Thediya Seethai', 'director of photography', {'concept': 'common name'}] ['Chaappa Kurishu', 'director of photography', {'concept': 'common name'}] ['Traffic', 'director of photography', {'concept': 'common name'}] ['Pizza', 'director of photography', {'concept': 'common name'}] ['Ayalum Njanum Thammil', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Pizza property:director_of_photography ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Pizza. Could you tell me the answer for that?
(Q654372,P344,c(Q502895))
Q654372
['Q654372', 'P344', {'concept': 'Q502895'}]
['Pizza', 'director of photography', {'concept': 'common name'}]
[]
Q18719273
SYSTEM
Gopi Amarnath
Q18719273
(Q654372,P344,c(Q502895))
action filter_type
action find
entity Q654372
relation P344
type Q502895
The director of photography for that work of art is [ANSWER]
['Q654372', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q654372 property:P344 ?t . ?t rdf:type ontology:Q502895 }
Gopi Amarnath
The director of photography for that work of art is Gopi Amarnath
Gopi Amarnath
action filter_type
action find
entity Pizza
relation director of photography
type common name
['Pizza', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Pizza property:director_of_photography ?t . ?t rdf:type ontology:common_name }
[]