Simple Question (Direct)
Simple Question
Q17322126
P102
Q7210356
USER
Which party does Hans Heitmann belong to ?
(Q17322126,P102,c(Q7210356))
action filter_type
action find
entity Q17322126
relation P102
type Q7210356
['Q17322126', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q7210356 . resource:Q17322126 property:P102 ?f }
Hans Heitmann
action filter_type
action find
entity Hans Heitmann
relation member of political party
type political organization
['Hans Heitmann', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_organization . resource:Hans_Heitmann property:member_of_political_party ?f }
[]
political organization
Q7320
SYSTEM
Nazi Party
Q7320
(Q17322126,P102,c(Q7210356))
action filter_type
action find
entity Q17322126
relation P102
type Q7210356
[ANSWER]
['Q17322126', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q7210356 . resource:Q17322126 property:P102 ?f }
Nazi Party
Nazi Party
action filter_type
action find
entity Hans Heitmann
relation member of political party
type political organization
['Hans Heitmann', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_organization . resource:Hans_Heitmann property:member_of_political_party ?f }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7320
P272
Q838948
USER
Which work of art had that political organization as its motion picture studio ?
(c(Q838948),P272,Q7320)
action filter_type
action find_reverse
entity Q7320
relation P272
type Q838948
[{'concept': 'Q838948'}, 'P272', 'Q7320']
SELECT DISTINCT ?j WHERE { ?j property:P272 resource:Q7320 . ?j rdf:type ontology:Q838948 }
Nazi Party
action filter_type
action find_reverse
entity Nazi Party
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Nazi Party']
SELECT DISTINCT ?j WHERE { ?j property:production_company resource:Nazi_Party . ?j rdf:type ontology:work_of_art }
[]
work of art
Q3731163
SYSTEM
Erbkrank
Q3731163
(c(Q838948),P272,Q7320)
action filter_type
action find_reverse
entity Q7320
relation P272
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P272', 'Q7320']
SELECT DISTINCT ?j WHERE { ?j property:P272 resource:Q7320 . ?j rdf:type ontology:Q838948 }
Erbkrank
Erbkrank
action filter_type
action find_reverse
entity Nazi Party
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Nazi Party']
SELECT DISTINCT ?j WHERE { ?j property:production_company resource:Nazi_Party . ?j rdf:type ontology:work_of_art }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q384426
P1445
Q838948 Q386724
USER
Which works represents a fictional universe described in less number of works of art than Pirates of the Caribbean ?
(c(Q386724),P1445,c(Q838948))
action less
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q384426
relation P1445
type Q838948
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?w < ?i ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:Q384426 property:P1445 ?r . ?r rdf:type ontology:Q838948 } } . { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?w ) WHERE { ?p property:P1445 ?g . ?p rdf:type ontology:Q386724 . ?g rdf:type ontology:Q838948 } GROUP BY ?p } }
Pirates of the Caribbean
action less
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Pirates of the Caribbean
relation fictional universe described in
type work of art
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?w < ?i ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:Pirates_of_the_Caribbean property:fictional_universe_described_in ?r . ?r rdf:type ontology:work_of_art } } . { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?w ) WHERE { ?p property:fictional_universe_described_in ?g . ?p rdf:type ontology:work . ?g rdf:type ontology:work_of_art } GROUP BY ?p } }
[]
work of art work
Q1203222 Q15731902 Q11927
SYSTEM
Shrek, Aladdin media franchise, Stargate
Q1203222 Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q838948))
action less
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q384426
relation P1445
type Q838948
[ANSWERS]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?w < ?i ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:Q384426 property:P1445 ?r . ?r rdf:type ontology:Q838948 } } . { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?w ) WHERE { ?p property:P1445 ?g . ?p rdf:type ontology:Q386724 . ?g rdf:type ontology:Q838948 } GROUP BY ?p } }
Shrek Aladdin media franchise Stargate The Walking Dead
Shrek Aladdin media franchise Stargate
action less
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Pirates of the Caribbean
relation fictional universe described in
type work of art
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?w < ?i ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:Pirates_of_the_Caribbean property:fictional_universe_described_in ?r . ?r rdf:type ontology:work_of_art } } . { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?w ) WHERE { ?p property:fictional_universe_described_in ?g . ?p rdf:type ontology:work . ?g rdf:type ontology:work_of_art } GROUP BY ?p } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q15731902
P1445
Q11424
USER
Which film portrays the ideas of fictional universe that work ?
(Q15731902,P1445,c(Q11424))
action filter_type
action find
entity Q15731902
relation P1445
type Q11424
['Q15731902', 'P1445', {'concept': 'Q11424'}]
SELECT DISTINCT ?m WHERE { resource:Q15731902 property:P1445 ?m . ?m rdf:type ontology:Q11424 }
Aladdin media franchise
action filter_type
action find
entity Aladdin media franchise
relation fictional universe described in
type film
['Aladdin media franchise', 'fictional universe described in', {'concept': 'film'}]
SELECT DISTINCT ?m WHERE { resource:Aladdin_media_franchise property:fictional_universe_described_in ?m . ?m rdf:type ontology:film }
[]
film
Clarification for simple ques.
Q15731902
SYSTEM
Did you mean Aladdin media franchise ?
Q1203222 Q15731902 Q11927
(Q1203222,P1445,c(Q11424)) (Q15731902,P1445,c(Q11424)) (Q11927,P1445,c(Q11424))
[ANSWER]
['Q1203222', 'P1445', {'concept': 'Q11424'}] ['Q15731902', 'P1445', {'concept': 'Q11424'}] ['Q11927', 'P1445', {'concept': 'Q11424'}]
SELECT DISTINCT ?m WHERE { resource:Q15731902 property:P1445 ?m . ?m rdf:type ontology:Q11424 }
Shrek Aladdin media franchise Stargate
Did you mean Aladdin media franchise ?
Aladdin media franchise
['Shrek', 'fictional universe described in', {'concept': 'film'}] ['Aladdin media franchise', 'fictional universe described in', {'concept': 'film'}] ['Stargate', 'fictional universe described in', {'concept': 'film'}]
SELECT DISTINCT ?m WHERE { resource:Aladdin_media_franchise property:fictional_universe_described_in ?m . ?m rdf:type ontology:film }
[]
Simple Question (Coreferenced)
USER
Yes
(Q15731902,P1445,c(Q11424))
['Q15731902', 'P1445', {'concept': 'Q11424'}]
['Aladdin media franchise', 'fictional universe described in', {'concept': 'film'}]
[]
Q215518
SYSTEM
Aladdin
Q215518
(Q15731902,P1445,c(Q11424))
action filter_type
action find
entity Q15731902
relation P1445
type Q11424
[ANSWER]
['Q15731902', 'P1445', {'concept': 'Q11424'}]
SELECT DISTINCT ?m WHERE { resource:Q15731902 property:P1445 ?m . ?m rdf:type ontology:Q11424 }
Aladdin
Aladdin
action filter_type
action find
entity Aladdin media franchise
relation fictional universe described in
type film
['Aladdin media franchise', 'fictional universe described in', {'concept': 'film'}]
SELECT DISTINCT ?m WHERE { resource:Aladdin_media_franchise property:fictional_universe_described_in ?m . ?m rdf:type ontology:film }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1203222 Q15731902
P1445
Q1001378
USER
Which cinematic techniques sketch the fictional universe of Aladdin media franchise or Shrek ?
OR((Q15731902,P1445,c(Q1001378)), (Q1203222,P1445,c(Q1001378)))
action filter_type
action union
action find
entity Q15731902
relation P1445
action find
entity Q1203222
relation P1445
type Q1001378
{'OR': [['Q15731902', 'P1445', {'concept': 'Q1001378'}], ['Q1203222', 'P1445', {'concept': 'Q1001378'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q15731902 property:P1445 ?n } UNION { resource:Q1203222 property:P1445 ?n } } . ?n rdf:type ontology:Q1001378 }
Shrek Aladdin media franchise
action filter_type
action union
action find
entity Aladdin media franchise
relation fictional universe described in
action find
entity Shrek
relation fictional universe described in
type cinematic technique
{'OR': [['Aladdin media franchise', 'fictional universe described in', {'concept': 'cinematic technique'}], ['Shrek', 'fictional universe described in', {'concept': 'cinematic technique'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Aladdin_media_franchise property:fictional_universe_described_in ?n } UNION { resource:Shrek property:fictional_universe_described_in ?n } } . ?n rdf:type ontology:cinematic_technique }
[]
cinematic technique
Q486588 Q485983 Q483815 Q817003 Q324262 Q208131 Q817261
SYSTEM
Shrek the Third, Shrek 2, Shrek, Aladdin and the King of Thieves, Puss in Boots, Shrek Forever After, The Return of Jafar
Q486588 Q485983 Q483815 Q817003 Q324262 Q208131 Q817261
OR((Q15731902,P1445,c(Q1001378)), (Q1203222,P1445,c(Q1001378)))
action filter_type
action union
action find
entity Q15731902
relation P1445
action find
entity Q1203222
relation P1445
type Q1001378
[ANSWERS]
{'OR': [['Q15731902', 'P1445', {'concept': 'Q1001378'}], ['Q1203222', 'P1445', {'concept': 'Q1001378'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q15731902 property:P1445 ?n } UNION { resource:Q1203222 property:P1445 ?n } } . ?n rdf:type ontology:Q1001378 }
Shrek the Third Shrek 2 Shrek Aladdin and the King of Thieves Puss in Boots Shrek Forever After The Return of Jafar
Shrek the Third Shrek 2 Shrek Aladdin and the King of Thieves Puss in Boots Shrek Forever After The Return of Jafar
action filter_type
action union
action find
entity Aladdin media franchise
relation fictional universe described in
action find
entity Shrek
relation fictional universe described in
type cinematic technique
{'OR': [['Aladdin media franchise', 'fictional universe described in', {'concept': 'cinematic technique'}], ['Shrek', 'fictional universe described in', {'concept': 'cinematic technique'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Aladdin_media_franchise property:fictional_universe_described_in ?n } UNION { resource:Shrek property:fictional_universe_described_in ?n } } . ?n rdf:type ontology:cinematic_technique }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P1445
Q1001378 Q386724
USER
How many cinematic techniques describe the fictional universe lesser number of works than that cinematic technique ?
(c(Q386724),P1445,c(Q1001378))
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q1001378'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1445 ?y . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q1001378 }
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'cinematic technique'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:fictional_universe_described_in ?y . ?z rdf:type ontology:work . ?y rdf:type ontology:cinematic_technique }
[]
cinematic technique work
Comparative|Count over More/Less|Single entity type|Clarification
Q208131
SYSTEM
Did you mean Shrek Forever After ?
(c(Q386724),P1445,c(Q1001378))
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q1001378'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1445 ?y . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q1001378 }
Did you mean Shrek Forever After ?
Shrek Forever After
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'cinematic technique'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:fictional_universe_described_in ?y . ?z rdf:type ontology:work . ?y rdf:type ontology:cinematic_technique }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Aladdin and the King of Thieves. Could you tell me the answer for that?
(c(Q386724),P1445,c(Q1001378))
Q817003
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q1001378'}]
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'cinematic technique'}]
[]
SYSTEM
2
Q284042 Q187726
(c(Q386724),P1445,c(Q1001378))
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q1001378'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1445 ?y . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q1001378 }
Resident Evil: Degeneration Monsters, Inc.
2
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'cinematic technique'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:fictional_universe_described_in ?y . ?z rdf:type ontology:work . ?y rdf:type ontology:cinematic_technique }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15731902
P1080
Q15832079
USER
Which fictional bird appears in Aladdin media franchise ?
(c(Q15832079),P1080,Q15731902)
action filter_type
action find_reverse
entity Q15731902
relation P1080
type Q15832079
[{'concept': 'Q15832079'}, 'P1080', 'Q15731902']
SELECT DISTINCT ?c WHERE { ?c property:P1080 resource:Q15731902 . ?c rdf:type ontology:Q15832079 }
Aladdin media franchise
action filter_type
action find_reverse
entity Aladdin media franchise
relation from fictional universe
type fictional bird
[{'concept': 'fictional bird'}, 'from fictional universe', 'Aladdin media franchise']
SELECT DISTINCT ?c WHERE { ?c property:from_fictional_universe resource:Aladdin_media_franchise . ?c rdf:type ontology:fictional_bird }
[]
fictional bird
Q2635399
SYSTEM
Iago
Q2635399
(c(Q15832079),P1080,Q15731902)
action filter_type
action find_reverse
entity Q15731902
relation P1080
type Q15832079
[ANSWER]
[{'concept': 'Q15832079'}, 'P1080', 'Q15731902']
SELECT DISTINCT ?c WHERE { ?c property:P1080 resource:Q15731902 . ?c rdf:type ontology:Q15832079 }
Iago
Iago
action filter_type
action find_reverse
entity Aladdin media franchise
relation from fictional universe
type fictional bird
[{'concept': 'fictional bird'}, 'from fictional universe', 'Aladdin media franchise']
SELECT DISTINCT ?c WHERE { ?c property:from_fictional_universe resource:Aladdin_media_franchise . ?c rdf:type ontology:fictional_bird }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15731902
P1441
Q4359224
USER
Which characters from Disney's Aladdin are from the works of that work ?
(c(Q4359224),P1441,Q2635399)
action filter_type
action find_reverse
entity Q15731902
relation P1441
type Q4359224
[{'concept': 'Q4359224'}, 'P1441', 'Q2635399']
SELECT DISTINCT ?o WHERE { ?o property:P1441 resource:Q15731902 . ?o rdf:type ontology:Q4359224 }
Aladdin media franchise
action filter_type
action find_reverse
entity Aladdin media franchise
relation present in work
type character from Disney's Aladdin
[{'concept': "character from Disney's Aladdin"}, 'present in work', 'Iago']
SELECT DISTINCT ?o WHERE { ?o property:present_in_work resource:Aladdin_media_franchise . ?o rdf:type ontology:character_from_Disney's_Aladdin }
[]
character from Disney's Aladdin
Q951483 Q2331578 Q1358109
SYSTEM
Princess Jasmine, Jafar, Aladdin
Q3503525 Q3929702 Q3221604 Q951483 Q3515509 Q2331578 Q2394291 Q1358109 Q2345667 Q3603834
(c(Q4359224),P1441,Q2635399)
action filter_type
action find_reverse
entity Q15731902
relation P1441
type Q4359224
[ANSWERS]
[{'concept': 'Q4359224'}, 'P1441', 'Q2635399']
SELECT DISTINCT ?o WHERE { ?o property:P1441 resource:Q15731902 . ?o rdf:type ontology:Q4359224 }
The Sultan Rajah The Peddler Princess Jasmine Magic Carpet Jafar Mozenrath Aladdin The Genie Abu
Princess Jasmine Jafar Aladdin
action filter_type
action find_reverse
entity Aladdin media franchise
relation present in work
type character from Disney's Aladdin
[{'concept': "character from Disney's Aladdin"}, 'present in work', 'Iago']
SELECT DISTINCT ?o WHERE { ?o property:present_in_work resource:Aladdin_media_franchise . ?o rdf:type ontology:character_from_Disney's_Aladdin }
[]
Clarification
Simple Question|Single Entity|Indirect
Q951483
P175
Q502895
USER
What were staged by that character from Disney's Aladdin ?
(Q951483,P175,c(Q502895))
action filter_type
action find
entity Q951483
relation P175
type Q502895
['Q951483', 'P175', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q951483 property:P175 ?n . ?n rdf:type ontology:Q502895 }
Princess Jasmine
action filter_type
action find
entity Princess Jasmine
relation performer
type common name
['Princess Jasmine', 'performer', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Princess_Jasmine property:performer ?n . ?n rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q951483
SYSTEM
Did you mean Princess Jasmine ?
Q951483 Q2331578 Q1358109
(Q951483,P175,c(Q502895)) (Q2331578,P175,c(Q502895)) (Q1358109,P175,c(Q502895))
[ANSWER]
['Q951483', 'P175', {'concept': 'Q502895'}] ['Q2331578', 'P175', {'concept': 'Q502895'}] ['Q1358109', 'P175', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q951483 property:P175 ?n . ?n rdf:type ontology:Q502895 }
Princess Jasmine Jafar Aladdin
Did you mean Princess Jasmine ?
Princess Jasmine
['Princess Jasmine', 'performer', {'concept': 'common name'}] ['Jafar', 'performer', {'concept': 'common name'}] ['Aladdin', 'performer', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Princess_Jasmine property:performer ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q951483,P175,c(Q502895))
['Q951483', 'P175', {'concept': 'Q502895'}]
['Princess Jasmine', 'performer', {'concept': 'common name'}]
[]
Q294144 Q2709659
SYSTEM
Lea Salonga, Linda Larkin
Q294144 Q2709659
(Q951483,P175,c(Q502895))
action filter_type
action find
entity Q951483
relation P175
type Q502895
[ANSWERS]
['Q951483', 'P175', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q951483 property:P175 ?n . ?n rdf:type ontology:Q502895 }
Lea Salonga Linda Larkin
Lea Salonga Linda Larkin
action filter_type
action find
entity Princess Jasmine
relation performer
type common name
['Princess Jasmine', 'performer', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Princess_Jasmine property:performer ?n . ?n rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q811980
P725
Q11424
USER
Did those people do the dubbing for The Adventures of Lolo the Penguin ?
(Q811980,P725,Q294144) (Q811980,P725,Q2709659)
action is_in
entity prev_answer
action find
entity Q811980
relation P725
['Q811980', 'P725', 'Q294144'] ['Q811980', 'P725', 'Q2709659']
ASK WHERE { VALUES ( ?b ) { ( resource:Q294144 ) ( resource:Q2709659 ) } . resource:Q811980 property:P725 ?b }
The Adventures of Lolo the Penguin
action is_in
entity prev_answer
action find
entity The Adventures of Lolo the Penguin
relation voice actor
['The Adventures of Lolo the Penguin', 'voice actor', 'Lea Salonga'] ['The Adventures of Lolo the Penguin', 'voice actor', 'Linda Larkin']
ASK WHERE { VALUES ( ?b ) { ( resource:Lea_Salonga ) ( resource:Linda_Larkin ) } . resource:The_Adventures_of_Lolo_the_Penguin property:voice_actor ?b }
[]
film
SYSTEM
NO
(Q811980,P725,Q294144) (Q811980,P725,Q2709659)
action is_in
entity prev_answer
action find
entity Q811980
relation P725
[ANSWER]
['Q811980', 'P725', 'Q294144'] ['Q811980', 'P725', 'Q2709659']
ASK WHERE { VALUES ( ?b ) { ( resource:Q294144 ) ( resource:Q2709659 ) } . resource:Q811980 property:P725 ?b }
No
action is_in
entity prev_answer
action find
entity The Adventures of Lolo the Penguin
relation voice actor
['The Adventures of Lolo the Penguin', 'voice actor', 'Lea Salonga'] ['The Adventures of Lolo the Penguin', 'voice actor', 'Linda Larkin']
ASK WHERE { VALUES ( ?b ) { ( resource:Lea_Salonga ) ( resource:Linda_Larkin ) } . resource:The_Adventures_of_Lolo_the_Penguin property:voice_actor ?b }
[]