Simple Question (Direct)
Simple Question
Q7507909
P106
Q12737077
USER
What do Sid Silvers do for a living ?
(Q7507909,P106,c(Q12737077))
action filter_type
action find
entity Q7507909
relation P106
type Q12737077
['Q7507909', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q7507909 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Sid Silvers
action filter_type
action find
entity Sid Silvers
relation occupation
type occupation
['Sid Silvers', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Sid_Silvers property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q822146 Q753110 Q33999
SYSTEM
lyricist, songwriter, actor
Q753110 Q33999 Q822146 Q2722764
(Q7507909,P106,c(Q12737077))
action filter_type
action find
entity Q7507909
relation P106
type Q12737077
[ANSWERS]
['Q7507909', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q7507909 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
songwriter actor lyricist radio personality
lyricist songwriter actor
action filter_type
action find
entity Sid Silvers
relation occupation
type occupation
['Sid Silvers', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Sid_Silvers property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7507909
P58
Q838948
USER
What is Sid Silvers a screwriter of ?
(c(Q838948),P58,Q7507909)
action filter_type
action find_reverse
entity Q7507909
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q7507909']
SELECT DISTINCT ?i WHERE { ?i property:P58 resource:Q7507909 . ?i rdf:type ontology:Q838948 }
Sid Silvers
action filter_type
action find_reverse
entity Sid Silvers
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Sid Silvers']
SELECT DISTINCT ?i WHERE { ?i property:screenwriter resource:Sid_Silvers . ?i rdf:type ontology:work_of_art }
[]
work of art
Q1619460
SYSTEM
Broadway Melody of 1936
Q1619460
(c(Q838948),P58,Q7507909)
action filter_type
action find_reverse
entity Q7507909
relation P58
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P58', 'Q7507909']
SELECT DISTINCT ?i WHERE { ?i property:P58 resource:Q7507909 . ?i rdf:type ontology:Q838948 }
Broadway Melody of 1936
Broadway Melody of 1936
action filter_type
action find_reverse
entity Sid Silvers
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Sid Silvers']
SELECT DISTINCT ?i WHERE { ?i property:screenwriter resource:Sid_Silvers . ?i rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1619460
P1040
Q502895
USER
Who has editted that work of art ?
(Q1619460,P1040,c(Q502895))
action filter_type
action find
entity Q1619460
relation P1040
type Q502895
['Q1619460', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q1619460 property:P1040 ?g . ?g rdf:type ontology:Q502895 }
Broadway Melody of 1936
action filter_type
action find
entity Broadway Melody of 1936
relation film editor
type common name
['Broadway Melody of 1936', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Broadway_Melody_of_1936 property:film_editor ?g . ?g rdf:type ontology:common_name }
[]
common name
Q509759
SYSTEM
Blanche Sewell
Q509759
(Q1619460,P1040,c(Q502895))
action filter_type
action find
entity Q1619460
relation P1040
type Q502895
[ANSWER]
['Q1619460', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q1619460 property:P1040 ?g . ?g rdf:type ontology:Q502895 }
Blanche Sewell
Blanche Sewell
action filter_type
action find
entity Broadway Melody of 1936
relation film editor
type common name
['Broadway Melody of 1936', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Broadway_Melody_of_1936 property:film_editor ?g . ?g rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q95074
USER
Which fictional characters did atmost 2 people do the dubbing for ?
(c(Q95074),P725,c(Q502895))
action atmost
action find_tuple_counts
relation P725
type Q95074
type Q502895
value 2
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?h ) WHERE { ?i property:P725 ?z . ?i rdf:type ontology:Q95074 . ?z rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?h <= 2 ) }
action atmost
action find_tuple_counts
relation voice actor
type fictional character
type common name
value 2
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?h ) WHERE { ?i property:voice_actor ?z . ?i rdf:type ontology:fictional_character . ?z rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?h <= 2 ) }
[]
common name fictional character
Q7828 Q7810 Q247120
SYSTEM
Marge Simpson, Homer Simpson, Neo
Q16027672 Q21847055 Q3498590 Q308950 Q28465 Q551327 Q21837832 Q21847115 Q15710873 Q2442950 Q21847074 Q21837038 Q7828 Q3838346 Q2570349 Q8139731 Q247120 Q1529229 Q21847089 Q21847086 Q17349786 Q21847215 Q21837905 Q1621656 Q2544561 Q27493503 Q1984009 Q605125 Q21847105 Q21847103 Q5846 Q7810 Q2725247
(c(Q95074),P725,c(Q502895))
action atmost
action find_tuple_counts
relation P725
type Q95074
type Q502895
value 2
[ANSWERS]
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?h ) WHERE { ?i property:P725 ?z . ?i rdf:type ontology:Q95074 . ?z rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?h <= 2 ) }
Dr. Stewart Itsuki Tachibana Chester Cheetah Ash Ketchum Peter Griffin terminator Kyōichi Sudō Fumihiro Princess Celestia Max Rockatansky Kōichirō Iketani Keisuke Takahashi Marge Simpson Lucas Spike Spiegel G-Man Neo Darkwing Duck Kenji Natsuki Mogi Shulk Seiji Iwaki Itsuki Takeuchi Solid Snake Ike Desoto Death GLaDOS Kenta Nakamura Shingo Shōji Lisa Simpson Homer Simpson Ness
Marge Simpson Homer Simpson Neo
action atmost
action find_tuple_counts
relation voice actor
type fictional character
type common name
value 2
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?h ) WHERE { ?i property:voice_actor ?z . ?i rdf:type ontology:fictional_character . ?z rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?h <= 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P674
Q95074 Q15416 Q234460
USER
Which fictional characters plays a role in min number of television programs and texts ?
(c(Q15416)|c(Q234460),P674,c(Q95074))
action argmin
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q15416
action find_reverse_tuple_counts
relation P674
type Q95074
type Q234460
[[{'concept': 'Q15416'}, {'concept': 'Q234460'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?m ) { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?h ) WHERE { ?l rdf:type ?k . VALUES ( ?k ) { ( ontology:Q15416 ) ( ontology:Q234460 ) } } GROUP BY ?q } } . { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?x ) WHERE { VALUES ( ?o ) { ( ontology:Q234460 ) ( ontology:Q15416 ) } . ?w rdf:type ?o } GROUP BY ?d } . FILTER ( ?x = ?m ) }
action argmin
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type television program
action find_reverse_tuple_counts
relation characters
type fictional character
type text
[[{'concept': 'television program'}, {'concept': 'text'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?m ) { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?h ) WHERE { ?l rdf:type ?k . VALUES ( ?k ) { ( ontology:television_program ) ( ontology:text ) } } GROUP BY ?q } } . { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?x ) WHERE { VALUES ( ?o ) { ( ontology:text ) ( ontology:television_program ) } . ?w rdf:type ?o } GROUP BY ?d } . FILTER ( ?x = ?m ) }
[]
fictional character television program text
Q252044 Q1660555 Q2739228
SYSTEM
Queen Grimhilde, Maleficent, Snow White
Q547105 Q3065753 Q16027672 Q27663545 Q24573084 Q27093588 Q252044 Q942938 Q27666236 Q2725247 Q1649854 Q18679242 Q14559464 Q3259165 Q27272386 Q27068028 Q22265466 Q15710873 Q1877780 Q2344068 Q21847074 Q272000 Q669485 Q27270635 Q27553997 Q27267091 Q7828 Q27133637 Q15230837 Q27535984 Q2559332 Q27553808 Q3388787 Q27116644 Q2161603 Q605125 Q27663642 Q11339468 Q27271240 Q217533 Q17209231 Q27269911 Q22266941 Q27666260 Q3060933 Q21847215 Q1660555 Q27068114 Q21837397 Q892442 Q27243295 Q11623287 Q913841 Q27267295 Q27145408 Q1984009 Q2277080 Q519034 Q2915850 Q3592235 Q14541961 Q27270825 Q669992 Q10904385 Q27663814 Q1541235 Q4574639 Q295599 Q27074305 Q2340460 Q7834 Q14544872 Q254678 Q1478155 Q14541956 Q507978 Q203927 Q27116381 Q14542323 Q21847103 Q21716752 Q14541958 Q27229992 Q27429777 Q128429 Q27553882 Q27118866 Q3391402 Q1067046 Q27118394 Q2739228 Q114900 Q599351 Q15160 Q2456444 Q1997439 Q14544980 Q842104 Q5431889 Q27666036 Q25883159 Q20822934 Q21847089 Q27237700 Q20723928 Q21065543 Q21065542 Q14559460 Q14559461 Q16626690 Q14542335 Q27450655 Q21246052 Q27270096 Q27179995 Q27067917 Q2076759 Q27429724 Q27429978 Q26678513 Q14542337 Q21847086 Q14542331 Q21065725 Q3291275 Q3403328 Q21837905 Q3455774 Q27518155 Q20822903 Q21837021 Q27429887 Q21837027 Q1115859 Q406021 Q27271937 Q27237722 Q20822908 Q5846 Q27481286 Q27237727 Q52986 Q3320009 Q11309288 Q589261 Q27067781 Q27429907 Q17335617 Q3377158 Q27535068 Q27237663 Q10354248 Q22264381 Q936278 Q21714642 Q14542340 Q20822916 Q1991640 Q3471289 Q164083 Q14545148 Q22265259 Q2988692 Q27462047 Q21837038 Q27269137 Q2657005 Q27666317 Q27268652 Q21562043 Q21972177 Q27666216 Q3838346 Q113870 Q21072307 Q60702 Q27554295 Q267447 Q22266945 Q1028714 Q540376 Q27068138 Q14542326 Q14542192 Q20822900 Q388605 Q16451200 Q14542196 Q14544711 Q27237716 Q21837832 Q3056704 Q21971504 Q767120 Q21932351 Q2750318 Q20280393 Q21847105 Q27457103 Q27133578 Q27536279 Q12400 Q1773077 Q2308402 Q27666068 Q1269082 Q27269717 Q27269399 Q27145277 Q1616457 Q2392421 Q14542209 Q27075302 Q27456283 Q6414261 Q27272794 Q21065657 Q651130 Q16034148 Q12810578 Q27666446 Q3439796 Q21072502 Q14545043 Q3437147 Q920224 Q27430106 Q1866743 Q27272179 Q21847058 Q15020847 Q21847115 Q27462273 Q2021531 Q27229770 Q4160404 Q3806180 Q27133508 Q3073555 Q191527 Q7885388 Q27145361 Q1141265 Q27455598 Q2264282 Q3257493 Q27642997 Q1392000 Q2879032 Q2373832 Q264685 Q223757 Q27180048 Q20822895 Q21072390 Q1456741 Q27267273 Q616178 Q6175066 Q27271402 Q27666118 Q7810 Q51766 Q20822940 Q27148824 Q14559457 Q27666112 Q27068106 Q765498 Q19803416 Q14559452
(c(Q15416)|c(Q234460),P674,c(Q95074))
action argmin
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q15416
action find_reverse_tuple_counts
relation P674
type Q95074
type Q234460
[ANSWERS]
[[{'concept': 'Q15416'}, {'concept': 'Q234460'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?m ) { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?h ) WHERE { ?l rdf:type ?k . VALUES ( ?k ) { ( ontology:Q15416 ) ( ontology:Q234460 ) } } GROUP BY ?q } } . { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?x ) WHERE { VALUES ( ?o ) { ( ontology:Q234460 ) ( ontology:Q15416 ) } . ?w rdf:type ?o } GROUP BY ?d } . FILTER ( ?x = ?m ) }
Nezha Lady of the Green Kirtle Dr. Stewart Peter Pan Archimedes Alice's sister Queen Grimhilde Dexter Morgan Nana Ness Athos Kalervo Freddy Porky Minch Captain Crocodile The blue fairy Duran Duran Princess Celestia Lusus Madam Mim Kōichirō Iketani Deianira Sweeney Todd Little Sister Cody King Richard Marge Simpson King Hubert Dixie Kong Carlotta Cinderella Wilbur Pinocchio Lady Randall Flagg GLaDOS Wendy Darling Paula Sis Joker Poo Nutsy Drizella Tremaine Mr. Smee Scuttle Seiji Iwaki Maleficent Monstro Takeshi Nakazato Ariel Edgar Balthazar Takumi Fujiwara Bridget Jones Alan-a-Dale Anita Radcliffe Death Clarice Starling Aurora Thumper Étienne Lantier Wu Zi Mu Skippy Rincewind Diddy Kong Captain Hook Kullervo Jack Crawford Two-Face Timothy Q. Mouse Captain Falcon Maggie Simpson Michael Toreno Carrie Bradshaw Pelasgus Sean Johnson Milady de Winter Patrick Bateman Tramp Jeffrey Cross Shingo Shōji Largo Winch Cesar Vialpando Kaa Bianca Vampirella Jake Trusty Planchet Princess Zelda Yock Snow White Lori Grimes Gavroche Ijon Tichy Renesmee Cullen White Witch Kent Paul Grampa Simpson Faline George Darling Thompson Mrs. Judson Kenji Thomas O'Malley Flounder Mousqueton Bazin Mark Wayne Barry Thorne Baloo The Truth Taran Robert Malone Sexton Mouse Merlin Stromboli Tyrion Lannister Bernard Mr. Snoops Acoetes Zero Natsuki Mogi Catalina Bonacieux Maid Marian Prince John Itsuki Takeuchi Régis Renaud Max Fidget Bunta Fujiwara Madame Medusa Ryōsuke Takahashi Horatius Cocles Aino Toby Marie Dr. David Q. Dawson Lisa Simpson Hen Wen Berlioz Tintin Miraz Jeff Susannah Dean Geppetto Penny D'Artagnan Little John Grimsby Duchess Professor Ratigan Barbarella Imhotep Arn Magnusson Jizzy B. Basil Dominic Toretto Samurai Goroh Till Eulenspiegel Beverly Johnson The Great Tyrant Eddie Dean Creeper Keisuke Takahashi Sir Hiss Adamastor Crocodile Friar Tuck Antoine Doinel Jean-Marie-François Morhange Tinker Bell Lucas Michonne Lord de Winter Eragon Percival McLeach Granny Weatherwax Anastasia Tremaine Jiminy Cricket Mowgli Lampwick Madd Dogg Edward Pulaski Hiram Flaversham Cruella de Vil Taras Bulba Jimmy Hernandez T-Bone Mendez Toulouse Kyōichi Sudō Erlking André de Saint-Avit Garfield Valentina Rosselli Dumbo Chrysoprase Kenta Nakamura Fflewddur Fflam King Stefan Chef Louis Samus Aran Aramis Bambi John Darling Alice Trigger Lady Kluck Pongo Mycroft Holmes Constance Bonacieux Kendl Johnson Fairy Godmother Gurgi Kinsey Millhone Otto executioner of Lille Julia Prince Eric Lance Wilson Tiger Lily King Triton D'Artagnan's father Maccer Robin Hood Gargamel Orville Ken Rosenberg Mother Rabbit Yūichi Tachibana Proto Man Fumihiro Dallben Frankenstein's monster Shere Khan John Francis Winter Jaime Lannister Prince Phillip Flower Edward Cullen Sebastian Roger Radcliffe Lady Tremaine Eilonwy Roland Deschain Bandersnatch Corto Maltese Fagin Bagheera Comte de Rochefort Marvin Bella Swan Arthur Olivia Flaversham Ketty Joukahainen Sheriff of Nottingham Väinämöinen Ursula Tagalong Michael Darling Homer Simpson Darth Maul Queen Mousetoria The Prince Emmet Mary Darling Honest John Jake Chambers Brian O'Conner Old Reece
Queen Grimhilde Maleficent Snow White
action argmin
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type television program
action find_reverse_tuple_counts
relation characters
type fictional character
type text
[[{'concept': 'television program'}, {'concept': 'text'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?m ) { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?h ) WHERE { ?l rdf:type ?k . VALUES ( ?k ) { ( ontology:television_program ) ( ontology:text ) } } GROUP BY ?q } } . { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?x ) WHERE { VALUES ( ?o ) { ( ontology:text ) ( ontology:television_program ) } . ?w rdf:type ?o } GROUP BY ?d } . FILTER ( ?x = ?m ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P941
Q95074 Q7725634 Q14514600
USER
How many fictional characters inspired more number of literary works and groups of fictional characters than that fictional character ?
(c(Q7725634)|c(Q14514600),P941,c(Q95074))
[[{'concept': 'Q7725634'}, {'concept': 'Q14514600'}], 'P941', {'concept': 'Q95074'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P941 ?y } UNION { ?x property:P941 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q95074 . ?x rdf:type ontology:Q14514600 }
[[{'concept': 'literary work'}, {'concept': 'group of fictional characters'}], 'inspired by', {'concept': 'fictional character'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:inspired_by ?y } UNION { ?x property:inspired_by ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:fictional_character . ?x rdf:type ontology:group_of_fictional_characters }
[]
fictional character literary work group of fictional characters
Comparative|Count over More/Less|Mult. entity type|Clarification
Q1660555
SYSTEM
Did you mean Maleficent ?
(c(Q7725634)|c(Q14514600),P941,c(Q95074))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q14514600'}], 'P941', {'concept': 'Q95074'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P941 ?y } UNION { ?x property:P941 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q95074 . ?x rdf:type ontology:Q14514600 }
Did you mean Maleficent ?
Maleficent
[[{'concept': 'literary work'}, {'concept': 'group of fictional characters'}], 'inspired by', {'concept': 'fictional character'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:inspired_by ?y } UNION { ?x property:inspired_by ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:fictional_character . ?x rdf:type ontology:group_of_fictional_characters }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Queen Grimhilde. Could you tell me the answer for that?
(c(Q7725634)|c(Q14514600),P941,c(Q95074))
Q252044
[[{'concept': 'Q7725634'}, {'concept': 'Q14514600'}], 'P941', {'concept': 'Q95074'}]
[[{'concept': 'literary work'}, {'concept': 'group of fictional characters'}], 'inspired by', {'concept': 'fictional character'}]
[]
SYSTEM
2
Q27666317 Q3056704
(c(Q7725634)|c(Q14514600),P941,c(Q95074))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q14514600'}], 'P941', {'concept': 'Q95074'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P941 ?y } UNION { ?x property:P941 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q95074 . ?x rdf:type ontology:Q14514600 }
Crocodile Erlking
2
[[{'concept': 'literary work'}, {'concept': 'group of fictional characters'}], 'inspired by', {'concept': 'fictional character'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:inspired_by ?y } UNION { ?x property:inspired_by ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:fictional_character . ?x rdf:type ontology:group_of_fictional_characters }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q10354248
P144
Q234460 Q6619679 Q95074
USER
How many fictional characters build on greater number of texts or fictional humanoids than Professor Ratigan ?
(c(Q95074),P144,c(Q234460)|c(Q6619679))
action count
action greater
action union
action find_tuple_counts
relation P144
type Q95074
type Q234460
action find_tuple_counts
relation P144
type Q95074
type Q6619679
action count
action filter_multi_types
action find
entity Q10354248
relation P144
type Q234460
type Q6619679
[{'concept': 'Q95074'}, 'P144', [{'concept': 'Q234460'}, {'concept': 'Q6619679'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?h WHERE { { ?h property:P144 ?b . ?h rdf:type ontology:Q95074 . ?b rdf:type ontology:Q234460 } UNION { ?h property:P144 ?b . ?h rdf:type ontology:Q95074 . ?b rdf:type ontology:Q6619679 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Q10354248 property:P144 ?n . { { ?n rdf:type ontology:Q234460 } UNION { ?n rdf:type ontology:Q6619679 } } } } . FILTER ( ?l > ?k ) }
Professor Ratigan
action count
action greater
action union
action find_tuple_counts
relation based on
type fictional character
type text
action find_tuple_counts
relation based on
type fictional character
type fictional humanoid
action count
action filter_multi_types
action find
entity Professor Ratigan
relation based on
type text
type fictional humanoid
[{'concept': 'fictional character'}, 'based on', [{'concept': 'text'}, {'concept': 'fictional humanoid'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?h WHERE { { ?h property:based_on ?b . ?h rdf:type ontology:fictional_character . ?b rdf:type ontology:text } UNION { ?h property:based_on ?b . ?h rdf:type ontology:fictional_character . ?b rdf:type ontology:fictional_humanoid } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Professor_Ratigan property:based_on ?n . { { ?n rdf:type ontology:text } UNION { ?n rdf:type ontology:fictional_humanoid } } } } . FILTER ( ?l > ?k ) }
[]
text fictional humanoid fictional character
SYSTEM
27
Q27663545 Q27075302 Q27491048 Q27498920 Q27663642 Q27457103 Q252044 Q27663814 Q2739228 Q27666036 Q27450655 Q2559332 Q3291275 Q25714585 Q3377158 Q27468055 Q27666317 Q27268652 Q27493744 Q540376 Q27666260 Q27230909 Q27666446 Q1141265 Q27477415 Q27267273 Q27666112
(c(Q95074),P144,c(Q234460)|c(Q6619679))
action count
action greater
action union
action find_tuple_counts
relation P144
type Q95074
type Q234460
action find_tuple_counts
relation P144
type Q95074
type Q6619679
action count
action filter_multi_types
action find
entity Q10354248
relation P144
type Q234460
type Q6619679
[ANSWER]
[{'concept': 'Q95074'}, 'P144', [{'concept': 'Q234460'}, {'concept': 'Q6619679'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?h WHERE { { ?h property:P144 ?b . ?h rdf:type ontology:Q95074 . ?b rdf:type ontology:Q234460 } UNION { ?h property:P144 ?b . ?h rdf:type ontology:Q95074 . ?b rdf:type ontology:Q6619679 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Q10354248 property:P144 ?n . { { ?n rdf:type ontology:Q234460 } UNION { ?n rdf:type ontology:Q6619679 } } } } . FILTER ( ?l > ?k ) }
Peter Pan Fairy Godmother Dodger Huntsman Wendy Darling Fflewddur Fflam Queen Grimhilde Captain Hook Snow White George Darling Taran Cinderella Maid Marian Tito Little John Mad Hatter Crocodile Friar Tuck Bill Sykes Mowgli Mr. Smee Prince Charming Tiger Lily Lady Tremaine Tweedledee Sheriff of Nottingham Mary Darling
27
action count
action greater
action union
action find_tuple_counts
relation based on
type fictional character
type text
action find_tuple_counts
relation based on
type fictional character
type fictional humanoid
action count
action filter_multi_types
action find
entity Professor Ratigan
relation based on
type text
type fictional humanoid
[{'concept': 'fictional character'}, 'based on', [{'concept': 'text'}, {'concept': 'fictional humanoid'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?h WHERE { { ?h property:based_on ?b . ?h rdf:type ontology:fictional_character . ?b rdf:type ontology:text } UNION { ?h property:based_on ?b . ?h rdf:type ontology:fictional_character . ?b rdf:type ontology:fictional_humanoid } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Professor_Ratigan property:based_on ?n . { { ?n rdf:type ontology:text } UNION { ?n rdf:type ontology:fictional_humanoid } } } } . FILTER ( ?l > ?k ) }
[]