Simple Question (Direct)
Simple Question
Q1191668
P50
Q502895
USER
Which person authored Kamikaze Girls ?
(Q1191668,P50,c(Q502895))
action filter_type
action find
entity Q1191668
relation P50
type Q502895
['Q1191668', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q1191668 property:P50 ?z . ?z rdf:type ontology:Q502895 }
Kamikaze Girls
action filter_type
action find
entity Kamikaze Girls
relation author
type common name
['Kamikaze Girls', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Kamikaze_Girls property:author ?z . ?z rdf:type ontology:common_name }
[]
common name
Q6139729
SYSTEM
Novala Takemoto
Q6139729
(Q1191668,P50,c(Q502895))
action filter_type
action find
entity Q1191668
relation P50
type Q502895
[ANSWER] authored Kamikaze Girls
['Q1191668', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q1191668 property:P50 ?z . ?z rdf:type ontology:Q502895 }
Novala Takemoto
Novala Takemoto authored Kamikaze Girls
Novala Takemoto
action filter_type
action find
entity Kamikaze Girls
relation author
type common name
['Kamikaze Girls', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Kamikaze_Girls property:author ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1191668
P57
Q502895
USER
Which person served as the directed of that work of art ?
(Q6139729,P57,c(Q502895))
action filter_type
action find
entity Q1191668
relation P57
type Q502895
['Q6139729', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1191668 property:P57 ?j . ?j rdf:type ontology:Q502895 }
Kamikaze Girls
action filter_type
action find
entity Kamikaze Girls
relation director
type common name
['Novala Takemoto', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Kamikaze_Girls property:director ?j . ?j rdf:type ontology:common_name }
[]
common name
Q1316131
SYSTEM
Tetsuya Nakashima
Q1316131
(Q6139729,P57,c(Q502895))
action filter_type
action find
entity Q1191668
relation P57
type Q502895
[ANSWER] served as the directed of that work of art
['Q6139729', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1191668 property:P57 ?j . ?j rdf:type ontology:Q502895 }
Tetsuya Nakashima
Tetsuya Nakashima served as the directed of that work of art
Tetsuya Nakashima
action filter_type
action find
entity Kamikaze Girls
relation director
type common name
['Novala Takemoto', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Kamikaze_Girls property:director ?j . ?j rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q270470
P725
Q502895 Q11424
USER
Which films had their voice dubbing done by approximately the same number of people as Peter Pan ?
(c(Q11424),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q270470
relation P725
type Q11424
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?u ) WHERE { ?m rdf:type ontology:Q11424 . ?h rdf:type ontology:Q502895 . ?m property:P725 ?h } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { resource:Q270470 property:P725 ?f . ?f rdf:type ontology:Q11424 } } . FILTER ( ?u = ?x ) }
Peter Pan
action approx
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity Peter Pan
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?u ) WHERE { ?m rdf:type ontology:film . ?h rdf:type ontology:common_name . ?m property:voice_actor ?h } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { resource:Peter_Pan property:voice_actor ?f . ?f rdf:type ontology:film } } . FILTER ( ?u = ?x ) }
[]
common name film
Q19090 Q270470 Q39722
SYSTEM
Robin Hood, Peter Pan, The Rescuers
Q378913 Q191753 Q6929072 Q785294 Q204662 Q521082 Q1764174 Q752301 Q270470 Q334132 Q215518 Q1160649 Q134430 Q215617 Q853718 Q12084660 Q578595 Q933887 Q329316 Q213787 Q611739 Q980041 Q3588859 Q249967 Q19090 Q184701 Q2059996 Q465275 Q218894 Q15270775 Q172284 Q202371 Q40302 Q189875 Q43051 Q917278 Q498434 Q199839 Q36479 Q39722 Q40895 Q3226633
(c(Q11424),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q270470
relation P725
type Q11424
[ANSWERS] had their voice dubbing done by approximately the same number of people as Peter Pan
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?u ) WHERE { ?m rdf:type ontology:Q11424 . ?h rdf:type ontology:Q502895 . ?m property:P725 ?h } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { resource:Q270470 property:P725 ?f . ?f rdf:type ontology:Q11424 } } . FILTER ( ?u = ?x ) }
The Lord of the Rings Cinderella Mr. Peabody & Sherman Captain of the Forest The Sword in the Stone Szaffi Quest for Camelot Flushed Away Peter Pan The Great Mouse Detective Aladdin Mattie the Goose-boy Snow White and the Seven Dwarfs Sleeping Beauty Fun and Fancy Free The Princess and the Goblin Paprika Tintin and the Temple of the Sun The Black Cauldron The Hunchback of Notre Dame The Ballad of the Daltons The Adventures of Tintin Emilie Jolie Hotel Transylvania Robin Hood The Aristocats My Little Pony: The Movie Fantastic Mr. Fox Pocahontas Hotel Transylvania 2 Lady and the Tramp The Rescuers Down Under The Fox and the Hound Alice in Wonderland Bambi Tokyo Godfathers The Many Adventures of Winnie the Pooh The Jungle Book The Lion King The Rescuers Dumbo Renart the Fox
Robin Hood, Peter Pan and The Rescuers had their voice dubbing done by approximately the same number of people as Peter Pan
Robin Hood Peter Pan The Rescuers
action approx
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity Peter Pan
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?u ) WHERE { ?m rdf:type ontology:film . ?h rdf:type ontology:common_name . ?m property:voice_actor ?h } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { resource:Peter_Pan property:voice_actor ?f . ?f rdf:type ontology:film } } . FILTER ( ?u = ?x ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P840
Q123705 Q3895768
USER
How many neighborhoods or fictional locations are that film set in ?
(Q270470,P840,c(Q123705)) (Q270470,P840,c(Q3895768)) (Q19090,P840,c(Q123705)) (Q19090,P840,c(Q3895768)) (Q270470,P840,c(Q123705)) (Q270470,P840,c(Q3895768)) (Q39722,P840,c(Q123705)) (Q39722,P840,c(Q3895768))
['Q270470', 'P840', {'concept': 'Q123705'}] ['Q270470', 'P840', {'concept': 'Q3895768'}] ['Q19090', 'P840', {'concept': 'Q123705'}] ['Q19090', 'P840', {'concept': 'Q3895768'}] ['Q270470', 'P840', {'concept': 'Q123705'}] ['Q270470', 'P840', {'concept': 'Q3895768'}] ['Q39722', 'P840', {'concept': 'Q123705'}] ['Q39722', 'P840', {'concept': 'Q3895768'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q20712804 property:P840 ?z } UNION { resource:Q20712804 property:P840 ?y } UNION { resource:Q689658 property:P840 ?z } UNION { resource:Q689658 property:P840 ?y } UNION { resource:Q20712804 property:P840 ?z } UNION { resource:Q20712804 property:P840 ?y } UNION { resource:Q39722 property:P840 ?z } UNION { resource:Q39722 property:P840 ?y } } . ?z rdf:type ontology:Q123705 . ?y rdf:type ontology:Q3895768 }
['Peter Pan', 'narrative location', {'concept': 'neighborhood'}] ['Peter Pan', 'narrative location', {'concept': 'fictional location'}] ['Robin Hood', 'narrative location', {'concept': 'neighborhood'}] ['Robin Hood', 'narrative location', {'concept': 'fictional location'}] ['Peter Pan', 'narrative location', {'concept': 'neighborhood'}] ['Peter Pan', 'narrative location', {'concept': 'fictional location'}] ['The Rescuers', 'narrative location', {'concept': 'neighborhood'}] ['The Rescuers', 'narrative location', {'concept': 'fictional location'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Peter_Pan property:narrative_location ?z } UNION { resource:Peter_Pan property:narrative_location ?y } UNION { resource:Robin_Hood property:narrative_location ?z } UNION { resource:Robin_Hood property:narrative_location ?y } UNION { resource:Peter_Pan property:narrative_location ?z } UNION { resource:Peter_Pan property:narrative_location ?y } UNION { resource:The_Rescuers property:narrative_location ?z } UNION { resource:The_Rescuers property:narrative_location ?y } } . ?z rdf:type ontology:neighborhood . ?y rdf:type ontology:fictional_location }
[]
neighborhood fictional location
Quantitative|Count|Mult. entity type|Clarification
Q19090
SYSTEM
Did you mean Robin Hood ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q20712804 property:P840 ?z } UNION { resource:Q20712804 property:P840 ?y } UNION { resource:Q689658 property:P840 ?z } UNION { resource:Q689658 property:P840 ?y } UNION { resource:Q20712804 property:P840 ?z } UNION { resource:Q20712804 property:P840 ?y } UNION { resource:Q39722 property:P840 ?z } UNION { resource:Q39722 property:P840 ?y } } . ?z rdf:type ontology:Q123705 . ?y rdf:type ontology:Q3895768 }
Did you mean Robin Hood ?
Robin Hood
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Peter_Pan property:narrative_location ?z } UNION { resource:Peter_Pan property:narrative_location ?y } UNION { resource:Robin_Hood property:narrative_location ?z } UNION { resource:Robin_Hood property:narrative_location ?y } UNION { resource:Peter_Pan property:narrative_location ?z } UNION { resource:Peter_Pan property:narrative_location ?y } UNION { resource:The_Rescuers property:narrative_location ?z } UNION { resource:The_Rescuers property:narrative_location ?y } } . ?z rdf:type ontology:neighborhood . ?y rdf:type ontology:fictional_location }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Peter Pan. Could you tell me the answer for that?
(Q270470,P840,c(Q123705)) (Q270470,P840,c(Q3895768)) (Q19090,P840,c(Q123705)) (Q19090,P840,c(Q3895768)) (Q270470,P840,c(Q123705)) (Q270470,P840,c(Q3895768)) (Q39722,P840,c(Q123705)) (Q39722,P840,c(Q3895768))
Q270470
['Q270470', 'P840', {'concept': 'Q123705'}] ['Q270470', 'P840', {'concept': 'Q3895768'}] ['Q19090', 'P840', {'concept': 'Q123705'}] ['Q19090', 'P840', {'concept': 'Q3895768'}] ['Q270470', 'P840', {'concept': 'Q123705'}] ['Q270470', 'P840', {'concept': 'Q3895768'}] ['Q39722', 'P840', {'concept': 'Q123705'}] ['Q39722', 'P840', {'concept': 'Q3895768'}]
['Peter Pan', 'narrative location', {'concept': 'neighborhood'}] ['Peter Pan', 'narrative location', {'concept': 'fictional location'}] ['Robin Hood', 'narrative location', {'concept': 'neighborhood'}] ['Robin Hood', 'narrative location', {'concept': 'fictional location'}] ['Peter Pan', 'narrative location', {'concept': 'neighborhood'}] ['Peter Pan', 'narrative location', {'concept': 'fictional location'}] ['The Rescuers', 'narrative location', {'concept': 'neighborhood'}] ['The Rescuers', 'narrative location', {'concept': 'fictional location'}]
[]
SYSTEM
2
Q1646867 Q150120
(Q270470,P840,c(Q123705)) (Q270470,P840,c(Q3895768)) (Q19090,P840,c(Q123705)) (Q19090,P840,c(Q3895768)) (Q270470,P840,c(Q123705)) (Q270470,P840,c(Q3895768)) (Q39722,P840,c(Q123705)) (Q39722,P840,c(Q3895768))
[ANSWER]
['Q270470', 'P840', {'concept': 'Q123705'}] ['Q270470', 'P840', {'concept': 'Q3895768'}] ['Q19090', 'P840', {'concept': 'Q123705'}] ['Q19090', 'P840', {'concept': 'Q3895768'}] ['Q270470', 'P840', {'concept': 'Q123705'}] ['Q270470', 'P840', {'concept': 'Q3895768'}] ['Q39722', 'P840', {'concept': 'Q123705'}] ['Q39722', 'P840', {'concept': 'Q3895768'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q20712804 property:P840 ?z } UNION { resource:Q20712804 property:P840 ?y } UNION { resource:Q689658 property:P840 ?z } UNION { resource:Q689658 property:P840 ?y } UNION { resource:Q20712804 property:P840 ?z } UNION { resource:Q20712804 property:P840 ?y } UNION { resource:Q39722 property:P840 ?z } UNION { resource:Q39722 property:P840 ?y } } . ?z rdf:type ontology:Q123705 . ?y rdf:type ontology:Q3895768 }
Neverland Bloomsbury
2
['Peter Pan', 'narrative location', {'concept': 'neighborhood'}] ['Peter Pan', 'narrative location', {'concept': 'fictional location'}] ['Robin Hood', 'narrative location', {'concept': 'neighborhood'}] ['Robin Hood', 'narrative location', {'concept': 'fictional location'}] ['Peter Pan', 'narrative location', {'concept': 'neighborhood'}] ['Peter Pan', 'narrative location', {'concept': 'fictional location'}] ['The Rescuers', 'narrative location', {'concept': 'neighborhood'}] ['The Rescuers', 'narrative location', {'concept': 'fictional location'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Peter_Pan property:narrative_location ?z } UNION { resource:Peter_Pan property:narrative_location ?y } UNION { resource:Robin_Hood property:narrative_location ?z } UNION { resource:Robin_Hood property:narrative_location ?y } UNION { resource:Peter_Pan property:narrative_location ?z } UNION { resource:Peter_Pan property:narrative_location ?y } UNION { resource:The_Rescuers property:narrative_location ?z } UNION { resource:The_Rescuers property:narrative_location ?y } } . ?z rdf:type ontology:neighborhood . ?y rdf:type ontology:fictional_location }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1396241 Q270470
P27 P495
Q15617994
USER
Which administrative territories are the countries of origin of Peter Pan and are Margaret Corbin a civilian of ?
AND((Q270470,P495,c(Q15617994)), (Q1396241,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q270470
relation P495
action find
entity Q1396241
relation P27
type Q15617994
{'AND': [['Q270470', 'P495', {'concept': 'Q15617994'}], ['Q1396241', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q270470 property:P495 ?p . resource:Q1396241 property:P27 ?p }
Margaret Corbin Peter Pan
action filter_type
action intersection
action find
entity Peter Pan
relation country of origin
action find
entity Margaret Corbin
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Peter Pan', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Margaret Corbin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Peter_Pan property:country_of_origin ?p . resource:Margaret_Corbin property:country_of_citizenship ?p }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q270470,P495,c(Q15617994)), (Q1396241,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q270470
relation P495
action find
entity Q1396241
relation P27
type Q15617994
[ANSWER] is the countries of origin of Peter Pan and is Margaret Corbin a civilian of
{'AND': [['Q270470', 'P495', {'concept': 'Q15617994'}], ['Q1396241', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q270470 property:P495 ?p . resource:Q1396241 property:P27 ?p }
United States of America
United States of America is the countries of origin of Peter Pan and is Margaret Corbin a civilian of
United States of America
action filter_type
action intersection
action find
entity Peter Pan
relation country of origin
action find
entity Margaret Corbin
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Peter Pan', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Margaret Corbin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Peter_Pan property:country_of_origin ?p . resource:Margaret_Corbin property:country_of_citizenship ?p }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1441
Q838948 Q6619679 Q502895
USER
Which works of art contain min number of fictional humanoids and people ?
(c(Q6619679)|c(Q502895),P1441,c(Q838948))
action argmin
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q502895
[[{'concept': 'Q6619679'}, {'concept': 'Q502895'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?q = ?v ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?c WHERE { { ?n property:P1441 ?c . ?c rdf:type ontology:Q838948 . ?n rdf:type ontology:Q6619679 } UNION { ?n property:P1441 ?c . ?c rdf:type ontology:Q838948 . ?n rdf:type ontology:Q502895 } } GROUP BY ?c } . { SELECT DISTINCT ( MIN ( ?w ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?a WHERE { ?i rdf:type ?j . VALUES ( ?j ) { ( ontology:Q6619679 ) ( ontology:Q502895 ) } } GROUP BY ?a } } }
action argmin
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation present in work
type work of art
type common name
[[{'concept': 'fictional humanoid'}, {'concept': 'common name'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?q = ?v ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?c WHERE { { ?n property:present_in_work ?c . ?c rdf:type ontology:work_of_art . ?n rdf:type ontology:fictional_humanoid } UNION { ?n property:present_in_work ?c . ?c rdf:type ontology:work_of_art . ?n rdf:type ontology:common_name } } GROUP BY ?c } . { SELECT DISTINCT ( MIN ( ?w ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?a WHERE { ?i rdf:type ?j . VALUES ( ?j ) { ( ontology:fictional_humanoid ) ( ontology:common_name ) } } GROUP BY ?a } } }
[]
work of art fictional humanoid common name
Q107226 Q102244 Q2875
SYSTEM
The Bourne Ultimatum, Harry Potter and the Chamber of Secrets, Gone with the Wind
Q4008453 Q2875 Q28234 Q1140272 Q1507513 Q221947 Q7750966 Q3273477 Q1388653 Q215750 Q171453 Q484675 Q719915 Q537407 Q4655870 Q58972 Q458629 Q388319 Q15304052 Q886675 Q108543 Q3211484 Q2527293 Q1293934 Q181598 Q2891244 Q4253250 Q146673 Q370326 Q83186 Q743194 Q27061795 Q181795 Q42051 Q171669 Q881000 Q431660 Q133654 Q8561227 Q467053 Q1364029 Q919649 Q1271824 Q183304 Q7561043 Q1433571 Q179215 Q16997069 Q174284 Q18402 Q1962005 Q130851 Q222939 Q221236 Q19946102 Q105702 Q4189330 Q220713 Q303040 Q182373 Q24278982 Q466781 Q7764815 Q785461 Q15140437 Q219421 Q185658 Q19842746 Q1248429 Q466423 Q1962032 Q41567 Q548303 Q24871 Q124612 Q886719 Q543403 Q176568 Q1702819 Q156539 Q641362 Q123742 Q1810461 Q18200409 Q104814 Q3311826 Q810012 Q507994 Q1125262 Q1639322 Q20711488 Q969098 Q14513321 Q114819 Q274167 Q8873426 Q3739484 Q80379 Q1749311 Q379873 Q588470 Q170250 Q161687 Q11060926 Q715374 Q153723 Q110206 Q949228 Q1125566 Q18703028 Q6402953 Q691611 Q515931 Q107226 Q590098 Q19648591 Q2419344 Q3024211 Q192142 Q15005 Q1168778 Q1224659 Q9125658 Q777591 Q329127 Q3114616 Q164963 Q15713892 Q248775 Q868483 Q3985991 Q58439 Q19264018 Q268824 Q673153 Q458852 Q835650 Q1583966 Q18815806 Q211009 Q7913393 Q162255 Q170564 Q1146570 Q103569 Q458314 Q1757288 Q192979 Q15715647 Q608261 Q226773 Q1759684 Q171300 Q102244 Q190050 Q673198 Q3224298 Q1322906 Q172271 Q7752052 Q179411 Q722267 Q181069 Q15046091 Q15040681 Q3476432
(c(Q6619679)|c(Q502895),P1441,c(Q838948))
action argmin
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q502895
[ANSWERS] contain min number of fictional humanoids and people
[[{'concept': 'Q6619679'}, {'concept': 'Q502895'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?q = ?v ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?c WHERE { { ?n property:P1441 ?c . ?c rdf:type ontology:Q838948 . ?n rdf:type ontology:Q6619679 } UNION { ?n property:P1441 ?c . ?c rdf:type ontology:Q838948 . ?n rdf:type ontology:Q502895 } } GROUP BY ?c } . { SELECT DISTINCT ( MIN ( ?w ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?a WHERE { ?i rdf:type ?j . VALUES ( ?j ) { ( ontology:Q6619679 ) ( ontology:Q502895 ) } } GROUP BY ?a } } }
Vampirella Gone with the Wind Les Misérables Soul Food Tremors 3: Back to Perfection The Jungle Book 2 The Memorandum Ma and Pa Kettle Pacific Rim Julius Caesar Transformers Léon: The Professional The Hobbit: The Desolation of Smaug Mulan A Chinese Tall Story Masters of the Universe Billy Elliot Star Trek: Nemesis Pokémon the Movie: Diancie and the Cocoon of Destruction My Bloody Valentine Alien 3 Me Two The Creature Walks Among Us Fright Night II King Lear Una Película de Huevos Journey to the West: Conquering the Demons Basic Instinct Eraser Romeo and Juliet The Winter's Tale The Wacky World of Dr. Morgus The Empire Strikes Back Star Wars: Episode III – Revenge of the Sith One Flew Over the Cuckoo's Nest Blacula Godzilla: Final Wars The Silence of the Lambs Divergent A Bridge Too Far Peter Pan The Hobbit: The Battle of the Five Armies Cleopatra Jones Troilus and Cressida Final Destination Tremors 2: Aftershocks Indiana Jones and the Temple of Doom The Divergent Series: Insurgent Raiders of the Lost Ark La Strada Bloodfist II Much Ado About Nothing Jumanji Star Trek: First Contact Beauty and the Beast Dr. Strangelove Kamen Rider Blade: Missing Ace American Pie American Reunion Indiana Jones and the Kingdom of the Crystal Skull Indiana Jones 5 All the President's Men The Sleepy Twinkle Star Sudden Impact Terminator Genisys The Mask Indiana Jones and the Last Crusade Teenage Mutant Ninja Turtles: Out of the Shadows Police Academy American Wedding Bloodfist Hamlet The Tailor of Panama Avatar Creature from the Black Lagoon Manhunter Dead Silence The Forbidden Kingdom Secret of the Wings Highlander Monsters University Cloverfield Springtime with Roo A Monster Calls Aliens Mickey's Follies Basic Instinct 2 The Hunt for Red October Mad Max 2 Our American Cousin Harry Potter and the Cursed Child Phèdre Warcraft Dune The Exorcist Voyage to the Bottom of the Sea The Adventures of Buratino The Hobbit: An Unexpected Journey Tremors 4: The Legend Begins Who Framed Roger Rabbit Ernest Goes to Camp Bicentennial Man Harry Potter and the Half-Blood Prince A Walk Among the Tombstones Initial D Inglourious Basterds Dirty Harry Sholay Duck Soup Now You See Me: The Second Act Khumba Serenity Willow The Bourne Ultimatum Ultimate Avengers 2 The Divergent Series: Allegiant Revenge of the Creature La Cité de la peur Terminator 3: Rise of the Machines Woe from Wit The House by the Cemetery Digimon Adventure: Bokura no War Game! Red Dragon For Love of the Game American Pie 2 Hannibal Rising The Lord of the Rings: The Two Towers Pan Mad Max A Chinese Odyssey The Black Cobra 2 Teenage Mutant Ninja Turtles Tremors 5: Bloodline Fright Night Same Old Song Magnum Force Tremors Underdog Pokémon the Movie: Hoopa and the Clash of Ages Van Helsing Van Helsing: The London Assignment The Terminator Terminator 2: Judgment Day Howard the Duck Alien Alien: Resurrection Mad Max: Fury Road Clash of the Titans Survivor Assemblywomen Wrath of the Titans Atragon The Princess and the Frog Harry Potter and the Chamber of Secrets Fight Club Star Trek: Insurrection Tangled Ever After Centurion Maleficent The Monkey King A Very Merry Pooh Year Beverly Hills Cop Star Wars Episode II: Attack of the Clones Cinderella Fright Night 2: New Blood Scream Blacula Scream
The Bourne Ultimatum, Harry Potter and the Chamber of Secrets and Gone with the Wind contain min number of fictional humanoids and people
The Bourne Ultimatum Harry Potter and the Chamber of Secrets Gone with the Wind
action argmin
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation present in work
type work of art
type common name
[[{'concept': 'fictional humanoid'}, {'concept': 'common name'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?q = ?v ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?c WHERE { { ?n property:present_in_work ?c . ?c rdf:type ontology:work_of_art . ?n rdf:type ontology:fictional_humanoid } UNION { ?n property:present_in_work ?c . ?c rdf:type ontology:work_of_art . ?n rdf:type ontology:common_name } } GROUP BY ?c } . { SELECT DISTINCT ( MIN ( ?w ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?a WHERE { ?i rdf:type ?j . VALUES ( ?j ) { ( ontology:fictional_humanoid ) ( ontology:common_name ) } } GROUP BY ?a } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2875
P921
Q601401
USER
What was the main subject in the work that work of art ?
(Q2875,P921,c(Q601401))
action filter_type
action find
entity Q2875
relation P921
type Q601401
['Q2875', 'P921', {'concept': 'Q601401'}]
SELECT DISTINCT ?m WHERE { resource:Q2875 property:P921 ?m . ?m rdf:type ontology:Q601401 }
Gone with the Wind
action filter_type
action find
entity Gone with the Wind
relation main subject
type trade
['Gone with the Wind', 'main subject', {'concept': 'trade'}]
SELECT DISTINCT ?m WHERE { resource:Gone_with_the_Wind property:main_subject ?m . ?m rdf:type ontology:trade }
[]
trade
Clarification for simple ques.
Q2875
SYSTEM
Did you mean Gone with the Wind ?
Q107226 Q102244 Q2875
(Q107226,P921,c(Q601401)) (Q102244,P921,c(Q601401)) (Q2875,P921,c(Q601401))
[ANSWER]
['Q107226', 'P921', {'concept': 'Q601401'}] ['Q102244', 'P921', {'concept': 'Q601401'}] ['Q2875', 'P921', {'concept': 'Q601401'}]
SELECT DISTINCT ?m WHERE { resource:Q2875 property:P921 ?m . ?m rdf:type ontology:Q601401 }
The Bourne Ultimatum Harry Potter and the Chamber of Secrets Gone with the Wind
Did you mean Gone with the Wind ?
Gone with the Wind
['The Bourne Ultimatum', 'main subject', {'concept': 'trade'}] ['Harry Potter and the Chamber of Secrets', 'main subject', {'concept': 'trade'}] ['Gone with the Wind', 'main subject', {'concept': 'trade'}]
SELECT DISTINCT ?m WHERE { resource:Gone_with_the_Wind property:main_subject ?m . ?m rdf:type ontology:trade }
[]
Simple Question (Coreferenced)
USER
Yes
(Q2875,P921,c(Q601401))
['Q2875', 'P921', {'concept': 'Q601401'}]
['Gone with the Wind', 'main subject', {'concept': 'trade'}]
[]
Q118382
SYSTEM
slavery in the United States
Q118382
(Q2875,P921,c(Q601401))
action filter_type
action find
entity Q2875
relation P921
type Q601401
The main subject in the work that work of art was in [ANSWER]
['Q2875', 'P921', {'concept': 'Q601401'}]
SELECT DISTINCT ?m WHERE { resource:Q2875 property:P921 ?m . ?m rdf:type ontology:Q601401 }
slavery in the United States
The main subject in the work that work of art was in slavery in the United States
slavery in the United States
action filter_type
action find
entity Gone with the Wind
relation main subject
type trade
['Gone with the Wind', 'main subject', {'concept': 'trade'}]
SELECT DISTINCT ?m WHERE { resource:Gone_with_the_Wind property:main_subject ?m . ?m rdf:type ontology:trade }
[]