Simple Question (Direct)
Simple Question
Q7711167
P57
Q502895
USER
Which person served as the directed of That Devil, Bateese ?
(Q7711167,P57,c(Q502895))
action filter_type
action find
entity Q7711167
relation P57
type Q502895
['Q7711167', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q7711167 property:P57 ?m . ?m rdf:type ontology:Q502895 }
That Devil, Bateese
action filter_type
action find
entity That Devil, Bateese
relation director
type common name
['That Devil, Bateese', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:That_Devil,_Bateese property:director ?m . ?m rdf:type ontology:common_name }
[]
common name
Q11288118
SYSTEM
William Wolbert
Q11288118
(Q7711167,P57,c(Q502895))
action filter_type
action find
entity Q7711167
relation P57
type Q502895
[ANSWER] served as the directed of That Devil, Bateese
['Q7711167', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q7711167 property:P57 ?m . ?m rdf:type ontology:Q502895 }
William Wolbert
William Wolbert served as the directed of That Devil, Bateese
William Wolbert
action filter_type
action find
entity That Devil, Bateese
relation director
type common name
['That Devil, Bateese', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:That_Devil,_Bateese property:director ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11288118
P1196
Q1931388
USER
What situation did that person die in ?
(Q11288118,P1196,c(Q1931388))
action filter_type
action find
entity Q11288118
relation P1196
type Q1931388
['Q11288118', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1931388 . resource:Q11288118 property:P1196 ?v }
William Wolbert
action filter_type
action find
entity William Wolbert
relation manner of death
type cause of death
['William Wolbert', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:cause_of_death . resource:William_Wolbert property:manner_of_death ?v }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q11288118,P1196,c(Q1931388))
action filter_type
action find
entity Q11288118
relation P1196
type Q1931388
That person died in [ANSWER]
['Q11288118', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1931388 . resource:Q11288118 property:P1196 ?v }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity William Wolbert
relation manner of death
type cause of death
['William Wolbert', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:cause_of_death . resource:William_Wolbert property:manner_of_death ?v }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q3739104 Q4002755
P1196
Q502895
USER
Did Ugo Bologna die as that cause of death ?
(Q4002755,P1196,Q3739104)
action is_in
entity Q3739104
action find
entity Q4002755
relation P1196
['Q4002755', 'P1196', 'Q3739104']
ASK WHERE { resource:Q4002755 property:P1196 resource:Q3739104 }
natural causes Ugo Bologna
action is_in
entity natural causes
action find
entity Ugo Bologna
relation manner of death
['Ugo Bologna', 'manner of death', 'natural causes']
ASK WHERE { resource:Ugo_Bologna property:manner_of_death resource:natural_causes }
[]
common name
SYSTEM
YES
(Q4002755,P1196,Q3739104)
action is_in
entity Q3739104
action find
entity Q4002755
relation P1196
[ANSWER]
['Q4002755', 'P1196', 'Q3739104']
ASK WHERE { resource:Q4002755 property:P1196 resource:Q3739104 }
Yes
action is_in
entity natural causes
action find
entity Ugo Bologna
relation manner of death
['Ugo Bologna', 'manner of death', 'natural causes']
ASK WHERE { resource:Ugo_Bologna property:manner_of_death resource:natural_causes }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q157443 Q4002755
P136 P161
Q838948
USER
Which works of art stars Ugo Bologna as actor and have comedy film as genre ?
AND((c(Q838948),P161,Q4002755), (c(Q838948),P136,Q157443))
action filter_type
action intersection
action find_reverse
entity Q4002755
relation P161
action find_reverse
entity Q157443
relation P136
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q4002755'], [{'concept': 'Q838948'}, 'P136', 'Q157443']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q838948 . ?x property:P161 resource:Q4002755 . ?x property:P136 resource:Q157443 }
comedy film Ugo Bologna
action filter_type
action intersection
action find_reverse
entity Ugo Bologna
relation cast member
action find_reverse
entity comedy film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Ugo Bologna'], [{'concept': 'work of art'}, 'genre', 'comedy film']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:work_of_art . ?x property:cast_member resource:Ugo_Bologna . ?x property:genre resource:comedy_film }
[]
work of art
Q3929301 Q3718481 Q489615 Q3749204 Q1067124 Q3926998 Q3940640 Q3823661 Q511783 Q3797492
SYSTEM
Some of them are Rag. Arturo De Fanti, bancario precario, Ecco noi per esempio, The Con Artists, Fracchia la belva umana, Fantozzi subisce ancora, Quando la coppia scoppia, Time for Loving, La presidentessa, The Virgo, the Taurus and the Capricorn, In viaggio con papà
Q3749204 Q3950205 Q3929301 Q3823661 Q3926998 Q3940640 Q3718481 Q489615 Q3797492 Q3801125 Q1067124 Q511783
AND((c(Q838948),P161,Q4002755), (c(Q838948),P136,Q157443))
action filter_type
action intersection
action find_reverse
entity Q4002755
relation P161
action find_reverse
entity Q157443
relation P136
type Q838948
[ANSWERS] star Ugo Bologna as actor and have comedy film as genre
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q4002755'], [{'concept': 'Q838948'}, 'P136', 'Q157443']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q838948 . ?x property:P161 resource:Q4002755 . ?x property:P136 resource:Q157443 }
Fracchia la belva umana Sapore di mare 2 - Un anno dopo Rag. Arturo De Fanti, bancario precario La presidentessa Quando la coppia scoppia Time for Loving Ecco noi per esempio The Con Artists In viaggio con papà Io e Caterina Fantozzi subisce ancora The Virgo, the Taurus and the Capricorn
Rag. Arturo De Fanti, bancario precario, Ecco noi per esempio, The Con Artists, Fracchia la belva umana, Fantozzi subisce ancora, Quando la coppia scoppia, Time for Loving, La presidentessa, The Virgo, the Taurus and the Capricorn and In viaggio con papà star Ugo Bologna as actor and have comedy film as genre
Rag. Arturo De Fanti, bancario precario Ecco noi per esempio The Con Artists Fracchia la belva umana Fantozzi subisce ancora Quando la coppia scoppia Time for Loving La presidentessa The Virgo, the Taurus and the Capricorn In viaggio con papà
action filter_type
action intersection
action find_reverse
entity Ugo Bologna
relation cast member
action find_reverse
entity comedy film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Ugo Bologna'], [{'concept': 'work of art'}, 'genre', 'comedy film']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:work_of_art . ?x property:cast_member resource:Ugo_Bologna . ?x property:genre resource:comedy_film }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P144
Q838948 Q2342494 Q3305213
USER
Which works of art are max number of collectables or paintings based on ?
(c(Q2342494)|c(Q3305213),P144,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P144
type Q838948
type Q3305213
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?o ) { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:P144 ?e . ?e rdf:type ontology:Q838948 . ?g rdf:type ontology:Q2342494 } UNION { ?g property:P144 ?e . ?e rdf:type ontology:Q838948 . ?g rdf:type ontology:Q3305213 } } GROUP BY ?e } } . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?h ) WHERE { ?i rdf:type ?s . VALUES ( ?s ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } } GROUP BY ?a } . FILTER ( ?h = ?o ) }
action argmax
action union
action find_reverse_tuple_counts
relation based on
type work of art
type collectable
action find_reverse_tuple_counts
relation based on
type work of art
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?o ) { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:based_on ?e . ?e rdf:type ontology:work_of_art . ?g rdf:type ontology:collectable } UNION { ?g property:based_on ?e . ?e rdf:type ontology:work_of_art . ?g rdf:type ontology:painting } } GROUP BY ?e } } . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?h ) WHERE { ?i rdf:type ?s . VALUES ( ?s ) { ( ontology:collectable ) ( ontology:painting ) } } GROUP BY ?a } . FILTER ( ?h = ?o ) }
[]
work of art collectable painting
Q213081 Q334780 Q103569
SYSTEM
Star Trek, Moonraker, Alien
Q3136443 Q213081 Q635441 Q320594 Q42051 Q204670 Q165713 Q3635914 Q691611 Q221103 Q334780 Q104871 Q237572 Q672059 Q103569 Q181069
(c(Q2342494)|c(Q3305213),P144,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P144
type Q838948
type Q3305213
[ANSWERS] max number of collectables or paintings based on
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?o ) { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:P144 ?e . ?e rdf:type ontology:Q838948 . ?g rdf:type ontology:Q2342494 } UNION { ?g property:P144 ?e . ?e rdf:type ontology:Q838948 . ?g rdf:type ontology:Q3305213 } } GROUP BY ?e } } . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?h ) WHERE { ?i rdf:type ?s . VALUES ( ?s ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } } GROUP BY ?a } . FILTER ( ?h = ?o ) }
His Dark Materials Star Trek Black Coffee Abhijñānaśākuntalam Star Wars: Episode III – Revenge of the Sith An Inconvenient Truth Star Wars: Episode I – The Phantom Menace The Fish That Saved Pittsburgh Serenity Halloween Moonraker A Midsummer Night's Dream As You Like It Henry VIII Alien Star Wars Episode II: Attack of the Clones
Star Trek, Moonraker and Alien max number of collectables or paintings based on
Star Trek Moonraker Alien
action argmax
action union
action find_reverse_tuple_counts
relation based on
type work of art
type collectable
action find_reverse_tuple_counts
relation based on
type work of art
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?o ) { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:based_on ?e . ?e rdf:type ontology:work_of_art . ?g rdf:type ontology:collectable } UNION { ?g property:based_on ?e . ?e rdf:type ontology:work_of_art . ?g rdf:type ontology:painting } } GROUP BY ?e } } . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?h ) WHERE { ?i rdf:type ?s . VALUES ( ?s ) { ( ontology:collectable ) ( ontology:painting ) } } GROUP BY ?a } . FILTER ( ?h = ?o ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P144
Q838948 Q3305213 Q15416
USER
How many works of art are more number of paintings and television programs based on than that work of art ?
(c(Q3305213)|c(Q15416),P144,c(Q838948))
[[{'concept': 'Q3305213'}, {'concept': 'Q15416'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?l ) { ( ?z ) ( ?x ) } . ?l property:P144 ?y } . ?z rdf:type ontology:Q19925980 . ?y rdf:type ontology:Q838948 . ?x rdf:type ontology:Q15416 }
[[{'concept': 'painting'}, {'concept': 'television program'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?l ) { ( ?z ) ( ?x ) } . ?l property:based_on ?y } . ?z rdf:type ontology:painting . ?y rdf:type ontology:work_of_art . ?x rdf:type ontology:television_program }
[]
work of art painting television program
Comparative|Count over More/Less|Mult. entity type|Clarification
Q334780
SYSTEM
Did you mean Moonraker ?
(c(Q3305213)|c(Q15416),P144,c(Q838948))
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q15416'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?l ) { ( ?z ) ( ?x ) } . ?l property:P144 ?y } . ?z rdf:type ontology:Q19925980 . ?y rdf:type ontology:Q838948 . ?x rdf:type ontology:Q15416 }
Did you mean Moonraker ?
Moonraker
[[{'concept': 'painting'}, {'concept': 'television program'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?l ) { ( ?z ) ( ?x ) } . ?l property:based_on ?y } . ?z rdf:type ontology:painting . ?y rdf:type ontology:work_of_art . ?x rdf:type ontology:television_program }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q3305213)|c(Q15416),P144,c(Q838948))
[[{'concept': 'Q3305213'}, {'concept': 'Q15416'}], 'P144', {'concept': 'Q838948'}]
[[{'concept': 'painting'}, {'concept': 'television program'}], 'based on', {'concept': 'work of art'}]
[]
SYSTEM
65
Q1077690 Q196004 Q130283 Q7756461 Q1757188 Q3523126 Q570041 Q753517 Q4312939 Q7754860 Q1049771 Q2345 Q649562 Q1232349 Q1754611 Q1170100 Q188000 Q3820016 Q631855 Q2735164 Q2297900 Q1215038 Q8027789 Q1144983 Q820862 Q7783672 Q41567 Q669694 Q785087 Q925855 Q7754314 Q7757020 Q7728250 Q176465 Q244604 Q8317666 Q607524 Q7835633 Q6945075 Q797471 Q108745 Q1170179 Q4928740 Q796472 Q19871 Q7739052 Q2021440 Q221211 Q1753343 Q105801 Q813050 Q39970 Q543347 Q104871 Q503343 Q237572 Q495954 Q672059 Q1754013 Q2549073 Q2364343 Q204191 Q223163 Q1137831 Q466884
(c(Q3305213)|c(Q15416),P144,c(Q838948))
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q15416'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P144 ?y } UNION { ?x property:P144 ?y } } . ?z rdf:type ontology:Q19925980 . ?y rdf:type ontology:Q838948 . ?x rdf:type ontology:Q15416 }
The Odd Couple From Dusk till Dawn Macbeth The Pee-wee Herman Show The Four Seasons The Twilight of the Golds Pioneers in Ingolstadt Limitless Attack of the 60 Foot Centerfold The Old Lady Shows Her Medals Ōoku: The Inner Chambers 12 Angry Men Richard II Henry IV, Part 2 Seven Days in May The Philadelphia Experiment Crash The Man with the Flower in His Mouth Henry IV, Part 1 The Girlfriend Experience Exiles Adventures in Babysitting Wit Animal Kingdom Death of a Salesman They Came Back Hamlet A Doll's House The Witches of Eastwick The Sunshine Boys The Normal Heart The Piano Lesson The Crucifer of Blood Hedda Gabler Minority Report Dubravka, Ivan Gundulić Destry Rides Again Trapped in the Closet My Boy Jack Baal Ghostbusters Lifeboat Blue/Orange Spider's Web Waiting for Godot The Haves and the Have Nots Humanoids from the Deep Twelfth Night The Laramie Project Stargate The Beastmaster Buffy the Vampire Slayer Attack of the 50 Foot Woman A Midsummer Night's Dream Westworld As You Like It Henry V Henry VIII The Sunset Limited Spring Awakening Destry It's a Wonderful Life The Emperor's New Groove Parenthood The Net
65
[[{'concept': 'painting'}, {'concept': 'television program'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:based_on ?y } UNION { ?x property:based_on ?y } } . ?z rdf:type ontology:painting . ?y rdf:type ontology:work_of_art . ?x rdf:type ontology:television_program }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7711167
P793
Q838948
USER
What event is That Devil, Bateese associated with ?
(Q7711167,P793,c(Q838948))
action filter_type
action find
entity Q7711167
relation P793
type Q838948
['Q7711167', 'P793', {'concept': 'Q838948'}]
SELECT DISTINCT ?q WHERE { resource:Q7711167 property:P793 ?q . ?q rdf:type ontology:Q838948 }
That Devil, Bateese
action filter_type
action find
entity That Devil, Bateese
relation significant event
type work of art
['That Devil, Bateese', 'significant event', {'concept': 'work of art'}]
SELECT DISTINCT ?q WHERE { resource:That_Devil,_Bateese property:significant_event ?q . ?q rdf:type ontology:work_of_art }
[]
work of art
Q1268687
SYSTEM
lost film
Q1268687
(Q7711167,P793,c(Q838948))
action filter_type
action find
entity Q7711167
relation P793
type Q838948
That Devil , Bateese is associated with [ANSWER]
['Q7711167', 'P793', {'concept': 'Q838948'}]
SELECT DISTINCT ?q WHERE { resource:Q7711167 property:P793 ?q . ?q rdf:type ontology:Q838948 }
lost film
That Devil , Bateese is associated with lost film
lost film
action filter_type
action find
entity That Devil, Bateese
relation significant event
type work of art
['That Devil, Bateese', 'significant event', {'concept': 'work of art'}]
SELECT DISTINCT ?q WHERE { resource:That_Devil,_Bateese property:significant_event ?q . ?q rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1268687 Q16929858
P793
Q201658
USER
Did Swim Girl, Swim have that work of art as its key event ?
(Q16929858,P793,Q1268687)
action is_in
entity Q1268687
action find
entity Q16929858
relation P793
['Q16929858', 'P793', 'Q1268687']
ASK WHERE { resource:Q16929858 property:P793 resource:Q1268687 }
lost film Swim Girl, Swim
action is_in
entity lost film
action find
entity Swim Girl, Swim
relation significant event
['Swim Girl, Swim', 'significant event', 'lost film']
ASK WHERE { resource:Swim_Girl,_Swim property:significant_event resource:lost_film }
[]
film genre
SYSTEM
YES
(Q16929858,P793,Q1268687)
action is_in
entity Q1268687
action find
entity Q16929858
relation P793
[ANSWER]
['Q16929858', 'P793', 'Q1268687']
ASK WHERE { resource:Q16929858 property:P793 resource:Q1268687 }
Yes
action is_in
entity lost film
action find
entity Swim Girl, Swim
relation significant event
['Swim Girl, Swim', 'significant event', 'lost film']
ASK WHERE { resource:Swim_Girl,_Swim property:significant_event resource:lost_film }
[]