Simple Question (Direct)
Simple Question
Q706577
P19
Q20667921
USER
Where was Charles-Louis Havas born ?
(Q706577,P19,c(Q20667921))
action filter_type
action find
entity Q706577
relation P19
type Q20667921
['Q706577', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q706577 property:P19 ?g . ?g rdf:type ontology:Q20667921 }
Charles-Louis Havas
action filter_type
action find
entity Charles-Louis Havas
relation place of birth
type type of french administrative division
['Charles-Louis Havas', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Charles-Louis_Havas property:place_of_birth ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q30974
SYSTEM
Rouen
Q30974
(Q706577,P19,c(Q20667921))
action filter_type
action find
entity Q706577
relation P19
type Q20667921
Charles-Louis Havas was born à [ANSWER]
['Q706577', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q706577 property:P19 ?g . ?g rdf:type ontology:Q20667921 }
Rouen
Charles-Louis Havas was born à Rouen
Rouen
action filter_type
action find
entity Charles-Louis Havas
relation place of birth
type type of french administrative division
['Charles-Louis Havas', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Charles-Louis_Havas property:place_of_birth ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30974
P69
Q502895
USER
Who was a student at that french administrative division ?
(c(Q502895),P69,Q30974)
action filter_type
action find_reverse
entity Q30974
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q30974']
SELECT DISTINCT ?a WHERE { ?a property:P69 resource:Q30974 . ?a rdf:type ontology:Q502895 }
Rouen
action filter_type
action find_reverse
entity Rouen
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'Rouen']
SELECT DISTINCT ?a WHERE { ?a property:educated_at resource:Rouen . ?a rdf:type ontology:common_name }
[]
common name
Q17580387
SYSTEM
Gilles Vervisch
Q17580387
(c(Q502895),P69,Q30974)
action filter_type
action find_reverse
entity Q30974
relation P69
type Q502895
[ANSWER] was a student at that french administrative division
[{'concept': 'Q502895'}, 'P69', 'Q30974']
SELECT DISTINCT ?a WHERE { ?a property:P69 resource:Q30974 . ?a rdf:type ontology:Q502895 }
Gilles Vervisch
Gilles Vervisch was a student at that french administrative division
Gilles Vervisch
action filter_type
action find_reverse
entity Rouen
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'Rouen']
SELECT DISTINCT ?a WHERE { ?a property:educated_at resource:Rouen . ?a rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q30974
P190
Q56061
USER
How many administrative territories are sister towns of Rouen ?
(Q30974,P190,c(Q56061))
action count
action filter_type
action find
entity Q30974
relation P190
type Q56061
['Q30974', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { ?z rdf:type ontology:Q56061 . resource:Q30974 property:P190 ?z }
Rouen
action count
action filter_type
action find
entity Rouen
relation sister city
type administrative territorial entity
['Rouen', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Rouen property:sister_city ?z }
[]
administrative territorial entity
SYSTEM
3
Q130191 Q1715 Q1083
(Q30974,P190,c(Q56061))
action count
action filter_type
action find
entity Q30974
relation P190
type Q56061
[ANSWER]
['Q30974', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { ?z rdf:type ontology:Q56061 . resource:Q30974 property:P190 ?z }
Norwich Hanover Salerno
3
action count
action filter_type
action find
entity Rouen
relation sister city
type administrative territorial entity
['Rouen', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Rouen property:sister_city ?z }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q95074
USER
Which fictional characters had their voice dubbing done by approximately 1 person ?
(c(Q95074),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q95074
type Q502895
value 1
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?k = 1 ) . { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?k ) WHERE { ?n rdf:type ontology:Q95074 . ?u rdf:type ontology:Q502895 . ?n property:P725 ?u } GROUP BY ?n } }
action approx
action find_tuple_counts
relation voice actor
type fictional character
type common name
value 1
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?k = 1 ) . { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?k ) WHERE { ?n rdf:type ontology:fictional_character . ?u rdf:type ontology:common_name . ?n property:voice_actor ?u } GROUP BY ?n } }
[]
common name fictional character
Q7828 Q7810 Q247120
SYSTEM
Marge Simpson, Homer Simpson, Neo
Q21847055 Q308950 Q28465 Q551327 Q2442950 Q7828 Q3838346 Q8139731 Q247120 Q1529229 Q27493503 Q605125 Q5846 Q7810 Q2725247
(c(Q95074),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q95074
type Q502895
value 1
[ANSWERS] had their voice dubbing done by approximately 1 person
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?k = 1 ) . { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?k ) WHERE { ?n rdf:type ontology:Q95074 . ?u rdf:type ontology:Q502895 . ?n property:P725 ?u } GROUP BY ?n } }
Itsuki Tachibana Ash Ketchum Peter Griffin terminator Max Rockatansky Marge Simpson Lucas G-Man Neo Darkwing Duck Desoto GLaDOS Lisa Simpson Homer Simpson Ness
Marge Simpson, Homer Simpson and Neo had their voice dubbing done by approximately 1 person
Marge Simpson Homer Simpson Neo
action approx
action find_tuple_counts
relation voice actor
type fictional character
type common name
value 1
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?k = 1 ) . { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?k ) WHERE { ?n rdf:type ontology:fictional_character . ?u rdf:type ontology:common_name . ?n property:voice_actor ?u } GROUP BY ?n } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P1441
Q15961987
USER
How many television genres feature that fictional character ?
(Q7810,P1441,c(Q15961987))
['Q7810', 'P1441', {'concept': 'Q15961987'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7810 property:P1441 ?z . ?z rdf:type ontology:Q15961987 }
['Homer Simpson', 'present in work', {'concept': 'television genre'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Homer_Simpson property:present_in_work ?z . ?z rdf:type ontology:television_genre }
[]
television genre
Quantitative|Count|Single entity type|Clarification
Q7828
SYSTEM
Did you mean Marge Simpson ?
(Q7828,P1441,c(Q15961987)) (Q7810,P1441,c(Q15961987)) (Q247120,P1441,c(Q15961987))
[ANSWER]
['Q7828', 'P1441', {'concept': 'Q15961987'}] ['Q7810', 'P1441', {'concept': 'Q15961987'}] ['Q247120', 'P1441', {'concept': 'Q15961987'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7810 property:P1441 ?z . ?z rdf:type ontology:Q15961987 }
Did you mean Marge Simpson ?
Marge Simpson
['Marge Simpson', 'present in work', {'concept': 'television genre'}] ['Homer Simpson', 'present in work', {'concept': 'television genre'}] ['Neo', 'present in work', {'concept': 'television genre'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Homer_Simpson property:present_in_work ?z . ?z rdf:type ontology:television_genre }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Homer Simpson. Could you tell me the answer for that?
(Q7810,P1441,c(Q15961987))
Q7810
['Q7810', 'P1441', {'concept': 'Q15961987'}]
['Homer Simpson', 'present in work', {'concept': 'television genre'}]
[]
SYSTEM
1
Q886
(Q7810,P1441,c(Q15961987))
[ANSWER]
['Q7810', 'P1441', {'concept': 'Q15961987'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7810 property:P1441 ?z . ?z rdf:type ontology:Q15961987 }
The Simpsons
1
['Homer Simpson', 'present in work', {'concept': 'television genre'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Homer_Simpson property:present_in_work ?z . ?z rdf:type ontology:television_genre }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3056704
P674
Q95074 Q838948 Q7725634
USER
How many fictional characters plays a role in less number of works of art or literary works than Erlking ?
(c(Q838948)|c(Q7725634),P674,c(Q95074))
action count
action less
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q838948
action find_reverse_tuple_counts
relation P674
type Q95074
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q3056704
relation P674
type Q838948
type Q7725634
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?r WHERE { VALUES ( ?p ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?i rdf:type ?p } GROUP BY ?r } . FILTER ( ?c < ?b ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:P674 resource:Q3056704 . { { ?v rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q7725634 } } } } }
Erlking
action count
action less
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type work of art
action find_reverse_tuple_counts
relation characters
type fictional character
type literary work
action count
action filter_multi_types
action find_reverse
entity Erlking
relation characters
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?r WHERE { VALUES ( ?p ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?i rdf:type ?p } GROUP BY ?r } . FILTER ( ?c < ?b ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:characters resource:Erlking . { { ?v rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:literary_work } } } } }
[]
fictional character work of art literary work
SYSTEM
306
Q547105 Q3065753 Q16027672 Q27663545 Q24573084 Q27093588 Q4767744 Q252044 Q7167342 Q942938 Q27666236 Q17075849 Q2725247 Q2985575 Q1649854 Q18679242 Q1750634 Q14559464 Q3259165 Q27272386 Q27068028 Q22265466 Q1877780 Q2344068 Q21847074 Q669485 Q27270635 Q27553997 Q27267091 Q7828 Q27133637 Q15230837 Q27535984 Q2559332 Q27553808 Q3388787 Q27116644 Q5656906 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 Q4574639 Q295599 Q27074305 Q2340460 Q7834 Q14544872 Q254678 Q5354221 Q1080587 Q14541956 Q507978 Q203927 Q27116381 Q14542323 Q21847103 Q21716752 Q14541958 Q27229992 Q27429777 Q128429 Q27553882 Q23762190 Q27118866 Q3391402 Q1067046 Q27118394 Q2739228 Q114900 Q599351 Q510102 Q15160 Q2456444 Q1997439 Q14544980 Q842104 Q14396915 Q5431889 Q27666036 Q25883159 Q20822934 Q21847089 Q27237700 Q610519 Q20723928 Q21065543 Q21065542 Q14559460 Q14559461 Q16626690 Q14542335 Q27450655 Q3704358 Q21246052 Q27270096 Q27179995 Q27067917 Q2076759 Q27429724 Q27429978 Q26678513 Q14542337 Q21847086 Q14542331 Q21065725 Q3291275 Q3403328 Q191114 Q23906183 Q21837905 Q3455774 Q27518155 Q20822903 Q159709 Q21837021 Q27429887 Q21837027 Q1115859 Q3939827 Q406021 Q27271937 Q8002690 Q27237722 Q20822908 Q5846 Q27481286 Q27237727 Q52986 Q850506 Q3320009 Q11309288 Q589261 Q27067781 Q27429907 Q17335617 Q3377158 Q27535068 Q27703517 Q27237663 Q2715593 Q2979585 Q10354248 Q22264381 Q936278 Q3603297 Q21714642 Q4755325 Q14542340 Q20822916 Q6748296 Q1991640 Q3471289 Q164083 Q14545148 Q22265259 Q4749202 Q2988692 Q27462047 Q21837038 Q27269137 Q2657005 Q27666317 Q27268652 Q21562043 Q21972177 Q6929804 Q27666216 Q3838346 Q113870 Q21072307 Q60702 Q27554295 Q267447 Q22266945 Q1028714 Q540376 Q27068138 Q4795290 Q520812 Q14542326 Q14542192 Q20822900 Q388605 Q14542196 Q14544711 Q27237716 Q21837832 Q21971504 Q21932351 Q2750318 Q20280393 Q21847105 Q27457103 Q27133578 Q27536279 Q12400 Q1773077 Q2308402 Q27666068 Q1269082 Q27269717 Q27269399 Q27145277 Q2392421 Q14542209 Q27703691 Q27075302 Q27456283 Q321349 Q6414261 Q27272794 Q21065657 Q651130 Q16034148 Q12810578 Q27666446 Q3439796 Q21072502 Q14545043 Q3437147 Q3946354 Q920224 Q27430106 Q1866743 Q27272179 Q21847058 Q15020847 Q21847115 Q3036775 Q27462273 Q2021531 Q27229770 Q4160404 Q3806180 Q9012447 Q27133508 Q3073552 Q3073555 Q191527 Q7885388 Q27145361 Q1141265 Q6214458 Q27455598 Q2264282 Q4933846 Q27702918 Q3257493 Q27642997 Q1345373 Q1392000 Q2879032 Q2373832 Q264685 Q223757 Q27180048 Q20822895 Q8073344 Q21072390 Q1456741 Q27267273 Q616178 Q6175066 Q27271402 Q3666688 Q27666118 Q7810 Q661491 Q51766 Q6524042 Q20822940 Q27148824 Q14559457 Q27666112 Q27068106 Q765498 Q19803416 Q14559452
(c(Q838948)|c(Q7725634),P674,c(Q95074))
action count
action less
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q838948
action find_reverse_tuple_counts
relation P674
type Q95074
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q3056704
relation P674
type Q838948
type Q7725634
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?r WHERE { VALUES ( ?p ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?i rdf:type ?p } GROUP BY ?r } . FILTER ( ?c < ?b ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:P674 resource:Q3056704 . { { ?v rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q7725634 } } } } }
Nezha Lady of the Green Kirtle Dr. Stewart Peter Pan Archimedes Alice's sister Annabeth Schott Queen Grimhilde Percy Fitzwallace Dexter Morgan Nana Danny Concannon Ness K-9 Athos Kalervo Quasimodo Freddy Porky Minch Captain Crocodile The blue fairy Duran Duran Lusus Madam Mim Kōichirō Iketani Sweeney Todd Little Sister Cody King Richard Marge Simpson King Hubert Dixie Kong Carlotta Cinderella Wilbur Pinocchio Lady Josh Lyman 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 Jack Crawford Two-Face Timothy Q. Mouse Captain Falcon Maggie Simpson Michael Toreno Carrie Bradshaw Eleanor Bartlet C. J. Cregg Sean Johnson Milady de Winter Patrick Bateman Tramp Jeffrey Cross Shingo Shōji Largo Winch Cesar Vialpando Kaa Bianca Vampirella Jake June Wheeler Trusty Planchet Princess Zelda Yock Snow White Lori Grimes Gavroche Captain Phoebus Ijon Tichy Renesmee Cullen White Witch Kent Paul Grampa Simpson Kate Harper Faline George Darling Thompson Mrs. Judson Kenji Thomas O'Malley Matt Santos Flounder Mousqueton Bazin Mark Wayne Barry Thorne Baloo The Truth Taran Deborah Fiderer Robert Malone Sexton Mouse Merlin Stromboli Tyrion Lannister Bernard Mr. Snoops Acoetes Zero Natsuki Mogi Catalina Bonacieux Maid Marian Prince John Sita Herbert Einstein Itsuki Takeuchi Régis Renaud Max Fidget Gilgamesh Bunta Fujiwara Madame Medusa Ryōsuke Takahashi Horatius Cocles Rocky the Flying Squirrel Aino Toby Will Bailey Marie Dr. David Q. Dawson Lisa Simpson Hen Wen Berlioz Tintin Brynhildr Miraz Jeff Susannah Dean Geppetto Penny D'Artagnan Little John Grimsby Sister Gudule Duchess Josiah Bartlet Clopin Trouillefou Professor Ratigan Barbarella Imhotep Abbey Bartlet Arn Magnusson Andrea Wyatt Jizzy B. Basil Mandy Hampton Dominic Toretto Samurai Goroh Till Eulenspiegel Beverly Johnson The Great Tyrant Amy Gardner Eddie Dean Creeper Keisuke Takahashi Sir Hiss Adamastor Crocodile Friar Tuck Antoine Doinel Jean-Marie-François Morhange Delores Landingham Tinker Bell Lucas Michonne Lord de Winter Eragon Percival McLeach Granny Weatherwax Anastasia Tremaine Jiminy Cricket Mowgli Lampwick Arnold Vinick Claude Frollo Madd Dogg Edward Pulaski Hiram Flaversham Cruella de Vil Jimmy Hernandez T-Bone Mendez Toulouse Kyōichi Sudō André de Saint-Avit Valentina Rosselli Dumbo Chrysoprase Kenta Nakamura Fflewddur Fflam King Stefan Chef Louis Samus Aran Aramis Bambi John Darling Alice Trigger Lady Kluck Pongo Constance Bonacieux Kendl Johnson Jehan Frollo Fairy Godmother Gurgi Nick Knatterton Kinsey Millhone Otto executioner of Lille Julia Prince Eric Lance Wilson Tiger Lily King Triton D'Artagnan's father Maccer Robin Hood Sam Seaborn Gargamel Orville Ken Rosenberg Mother Rabbit Yūichi Tachibana Proto Man Fumihiro Donna Moss Dallben Frankenstein's monster Shere Khan John Francis Winter Jaime Lannister John Hoynes Prince Phillip Fleur-de-Lys Flower Edward Cullen Sebastian Roger Radcliffe Lady Tremaine Joey Lucas Eilonwy Roland Deschain Bob Russell Pierre Gringoire Bandersnatch Corto Maltese Toby Ziegler Fagin Bagheera Comte de Rochefort Marvin Bella Swan Arthur Olivia Flaversham Zoey Bartlet Ketty Joukahainen Sheriff of Nottingham Väinämöinen Ursula Tagalong Charlie Young Michael Darling Homer Simpson Esméralda Darth Maul Leo McGarry Queen Mousetoria The Prince Emmet Mary Darling Honest John Jake Chambers Brian O'Conner Old Reece
306
action count
action less
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type work of art
action find_reverse_tuple_counts
relation characters
type fictional character
type literary work
action count
action filter_multi_types
action find_reverse
entity Erlking
relation characters
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?r WHERE { VALUES ( ?p ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?i rdf:type ?p } GROUP BY ?r } . FILTER ( ?c < ?b ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:characters resource:Erlking . { { ?v rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:literary_work } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q767120
P674
Q95074 Q838948 Q7725634
USER
And also tell me about Garfield?
(c(Q838948)|c(Q7725634),P674,c(Q95074))
action count
action less
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q838948
action find_reverse_tuple_counts
relation P674
type Q95074
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q767120
relation P674
type Q838948
type Q7725634
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) ?a WHERE { VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?g rdf:type ?o } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:P674 resource:Q767120 . { { ?i rdf:type ontology:Q7725634 } UNION { ?i rdf:type ontology:Q838948 } } } } . FILTER ( ?n < ?b ) }
Garfield
action count
action less
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type work of art
action find_reverse_tuple_counts
relation characters
type fictional character
type literary work
action count
action filter_multi_types
action find_reverse
entity Garfield
relation characters
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) ?a WHERE { VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?g rdf:type ?o } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:characters resource:Garfield . { { ?i rdf:type ontology:literary_work } UNION { ?i rdf:type ontology:work_of_art } } } } . FILTER ( ?n < ?b ) }
[]
fictional character work of art literary work
SYSTEM
312
Q547105 Q3065753 Q16027672 Q27663545 Q24573084 Q27093588 Q4767744 Q252044 Q7167342 Q942938 Q27666236 Q17075849 Q2725247 Q2985575 Q1649854 Q18679242 Q1750634 Q14559464 Q3259165 Q27272386 Q27068028 Q22265466 Q15710873 Q1877780 Q2344068 Q21847074 Q272000 Q669485 Q27270635 Q27553997 Q27267091 Q7828 Q27133637 Q15230837 Q27535984 Q2559332 Q27553808 Q3388787 Q27116644 Q5656906 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 Q5354221 Q1080587 Q1478155 Q14541956 Q507978 Q203927 Q27116381 Q14542323 Q21847103 Q21716752 Q14541958 Q27229992 Q27429777 Q128429 Q27553882 Q23762190 Q27118866 Q3391402 Q1067046 Q27118394 Q2739228 Q114900 Q599351 Q510102 Q15160 Q2456444 Q1997439 Q14544980 Q842104 Q14396915 Q5431889 Q27666036 Q25883159 Q20822934 Q21847089 Q27237700 Q610519 Q20723928 Q21065543 Q21065542 Q14559460 Q14559461 Q16626690 Q14542335 Q27450655 Q3704358 Q21246052 Q27270096 Q27179995 Q27067917 Q2076759 Q27429724 Q27429978 Q26678513 Q14542337 Q21847086 Q14542331 Q21065725 Q3291275 Q3403328 Q191114 Q23906183 Q21837905 Q3455774 Q27518155 Q20822903 Q159709 Q21837021 Q27429887 Q21837027 Q1115859 Q3939827 Q406021 Q27271937 Q8002690 Q27237722 Q20822908 Q5846 Q27481286 Q27237727 Q52986 Q850506 Q3320009 Q11309288 Q589261 Q27067781 Q27429907 Q17335617 Q3377158 Q27535068 Q27703517 Q27237663 Q2715593 Q2979585 Q10354248 Q22264381 Q936278 Q3603297 Q21714642 Q4755325 Q14542340 Q20822916 Q6748296 Q1991640 Q3471289 Q164083 Q14545148 Q22265259 Q4749202 Q2988692 Q27462047 Q21837038 Q27269137 Q2657005 Q27666317 Q27268652 Q21562043 Q21972177 Q6929804 Q27666216 Q3838346 Q113870 Q21072307 Q60702 Q27554295 Q267447 Q22266945 Q1028714 Q540376 Q27068138 Q4795290 Q520812 Q14542326 Q14542192 Q20822900 Q388605 Q14542196 Q14544711 Q27237716 Q21837832 Q3056704 Q21971504 Q21932351 Q2750318 Q20280393 Q21847105 Q27457103 Q27133578 Q27536279 Q12400 Q1773077 Q2308402 Q27666068 Q1269082 Q27269717 Q27269399 Q27145277 Q1616457 Q2392421 Q14542209 Q27703691 Q27075302 Q27456283 Q321349 Q6414261 Q27272794 Q21065657 Q651130 Q16034148 Q12810578 Q27666446 Q3439796 Q21072502 Q14545043 Q3437147 Q3946354 Q920224 Q27430106 Q1866743 Q27272179 Q21847058 Q15020847 Q21847115 Q3036775 Q27462273 Q2021531 Q27229770 Q4160404 Q3806180 Q9012447 Q27133508 Q3073552 Q3073555 Q191527 Q7885388 Q27145361 Q1141265 Q6214458 Q27455598 Q2264282 Q4933846 Q27702918 Q3257493 Q27642997 Q1345373 Q1392000 Q2879032 Q2373832 Q264685 Q223757 Q27180048 Q20822895 Q8073344 Q21072390 Q1456741 Q27267273 Q616178 Q6175066 Q27271402 Q3666688 Q27666118 Q7810 Q661491 Q51766 Q6524042 Q20822940 Q27148824 Q14559457 Q27666112 Q27068106 Q765498 Q19803416 Q14559452
(c(Q838948)|c(Q7725634),P674,c(Q95074))
action count
action less
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q838948
action find_reverse_tuple_counts
relation P674
type Q95074
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q767120
relation P674
type Q838948
type Q7725634
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) ?a WHERE { VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?g rdf:type ?o } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:P674 resource:Q767120 . { { ?i rdf:type ontology:Q7725634 } UNION { ?i rdf:type ontology:Q838948 } } } } . FILTER ( ?n < ?b ) }
Nezha Lady of the Green Kirtle Dr. Stewart Peter Pan Archimedes Alice's sister Annabeth Schott Queen Grimhilde Percy Fitzwallace Dexter Morgan Nana Danny Concannon Ness K-9 Athos Kalervo Quasimodo 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 Josh Lyman 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 Eleanor Bartlet C. J. Cregg Pelasgus Sean Johnson Milady de Winter Patrick Bateman Tramp Jeffrey Cross Shingo Shōji Largo Winch Cesar Vialpando Kaa Bianca Vampirella Jake June Wheeler Trusty Planchet Princess Zelda Yock Snow White Lori Grimes Gavroche Captain Phoebus Ijon Tichy Renesmee Cullen White Witch Kent Paul Grampa Simpson Kate Harper Faline George Darling Thompson Mrs. Judson Kenji Thomas O'Malley Matt Santos Flounder Mousqueton Bazin Mark Wayne Barry Thorne Baloo The Truth Taran Deborah Fiderer Robert Malone Sexton Mouse Merlin Stromboli Tyrion Lannister Bernard Mr. Snoops Acoetes Zero Natsuki Mogi Catalina Bonacieux Maid Marian Prince John Sita Herbert Einstein Itsuki Takeuchi Régis Renaud Max Fidget Gilgamesh Bunta Fujiwara Madame Medusa Ryōsuke Takahashi Horatius Cocles Rocky the Flying Squirrel Aino Toby Will Bailey Marie Dr. David Q. Dawson Lisa Simpson Hen Wen Berlioz Tintin Brynhildr Miraz Jeff Susannah Dean Geppetto Penny D'Artagnan Little John Grimsby Sister Gudule Duchess Josiah Bartlet Clopin Trouillefou Professor Ratigan Barbarella Imhotep Abbey Bartlet Arn Magnusson Andrea Wyatt Jizzy B. Basil Mandy Hampton Dominic Toretto Samurai Goroh Till Eulenspiegel Beverly Johnson The Great Tyrant Amy Gardner Eddie Dean Creeper Keisuke Takahashi Sir Hiss Adamastor Crocodile Friar Tuck Antoine Doinel Jean-Marie-François Morhange Delores Landingham Tinker Bell Lucas Michonne Lord de Winter Eragon Percival McLeach Granny Weatherwax Anastasia Tremaine Jiminy Cricket Mowgli Lampwick Arnold Vinick Claude Frollo Madd Dogg Edward Pulaski Hiram Flaversham Cruella de Vil Jimmy Hernandez T-Bone Mendez Toulouse Kyōichi Sudō Erlking André de Saint-Avit 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 Jehan Frollo Fairy Godmother Gurgi Nick Knatterton Kinsey Millhone Otto executioner of Lille Julia Prince Eric Lance Wilson Tiger Lily King Triton D'Artagnan's father Maccer Robin Hood Sam Seaborn Gargamel Orville Ken Rosenberg Mother Rabbit Yūichi Tachibana Proto Man Fumihiro Donna Moss Dallben Frankenstein's monster Shere Khan John Francis Winter Jaime Lannister John Hoynes Prince Phillip Fleur-de-Lys Flower Edward Cullen Sebastian Roger Radcliffe Lady Tremaine Joey Lucas Eilonwy Roland Deschain Bob Russell Pierre Gringoire Bandersnatch Corto Maltese Toby Ziegler Fagin Bagheera Comte de Rochefort Marvin Bella Swan Arthur Olivia Flaversham Zoey Bartlet Ketty Joukahainen Sheriff of Nottingham Väinämöinen Ursula Tagalong Charlie Young Michael Darling Homer Simpson Esméralda Darth Maul Leo McGarry Queen Mousetoria The Prince Emmet Mary Darling Honest John Jake Chambers Brian O'Conner Old Reece
312
action count
action less
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type work of art
action find_reverse_tuple_counts
relation characters
type fictional character
type literary work
action count
action filter_multi_types
action find_reverse
entity Garfield
relation characters
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) ?a WHERE { VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?g rdf:type ?o } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:characters resource:Garfield . { { ?i rdf:type ontology:literary_work } UNION { ?i rdf:type ontology:work_of_art } } } } . FILTER ( ?n < ?b ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P674
Q95074 Q15416 Q223393
USER
Which fictional characters appear as a character in max number of television programs or literary genres ?
(c(Q15416)|c(Q223393),P674,c(Q95074))
action argmax
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q15416
action find_reverse_tuple_counts
relation P674
type Q95074
type Q223393
[[{'concept': 'Q15416'}, {'concept': 'Q223393'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?m ) { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?e ) WHERE { ?n rdf:type ?f . VALUES ( ?f ) { ( ontology:Q15416 ) ( ontology:Q223393 ) } } GROUP BY ?o } } . { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?t ) WHERE { { ?r property:P674 ?h . ?h rdf:type ontology:Q95074 . ?r rdf:type ontology:Q15416 } UNION { ?r property:P674 ?h . ?h rdf:type ontology:Q95074 . ?r rdf:type ontology:Q223393 } } GROUP BY ?h } . FILTER ( ?t = ?m ) }
action argmax
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 literary genre
[[{'concept': 'television program'}, {'concept': 'literary genre'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?m ) { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?e ) WHERE { ?n rdf:type ?f . VALUES ( ?f ) { ( ontology:television_program ) ( ontology:literary_genre ) } } GROUP BY ?o } } . { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?t ) WHERE { { ?r property:characters ?h . ?h rdf:type ontology:fictional_character . ?r rdf:type ontology:television_program } UNION { ?r property:characters ?h . ?h rdf:type ontology:fictional_character . ?r rdf:type ontology:literary_genre } } GROUP BY ?h } . FILTER ( ?t = ?m ) }
[]
fictional character television program literary genre
Q461606
SYSTEM
Arsène Lupin
Q461606
(c(Q15416)|c(Q223393),P674,c(Q95074))
action argmax
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q15416
action find_reverse_tuple_counts
relation P674
type Q95074
type Q223393
[ANSWER] appear as a character in max number of television programs or literary genres
[[{'concept': 'Q15416'}, {'concept': 'Q223393'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?m ) { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?e ) WHERE { ?n rdf:type ?f . VALUES ( ?f ) { ( ontology:Q15416 ) ( ontology:Q223393 ) } } GROUP BY ?o } } . { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?t ) WHERE { { ?r property:P674 ?h . ?h rdf:type ontology:Q95074 . ?r rdf:type ontology:Q15416 } UNION { ?r property:P674 ?h . ?h rdf:type ontology:Q95074 . ?r rdf:type ontology:Q223393 } } GROUP BY ?h } . FILTER ( ?t = ?m ) }
Arsène Lupin
Arsène Lupin appear as a character in max number of television programs or literary genres
Arsène Lupin
action argmax
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 literary genre
[[{'concept': 'television program'}, {'concept': 'literary genre'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?m ) { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?e ) WHERE { ?n rdf:type ?f . VALUES ( ?f ) { ( ontology:television_program ) ( ontology:literary_genre ) } } GROUP BY ?o } } . { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?t ) WHERE { { ?r property:characters ?h . ?h rdf:type ontology:fictional_character . ?r rdf:type ontology:television_program } UNION { ?r property:characters ?h . ?h rdf:type ontology:fictional_character . ?r rdf:type ontology:literary_genre } } GROUP BY ?h } . FILTER ( ?t = ?m ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17580387
P512
Q189533
USER
What degrees do Gilles Vervisch hold ?
(Q17580387,P512,c(Q189533))
action filter_type
action find
entity Q17580387
relation P512
type Q189533
['Q17580387', 'P512', {'concept': 'Q189533'}]
SELECT DISTINCT ?x WHERE { resource:Q17580387 property:P512 ?x . ?x rdf:type ontology:Q189533 }
Gilles Vervisch
action filter_type
action find
entity Gilles Vervisch
relation academic degree
type academic degree
['Gilles Vervisch', 'academic degree', {'concept': 'academic degree'}]
SELECT DISTINCT ?x WHERE { resource:Gilles_Vervisch property:academic_degree ?x . ?x rdf:type ontology:academic_degree }
[]
academic degree
Q2827292 Q3238020
SYSTEM
agrégation de philosophie, Licence
Q2827292 Q3238020
(Q17580387,P512,c(Q189533))
action filter_type
action find
entity Q17580387
relation P512
type Q189533
Gilles Vervisch hold an [ANSWERS]
['Q17580387', 'P512', {'concept': 'Q189533'}]
SELECT DISTINCT ?x WHERE { resource:Q17580387 property:P512 ?x . ?x rdf:type ontology:Q189533 }
agrégation de philosophie Licence
Gilles Vervisch hold an agrégation de philosophie and Licence
agrégation de philosophie Licence
action filter_type
action find
entity Gilles Vervisch
relation academic degree
type academic degree
['Gilles Vervisch', 'academic degree', {'concept': 'academic degree'}]
SELECT DISTINCT ?x WHERE { resource:Gilles_Vervisch property:academic_degree ?x . ?x rdf:type ontology:academic_degree }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q17580387
Q3412758
USER
And which qualification?
(Q17580387,P512,c(Q3412758))
action filter_type
action find
entity Q17580387
relation P512
type Q3412758
['Q17580387', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?d WHERE { resource:Q17580387 property:P512 ?d . ?d rdf:type ontology:Q3412758 }
Gilles Vervisch
action filter_type
action find
entity Gilles Vervisch
relation academic degree
type qualification
['Gilles Vervisch', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?d WHERE { resource:Gilles_Vervisch property:academic_degree ?d . ?d rdf:type ontology:qualification }
[]
qualification
Q4000966
SYSTEM
Master
Q4000966
(Q17580387,P512,c(Q3412758))
action filter_type
action find
entity Q17580387
relation P512
type Q3412758
[ANSWER]
['Q17580387', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?d WHERE { resource:Q17580387 property:P512 ?d . ?d rdf:type ontology:Q3412758 }
Master
Master
action filter_type
action find
entity Gilles Vervisch
relation academic degree
type qualification
['Gilles Vervisch', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?d WHERE { resource:Gilles_Vervisch property:academic_degree ?d . ?d rdf:type ontology:qualification }
[]