Simple Question (Direct)
Simple Question
Q4780033
P86
Q502895
USER
Which person composed Apne ?
(Q4780033,P86,c(Q502895))
action filter_type
action find
entity Q4780033
relation P86
type Q502895
['Q4780033', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q4780033 property:P86 ?x . ?x rdf:type ontology:Q502895 }
Apne
action filter_type
action find
entity Apne
relation composer
type common name
['Apne', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Apne property:composer ?x . ?x rdf:type ontology:common_name }
[]
common name
Q1395430
SYSTEM
Himesh Reshammiya
Q1395430
(Q4780033,P86,c(Q502895))
action filter_type
action find
entity Q4780033
relation P86
type Q502895
I [ANSWER] composed Apne
['Q4780033', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q4780033 property:P86 ?x . ?x rdf:type ontology:Q502895 }
Himesh Reshammiya
I Himesh Reshammiya composed Apne
Himesh Reshammiya
action filter_type
action find
entity Apne
relation composer
type common name
['Apne', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Apne property:composer ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4780033
P57
Q502895
USER
Which person directed Apne ?
(Q4780033,P57,c(Q502895))
action filter_type
action find
entity Q4780033
relation P57
type Q502895
['Q4780033', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q4780033 property:P57 ?v }
Apne
action filter_type
action find
entity Apne
relation director
type common name
['Apne', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Apne property:director ?v }
[]
common name
Q4764669
SYSTEM
Anil Sharma
Q4764669
(Q4780033,P57,c(Q502895))
action filter_type
action find
entity Q4780033
relation P57
type Q502895
Raj [ANSWER] directed Apne
['Q4780033', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q4780033 property:P57 ?v }
Anil Sharma
Raj Anil Sharma directed Apne
Anil Sharma
action filter_type
action find
entity Apne
relation director
type common name
['Apne', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Apne property:director ?v }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6838566
Q502895
USER
And what about Mickey's Surprise?
(Q6838566,P57,c(Q502895))
action filter_type
action find
entity Q6838566
relation P57
type Q502895
['Q6838566', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q6838566 property:P57 ?v . ?v rdf:type ontology:Q502895 }
Mickey's Surprise
action filter_type
action find
entity Mickey's Surprise
relation director
type common name
["Mickey's Surprise", 'director', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Mickey's_Surprise property:director ?v . ?v rdf:type ontology:common_name }
[]
common name
Q2831238
SYSTEM
Albert Herman
Q2831238
(Q6838566,P57,c(Q502895))
action filter_type
action find
entity Q6838566
relation P57
type Q502895
[ANSWER]
['Q6838566', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q6838566 property:P57 ?v . ?v rdf:type ontology:Q502895 }
Albert Herman
Albert Herman
action filter_type
action find
entity Mickey's Surprise
relation director
type common name
["Mickey's Surprise", 'director', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Mickey's_Surprise property:director ?v . ?v rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q2831238 Q33999
P106
Q12737077
USER
Does actor have that person as his/her as a career ?
(Q2831238,P106,Q33999)
action is_in
entity Q33999
action find
entity Q2831238
relation P106
['Q2831238', 'P106', 'Q33999']
ASK WHERE { resource:Q2831238 property:P106 resource:Q33999 }
Albert Herman actor
action is_in
entity actor
action find
entity Albert Herman
relation occupation
['Albert Herman', 'occupation', 'actor']
ASK WHERE { resource:Albert_Herman property:occupation resource:actor }
[]
occupation
SYSTEM
YES
(Q2831238,P106,Q33999)
action is_in
entity Q33999
action find
entity Q2831238
relation P106
[ANSWER]
['Q2831238', 'P106', 'Q33999']
ASK WHERE { resource:Q2831238 property:P106 resource:Q33999 }
Yes
action is_in
entity actor
action find
entity Albert Herman
relation occupation
['Albert Herman', 'occupation', 'actor']
ASK WHERE { resource:Albert_Herman property:occupation resource:actor }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2268296 Q4780033
P161
Q502895
USER
Which people starred in Apne or Clockers ?
OR((Q4780033,P161,c(Q502895)), (Q2268296,P161,c(Q502895)))
action filter_type
action union
action find
entity Q4780033
relation P161
action find
entity Q2268296
relation P161
type Q502895
{'OR': [['Q4780033', 'P161', {'concept': 'Q502895'}], ['Q2268296', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q4780033 property:P161 ?l } UNION { resource:Q2268296 property:P161 ?l } } . ?l rdf:type ontology:Q502895 }
Clockers Apne
action filter_type
action union
action find
entity Apne
relation cast member
action find
entity Clockers
relation cast member
type common name
{'OR': [['Apne', 'cast member', {'concept': 'common name'}], ['Clockers', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Apne property:cast_member ?l } UNION { resource:Clockers property:cast_member ?l } } . ?l rdf:type ontology:common_name }
[]
common name
Q244234 Q370918 Q270665 Q119676 Q51566 Q158136 Q944546 Q714675 Q362559 Q438014
SYSTEM
Some of them are John Turturro, Keith David, Shilpa Shetty, Mekhi Phifer, Spike Lee, Kirron Kher, Sunny Deol, Michael Badalucco, Delroy Lindo, Regina Taylor
Q51566 Q119676 Q244234 Q40048 Q704742 Q317358 Q9550 Q714675 Q438014 Q944546 Q362559 Q191132 Q270665 Q2434817 Q370918 Q48619 Q158136
OR((Q4780033,P161,c(Q502895)), (Q2268296,P161,c(Q502895)))
action filter_type
action union
action find
entity Q4780033
relation P161
action find
entity Q2268296
relation P161
type Q502895
[ANSWERS] starred in Apne or Clockers
{'OR': [['Q4780033', 'P161', {'concept': 'Q502895'}], ['Q2268296', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q4780033 property:P161 ?l } UNION { resource:Q2268296 property:P161 ?l } } . ?l rdf:type ontology:Q502895 }
Spike Lee Mekhi Phifer John Turturro Isaiah Washington Sticky Fingaz Michael Imperioli Katrina Kaif Michael Badalucco Regina Taylor Sunny Deol Delroy Lindo Harvey Keitel Shilpa Shetty Paul Calderón Keith David Bobby Deol Kirron Kher
John Turturro, Keith David, Shilpa Shetty, Mekhi Phifer, Spike Lee, Kirron Kher, Sunny Deol, Michael Badalucco, Delroy Lindo and Regina Taylor starred in Apne or Clockers
John Turturro Keith David Shilpa Shetty Mekhi Phifer Spike Lee Kirron Kher Sunny Deol Michael Badalucco Delroy Lindo Regina Taylor
action filter_type
action union
action find
entity Apne
relation cast member
action find
entity Clockers
relation cast member
type common name
{'OR': [['Apne', 'cast member', {'concept': 'common name'}], ['Clockers', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Apne property:cast_member ?l } UNION { resource:Clockers property:cast_member ?l } } . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q51566
P106
Q28640 Q12737077
USER
How many professions or occupations do Spike Lee do for a living ?
(Q51566,P106,c(Q28640)) (Q51566,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q51566
relation P106
type Q28640
action filter_type
action find
entity Q51566
relation P106
type Q12737077
['Q51566', 'P106', {'concept': 'Q28640'}] ['Q51566', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { ?l rdf:type ontology:Q28640 . resource:Q51566 property:P106 ?l } UNION { resource:Q51566 property:P106 ?l . ?l rdf:type ontology:Q12737077 } }
Spike Lee
action count
action union
action filter_type
action find
entity Spike Lee
relation occupation
type profession
action filter_type
action find
entity Spike Lee
relation occupation
type occupation
['Spike Lee', 'occupation', {'concept': 'profession'}] ['Spike Lee', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { ?l rdf:type ontology:profession . resource:Spike_Lee property:occupation ?l } UNION { resource:Spike_Lee property:occupation ?l . ?l rdf:type ontology:occupation } }
[]
profession occupation
SYSTEM
5
Q7042855 Q33999 Q2526255 Q3282637 Q28389
(Q51566,P106,c(Q28640)) (Q51566,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q51566
relation P106
type Q28640
action filter_type
action find
entity Q51566
relation P106
type Q12737077
[ANSWER]
['Q51566', 'P106', {'concept': 'Q28640'}] ['Q51566', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { ?l rdf:type ontology:Q28640 . resource:Q51566 property:P106 ?l } UNION { resource:Q51566 property:P106 ?l . ?l rdf:type ontology:Q12737077 } }
film editor actor film director film producer screenwriter
5
action count
action union
action filter_type
action find
entity Spike Lee
relation occupation
type profession
action filter_type
action find
entity Spike Lee
relation occupation
type occupation
['Spike Lee', 'occupation', {'concept': 'profession'}] ['Spike Lee', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { ?l rdf:type ontology:profession . resource:Spike_Lee property:occupation ?l } UNION { resource:Spike_Lee property:occupation ?l . ?l rdf:type ontology:occupation } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q111595 Q4780033
P47 P495
Q15617994
USER
Which administrative territories are the origins of Apne or share border with Remedello ?
OR((Q4780033,P495,c(Q15617994)), (Q111595,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q4780033
relation P495
action find
entity Q111595
relation P47
type Q15617994
{'OR': [['Q4780033', 'P495', {'concept': 'Q15617994'}], ['Q111595', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . { { resource:Q4780033 property:P495 ?u } UNION { resource:Q111595 property:P47 ?u } } }
Remedello Apne
action filter_type
action union
action find
entity Apne
relation country of origin
action find
entity Remedello
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Apne', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Remedello', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Apne property:country_of_origin ?u } UNION { resource:Remedello property:shares_border_with ?u } } }
[]
designation for an administrative territorial entity
Q104598 Q112221 Q104616 Q668 Q42288 Q42151 Q104920
SYSTEM
Fiesse, Visano, Gambara, India, Asola, Casalmoro, Isorella
Q104598 Q112221 Q104616 Q668 Q42288 Q42151 Q104920
OR((Q4780033,P495,c(Q15617994)), (Q111595,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q4780033
relation P495
action find
entity Q111595
relation P47
type Q15617994
[ANSWERS] are the origins of Apne or share border with Remedello
{'OR': [['Q4780033', 'P495', {'concept': 'Q15617994'}], ['Q111595', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . { { resource:Q4780033 property:P495 ?u } UNION { resource:Q111595 property:P47 ?u } } }
Fiesse Visano Gambara India Asola Casalmoro Isorella
Fiesse, Visano, Gambara, India, Asola, Casalmoro and Isorella are the origins of Apne or share border with Remedello
Fiesse Visano Gambara India Asola Casalmoro Isorella
action filter_type
action union
action find
entity Apne
relation country of origin
action find
entity Remedello
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Apne', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Remedello', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Apne property:country_of_origin ?u } UNION { resource:Remedello property:shares_border_with ?u } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1775143 Q112221
P47 P19
Q56061
USER
Which administrative territories share border with Visano or were Tino Insana born in ?
OR((Q112221,P47,c(Q56061)), (Q1775143,P19,c(Q56061)))
action filter_type
action union
action find
entity Q112221
relation P47
action find
entity Q1775143
relation P19
type Q56061
{'OR': [['Q112221', 'P47', {'concept': 'Q56061'}], ['Q1775143', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1775143 property:P19 ?f } UNION { resource:Q112221 property:P47 ?f } } . ?f rdf:type ontology:Q56061 }
Tino Insana Visano
action filter_type
action union
action find
entity Visano
relation shares border with
action find
entity Tino Insana
relation place of birth
type administrative territorial entity
{'OR': [['Visano', 'shares border with', {'concept': 'administrative territorial entity'}], ['Tino Insana', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Tino_Insana property:place_of_birth ?f } UNION { resource:Visano property:shares_border_with ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q103402 Q1297
SYSTEM
Acquafredda, Chicago
Q103402 Q1297
OR((Q112221,P47,c(Q56061)), (Q1775143,P19,c(Q56061)))
action filter_type
action union
action find
entity Q112221
relation P47
action find
entity Q1775143
relation P19
type Q56061
[ANSWERS] share border with Visano or were Tino Insana born in
{'OR': [['Q112221', 'P47', {'concept': 'Q56061'}], ['Q1775143', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1775143 property:P19 ?f } UNION { resource:Q112221 property:P47 ?f } } . ?f rdf:type ontology:Q56061 }
Acquafredda Chicago
Acquafredda and Chicago share border with Visano or were Tino Insana born in
Acquafredda Chicago
action filter_type
action union
action find
entity Visano
relation shares border with
action find
entity Tino Insana
relation place of birth
type administrative territorial entity
{'OR': [['Visano', 'shares border with', {'concept': 'administrative territorial entity'}], ['Tino Insana', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Tino_Insana property:place_of_birth ?f } UNION { resource:Visano property:shares_border_with ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1775143
P50
Q2342494
USER
Which collectable has Tino Insana as its author ?
(c(Q2342494),P50,Q1775143)
action filter_type
action find_reverse
entity Q1775143
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q1775143']
SELECT DISTINCT ?d WHERE { ?d property:P50 resource:Q1775143 . ?d rdf:type ontology:Q2342494 }
Tino Insana
action filter_type
action find_reverse
entity Tino Insana
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Tino Insana']
SELECT DISTINCT ?d WHERE { ?d property:author resource:Tino_Insana . ?d rdf:type ontology:collectable }
[]
collectable
Q4930450
SYSTEM
Blues Brothers: Private
Q4930450
(c(Q2342494),P50,Q1775143)
action filter_type
action find_reverse
entity Q1775143
relation P50
type Q2342494
[ANSWER] has Tino Insana as its author
[{'concept': 'Q2342494'}, 'P50', 'Q1775143']
SELECT DISTINCT ?d WHERE { ?d property:P50 resource:Q1775143 . ?d rdf:type ontology:Q2342494 }
Blues Brothers: Private
Blues Brothers: Private has Tino Insana as its author
Blues Brothers: Private
action filter_type
action find_reverse
entity Tino Insana
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Tino Insana']
SELECT DISTINCT ?d WHERE { ?d property:author resource:Tino_Insana . ?d rdf:type ontology:collectable }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q460952 Q1775143
P50
Q2342494
USER
Or Charles Nordhoff?
OR((c(Q2342494),P50,Q1775143), (c(Q2342494),P50,Q460952))
action filter_type
action union
action find_reverse
entity Q1775143
relation P50
action find_reverse
entity Q460952
relation P50
type Q2342494
{'OR': [[{'concept': 'Q2342494'}, 'P50', 'Q1775143'], [{'concept': 'Q2342494'}, 'P50', 'Q460952']]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?c ) { ( resource:Q1775143 ) ( resource:Q460952 ) } . ?g property:P50 ?c } . ?g rdf:type ontology:Q2342494 }
Charles Nordhoff Tino Insana
action filter_type
action union
action find_reverse
entity Tino Insana
relation author
action find_reverse
entity Charles Nordhoff
relation author
type collectable
{'OR': [[{'concept': 'collectable'}, 'author', 'Tino Insana'], [{'concept': 'collectable'}, 'author', 'Charles Nordhoff']]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?c ) { ( resource:Tino_Insana ) ( resource:Charles_Nordhoff ) } . ?g property:author ?c } . ?g rdf:type ontology:collectable }
[]
collectable
Q1900478 Q16917707 Q7198636 Q6816198 Q4930450
SYSTEM
Mutiny on the Bounty, The Hurricane, Pitcairn's Island, Men Against the Sea, Blues Brothers: Private
Q1900478 Q16917707 Q7198636 Q6816198 Q4930450
OR((c(Q2342494),P50,Q1775143), (c(Q2342494),P50,Q460952))
action filter_type
action union
action find_reverse
entity Q1775143
relation P50
action find_reverse
entity Q460952
relation P50
type Q2342494
[ANSWERS]
{'OR': [[{'concept': 'Q2342494'}, 'P50', 'Q1775143'], [{'concept': 'Q2342494'}, 'P50', 'Q460952']]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?c ) { ( resource:Q1775143 ) ( resource:Q460952 ) } . ?g property:P50 ?c } . ?g rdf:type ontology:Q2342494 }
Mutiny on the Bounty The Hurricane Pitcairn's Island Men Against the Sea Blues Brothers: Private
Mutiny on the Bounty The Hurricane Pitcairn's Island Men Against the Sea Blues Brothers: Private
action filter_type
action union
action find_reverse
entity Tino Insana
relation author
action find_reverse
entity Charles Nordhoff
relation author
type collectable
{'OR': [[{'concept': 'collectable'}, 'author', 'Tino Insana'], [{'concept': 'collectable'}, 'author', 'Charles Nordhoff']]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?c ) { ( resource:Tino_Insana ) ( resource:Charles_Nordhoff ) } . ?g property:author ?c } . ?g rdf:type ontology:collectable }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q281404
P161
Q838948
USER
How many works of art stars Kevin McCarthy as actor ?
(c(Q838948),P161,Q281404)
action count
action filter_type
action find_reverse
entity Q281404
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q281404']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:P161 resource:Q281404 . ?c rdf:type ontology:Q838948 }
Kevin McCarthy
action count
action filter_type
action find_reverse
entity Kevin McCarthy
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Kevin McCarthy']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:cast_member resource:Kevin_McCarthy . ?c rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
35
Q7033877 Q205983 Q3283881 Q1194718 Q2093100 Q1872528 Q834165 Q5270911 Q1140216 Q1330737 Q1210736 Q848252 Q506390 Q645574 Q7761551 Q7983833 Q5307928 Q15726703 Q1643233 Q4749735 Q598818 Q4726471 Q1659511 Q2321222 Q6660026 Q3192728 Q1170554 Q2396492 Q751341 Q253107 Q1993176 Q685793 Q45386 Q15634715 Q1001943
(c(Q838948),P161,Q281404)
action count
action filter_type
action find_reverse
entity Q281404
relation P161
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q281404']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:P161 resource:Q281404 . ?c rdf:type ontology:Q838948 }
Nightmare A Gathering of Eagles The Hell with Heroes The Best Man UHF Loving Annabelle Looney Tunes: Back in Action Diamond Safari Piranha Twilight Zone: The Movie Mirage Ace High Innerspace The Misfits The Rose and the Jackal Wesley Drive a Crooked Road Order to Kill A Big Hand for the Little Lady An Affair of the Skin Invasion of the Body Snatchers Alien Thunder Just Cause Death of a Salesman Liz: The Elizabeth Taylor Story Kansas City Bomber The Howling Hotel The Prize Greedy Ghoulies III: Ghoulies Go to College The Distinguished Gentleman Invasion of the Body Snatchers Stranger on Horseback Buffalo Bill and the Indians, or Sitting Bull's History Lesson
35
action count
action filter_type
action find_reverse
entity Kevin McCarthy
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Kevin McCarthy']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:cast_member resource:Kevin_McCarthy . ?c rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q668
P1532
Q6979593 Q1194951
USER
How many national association football teams or national sports teams play for India ?
(c(Q6979593),P1532,Q668) (c(Q1194951),P1532,Q668)
action count
action union
action filter_type
action find_reverse
entity Q668
relation P1532
type Q6979593
action filter_type
action find_reverse
entity Q668
relation P1532
type Q1194951
[{'concept': 'Q6979593'}, 'P1532', 'Q668'] [{'concept': 'Q1194951'}, 'P1532', 'Q668']
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { ?j property:P1532 resource:Q668 . ?j rdf:type ontology:Q6979593 } UNION { ?j rdf:type ontology:Q1194951 . ?j property:P1532 resource:Q668 } }
India
action count
action union
action filter_type
action find_reverse
entity India
relation country for sport
type national association football team
action filter_type
action find_reverse
entity India
relation country for sport
type national sports team
[{'concept': 'national association football team'}, 'country for sport', 'India'] [{'concept': 'national sports team'}, 'country for sport', 'India']
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { ?j property:country_for_sport resource:India . ?j rdf:type ontology:national_association_football_team } UNION { ?j rdf:type ontology:national_sports_team . ?j property:country_for_sport resource:India } }
[]
national association football team national sports team
SYSTEM
3
Q212206 Q1042928 Q6019729
(c(Q6979593),P1532,Q668) (c(Q1194951),P1532,Q668)
action count
action union
action filter_type
action find_reverse
entity Q668
relation P1532
type Q6979593
action filter_type
action find_reverse
entity Q668
relation P1532
type Q1194951
[ANSWER]
[{'concept': 'Q6979593'}, 'P1532', 'Q668'] [{'concept': 'Q1194951'}, 'P1532', 'Q668']
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { ?j property:P1532 resource:Q668 . ?j rdf:type ontology:Q6979593 } UNION { ?j rdf:type ontology:Q1194951 . ?j property:P1532 resource:Q668 } }
India national football team India women's national football team India women's national under-19 football team
3
action count
action union
action filter_type
action find_reverse
entity India
relation country for sport
type national association football team
action filter_type
action find_reverse
entity India
relation country for sport
type national sports team
[{'concept': 'national association football team'}, 'country for sport', 'India'] [{'concept': 'national sports team'}, 'country for sport', 'India']
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { ?j property:country_for_sport resource:India . ?j rdf:type ontology:national_association_football_team } UNION { ?j rdf:type ontology:national_sports_team . ?j property:country_for_sport resource:India } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3887028 Q158136
P161
Q838948
USER
Which works of art stars Kirron Kher or Osvaldo Valenti as actor ?
OR((c(Q838948),P161,Q158136), (c(Q838948),P161,Q3887028))
action filter_type
action union
action find_reverse
entity Q158136
relation P161
action find_reverse
entity Q3887028
relation P161
type Q838948
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q158136'], [{'concept': 'Q838948'}, 'P161', 'Q3887028']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q838948 . { { ?p property:P161 resource:Q158136 } UNION { ?p property:P161 resource:Q3887028 } } }
Osvaldo Valenti Kirron Kher
action filter_type
action union
action find_reverse
entity Kirron Kher
relation cast member
action find_reverse
entity Osvaldo Valenti
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Kirron Kher'], [{'concept': 'work of art'}, 'cast member', 'Osvaldo Valenti']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:work_of_art . { { ?p property:cast_member resource:Kirron_Kher } UNION { ?p property:cast_member resource:Osvaldo_Valenti } } }
[]
work of art
Q1503700 Q1251094 Q3641480 Q4677152 Q776098 Q247854 Q151529 Q3769453 Q3232035 Q1714563
SYSTEM
Some of them are Main Hoon Na, Dostana, Boccaccio, Action Replayy, Kurbaan, Devdas, Kambakkht Ishq, Giuliano de' Medici, The Two Orphans, Laaga Chunari Mein Daag
Q3769453 Q151529 Q681801 Q3821415 Q3641480 Q1714563 Q1033304 Q3619892 Q3822856 Q3656920 Q4677152 Q2007104 Q657943 Q3824727 Q247854 Q3688869 Q4003579 Q305839 Q4699485 Q3818382 Q1784272 Q1415663 Q3677286 Q3637238 Q330468 Q3232035 Q4780033 Q865989 Q536657 Q4860833 Q3821721 Q3794015 Q3824750 Q3840466 Q6935462 Q106819 Q2574952 Q1503700 Q924135 Q3733930 Q1251094 Q3825110 Q5224059 Q17078935 Q18208936 Q979279 Q776098 Q3921866
OR((c(Q838948),P161,Q158136), (c(Q838948),P161,Q3887028))
action filter_type
action union
action find_reverse
entity Q158136
relation P161
action find_reverse
entity Q3887028
relation P161
type Q838948
[ANSWERS] star Kirron Kher or Osvaldo Valenti as actor
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q158136'], [{'concept': 'Q838948'}, 'P161', 'Q3887028']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q838948 . { { ?p property:P161 resource:Q158136 } UNION { ?p property:P161 resource:Q3887028 } } }
Giuliano de' Medici Kambakkht Ishq Mille lire al mese Sleeping Beauty Boccaccio Laaga Chunari Mein Daag Hum Tum Antonio Meucci The Innkeeper Captain Fracasse Action Replayy Singh Is Kinng Fanaa La valle del diavolo Devdas The Countess of Parma Un'avventura di Salvator Rosa Abbandono Ajab Gazabb Love The Secret Lover Mangal Pandey: The Rising Pestonjee Five to Nil Beatrice Cenci Om Shanti Om The Two Orphans Apne Kabhi Alvida Naa Kehna The Iron Crown Bariwali The Jester's Supper The Fornaretto of Venice The Widow Luisa Sanfelice Mummy Punjabi Veer-Zaara Khamosh Pani Main Hoon Na Rang De Basanti Ettore Fieramosca Dostana La zia smemorata Darmiyaan: In Between Punjab 1984 Hurricane in the Tropics Karan Arjun Kurbaan First Love
Main Hoon Na, Dostana, Boccaccio, Action Replayy, Kurbaan, Devdas, Kambakkht Ishq, Giuliano de' Medici, The Two Orphans and Laaga Chunari Mein Daag star Kirron Kher or Osvaldo Valenti as actor
Main Hoon Na Dostana Boccaccio Action Replayy Kurbaan Devdas Kambakkht Ishq Giuliano de' Medici The Two Orphans Laaga Chunari Mein Daag
action filter_type
action union
action find_reverse
entity Kirron Kher
relation cast member
action find_reverse
entity Osvaldo Valenti
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Kirron Kher'], [{'concept': 'work of art'}, 'cast member', 'Osvaldo Valenti']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:work_of_art . { { ?p property:cast_member resource:Kirron_Kher } UNION { ?p property:cast_member resource:Osvaldo_Valenti } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1441
Q2342494 Q95074 Q15707583
USER
Which collectables are max number of fictional characters or fictional taxons present in ?
(c(Q95074)|c(Q15707583),P1441,c(Q2342494))
action argmax
action union
action find_reverse_tuple_counts
relation P1441
type Q2342494
type Q95074
action find_reverse_tuple_counts
relation P1441
type Q2342494
type Q15707583
[[{'concept': 'Q95074'}, {'concept': 'Q15707583'}], 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?l WHERE { VALUES ( ?d ) { ( ontology:Q15707583 ) ( ontology:Q95074 ) } . ?o rdf:type ?d } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?m WHERE { VALUES ( ?n ) { ( ontology:Q95074 ) ( ontology:Q15707583 ) } . ?g rdf:type ?n } GROUP BY ?m } . FILTER ( ?u = ?p ) }
action argmax
action union
action find_reverse_tuple_counts
relation present in work
type collectable
type fictional character
action find_reverse_tuple_counts
relation present in work
type collectable
type fictional taxon
[[{'concept': 'fictional character'}, {'concept': 'fictional taxon'}], 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?l WHERE { VALUES ( ?d ) { ( ontology:fictional_taxon ) ( ontology:fictional_character ) } . ?o rdf:type ?d } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?m WHERE { VALUES ( ?n ) { ( ontology:fictional_character ) ( ontology:fictional_taxon ) } . ?g rdf:type ?n } GROUP BY ?m } . FILTER ( ?u = ?p ) }
[]
collectable fictional character fictional taxon
Q140527
SYSTEM
The Three Musketeers
Q140527
(c(Q95074)|c(Q15707583),P1441,c(Q2342494))
action argmax
action union
action find_reverse_tuple_counts
relation P1441
type Q2342494
type Q95074
action find_reverse_tuple_counts
relation P1441
type Q2342494
type Q15707583
Which collectables is max number of fictional characters or fictional taxons present in
[[{'concept': 'Q95074'}, {'concept': 'Q15707583'}], 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?l WHERE { VALUES ( ?d ) { ( ontology:Q15707583 ) ( ontology:Q95074 ) } . ?o rdf:type ?d } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?m WHERE { VALUES ( ?n ) { ( ontology:Q95074 ) ( ontology:Q15707583 ) } . ?g rdf:type ?n } GROUP BY ?m } . FILTER ( ?u = ?p ) }
The Three Musketeers
Which collectables is max number of fictional characters or fictional taxons present in
The Three Musketeers
action argmax
action union
action find_reverse_tuple_counts
relation present in work
type collectable
type fictional character
action find_reverse_tuple_counts
relation present in work
type collectable
type fictional taxon
[[{'concept': 'fictional character'}, {'concept': 'fictional taxon'}], 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?l WHERE { VALUES ( ?d ) { ( ontology:fictional_taxon ) ( ontology:fictional_character ) } . ?o rdf:type ?d } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?m WHERE { VALUES ( ?n ) { ( ontology:fictional_character ) ( ontology:fictional_taxon ) } . ?g rdf:type ?n } GROUP BY ?m } . FILTER ( ?u = ?p ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q140527
P144
Q201658
USER
Which film genres are derived from that collectable ?
(c(Q201658),P144,Q140527)
action filter_type
action find_reverse
entity Q140527
relation P144
type Q201658
[{'concept': 'Q201658'}, 'P144', 'Q140527']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q201658 . ?e property:P144 resource:Q140527 }
The Three Musketeers
action filter_type
action find_reverse
entity The Three Musketeers
relation based on
type film genre
[{'concept': 'film genre'}, 'based on', 'The Three Musketeers']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:film_genre . ?e property:based_on resource:The_Three_Musketeers }
[]
film genre
Q1218112 Q738056 Q3525927
SYSTEM
The Three Musketeers, The Iron Mask, Three Blind Mouseketeers
Q1144782 Q3525927 Q4048569 Q3989633 Q738056 Q1199440 Q1218112
(c(Q201658),P144,Q140527)
action filter_type
action find_reverse
entity Q140527
relation P144
type Q201658
[ANSWERS] are derived from that collectable
[{'concept': 'Q201658'}, 'P144', 'Q140527']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q201658 . ?e property:P144 resource:Q140527 }
Touché, Pussy Cat! Three Blind Mouseketeers Royal Cat Nap The Three Musketeers The Iron Mask The Two Mouseketeers The Three Musketeers
The Three Musketeers, The Iron Mask and Three Blind Mouseketeers are derived from that collectable
The Three Musketeers The Iron Mask Three Blind Mouseketeers
action filter_type
action find_reverse
entity The Three Musketeers
relation based on
type film genre
[{'concept': 'film genre'}, 'based on', 'The Three Musketeers']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:film_genre . ?e property:based_on resource:The_Three_Musketeers }
[]