Simple Question (Direct)
Simple Question
Q913553
P344
Q502895
USER
Who is the director of photography for Sense and Sensibility ?
(Q913553,P344,c(Q502895))
action filter_type
action find
entity Q913553
relation P344
type Q502895
['Q913553', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q913553 property:P344 ?x . ?x rdf:type ontology:Q502895 }
Sense and Sensibility
action filter_type
action find
entity Sense and Sensibility
relation director of photography
type common name
['Sense and Sensibility', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Sense_and_Sensibility property:director_of_photography ?x . ?x rdf:type ontology:common_name }
[]
common name
Q766802
SYSTEM
Sean Bobbitt
Q766802
(Q913553,P344,c(Q502895))
action filter_type
action find
entity Q913553
relation P344
type Q502895
The director of photography for Sense and Sensibility is to [ANSWER]
['Q913553', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q913553 property:P344 ?x . ?x rdf:type ontology:Q502895 }
Sean Bobbitt
The director of photography for Sense and Sensibility is to Sean Bobbitt
Sean Bobbitt
action filter_type
action find
entity Sense and Sensibility
relation director of photography
type common name
['Sense and Sensibility', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Sense_and_Sensibility property:director_of_photography ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q766802
P1346
Q4220917
USER
Where was that person decalred as a champion ?
(c(Q4220917),P1346,Q766802)
action filter_type
action find_reverse
entity Q766802
relation P1346
type Q4220917
[{'concept': 'Q4220917'}, 'P1346', 'Q766802']
SELECT DISTINCT ?l WHERE { ?l property:P1346 resource:Q766802 . ?l rdf:type ontology:Q4220917 }
Sean Bobbitt
action filter_type
action find_reverse
entity Sean Bobbitt
relation winner
type film award
[{'concept': 'film award'}, 'winner', 'Sean Bobbitt']
SELECT DISTINCT ?l WHERE { ?l property:winner resource:Sean_Bobbitt . ?l rdf:type ontology:film_award }
[]
film award
Q1377733
SYSTEM
European Film Award for Best Cinematographer
Q1377733
(c(Q4220917),P1346,Q766802)
action filter_type
action find_reverse
entity Q766802
relation P1346
type Q4220917
The [ANSWER] that person was decalred as a champion
[{'concept': 'Q4220917'}, 'P1346', 'Q766802']
SELECT DISTINCT ?l WHERE { ?l property:P1346 resource:Q766802 . ?l rdf:type ontology:Q4220917 }
European Film Award for Best Cinematographer
The European Film Award for Best Cinematographer that person was decalred as a champion
European Film Award for Best Cinematographer
action filter_type
action find_reverse
entity Sean Bobbitt
relation winner
type film award
[{'concept': 'film award'}, 'winner', 'Sean Bobbitt']
SELECT DISTINCT ?l WHERE { ?l property:winner resource:Sean_Bobbitt . ?l rdf:type ontology:film_award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1377733
P166
Q838948
USER
Which works of art were awarded with that film award ?
(c(Q838948),P166,Q1377733)
action filter_type
action find_reverse
entity Q1377733
relation P166
type Q838948
[{'concept': 'Q838948'}, 'P166', 'Q1377733']
SELECT DISTINCT ?i WHERE { ?i property:P166 resource:Q1377733 . ?i rdf:type ontology:Q838948 }
European Film Award for Best Cinematographer
action filter_type
action find_reverse
entity European Film Award for Best Cinematographer
relation award received
type work of art
[{'concept': 'work of art'}, 'award received', 'European Film Award for Best Cinematographer']
SELECT DISTINCT ?i WHERE { ?i property:award_received resource:European_Film_Award_for_Best_Cinematographer . ?i rdf:type ontology:work_of_art }
[]
work of art
Q1165770 Q1146711 Q1142358
SYSTEM
Gomorrah, The Legend of 1900, Lebanon
Q1165770 Q1146711 Q1142358
(c(Q838948),P166,Q1377733)
action filter_type
action find_reverse
entity Q1377733
relation P166
type Q838948
[ANSWERS] were awarded with that film award
[{'concept': 'Q838948'}, 'P166', 'Q1377733']
SELECT DISTINCT ?i WHERE { ?i property:P166 resource:Q1377733 . ?i rdf:type ontology:Q838948 }
Gomorrah The Legend of 1900 Lebanon
Gomorrah, The Legend of 1900 and Lebanon were awarded with that film award
Gomorrah The Legend of 1900 Lebanon
action filter_type
action find_reverse
entity European Film Award for Best Cinematographer
relation award received
type work of art
[{'concept': 'work of art'}, 'award received', 'European Film Award for Best Cinematographer']
SELECT DISTINCT ?i WHERE { ?i property:award_received resource:European_Film_Award_for_Best_Cinematographer . ?i rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q838948 Q386724 Q11060274
USER
Which works of art are depicted in around 1 works and prints ?
(c(Q386724)|c(Q11060274),P180,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q386724
action find_reverse_tuple_counts
relation P180
type Q838948
type Q11060274
value 1
[[{'concept': 'Q386724'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?i ) WHERE { { ?k rdf:type ontology:Q838948 . ?d rdf:type ontology:Q386724 . ?d property:P180 ?k } UNION { ?d property:P180 ?k . ?k rdf:type ontology:Q838948 . ?d rdf:type ontology:Q11060274 } } GROUP BY ?k } . FILTER ( ?i = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type work
action find_reverse_tuple_counts
relation depicts
type work of art
type print
value 1
[[{'concept': 'work'}, {'concept': 'print'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?i ) WHERE { { ?k rdf:type ontology:work_of_art . ?d rdf:type ontology:work . ?d property:depicts ?k } UNION { ?d property:depicts ?k . ?k rdf:type ontology:work_of_art . ?d rdf:type ontology:print } } GROUP BY ?k } . FILTER ( ?i = 1 ) }
[]
work of art work print
Q3143107 Q143912 Q215194
SYSTEM
Humains, triumphal arch, gargoyle
Q143912 Q215194 Q831869 Q1350279 Q3143107 Q183272
(c(Q386724)|c(Q11060274),P180,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q386724
action find_reverse_tuple_counts
relation P180
type Q838948
type Q11060274
value 1
[ANSWERS] are depicted in around 1 works and prints
[[{'concept': 'Q386724'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?i ) WHERE { { ?k rdf:type ontology:Q838948 . ?d rdf:type ontology:Q386724 . ?d property:P180 ?k } UNION { ?d property:P180 ?k . ?k rdf:type ontology:Q838948 . ?d rdf:type ontology:Q11060274 } } GROUP BY ?k } . FILTER ( ?i = 1 ) }
triumphal arch gargoyle oenochoe pyxis Humains frieze
Humains, triumphal arch and gargoyle are depicted in around 1 works and prints
Humains triumphal arch gargoyle
action approx
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type work
action find_reverse_tuple_counts
relation depicts
type work of art
type print
value 1
[[{'concept': 'work'}, {'concept': 'print'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?i ) WHERE { { ?k rdf:type ontology:work_of_art . ?d rdf:type ontology:work . ?d property:depicts ?k } UNION { ?d property:depicts ?k . ?k rdf:type ontology:work_of_art . ?d rdf:type ontology:print } } GROUP BY ?k } . FILTER ( ?i = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q12612257
P161
Q838948
USER
How many works of art stars Lee Won-jong as actor ?
(c(Q838948),P161,Q12612257)
action count
action filter_type
action find_reverse
entity Q12612257
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q12612257']
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { ?q rdf:type ontology:Q838948 . ?q property:P161 resource:Q12612257 }
Lee Won-jong
action count
action filter_type
action find_reverse
entity Lee Won-jong
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Lee Won-jong']
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { ?q rdf:type ontology:work_of_art . ?q property:cast_member resource:Lee_Won-jong }
[]
work of art
SYSTEM
6
Q7712207 Q5475581 Q626803 Q7195952 Q562737 Q3473448
(c(Q838948),P161,Q12612257)
action count
action filter_type
action find_reverse
entity Q12612257
relation P161
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q12612257']
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { ?q rdf:type ontology:Q838948 . ?q property:P161 resource:Q12612257 }
The Accidental Gangster and the Mistaken Courtesan Four Toes Nowhere to Hide Pink My Wife Is a Gangster 2 The Foul King
6
action count
action filter_type
action find_reverse
entity Lee Won-jong
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Lee Won-jong']
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { ?q rdf:type ontology:work_of_art . ?q property:cast_member resource:Lee_Won-jong }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q258820
P22
Q502895
USER
Who have Rishi Kapoor as a father ?
(c(Q502895),P22,Q258820)
action filter_type
action find_reverse
entity Q258820
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q258820']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P22 resource:Q258820 }
Rishi Kapoor
action filter_type
action find_reverse
entity Rishi Kapoor
relation father
type common name
[{'concept': 'common name'}, 'father', 'Rishi Kapoor']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:father resource:Rishi_Kapoor }
[]
common name
Q1063412 Q23931760
SYSTEM
Ranbir Kapoor, Riddhima Kapoor Sahani
Q1063412 Q23931760
(c(Q502895),P22,Q258820)
action filter_type
action find_reverse
entity Q258820
relation P22
type Q502895
[ANSWERS] have Rishi Kapoor as a father
[{'concept': 'Q502895'}, 'P22', 'Q258820']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P22 resource:Q258820 }
Ranbir Kapoor Riddhima Kapoor Sahani
Ranbir Kapoor and Riddhima Kapoor Sahani have Rishi Kapoor as a father
Ranbir Kapoor Riddhima Kapoor Sahani
action filter_type
action find_reverse
entity Rishi Kapoor
relation father
type common name
[{'concept': 'common name'}, 'father', 'Rishi Kapoor']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:father resource:Rishi_Kapoor }
[]
Clarification
Simple Question|Single Entity|Indirect
Q23931760
P40
Q502895
USER
Who have that one as an offspring ?
(c(Q502895),P40,Q23931760)
action filter_type
action find_reverse
entity Q23931760
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q23931760']
SELECT DISTINCT ?y WHERE { ?y property:P40 resource:Q23931760 . ?y rdf:type ontology:Q502895 }
Riddhima Kapoor Sahani
action filter_type
action find_reverse
entity Riddhima Kapoor Sahani
relation child
type common name
[{'concept': 'common name'}, 'child', 'Riddhima Kapoor Sahani']
SELECT DISTINCT ?y WHERE { ?y property:child resource:Riddhima_Kapoor_Sahani . ?y rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1063412
SYSTEM
Did you mean Ranbir Kapoor ?
Q1063412 Q23931760
(c(Q502895),P40,Q1063412) (c(Q502895),P40,Q23931760)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q1063412'] [{'concept': 'Q502895'}, 'P40', 'Q23931760']
SELECT DISTINCT ?y WHERE { ?y property:P40 resource:Q23931760 . ?y rdf:type ontology:Q502895 }
Ranbir Kapoor Riddhima Kapoor Sahani
Did you mean Ranbir Kapoor ?
Ranbir Kapoor
[{'concept': 'common name'}, 'child', 'Ranbir Kapoor'] [{'concept': 'common name'}, 'child', 'Riddhima Kapoor Sahani']
SELECT DISTINCT ?y WHERE { ?y property:child resource:Riddhima_Kapoor_Sahani . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Riddhima Kapoor Sahani. Could you tell me the answer for that?
(c(Q502895),P40,Q23931760)
Q23931760
[{'concept': 'Q502895'}, 'P40', 'Q23931760']
[{'concept': 'common name'}, 'child', 'Riddhima Kapoor Sahani']
[]
Q12069158 Q258820
SYSTEM
Neetu Singh, Rishi Kapoor
Q12069158 Q258820
(c(Q502895),P40,Q23931760)
action filter_type
action find_reverse
entity Q23931760
relation P40
type Q502895
[ANSWERS] have that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q23931760']
SELECT DISTINCT ?y WHERE { ?y property:P40 resource:Q23931760 . ?y rdf:type ontology:Q502895 }
Neetu Singh Rishi Kapoor
Neetu Singh and Rishi Kapoor have that one as an offspring
Neetu Singh Rishi Kapoor
action filter_type
action find_reverse
entity Riddhima Kapoor Sahani
relation child
type common name
[{'concept': 'common name'}, 'child', 'Riddhima Kapoor Sahani']
SELECT DISTINCT ?y WHERE { ?y property:child resource:Riddhima_Kapoor_Sahani . ?y rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q134895 Q1165770
P1411
Q4220917
USER
Which film awards do Gomorrah but not Javier Bardem have ?
AND((Q1165770,P1411,c(Q4220917)), NOT((Q134895,P1411,c(Q4220917))))
action filter_type
action difference
action find
entity Q1165770
relation P1411
action find
entity Q134895
relation P1411
type Q4220917
{'AND': [['Q1165770', 'P1411', {'concept': 'Q4220917'}], {'NOT': [['Q134895', 'P1411', {'concept': 'Q4220917'}]]}]}
SELECT DISTINCT ?o WHERE { resource:Q1165770 property:P1411 ?o . FILTER NOT EXISTS { resource:Q134895 property:P1411 ?o } . ?o rdf:type ontology:Q4220917 }
Javier Bardem Gomorrah
action filter_type
action difference
action find
entity Gomorrah
relation nominated for
action find
entity Javier Bardem
relation nominated for
type film award
{'AND': [['Gomorrah', 'nominated for', {'concept': 'film award'}], {'NOT': [['Javier Bardem', 'nominated for', {'concept': 'film award'}]]}]}
SELECT DISTINCT ?o WHERE { resource:Gomorrah property:nominated_for ?o . FILTER NOT EXISTS { resource:Javier_Bardem property:nominated_for ?o } . ?o rdf:type ontology:film_award }
[]
film award
Q387380 Q1377755 Q2925687 Q1377733 Q768476 Q777921 Q1377777 Q2354778
SYSTEM
Golden Globe Award for Best Foreign Language Film, European Film Award for Best Director, BAFTA Award for Best Film Not in the English Language, European Film Award for Best Cinematographer, David di Donatello for Best Film, European Film Award for Best Film, European Film Award for Best Screenwriter, Satellite Award for Best Foreign Language Film
Q387380 Q1377755 Q2925687 Q1377733 Q768476 Q777921 Q1377777 Q2354778
AND((Q1165770,P1411,c(Q4220917)), NOT((Q134895,P1411,c(Q4220917))))
action filter_type
action difference
action find
entity Q1165770
relation P1411
action find
entity Q134895
relation P1411
type Q4220917
Gomorrah but not Javier Bardem have won [ANSWERS]
{'AND': [['Q1165770', 'P1411', {'concept': 'Q4220917'}], {'NOT': [['Q134895', 'P1411', {'concept': 'Q4220917'}]]}]}
SELECT DISTINCT ?o WHERE { resource:Q1165770 property:P1411 ?o . FILTER NOT EXISTS { resource:Q134895 property:P1411 ?o } . ?o rdf:type ontology:Q4220917 }
Golden Globe Award for Best Foreign Language Film European Film Award for Best Director BAFTA Award for Best Film Not in the English Language European Film Award for Best Cinematographer David di Donatello for Best Film European Film Award for Best Film European Film Award for Best Screenwriter Satellite Award for Best Foreign Language Film
Gomorrah but not Javier Bardem have won Golden Globe Award for Best Foreign Language Film, European Film Award for Best Director, BAFTA Award for Best Film Not in the English Language, European Film Award for Best Cinematographer, David di Donatello for Best Film, European Film Award for Best Film, European Film Award for Best Screenwriter and Satellite Award for Best Foreign Language Film
Golden Globe Award for Best Foreign Language Film European Film Award for Best Director BAFTA Award for Best Film Not in the English Language European Film Award for Best Cinematographer David di Donatello for Best Film European Film Award for Best Film European Film Award for Best Screenwriter Satellite Award for Best Foreign Language Film
action filter_type
action difference
action find
entity Gomorrah
relation nominated for
action find
entity Javier Bardem
relation nominated for
type film award
{'AND': [['Gomorrah', 'nominated for', {'concept': 'film award'}], {'NOT': [['Javier Bardem', 'nominated for', {'concept': 'film award'}]]}]}
SELECT DISTINCT ?o WHERE { resource:Gomorrah property:nominated_for ?o . FILTER NOT EXISTS { resource:Javier_Bardem property:nominated_for ?o } . ?o rdf:type ontology:film_award }
[]