Simple Question (Direct)
Simple Question
Q3898865
P641
Q349
USER
Which sport was Pelagia Papamichail a part of ?
(Q3898865,P641,c(Q349))
action filter_type
action find
entity Q3898865
relation P641
type Q349
['Q3898865', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q3898865 property:P641 ?u . ?u rdf:type ontology:Q349 }
Pelagia Papamichail
action filter_type
action find
entity Pelagia Papamichail
relation sport
type sport
['Pelagia Papamichail', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Pelagia_Papamichail property:sport ?u . ?u rdf:type ontology:sport }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q3898865,P641,c(Q349))
action filter_type
action find
entity Q3898865
relation P641
type Q349
Which sport was Pelagia Papamichail a part of
['Q3898865', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q3898865 property:P641 ?u . ?u rdf:type ontology:Q349 }
basketball
Which sport was Pelagia Papamichail a part of
basketball
action filter_type
action find
entity Pelagia Papamichail
relation sport
type sport
['Pelagia Papamichail', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Pelagia_Papamichail property:sport ?u . ?u rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5372
P136
Q166142
USER
Which applications have that sport as their type ?
(c(Q166142),P136,Q5372)
action filter_type
action find_reverse
entity Q5372
relation P136
type Q166142
[{'concept': 'Q166142'}, 'P136', 'Q5372']
SELECT DISTINCT ?j WHERE { ?j property:P136 resource:Q5372 . ?j rdf:type ontology:Q166142 }
basketball
action filter_type
action find_reverse
entity basketball
relation genre
type application
[{'concept': 'application'}, 'genre', 'basketball']
SELECT DISTINCT ?j WHERE { ?j property:genre resource:basketball . ?j rdf:type ontology:application }
[]
application
Q2720339 Q652938 Q2361288
SYSTEM
NBA Live 10, NBA Live 2005, NBA Live 98
Q16258958 Q652938 Q3250527 Q7600539 Q2361288 Q3281193 Q6952654 Q1989219 Q3282025 Q286305 Q6952657 Q580676 Q2386654 Q2720339 Q6952652 Q7572401
(c(Q166142),P136,Q5372)
action filter_type
action find_reverse
entity Q5372
relation P136
type Q166142
[ANSWERS] have that sport as their type
[{'concept': 'Q166142'}, 'P136', 'Q5372']
SELECT DISTINCT ?j WHERE { ?j property:P136 resource:Q5372 . ?j rdf:type ontology:Q166142 }
NBA Ballers: Chosen One NBA Live 2005 NCAA Basketball 10 StarDunk NBA Live 98 NBA Live 2000 NBA Ballers: Rebound NBA Live 99 NBA Live 2004 NBA Elite 11 NBA Ballers: Phenom Disney Sports Basketball Jordan vs. Bird: One on One NBA Live 10 NBA Ballers Space Jam
NBA Live 10, NBA Live 2005 and NBA Live 98 have that sport as their type
NBA Live 10 NBA Live 2005 NBA Live 98
action filter_type
action find_reverse
entity basketball
relation genre
type application
[{'concept': 'application'}, 'genre', 'basketball']
SELECT DISTINCT ?j WHERE { ?j property:genre resource:basketball . ?j rdf:type ontology:application }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1445
Q166142 Q386724
USER
Which works are recounted in min number of applications ?
(c(Q386724),P1445,c(Q166142))
action argmin
action find_tuple_counts
relation P1445
type Q386724
type Q166142
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q166142'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?n ) WHERE { ?r property:P1445 ?u . ?r rdf:type ontology:Q386724 . ?u rdf:type ontology:Q166142 } GROUP BY ?r } } . { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?q ) WHERE { ?k property:P1445 ?o . ?k rdf:type ontology:Q386724 . ?o rdf:type ontology:Q166142 } GROUP BY ?k } . FILTER ( ?q = ?m ) }
action argmin
action find_tuple_counts
relation fictional universe described in
type work
type application
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'application'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?n ) WHERE { ?r property:fictional_universe_described_in ?u . ?r rdf:type ontology:work . ?u rdf:type ontology:application } GROUP BY ?r } } . { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?q ) WHERE { ?k property:fictional_universe_described_in ?o . ?k rdf:type ontology:work . ?o rdf:type ontology:application } GROUP BY ?k } . FILTER ( ?q = ?m ) }
[]
application work
Q15731902 Q11927 Q3177580
SYSTEM
Aladdin media franchise, Stargate, The Walking Dead
Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q166142))
action argmin
action find_tuple_counts
relation P1445
type Q386724
type Q166142
[ANSWERS] are recounted in min number of applications
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q166142'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?n ) WHERE { ?r property:P1445 ?u . ?r rdf:type ontology:Q386724 . ?u rdf:type ontology:Q166142 } GROUP BY ?r } } . { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?q ) WHERE { ?k property:P1445 ?o . ?k rdf:type ontology:Q386724 . ?o rdf:type ontology:Q166142 } GROUP BY ?k } . FILTER ( ?q = ?m ) }
Aladdin media franchise Stargate The Walking Dead
Aladdin media franchise, Stargate and The Walking Dead are recounted in min number of applications
Aladdin media franchise Stargate The Walking Dead
action argmin
action find_tuple_counts
relation fictional universe described in
type work
type application
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'application'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?n ) WHERE { ?r property:fictional_universe_described_in ?u . ?r rdf:type ontology:work . ?u rdf:type ontology:application } GROUP BY ?r } } . { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?q ) WHERE { ?k property:fictional_universe_described_in ?o . ?k rdf:type ontology:work . ?o rdf:type ontology:application } GROUP BY ?k } . FILTER ( ?q = ?m ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3177580
P1080
Q6619679
USER
Which fictional humanoids belong to that work ?
(c(Q6619679),P1080,Q3177580)
action filter_type
action find_reverse
entity Q3177580
relation P1080
type Q6619679
[{'concept': 'Q6619679'}, 'P1080', 'Q3177580']
SELECT DISTINCT ?c WHERE { ?c property:P1080 resource:Q3177580 . ?c rdf:type ontology:Q6619679 }
The Walking Dead
action filter_type
action find_reverse
entity The Walking Dead
relation from fictional universe
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'from fictional universe', 'The Walking Dead']
SELECT DISTINCT ?c WHERE { ?c property:from_fictional_universe resource:The_Walking_Dead . ?c rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Clarification for simple ques.
Q3177580
SYSTEM
Did you mean The Walking Dead ?
Q15731902 Q11927 Q3177580
(c(Q6619679),P1080,Q15731902) (c(Q6619679),P1080,Q11927) (c(Q6619679),P1080,Q3177580)
[ANSWER]
[{'concept': 'Q6619679'}, 'P1080', 'Q15731902'] [{'concept': 'Q6619679'}, 'P1080', 'Q11927'] [{'concept': 'Q6619679'}, 'P1080', 'Q3177580']
SELECT DISTINCT ?c WHERE { ?c property:P1080 resource:Q3177580 . ?c rdf:type ontology:Q6619679 }
Aladdin media franchise Stargate The Walking Dead
Did you mean The Walking Dead ?
The Walking Dead
[{'concept': 'fictional humanoid'}, 'from fictional universe', 'Aladdin media franchise'] [{'concept': 'fictional humanoid'}, 'from fictional universe', 'Stargate'] [{'concept': 'fictional humanoid'}, 'from fictional universe', 'The Walking Dead']
SELECT DISTINCT ?c WHERE { ?c property:from_fictional_universe resource:The_Walking_Dead . ?c rdf:type ontology:fictional_humanoid }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q6619679),P1080,Q3177580)
[{'concept': 'Q6619679'}, 'P1080', 'Q3177580']
[{'concept': 'fictional humanoid'}, 'from fictional universe', 'The Walking Dead']
[]
Q6031395 Q6730243 Q605417
SYSTEM
The Governor, Maggie Greene, Rick Grimes
Q6911724 Q2690265 Q19864236 Q16150876 Q7861477 Q16211272 Q21233569 Q16209883 Q6730243 Q16211567 Q23091503 Q5744440 Q5131493 Q18343455 Q16210444 Q6513575 Q16210363 Q16211732 Q16209599 Q16997752 Q13424320 Q19573369 Q5044499 Q6031395 Q5040238 Q19865513 Q16211301 Q19865003 Q5210486 Q16210765 Q16209651 Q16210727 Q16211384 Q19868155 Q16210624 Q16150563 Q6819675 Q16211285 Q18150180 Q13579756 Q16211704 Q605417 Q16209605 Q16153465 Q2604786 Q19881110 Q5569065
(c(Q6619679),P1080,Q3177580)
action filter_type
action find_reverse
entity Q3177580
relation P1080
type Q6619679
[ANSWERS] belong to that work
[{'concept': 'Q6619679'}, 'P1080', 'Q3177580']
SELECT DISTINCT ?c WHERE { ?c property:P1080 resource:Q3177580 . ?c rdf:type ontology:Q6619679 }
Morgan Jones Daryl Dickson Jessie Anderson Andrew Tyreese Williams Oscar Paul Monroe Rosita Espinosa Maggie Greene Sasha Williams Dwight Hershel Greene Clementine Gareth Karen Lee Everett Jim Theodore "T-Dog" Douglas Allen Jimmy Sophia Peletier Noah Carol Peletier The Governor Carl Grimes Nicholas Patricia Deanna Monroe Dale Horvath Caesar Martinez Ben Milton Mamet Eugene Porter Aaron Lilly Abraham Ford Merle Dixon Otis Gabriel Stokes Beth Greene Bob Stookey Rick Grimes Amy Axel Shane Walsh Spencer Monroe Glenn Rhee
The Governor, Maggie Greene and Rick Grimes belong to that work
The Governor Maggie Greene Rick Grimes
action filter_type
action find_reverse
entity The Walking Dead
relation from fictional universe
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'from fictional universe', 'The Walking Dead']
SELECT DISTINCT ?c WHERE { ?c property:from_fictional_universe resource:The_Walking_Dead . ?c rdf:type ontology:fictional_humanoid }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q26712000
P629
Q838948 Q7725634 Q386724
USER
Which works are an edition or translation of greater number of works of art or literary works than Hércules y los Tecno-Griegos ?
(c(Q386724),P629,c(Q838948)|c(Q7725634))
action greater
action union
action find_tuple_counts
relation P629
type Q386724
type Q838948
action find_tuple_counts
relation P629
type Q386724
type Q7725634
action count
action filter_multi_types
action find
entity Q26712000
relation P629
type Q838948
type Q7725634
[{'concept': 'Q386724'}, 'P629', [{'concept': 'Q838948'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?y ) WHERE { VALUES ( ?c ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?d rdf:type ?c } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { { ?o rdf:type ontology:Q838948 } UNION { ?o rdf:type ontology:Q7725634 } } . resource:Q26712000 property:P629 ?o } } . FILTER ( ?y > ?p ) }
Hércules y los Tecno-Griegos
action greater
action union
action find_tuple_counts
relation edition or translation of
type work
type work of art
action find_tuple_counts
relation edition or translation of
type work
type literary work
action count
action filter_multi_types
action find
entity Hércules y los Tecno-Griegos
relation edition or translation of
type work of art
type literary work
[{'concept': 'work'}, 'edition or translation of', [{'concept': 'work of art'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?y ) WHERE { VALUES ( ?c ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?d rdf:type ?c } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { { ?o rdf:type ontology:work_of_art } UNION { ?o rdf:type ontology:literary_work } } . resource:Hércules_y_los_Tecno-Griegos property:edition_or_translation_of ?o } } . FILTER ( ?y > ?p ) }
[]
work of art literary work work
Q23894983 Q23752771 Q27627540
SYSTEM
Iron Man 2, Iron Man, Doctor Strange (Doctor Extraño)
Q19080411 Q24175397 Q25858085 Q23752771 Q27627540 Q27067729 Q19080429 Q23894983 Q19080420 Q26715049
(c(Q386724),P629,c(Q838948)|c(Q7725634))
action greater
action union
action find_tuple_counts
relation P629
type Q386724
type Q838948
action find_tuple_counts
relation P629
type Q386724
type Q7725634
action count
action filter_multi_types
action find
entity Q26712000
relation P629
type Q838948
type Q7725634
[ANSWERS] are an edition or translation of greater number of works of art or literary works than Hércules y los Tecno-Griegos
[{'concept': 'Q386724'}, 'P629', [{'concept': 'Q838948'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?y ) WHERE { VALUES ( ?c ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?d rdf:type ?c } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { { ?o rdf:type ontology:Q838948 } UNION { ?o rdf:type ontology:Q7725634 } } . resource:Q26712000 property:P629 ?o } } . FILTER ( ?y > ?p ) }
The Book of Thel Capitán América: El primer vengador Alicia a través del espejo Iron Man Doctor Strange (Doctor Extraño) Kommt erst mein Prinz zu mir The Book of Thel Iron Man 2 The Book of Thel Peter y el dragón
Iron Man 2, Iron Man and Doctor Strange (Doctor Extraño) are an edition or translation of greater number of works of art or literary works than Hércules y los Tecno-Griegos
Iron Man 2 Iron Man Doctor Strange (Doctor Extraño)
action greater
action union
action find_tuple_counts
relation edition or translation of
type work
type work of art
action find_tuple_counts
relation edition or translation of
type work
type literary work
action count
action filter_multi_types
action find
entity Hércules y los Tecno-Griegos
relation edition or translation of
type work of art
type literary work
[{'concept': 'work'}, 'edition or translation of', [{'concept': 'work of art'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?y ) WHERE { VALUES ( ?c ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?d rdf:type ?c } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { { ?o rdf:type ontology:work_of_art } UNION { ?o rdf:type ontology:literary_work } } . resource:Hércules_y_los_Tecno-Griegos property:edition_or_translation_of ?o } } . FILTER ( ?y > ?p ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q23894983 Q23752771 Q27627540
P629
Q838948
USER
Which works of art have Iron Man 2, Iron Man and Doctor Strange (Doctor Extraño) as the translation ?
(Q23894983,P629,c(Q838948)) (Q23752771,P629,c(Q838948)) (Q27627540,P629,c(Q838948))
action union
action filter_type
action find
entity Q23894983
relation P629
type Q838948
action filter_type
action find
entity Q23752771
relation P629
type Q838948
action filter_type
action find
entity Q27627540
relation P629
type Q838948
['Q23894983', 'P629', {'concept': 'Q838948'}] ['Q23752771', 'P629', {'concept': 'Q838948'}] ['Q27627540', 'P629', {'concept': 'Q838948'}]
SELECT DISTINCT ?s WHERE { { resource:Q23752771 property:P629 ?s . ?s rdf:type ontology:Q838948 } UNION { ?s rdf:type ontology:Q838948 . resource:Q23894983 property:P629 ?s } }
Iron Man 2 Iron Man Doctor Strange (Doctor Extraño)
action union
action filter_type
action find
entity Iron Man 2
relation edition or translation of
type work of art
action filter_type
action find
entity Iron Man
relation edition or translation of
type work of art
action filter_type
action find
entity Doctor Strange (Doctor Extraño)
relation edition or translation of
type work of art
['Iron Man 2', 'edition or translation of', {'concept': 'work of art'}] ['Iron Man', 'edition or translation of', {'concept': 'work of art'}] ['Doctor Strange (Doctor Extraño)', 'edition or translation of', {'concept': 'work of art'}]
SELECT DISTINCT ?s WHERE { { resource:Iron_Man property:edition_or_translation_of ?s . ?s rdf:type ontology:work_of_art } UNION { ?s rdf:type ontology:work_of_art . resource:Iron_Man_2 property:edition_or_translation_of ?s } }
[]
work of art
Q205028 Q192724 Q18406872
SYSTEM
Iron Man 2, Iron Man, Doctor Strange
Q205028 Q192724 Q18406872
(Q23894983,P629,c(Q838948)) (Q23752771,P629,c(Q838948)) (Q27627540,P629,c(Q838948))
action union
action filter_type
action find
entity Q23894983
relation P629
type Q838948
action filter_type
action find
entity Q23752771
relation P629
type Q838948
action filter_type
action find
entity Q27627540
relation P629
type Q838948
[ANSWERS] have [ANSWERS] (Doctor Extraño) as the translation
['Q23894983', 'P629', {'concept': 'Q838948'}] ['Q23752771', 'P629', {'concept': 'Q838948'}] ['Q27627540', 'P629', {'concept': 'Q838948'}]
SELECT DISTINCT ?s WHERE { { resource:Q23752771 property:P629 ?s . ?s rdf:type ontology:Q838948 } UNION { ?s rdf:type ontology:Q838948 . resource:Q23894983 property:P629 ?s } }
Iron Man 2 Iron Man Doctor Strange
Iron Man 2, Iron Man and Doctor Strange have Iron Man 2, Iron Man and Doctor Strange (Doctor Extraño) as the translation
Iron Man 2 Iron Man Doctor Strange
action union
action filter_type
action find
entity Iron Man 2
relation edition or translation of
type work of art
action filter_type
action find
entity Iron Man
relation edition or translation of
type work of art
action filter_type
action find
entity Doctor Strange (Doctor Extraño)
relation edition or translation of
type work of art
['Iron Man 2', 'edition or translation of', {'concept': 'work of art'}] ['Iron Man', 'edition or translation of', {'concept': 'work of art'}] ['Doctor Strange (Doctor Extraño)', 'edition or translation of', {'concept': 'work of art'}]
SELECT DISTINCT ?s WHERE { { resource:Iron_Man property:edition_or_translation_of ?s . ?s rdf:type ontology:work_of_art } UNION { ?s rdf:type ontology:work_of_art . resource:Iron_Man_2 property:edition_or_translation_of ?s } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q205028
P144
Q166142
USER
Which application is an extension that work of art ?
(c(Q166142),P144,Q205028)
action filter_type
action find_reverse
entity Q205028
relation P144
type Q166142
[{'concept': 'Q166142'}, 'P144', 'Q205028']
SELECT DISTINCT ?a WHERE { ?a property:P144 resource:Q205028 . ?a rdf:type ontology:Q166142 }
Iron Man 2
action filter_type
action find_reverse
entity Iron Man 2
relation based on
type application
[{'concept': 'application'}, 'based on', 'Iron Man 2']
SELECT DISTINCT ?a WHERE { ?a property:based_on resource:Iron_Man_2 . ?a rdf:type ontology:application }
[]
application
Clarification for simple ques.
Q18406872
SYSTEM
Did you mean Doctor Strange ?
Q205028 Q192724 Q18406872
(c(Q166142),P144,Q205028) (c(Q166142),P144,Q192724) (c(Q166142),P144,Q18406872)
[ANSWER]
[{'concept': 'Q166142'}, 'P144', 'Q205028'] [{'concept': 'Q166142'}, 'P144', 'Q192724'] [{'concept': 'Q166142'}, 'P144', 'Q18406872']
SELECT DISTINCT ?a WHERE { ?a property:P144 resource:Q205028 . ?a rdf:type ontology:Q166142 }
Iron Man 2 Iron Man Doctor Strange
Did you mean Doctor Strange ?
Doctor Strange
[{'concept': 'application'}, 'based on', 'Iron Man 2'] [{'concept': 'application'}, 'based on', 'Iron Man'] [{'concept': 'application'}, 'based on', 'Doctor Strange']
SELECT DISTINCT ?a WHERE { ?a property:based_on resource:Iron_Man_2 . ?a rdf:type ontology:application }
[]
Simple Question (Coreferenced)
USER
No, I meant Iron Man 2. Could you tell me the answer for that?
(c(Q166142),P144,Q205028)
Q205028
[{'concept': 'Q166142'}, 'P144', 'Q205028']
[{'concept': 'application'}, 'based on', 'Iron Man 2']
[]
Q1138903
SYSTEM
Iron Man 2
Q1138903
(c(Q166142),P144,Q205028)
action filter_type
action find_reverse
entity Q205028
relation P144
type Q166142
[ANSWER] is an extension that work of art
[{'concept': 'Q166142'}, 'P144', 'Q205028']
SELECT DISTINCT ?a WHERE { ?a property:P144 resource:Q205028 . ?a rdf:type ontology:Q166142 }
Iron Man 2
Iron Man 2 is an extension that work of art
Iron Man 2
action filter_type
action find_reverse
entity Iron Man 2
relation based on
type application
[{'concept': 'application'}, 'based on', 'Iron Man 2']
SELECT DISTINCT ?a WHERE { ?a property:based_on resource:Iron_Man_2 . ?a rdf:type ontology:application }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1138903 Q205028
P144
Q838948
USER
Is Iron Man 2 that application adapted from ?
(Q1138903,P144,Q205028)
action is_in
entity Q205028
action find
entity Q1138903
relation P144
['Q1138903', 'P144', 'Q205028']
ASK WHERE { resource:Q1138903 property:P144 resource:Q205028 }
Iron Man 2 Iron Man 2
action is_in
entity Iron Man 2
action find
entity Iron Man 2
relation based on
['Iron Man 2', 'based on', 'Iron Man 2']
ASK WHERE { resource:Iron_Man_2 property:based_on resource:Iron_Man_2 }
[]
work of art
SYSTEM
YES
(Q1138903,P144,Q205028)
action is_in
entity Q205028
action find
entity Q1138903
relation P144
[ANSWER]
['Q1138903', 'P144', 'Q205028']
ASK WHERE { resource:Q1138903 property:P144 resource:Q205028 }
Yes
action is_in
entity Iron Man 2
action find
entity Iron Man 2
relation based on
['Iron Man 2', 'based on', 'Iron Man 2']
ASK WHERE { resource:Iron_Man_2 property:based_on resource:Iron_Man_2 }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q886 Q18406872
P1441
Q6619679
USER
Which fictional humanoids are featured in Doctor Strange or The Simpsons ?
OR((c(Q6619679),P1441,Q18406872), (c(Q6619679),P1441,Q886))
action filter_type
action union
action find_reverse
entity Q18406872
relation P1441
action find_reverse
entity Q886
relation P1441
type Q6619679
{'OR': [[{'concept': 'Q6619679'}, 'P1441', 'Q18406872'], [{'concept': 'Q6619679'}, 'P1441', 'Q886']]}
SELECT DISTINCT ?h WHERE { { ?h property:P1441 ?b . VALUES ( ?b ) { ( resource:Q18406872 ) ( resource:Q886 ) } } . ?h rdf:type ontology:Q6619679 }
The Simpsons Doctor Strange
action filter_type
action union
action find_reverse
entity Doctor Strange
relation present in work
action find_reverse
entity The Simpsons
relation present in work
type fictional humanoid
{'OR': [[{'concept': 'fictional humanoid'}, 'present in work', 'Doctor Strange'], [{'concept': 'fictional humanoid'}, 'present in work', 'The Simpsons']]}
SELECT DISTINCT ?h WHERE { { ?h property:present_in_work ?b . VALUES ( ?b ) { ( resource:Doctor_Strange ) ( resource:The_Simpsons ) } } . ?h rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q27670370 Q1504443 Q1511184 Q24034722 Q969535 Q15241723 Q1504628 Q1751497 Q17255307 Q1458159
SYSTEM
Some of them are Concerned Doctor, Waylon Smithers, Edna Krabappel, Dr. Stephen Strange, Kent Brockman, Sarah Wiggum, Lionel Hutz, Dr. Nick, Todd Flanders, Professor Frink
Q26224467 Q1504550 Q27670356 Q1641818 Q739191 Q2409096 Q1504498 Q1458159 Q2704414 Q1411101 Q2480288 Q969535 Q3502068 Q27624531 Q12255480 Q727156 Q1158157 Q1503301 Q3355753 Q1766178 Q3356853 Q2479670 Q2997858 Q2992629 Q27670335 Q1751497 Q12041048 Q1634927 Q2039948 Q27237328 Q10406147 Q1509213 Q17255299 Q24043637 Q1504586 Q2264318 Q1589536 Q1408697 Q27670318 Q27670314 Q24034722 Q1511072 Q1503352 Q18149123 Q27624265 Q1511184 Q27670381 Q27670387 Q324430 Q27670389 Q27624478 Q3965831 Q1504443 Q24045752 Q1504526 Q15238532 Q27670364 Q1458168 Q3177394 Q1983092 Q745472 Q27624442 Q1514450 Q524177 Q15027304 Q24045741 Q26224485 Q24045748 Q27624560 Q1504628 Q1503373 Q27670370 Q1644810 Q27670374 Q1511163 Q17255307 Q2340973 Q2315146 Q15241723 Q1470014 Q2294047 Q27624318 Q27670340 Q3307708 Q27624499 Q27670271 Q716636 Q646166
OR((c(Q6619679),P1441,Q18406872), (c(Q6619679),P1441,Q886))
action filter_type
action union
action find_reverse
entity Q18406872
relation P1441
action find_reverse
entity Q886
relation P1441
type Q6619679
[ANSWERS] are featured in Doctor Strange or The Simpsons
{'OR': [[{'concept': 'Q6619679'}, 'P1441', 'Q18406872'], [{'concept': 'Q6619679'}, 'P1441', 'Q886']]}
SELECT DISTINCT ?h WHERE { { ?h property:P1441 ?b . VALUES ( ?b ) { ( resource:Q18406872 ) ( resource:Q886 ) } } . ?h rdf:type ontology:Q6619679 }
Dr. Christine Palmer Troy McClure Dr. Weiss Mona Simpson Manhattan Shelbyville Superintendent Chalmers Fat Tony Professor Frink Jebediah Springfield Sideshow Bob Kearney Zzyzwicz Kent Brockman Jessica Lovejoy Hamir Brandine Spuckler Krusty the Clown Ned Flanders Hans Moleman Marvin Monroe Maude Flanders Orville Simpson Bleeding Gums Murphy Helen Lovejoy Kirk Van Houten Nurse Billy Dr. Nick Norbert Van Houten Otto Mann Snake Jonathan Pangborn Patty Bouvier Carl Carlson Rod Flanders Mordo Dr. Hibbert Agnes Skinner Sideshow Mel Apu Nahasapeemapetilon Dr. Patel Daniel Drumm Dr. Stephen Strange Cletus Spuckler Chief Wiggum Database Dr. Bruner Edna Krabappel Mugger Kamar-Taj Librarian Groundskeeper Willie Bullet Patient's Wife Tall Zealot Dolph Waylon Smithers Wong Comic Book Guy Luann Van Houten Physical Therapist Ralph Wiggum Ling Bouvier Martin Prince Mayor Quimby Brunette Zealot Milhouse Van Houten Reverend Lovejoy Captain Horatio McCallister The Ancient One Kaecilius Dr. Nicodemus West Sol Rama Lionel Hutz Principal Skinner Concerned Doctor Lenny Leonard Reluctant Surgeon Nelson Muntz Todd Flanders Herbert Powell Jimbo Jones Sarah Wiggum Barney Gumble Disco Stu Lucian/Strong Zealot Dr. Garrison Selma Bouvier Blonde Zealot Tina Minoru Mr. Burns Moe Szyslak
Concerned Doctor, Waylon Smithers, Edna Krabappel, Dr. Stephen Strange, Kent Brockman, Sarah Wiggum, Lionel Hutz, Dr. Nick, Todd Flanders and Professor Frink are featured in Doctor Strange or The Simpsons
Concerned Doctor Waylon Smithers Edna Krabappel Dr. Stephen Strange Kent Brockman Sarah Wiggum Lionel Hutz Dr. Nick Todd Flanders Professor Frink
action filter_type
action union
action find_reverse
entity Doctor Strange
relation present in work
action find_reverse
entity The Simpsons
relation present in work
type fictional humanoid
{'OR': [[{'concept': 'fictional humanoid'}, 'present in work', 'Doctor Strange'], [{'concept': 'fictional humanoid'}, 'present in work', 'The Simpsons']]}
SELECT DISTINCT ?h WHERE { { ?h property:present_in_work ?b . VALUES ( ?b ) { ( resource:Doctor_Strange ) ( resource:The_Simpsons ) } } . ?h rdf:type ontology:fictional_humanoid }
[]