Simple Question (Direct)
Simple Question
Q7601595
P1346
Q502895
USER
Which people emerged victorious in Stardust Award for Superstar of Tomorrow – Male ?
(Q7601595,P1346,c(Q502895))
action filter_type
action find
entity Q7601595
relation P1346
type Q502895
['Q7601595', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q7601595 property:P1346 ?i . ?i rdf:type ontology:Q502895 }
Stardust Award for Superstar of Tomorrow – Male
action filter_type
action find
entity Stardust Award for Superstar of Tomorrow – Male
relation winner
type common name
['Stardust Award for Superstar of Tomorrow – Male', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Stardust_Award_for_Superstar_of_Tomorrow_–_Male property:winner ?i . ?i rdf:type ontology:common_name }
[]
common name
Q1063412 Q313025 Q590853
SYSTEM
Ranbir Kapoor, John Abraham, Farhan Akhtar
Q2383191 Q319491 Q590853 Q3633203 Q902879 Q3494501 Q731854 Q16202406 Q3497323 Q1063412 Q313025
(Q7601595,P1346,c(Q502895))
action filter_type
action find
entity Q7601595
relation P1346
type Q502895
[ANSWERS] emerged victorious in Stardust Award for Superstar of Tomorrow – Male
['Q7601595', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q7601595 property:P1346 ?i . ?i rdf:type ontology:Q502895 }
Arjun Kapoor Shahid Kapoor Farhan Akhtar Ali Zafar Ranveer Singh Shiney Ahuja Vivek Oberoi Tiger Shroff Kunal Khemu Ranbir Kapoor John Abraham
Ranbir Kapoor, John Abraham and Farhan Akhtar emerged victorious in Stardust Award for Superstar of Tomorrow – Male
Ranbir Kapoor John Abraham Farhan Akhtar
action filter_type
action find
entity Stardust Award for Superstar of Tomorrow – Male
relation winner
type common name
['Stardust Award for Superstar of Tomorrow – Male', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Stardust_Award_for_Superstar_of_Tomorrow_–_Male property:winner ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1063412 Q313025 Q590853
P106
Q12737077
USER
What do Ranbir Kapoor, John Abraham and Farhan Akhtar do for a living ?
(Q1063412,P106,c(Q12737077)) (Q313025,P106,c(Q12737077)) (Q590853,P106,c(Q12737077))
action union
action filter_type
action find
entity Q1063412
relation P106
type Q12737077
action filter_type
action find
entity Q313025
relation P106
type Q12737077
action filter_type
action find
entity Q590853
relation P106
type Q12737077
['Q1063412', 'P106', {'concept': 'Q12737077'}] ['Q313025', 'P106', {'concept': 'Q12737077'}] ['Q590853', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { VALUES ( ?t ) { ( resource:Q1063412 ) ( resource:Q313025 ) } . ?t property:P106 ?g }
Ranbir Kapoor John Abraham Farhan Akhtar
action union
action filter_type
action find
entity Ranbir Kapoor
relation occupation
type occupation
action filter_type
action find
entity John Abraham
relation occupation
type occupation
action filter_type
action find
entity Farhan Akhtar
relation occupation
type occupation
['Ranbir Kapoor', 'occupation', {'concept': 'occupation'}] ['John Abraham', 'occupation', {'concept': 'occupation'}] ['Farhan Akhtar', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { VALUES ( ?t ) { ( resource:Ranbir_Kapoor ) ( resource:John_Abraham ) } . ?t property:occupation ?g }
[]
occupation
Q822146 Q33999 Q4610556
SYSTEM
lyricist, actor, model
Q33999 Q4610556 Q33999 Q177220 Q33999 Q753110 Q822146
(Q1063412,P106,c(Q12737077)) (Q313025,P106,c(Q12737077)) (Q590853,P106,c(Q12737077))
action union
action filter_type
action find
entity Q1063412
relation P106
type Q12737077
action filter_type
action find
entity Q313025
relation P106
type Q12737077
action filter_type
action find
entity Q590853
relation P106
type Q12737077
Ranbir Kapoor , John Abraham and Farhan Akhtar do for a living the [ANSWERS]
['Q1063412', 'P106', {'concept': 'Q12737077'}] ['Q313025', 'P106', {'concept': 'Q12737077'}] ['Q590853', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { VALUES ( ?t ) { ( resource:Q1063412 ) ( resource:Q313025 ) } . ?t property:P106 ?g }
actor model actor singer actor songwriter lyricist
Ranbir Kapoor , John Abraham and Farhan Akhtar do for a living the lyricist, actor and model
lyricist actor model
action union
action filter_type
action find
entity Ranbir Kapoor
relation occupation
type occupation
action filter_type
action find
entity John Abraham
relation occupation
type occupation
action filter_type
action find
entity Farhan Akhtar
relation occupation
type occupation
['Ranbir Kapoor', 'occupation', {'concept': 'occupation'}] ['John Abraham', 'occupation', {'concept': 'occupation'}] ['Farhan Akhtar', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { VALUES ( ?t ) { ( resource:Ranbir_Kapoor ) ( resource:John_Abraham ) } . ?t property:occupation ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1063412
P161
Q838948
USER
Which works of art have Ranbir Kapoor as actor ?
(c(Q838948),P161,Q822146) (c(Q838948),P161,Q33999) (c(Q838948),P161,Q4610556)
action filter_type
action find_reverse
entity Q1063412
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q822146'] [{'concept': 'Q838948'}, 'P161', 'Q33999'] [{'concept': 'Q838948'}, 'P161', 'Q4610556']
SELECT DISTINCT ?z WHERE { ?z property:P161 resource:Q1063412 . ?z rdf:type ontology:Q838948 }
Ranbir Kapoor
action filter_type
action find_reverse
entity Ranbir Kapoor
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'lyricist'] [{'concept': 'work of art'}, 'cast member', 'actor'] [{'concept': 'work of art'}, 'cast member', 'model']
SELECT DISTINCT ?z WHERE { ?z property:cast_member resource:Ranbir_Kapoor . ?z rdf:type ontology:work_of_art }
[]
work of art
Q2558109 Q7117022 Q8051196
SYSTEM
Barfi!, PK, Yeh Jawaani Hai Deewani
Q18387836 Q21646028 Q7372496 Q2355787 Q3437951 Q7117022 Q3438002 Q4896235 Q3565236 Q1519075 Q685694 Q7141596 Q8051196 Q2558109 Q2850218 Q15044971 Q16247285 Q3415825
(c(Q838948),P161,Q822146) (c(Q838948),P161,Q33999) (c(Q838948),P161,Q4610556)
action filter_type
action find_reverse
entity Q1063412
relation P161
type Q838948
[ANSWERS] have Ranbir Kapoor as actor
[{'concept': 'Q838948'}, 'P161', 'Q822146'] [{'concept': 'Q838948'}, 'P161', 'Q33999'] [{'concept': 'Q838948'}, 'P161', 'Q4610556']
SELECT DISTINCT ?z WHERE { ?z property:P161 resource:Q1063412 . ?z rdf:type ontology:Q838948 }
Tamasha Ae Dil Hai Mushkil Roy Ajab Prem Ki Ghazab Kahani Rocket Singh: Salesman of the Year PK Rockstar Besharam Wake Up Sid Saawariya Bachna Ae Haseeno Pasand Apni Apni Yeh Jawaani Hai Deewani Barfi! Anjaana Anjaani Jagga Jasoos Bombay Velvet Raajneeti
Barfi!, PK and Yeh Jawaani Hai Deewani have Ranbir Kapoor as actor
Barfi! PK Yeh Jawaani Hai Deewani
action filter_type
action find_reverse
entity Ranbir Kapoor
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'lyricist'] [{'concept': 'work of art'}, 'cast member', 'actor'] [{'concept': 'work of art'}, 'cast member', 'model']
SELECT DISTINCT ?z WHERE { ?z property:cast_member resource:Ranbir_Kapoor . ?z rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19312767 Q313025
P27 P17
Q15617994
USER
Which administrative territories do John Abraham belong to or are Korte Wantijkade present in ?
OR((Q313025,P27,c(Q15617994)), (Q19312767,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q313025
relation P27
action find
entity Q19312767
relation P17
type Q15617994
{'OR': [['Q313025', 'P27', {'concept': 'Q15617994'}], ['Q19312767', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q313025 property:P27 ?y } UNION { resource:Q19312767 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Korte Wantijkade John Abraham
action filter_type
action union
action find
entity John Abraham
relation country of citizenship
action find
entity Korte Wantijkade
relation country
type designation for an administrative territorial entity
{'OR': [['John Abraham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Korte Wantijkade', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:John_Abraham property:country_of_citizenship ?y } UNION { resource:Korte_Wantijkade property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55 Q668
SYSTEM
Netherlands, India
Q55 Q668
OR((Q313025,P27,c(Q15617994)), (Q19312767,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q313025
relation P27
action find
entity Q19312767
relation P17
type Q15617994
John Abraham belong or are Korte Wantijkade present in the [ANSWERS]
{'OR': [['Q313025', 'P27', {'concept': 'Q15617994'}], ['Q19312767', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q313025 property:P27 ?y } UNION { resource:Q19312767 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Netherlands India
John Abraham belong or are Korte Wantijkade present in the Netherlands and India
Netherlands India
action filter_type
action union
action find
entity John Abraham
relation country of citizenship
action find
entity Korte Wantijkade
relation country
type designation for an administrative territorial entity
{'OR': [['John Abraham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Korte Wantijkade', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:John_Abraham property:country_of_citizenship ?y } UNION { resource:Korte_Wantijkade property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q838948
USER
How many administrative territories did approximately the same number of film genres and works of art originate as that administrative territory ?
(c(Q201658)|c(Q838948),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:P495 ?y } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:country_of_origin ?y } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
designation for an administrative territorial entity film genre work of art
Comparative|Count over More/Less|Mult. entity type|Clarification
Q668
SYSTEM
Did you mean India ?
(c(Q201658)|c(Q838948),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:P495 ?y } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
Did you mean India ?
India
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:country_of_origin ?y } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q201658)|c(Q838948),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q668
(c(Q201658)|c(Q838948),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
India
1
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q471854
P69
Q3918
USER
Where was Jack Abramoff educated ?
(Q471854,P69,c(Q3918))
action filter_type
action find
entity Q471854
relation P69
type Q3918
['Q471854', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?g WHERE { resource:Q471854 property:P69 ?g . ?g rdf:type ontology:Q3918 }
Jack Abramoff
action filter_type
action find
entity Jack Abramoff
relation educated at
type university
['Jack Abramoff', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?g WHERE { resource:Jack_Abramoff property:educated_at ?g . ?g rdf:type ontology:university }
[]
university
Q846101
SYSTEM
Georgetown University Law Center
Q846101
(Q471854,P69,c(Q3918))
action filter_type
action find
entity Q471854
relation P69
type Q3918
Jack Abramoff was educated at [ANSWER]
['Q471854', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?g WHERE { resource:Q471854 property:P69 ?g . ?g rdf:type ontology:Q3918 }
Georgetown University Law Center
Jack Abramoff was educated at Georgetown University Law Center
Georgetown University Law Center
action filter_type
action find
entity Jack Abramoff
relation educated at
type university
['Jack Abramoff', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?g WHERE { resource:Jack_Abramoff property:educated_at ?g . ?g rdf:type ontology:university }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7506506
Q3918
USER
And what about Sia Michel?
(Q7506506,P69,c(Q3918))
action filter_type
action find
entity Q7506506
relation P69
type Q3918
['Q7506506', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?q WHERE { resource:Q7506506 property:P69 ?q . ?q rdf:type ontology:Q3918 }
Sia Michel
action filter_type
action find
entity Sia Michel
relation educated at
type university
['Sia Michel', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?q WHERE { resource:Sia_Michel property:educated_at ?q . ?q rdf:type ontology:university }
[]
university
Q7896088
SYSTEM
University of Pennsylvania Law School
Q7896088
(Q7506506,P69,c(Q3918))
action filter_type
action find
entity Q7506506
relation P69
type Q3918
[ANSWER]
['Q7506506', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?q WHERE { resource:Q7506506 property:P69 ?q . ?q rdf:type ontology:Q3918 }
University of Pennsylvania Law School
University of Pennsylvania Law School
action filter_type
action find
entity Sia Michel
relation educated at
type university
['Sia Michel', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?q WHERE { resource:Sia_Michel property:educated_at ?q . ?q rdf:type ontology:university }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q7896088 Q30 Q1338516
P17
Q15617994
USER
Is that university located in United States of America and Suxian District ?
(Q7896088,P17,Q30) (Q7896088,P17,Q1338516)
action is_in
entity Q7896088
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q1338516
relation P17
['Q7896088', 'P17', 'Q30'] ['Q7896088', 'P17', 'Q1338516']
ASK WHERE { resource:Q7896088 property:P17 resource:Q30 . resource:Q7896088 property:P17 resource:Q1338516 }
University of Pennsylvania Law School United States of America Suxian District
action is_in
entity University of Pennsylvania Law School
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Suxian District
relation country
['University of Pennsylvania Law School', 'country', 'United States of America'] ['University of Pennsylvania Law School', 'country', 'Suxian District']
ASK WHERE { resource:University_of_Pennsylvania_Law_School property:country resource:United_States_of_America . resource:University_of_Pennsylvania_Law_School property:country resource:Suxian_District }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q7896088,P17,Q30) (Q7896088,P17,Q1338516)
action is_in
entity Q7896088
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q1338516
relation P17
[ANSWER]
['Q7896088', 'P17', 'Q30'] ['Q7896088', 'P17', 'Q1338516']
ASK WHERE { resource:Q7896088 property:P17 resource:Q30 . resource:Q7896088 property:P17 resource:Q1338516 }
YES and NO respectively
action is_in
entity University of Pennsylvania Law School
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Suxian District
relation country
['University of Pennsylvania Law School', 'country', 'United States of America'] ['University of Pennsylvania Law School', 'country', 'Suxian District']
ASK WHERE { resource:University_of_Pennsylvania_Law_School property:country resource:United_States_of_America . resource:University_of_Pennsylvania_Law_School property:country resource:Suxian_District }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q313025 Q372261
P27
Q15617994
USER
Is Ravanusa the native country of John Abraham ?
(Q313025,P27,Q372261)
action is_in
entity Q372261
action find
entity Q313025
relation P27
['Q313025', 'P27', 'Q372261']
ASK WHERE { resource:Q313025 property:P27 resource:Q372261 }
John Abraham Ravanusa
action is_in
entity Ravanusa
action find
entity John Abraham
relation country of citizenship
['John Abraham', 'country of citizenship', 'Ravanusa']
ASK WHERE { resource:John_Abraham property:country_of_citizenship resource:Ravanusa }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q313025,P27,Q372261)
action is_in
entity Q372261
action find
entity Q313025
relation P27
[ANSWER]
['Q313025', 'P27', 'Q372261']
ASK WHERE { resource:Q313025 property:P27 resource:Q372261 }
No
action is_in
entity Ravanusa
action find
entity John Abraham
relation country of citizenship
['John Abraham', 'country of citizenship', 'Ravanusa']
ASK WHERE { resource:John_Abraham property:country_of_citizenship resource:Ravanusa }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q313025 Q468616
P451
Q502895
USER
How many people had John Abraham or Martin I of Sicily as their girlfriend ?
(c(Q502895),P451,Q313025) (c(Q502895),P451,Q468616)
action count
action union
action filter_type
action find_reverse
entity Q313025
relation P451
type Q502895
action filter_type
action find_reverse
entity Q468616
relation P451
type Q502895
[{'concept': 'Q502895'}, 'P451', 'Q313025'] [{'concept': 'Q502895'}, 'P451', 'Q468616']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d property:P451 ?l . VALUES ( ?l ) { ( resource:Q313025 ) ( resource:Q468616 ) } }
John Abraham Martin I of Sicily
action count
action union
action filter_type
action find_reverse
entity John Abraham
relation partner
type common name
action filter_type
action find_reverse
entity Martin I of Sicily
relation partner
type common name
[{'concept': 'common name'}, 'partner', 'John Abraham'] [{'concept': 'common name'}, 'partner', 'Martin I of Sicily']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d property:partner ?l . VALUES ( ?l ) { ( resource:John_Abraham ) ( resource:Martin_I_of_Sicily ) } }
[]
common name
SYSTEM
2
Q19050882 Q158214
(c(Q502895),P451,Q313025) (c(Q502895),P451,Q468616)
action count
action union
action filter_type
action find_reverse
entity Q313025
relation P451
type Q502895
action filter_type
action find_reverse
entity Q468616
relation P451
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P451', 'Q313025'] [{'concept': 'Q502895'}, 'P451', 'Q468616']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d property:P451 ?l . VALUES ( ?l ) { ( resource:Q313025 ) ( resource:Q468616 ) } }
Agatuccia Pesce Bipasha Basu
2
action count
action union
action filter_type
action find_reverse
entity John Abraham
relation partner
type common name
action filter_type
action find_reverse
entity Martin I of Sicily
relation partner
type common name
[{'concept': 'common name'}, 'partner', 'John Abraham'] [{'concept': 'common name'}, 'partner', 'Martin I of Sicily']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d property:partner ?l . VALUES ( ?l ) { ( resource:John_Abraham ) ( resource:Martin_I_of_Sicily ) } }
[]