Simple Question (Direct)
Simple Question
Q3061320
P21
Q290
USER
Which sex does Evan Goldberg have ?
(Q3061320,P21,c(Q290))
action filter_type
action find
entity Q3061320
relation P21
type Q290
['Q3061320', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q3061320 property:P21 ?m . ?m rdf:type ontology:Q290 }
Evan Goldberg
action filter_type
action find
entity Evan Goldberg
relation gender
type sex
['Evan Goldberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Evan_Goldberg property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3061320,P21,c(Q290))
action filter_type
action find
entity Q3061320
relation P21
type Q290
Evan Goldberg has a [ANSWER]
['Q3061320', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q3061320 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
Evan Goldberg has a male
male
action filter_type
action find
entity Evan Goldberg
relation gender
type sex
['Evan Goldberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Evan_Goldberg property:gender ?m . ?m rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3061320
P1431
Q838948
USER
Which works of art are produced by Evan Goldberg ?
(c(Q838948),P1431,Q3061320)
action filter_type
action find_reverse
entity Q3061320
relation P1431
type Q838948
[{'concept': 'Q838948'}, 'P1431', 'Q3061320']
SELECT DISTINCT ?j WHERE { ?j property:P1431 resource:Q3061320 . ?j rdf:type ontology:Q838948 }
Evan Goldberg
action filter_type
action find_reverse
entity Evan Goldberg
relation executive producer
type work of art
[{'concept': 'work of art'}, 'executive producer', 'Evan Goldberg']
SELECT DISTINCT ?j WHERE { ?j property:executive_producer resource:Evan_Goldberg . ?j rdf:type ontology:work_of_art }
[]
work of art
Q607363 Q679611 Q961138
SYSTEM
This Is the End, Superbad, The Guilt Trip
Q961138 Q738152 Q679611 Q607363
(c(Q838948),P1431,Q3061320)
action filter_type
action find_reverse
entity Q3061320
relation P1431
type Q838948
[ANSWERS] are produced by Evan Goldberg
[{'concept': 'Q838948'}, 'P1431', 'Q3061320']
SELECT DISTINCT ?j WHERE { ?j property:P1431 resource:Q3061320 . ?j rdf:type ontology:Q838948 }
The Guilt Trip The Green Hornet Superbad This Is the End
This Is the End, Superbad and The Guilt Trip are produced by Evan Goldberg
This Is the End Superbad The Guilt Trip
action filter_type
action find_reverse
entity Evan Goldberg
relation executive producer
type work of art
[{'concept': 'work of art'}, 'executive producer', 'Evan Goldberg']
SELECT DISTINCT ?j WHERE { ?j property:executive_producer resource:Evan_Goldberg . ?j rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q607363
P462
Q1075
USER
Which color is This Is the End associated with ?
(Q607363,P462,c(Q1075))
action filter_type
action find
entity Q607363
relation P462
type Q1075
['Q607363', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?j WHERE { resource:Q607363 property:P462 ?j . ?j rdf:type ontology:Q1075 }
This Is the End
action filter_type
action find
entity This Is the End
relation color
type color
['This Is the End', 'color', {'concept': 'color'}]
SELECT DISTINCT ?j WHERE { resource:This_Is_the_End property:color ?j . ?j rdf:type ontology:color }
[]
color
Q22006653
SYSTEM
color
Q22006653
(Q607363,P462,c(Q1075))
action filter_type
action find
entity Q607363
relation P462
type Q1075
This is the [ANSWER]
['Q607363', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?j WHERE { resource:Q607363 property:P462 ?j . ?j rdf:type ontology:Q1075 }
color
This is the color
color
action filter_type
action find
entity This Is the End
relation color
type color
['This Is the End', 'color', {'concept': 'color'}]
SELECT DISTINCT ?j WHERE { resource:This_Is_the_End property:color ?j . ?j rdf:type ontology:color }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q607363
P344
Q502895
USER
Which person is the cinematographer of that work of art ?
(Q22006653,P344,c(Q502895))
action filter_type
action find
entity Q607363
relation P344
type Q502895
['Q22006653', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q607363 property:P344 ?u }
This Is the End
action filter_type
action find
entity This Is the End
relation director of photography
type common name
['color', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:This_Is_the_End property:director_of_photography ?u }
[]
common name
Q15732459
SYSTEM
Brandon Trost
Q15732459
(Q22006653,P344,c(Q502895))
action filter_type
action find
entity Q607363
relation P344
type Q502895
[ANSWER] is the cinematographer of that work of art
['Q22006653', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q607363 property:P344 ?u }
Brandon Trost
Brandon Trost is the cinematographer of that work of art
Brandon Trost
action filter_type
action find
entity This Is the End
relation director of photography
type common name
['color', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:This_Is_the_End property:director_of_photography ?u }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q7240129 Q607363
P344
Q502895
USER
Or Prem Granth?
OR((Q607363,P344,c(Q502895)), (Q7240129,P344,c(Q502895)))
action filter_type
action union
action find
entity Q607363
relation P344
action find
entity Q7240129
relation P344
type Q502895
{'OR': [['Q607363', 'P344', {'concept': 'Q502895'}], ['Q7240129', 'P344', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q607363 property:P344 ?a } UNION { resource:Q7240129 property:P344 ?a } } . ?a rdf:type ontology:Q502895 }
Prem Granth This Is the End
action filter_type
action union
action find
entity This Is the End
relation director of photography
action find
entity Prem Granth
relation director of photography
type common name
{'OR': [['This Is the End', 'director of photography', {'concept': 'common name'}], ['Prem Granth', 'director of photography', {'concept': 'common name'}]]}
SELECT DISTINCT ?a WHERE { { { resource:This_Is_the_End property:director_of_photography ?a } UNION { resource:Prem_Granth property:director_of_photography ?a } } . ?a rdf:type ontology:common_name }
[]
common name
Q15732459 Q16014936
SYSTEM
Brandon Trost, Jal Mistry
Q15732459 Q16014936
OR((Q607363,P344,c(Q502895)), (Q7240129,P344,c(Q502895)))
action filter_type
action union
action find
entity Q607363
relation P344
action find
entity Q7240129
relation P344
type Q502895
[ANSWERS]
{'OR': [['Q607363', 'P344', {'concept': 'Q502895'}], ['Q7240129', 'P344', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q607363 property:P344 ?a } UNION { resource:Q7240129 property:P344 ?a } } . ?a rdf:type ontology:Q502895 }
Brandon Trost Jal Mistry
Brandon Trost Jal Mistry
action filter_type
action union
action find
entity This Is the End
relation director of photography
action find
entity Prem Granth
relation director of photography
type common name
{'OR': [['This Is the End', 'director of photography', {'concept': 'common name'}], ['Prem Granth', 'director of photography', {'concept': 'common name'}]]}
SELECT DISTINCT ?a WHERE { { { resource:This_Is_the_End property:director_of_photography ?a } UNION { resource:Prem_Granth property:director_of_photography ?a } } . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7240129
P57
Q502895
USER
Who directed Prem Granth?
(Q15732459,P57,c(Q502895)) (Q16014936,P57,c(Q502895))
action filter_type
action find
entity Q7240129
relation P57
type Q502895
['Q15732459', 'P57', {'concept': 'Q502895'}] ['Q16014936', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q7240129 property:P57 ?n }
Prem Granth
action filter_type
action find
entity Prem Granth
relation director
type common name
['Brandon Trost', 'director', {'concept': 'common name'}] ['Jal Mistry', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:Prem_Granth property:director ?n }
[]
common name
Q7286234
SYSTEM
Rajiv Kapoor
Q7286234
(Q15732459,P57,c(Q502895)) (Q16014936,P57,c(Q502895))
action filter_type
action find
entity Q7240129
relation P57
type Q502895
[ANSWER] directed Prem Granth
['Q15732459', 'P57', {'concept': 'Q502895'}] ['Q16014936', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q7240129 property:P57 ?n }
Rajiv Kapoor
Rajiv Kapoor directed Prem Granth
Rajiv Kapoor
action filter_type
action find
entity Prem Granth
relation director
type common name
['Brandon Trost', 'director', {'concept': 'common name'}] ['Jal Mistry', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:Prem_Granth property:director ?n }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q7286234 Q668 Q5315493
P27
Q15617994
USER
Is that person a native of India and Dunmere, Cornwall ?
(Q7286234,P27,Q668) (Q7286234,P27,Q5315493)
action is_in
entity Q7286234
action intersection
action find_reverse
entity Q668
relation P27
action find_reverse
entity Q5315493
relation P27
['Q7286234', 'P27', 'Q668'] ['Q7286234', 'P27', 'Q5315493']
ASK WHERE { resource:Q7286234 property:P27 resource:Q5315493 . resource:Q7286234 property:P27 resource:Q668 }
Rajiv Kapoor India Dunmere, Cornwall
action is_in
entity Rajiv Kapoor
action intersection
action find_reverse
entity India
relation country of citizenship
action find_reverse
entity Dunmere, Cornwall
relation country of citizenship
['Rajiv Kapoor', 'country of citizenship', 'India'] ['Rajiv Kapoor', 'country of citizenship', 'Dunmere, Cornwall']
ASK WHERE { resource:Rajiv_Kapoor property:country_of_citizenship resource:Dunmere,_Cornwall . resource:Rajiv_Kapoor property:country_of_citizenship resource:India }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q7286234,P27,Q668) (Q7286234,P27,Q5315493)
action is_in
entity Q7286234
action intersection
action find_reverse
entity Q668
relation P27
action find_reverse
entity Q5315493
relation P27
[ANSWER]
['Q7286234', 'P27', 'Q668'] ['Q7286234', 'P27', 'Q5315493']
ASK WHERE { resource:Q7286234 property:P27 resource:Q5315493 . resource:Q7286234 property:P27 resource:Q668 }
YES and NO respectively
action is_in
entity Rajiv Kapoor
action intersection
action find_reverse
entity India
relation country of citizenship
action find_reverse
entity Dunmere, Cornwall
relation country of citizenship
['Rajiv Kapoor', 'country of citizenship', 'India'] ['Rajiv Kapoor', 'country of citizenship', 'Dunmere, Cornwall']
ASK WHERE { resource:Rajiv_Kapoor property:country_of_citizenship resource:Dunmere,_Cornwall . resource:Rajiv_Kapoor property:country_of_citizenship resource:India }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q7286234
P7
Q502895
USER
How many people are Rajiv Kapoor a brother of ?
(c(Q502895),P7,Q7286234)
action count
action filter_type
action find_reverse
entity Q7286234
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q7286234']
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:P7 resource:Q7286234 . ?s rdf:type ontology:Q502895 }
Rajiv Kapoor
action count
action filter_type
action find_reverse
entity Rajiv Kapoor
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Rajiv Kapoor']
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:brother resource:Rajiv_Kapoor . ?s rdf:type ontology:common_name }
[]
common name
SYSTEM
3
Q258820 Q7336836 Q2700318
(c(Q502895),P7,Q7286234)
action count
action filter_type
action find_reverse
entity Q7286234
relation P7
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q7286234']
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:P7 resource:Q7286234 . ?s rdf:type ontology:Q502895 }
Rishi Kapoor Ritu Nanda Randhir Kapoor
3
action count
action filter_type
action find_reverse
entity Rajiv Kapoor
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Rajiv Kapoor']
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:brother resource:Rajiv_Kapoor . ?s rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q607363
P915
Q56061
USER
Which location was This Is the End filmed ?
(Q607363,P915,c(Q56061))
action filter_type
action find
entity Q607363
relation P915
type Q56061
['Q607363', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q607363 property:P915 ?l . ?l rdf:type ontology:Q56061 }
This Is the End
action filter_type
action find
entity This Is the End
relation filming location
type administrative territorial entity
['This Is the End', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:This_Is_the_End property:filming_location ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q34404
SYSTEM
New Orleans
Q34404
(Q607363,P915,c(Q56061))
action filter_type
action find
entity Q607363
relation P915
type Q56061
Was This is [ANSWER]
['Q607363', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q607363 property:P915 ?l . ?l rdf:type ontology:Q56061 }
New Orleans
Was This is New Orleans
New Orleans
action filter_type
action find
entity This Is the End
relation filming location
type administrative territorial entity
['This Is the End', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:This_Is_the_End property:filming_location ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q927259
Q56061
USER
And also tell me about The Net 2.0?
(Q927259,P915,c(Q56061))
action filter_type
action find
entity Q927259
relation P915
type Q56061
['Q927259', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q927259 property:P915 ?o . ?o rdf:type ontology:Q56061 }
The Net 2.0
action filter_type
action find
entity The Net 2.0
relation filming location
type administrative territorial entity
['The Net 2.0', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:The_Net_2.0 property:filming_location ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q406
SYSTEM
Istanbul
Q406
(Q927259,P915,c(Q56061))
action filter_type
action find
entity Q927259
relation P915
type Q56061
[ANSWER]
['Q927259', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q927259 property:P915 ?o . ?o rdf:type ontology:Q56061 }
Istanbul
Istanbul
action filter_type
action find
entity The Net 2.0
relation filming location
type administrative territorial entity
['The Net 2.0', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:The_Net_2.0 property:filming_location ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]