Simple Question (Direct)
Simple Question
Q3416283
P161
Q502895
USER
Which people are in Bank Holiday ?
(Q3416283,P161,c(Q502895))
action filter_type
action find
entity Q3416283
relation P161
type Q502895
['Q3416283', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q3416283 property:P161 ?z }
Bank Holiday
action filter_type
action find
entity Bank Holiday
relation cast member
type common name
['Bank Holiday', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:Bank_Holiday property:cast_member ?z }
[]
common name
Q367927 Q269202
SYSTEM
John Davis Lodge, Margaret Lockwood
Q367927 Q269202
(Q3416283,P161,c(Q502895))
action filter_type
action find
entity Q3416283
relation P161
type Q502895
[ANSWERS] are in Bank Holiday
['Q3416283', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q3416283 property:P161 ?z }
John Davis Lodge Margaret Lockwood
John Davis Lodge and Margaret Lockwood are in Bank Holiday
John Davis Lodge Margaret Lockwood
action filter_type
action find
entity Bank Holiday
relation cast member
type common name
['Bank Holiday', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:Bank_Holiday property:cast_member ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3416283
P840
Q56061
USER
Which is the narrative location of that work of art ?
(Q367927,P840,c(Q56061)) (Q269202,P840,c(Q56061))
action filter_type
action find
entity Q3416283
relation P840
type Q56061
['Q367927', 'P840', {'concept': 'Q56061'}] ['Q269202', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q3416283 property:P840 ?k . ?k rdf:type ontology:Q56061 }
Bank Holiday
action filter_type
action find
entity Bank Holiday
relation narrative location
type administrative territorial entity
['John Davis Lodge', 'narrative location', {'concept': 'administrative territorial entity'}] ['Margaret Lockwood', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Bank_Holiday property:narrative_location ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q131491
SYSTEM
Brighton
Q131491
(Q367927,P840,c(Q56061)) (Q269202,P840,c(Q56061))
action filter_type
action find
entity Q3416283
relation P840
type Q56061
The narrative location of that work of art is in [ANSWER]
['Q367927', 'P840', {'concept': 'Q56061'}] ['Q269202', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q3416283 property:P840 ?k . ?k rdf:type ontology:Q56061 }
Brighton
The narrative location of that work of art is in Brighton
Brighton
action filter_type
action find
entity Bank Holiday
relation narrative location
type administrative territorial entity
['John Davis Lodge', 'narrative location', {'concept': 'administrative territorial entity'}] ['Margaret Lockwood', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Bank_Holiday property:narrative_location ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q131491
P20
Q502895
USER
Which people have that administrative territory as the location of death ?
(c(Q502895),P20,Q131491)
action filter_type
action find_reverse
entity Q131491
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q131491']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P20 resource:Q131491 }
Brighton
action filter_type
action find_reverse
entity Brighton
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Brighton']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:place_of_death resource:Brighton }
[]
common name
Q135154 Q332851 Q102830
SYSTEM
John Cornforth, Frederick Elwyn Jones, Baron Elwyn-Jones, Frederick Soddy
Q317436 Q7076849 Q6173670 Q7966045 Q2467436 Q3133459 Q3850027 Q5239881 Q524645 Q3418285 Q14945509 Q16065933 Q18729983 Q16066222 Q3286189 Q1392013 Q6665904 Q7933025 Q16015295 Q353467 Q17626984 Q17423487 Q5524996 Q331448 Q5354408 Q8015799 Q1341654 Q6141515 Q16006520 Q6285569 Q16006408 Q1397458 Q24267434 Q1333364 Q7791668 Q4484213 Q6241560 Q2439532 Q3135579 Q144535 Q15983869 Q5720345 Q16073413 Q5498552 Q3040912 Q7177678 Q5498794 Q16062840 Q5236863 Q8012136 Q20804689 Q3184247 Q3723416 Q5539930 Q6380198 Q658625 Q326229 Q3066384 Q6228988 Q102830 Q6131405 Q16920183 Q5082103 Q5006483 Q1680654 Q16028261 Q455845 Q24704500 Q20892692 Q443417 Q967572 Q1922185 Q7367023 Q16007412 Q9287829 Q687153 Q3951062 Q952522 Q264004 Q6226989 Q5398505 Q15469130 Q1267234 Q3181911 Q7945805 Q7909160 Q5343367 Q15047460 Q1272982 Q1177096 Q1507505 Q135154 Q17416281 Q6390331 Q1365838 Q334505 Q1712073 Q5455706 Q92899 Q561531 Q501881 Q6132013 Q2843964 Q2960355 Q16030440 Q1535917 Q18671071 Q4088416 Q15998352 Q4342818 Q5498887 Q16211763 Q741075 Q4707314 Q6252406 Q6762923 Q18530077 Q436039 Q21465201 Q7172134 Q6244611 Q731890 Q20894390 Q61558 Q4723095 Q202385 Q272601 Q4019915 Q6106404 Q2400320 Q6132311 Q552522 Q4864442 Q983504 Q5080607 Q561978 Q7350562 Q8262098 Q1607339 Q330146 Q3068153 Q6938628 Q565510 Q17516498 Q3048480 Q3434049 Q719365 Q1052329 Q21038704 Q5667285 Q5481668 Q368599 Q5145063 Q5233361 Q7352738 Q21465567 Q5082628 Q6247254 Q3181166 Q17505486 Q768790 Q20030275 Q552537 Q6241388 Q4747525 Q3569027 Q7352644 Q7526253 Q15437019 Q71404 Q332580 Q3823638 Q5537863 Q16066073 Q314182 Q7244079 Q7184071 Q1335406 Q2827000 Q16031271 Q1283866 Q1711650 Q18530763 Q6241531 Q615309 Q2580060 Q16094025 Q21030747 Q15500506 Q5497513 Q7373369 Q5830716 Q6724419 Q5006364 Q2693526 Q4772112 Q20203295 Q1113807 Q1700431 Q721256 Q15485065 Q9344978 Q7528648 Q7526287 Q5024471 Q7326404 Q1116409 Q5415441 Q3646297 Q7325065 Q513768 Q7817535 Q332851 Q18355370 Q1819011 Q1397722 Q532184 Q4758284 Q16063372 Q5044248 Q2835486 Q1292523 Q1338141 Q6483557 Q5163793 Q2041548 Q5720360 Q5231512 Q18528401 Q7737874 Q5434020 Q6222731 Q449574 Q369398 Q18672716 Q381365 Q19325977 Q25656348 Q3771178 Q5480030 Q15520830 Q1849937 Q15104971 Q21289835 Q5362714
(c(Q502895),P20,Q131491)
action filter_type
action find_reverse
entity Q131491
relation P20
type Q502895
[ANSWERS] have that administrative territory as the location of death
[{'concept': 'Q502895'}, 'P20', 'Q131491']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P20 resource:Q131491 }
Charles Stewart Parnell Octavius Winslow Jeff Darey Walter S. Masterman Jack Brymer Herbert Hughes Martin Archer Shee David Smith Joe Lee Wilson Ralph Michael Louis du Pan Mallet John T. Hilton Annie Mutrie Frederick Nash Arthur Devis George Bowen Lockwood West Viola Keats Douglas Smith Marshall Hall George More-Molyneux Henry Michell Wagner Gary Downie William Maynard Gomm Eleanor Vere Boyle William Morgan Peter O'Donnell James Pycroft Bert Longstaff Joseph Millott Severn Jack Hobbs Terence Morgan Henry Hughs Michael Baigent Thomas Lainson Henry Phillips John James Masquerier Tom Bridges Hilda Braid Herbert Spencer Henrietta Anne Duff Henry Digby Beste John Eaton Frederick Philipse Robinson Dudley de Chair Peter Whitaker Frederick Stirling John Bramley-Moore David Lyon William Henry Ridley Alfred Thomas Davies Joseph-Francis Olliffe Elizabeth Robins George Gristock Kay Hammond Francis Polkinghorne Pascoe William Waldorf Astor, 1st Viscount Astor John Ponsonby, 1st Viscount Ponsonby John Deakin Frederick Soddy James Clay William Dalton Scoones Charles Robert Malden C. H. B. Kitchin James Justinian Morier Michael Underwood Ernestine Rose Philip Causton Lockwood Telford Varley Juan, Count of Montizón C. W. Alcock Mervyn Jones Rosa C. Petherick Jack Iverson Francis Spencer, 1st Baron Churchill William Martin Leake George Chambers Norman Uprichard Flora Robson John Coode Esme Percy Hermann Franck John Clements John Lawrence Toole W. Louis Bradfield Val Valentine Edward Hawker James Perry Julius Carlebach David Watkin Geoffrey Hall-Say John Cornforth John Watt Kenneth Kove Ralph Darling George Phipps, 2nd Marquess of Normanby Julian Wintle Fitzroy Kelly Richard Grimsdale Baillie Scott Harry Bruce Woolfe James Culliford Eric Stenbock Charles Urban Edward Shellim Thomas Lance Edward Leahy Clementina Black Bill Carmody John Palmer Frederick Trench Henry Solomon Sir Patrick O'Brien, 2nd Baronet Alan Melville John Pedder Marie Lohr Joan Cooper Thomas Addison Clement Lambert Pete McCarthy John Leopold Denman Edward Bransfield William Amias Bailward Arnold Ruge Alfred Lynch Arnold Wesker Doreen Valiente William Addison J. M. Gordon Reg Armstrong James Dampier Palmer Ernest Henley Barry Lupino George Charles Beresford Charles Malcolm Anna Maria Crouch Robert Vallis John Nathan-Turner Henry Varley Albert Abdullah David Sassoon Felix Booth Muriel George Maurice Elvey Michael Ansell Edward Chapman Joseph Levis George Holyoake Cecil Parker Illtyd Harrington Harry Bensley Francis Laforey George Larner Colin Eaborn David Ellis Robin Ray William Hughes Charles Stanhope, 3rd Earl of Harrington John Maxim John Cyril Porte Maurice Jacobson George Albert Smith Czesław Petelenz George Nicol John Jackson Amon Wilds William Wickham Robin Maugham, 2nd Viscount Maugham Sir Charles Mansfield Clarke, 1st Baronet Lady Dorothy Mills Hans Singer Thomas Hughes Josef de Mendoza y Ríos George Chichester, 3rd Marquess of Donegall John Walter Hulme Henry Allingham Prince Hoare Philip Metcalfe Frederick Chatfield Anna Maria Bennett George Glynn Petre Edgar Flatau Jules Andrade Richard Burgess John James Crowe Tom Bell William Moon Perlita Neilson William John Alexander Worster Henry Cecil Leon Frederick Charles Booth Roy Skelton Emeric Essex Vidal Mackenzie Ward C. D. Barnard Evelyn Denington, Baroness Denington Anthony Berry Douglas Fox-Pitt Hermann Knüfken John Henry Maunder Nigel Green Frances Dorothy Cartwright Stefan Fabiszewski Richard Phillips Sir Charles Rowley, 1st Baronet Calvin Palmer Richard Henry Nibbs Louis Rémy Mignot Evan John Jones Alfred Lennon Richard Dacres Max Miller Tom Shale Frederick Elwyn Jones, Baron Elwyn-Jones Auguste van Biene Leonard Jerome William Black Sebastian Shaw Andrew Plimer Charles Ellis Carol Barnes Alfred Touchemolin Edward Henry Howard Jesse Ramsden Lance Thackeray Constantine Alexander Ionides Otway Edward Woodhouse Henry Dircks David Bogue Edward Thornton The Great Omani Fanny Corbaux John Boxer Maria Fitzherbert Louise Rennison William Constable Morgan Crofton William Bainbridge Reynolds Daniel Butler Giuseppe Pecchio Francis Arundale Lewis Cubitt Thomas Davidson Sarah Paxton Ball Dodson Stan Smith Elizabeth Eiloart
John Cornforth, Frederick Elwyn Jones, Baron Elwyn-Jones and Frederick Soddy have that administrative territory as the location of death
John Cornforth Frederick Elwyn Jones, Baron Elwyn-Jones Frederick Soddy
action filter_type
action find_reverse
entity Brighton
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Brighton']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:place_of_death resource:Brighton }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q95074
USER
Which fictional characters did max number of people dub for ?
(c(Q95074),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q95074
type Q502895
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?d ) { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?k ) WHERE { ?z property:P725 ?y . ?z rdf:type ontology:Q95074 . ?y rdf:type ontology:Q502895 } GROUP BY ?z } } . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?e ) WHERE { ?r property:P725 ?t . ?r rdf:type ontology:Q95074 . ?t rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?e = ?d ) }
action argmax
action find_tuple_counts
relation voice actor
type fictional character
type common name
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?d ) { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?k ) WHERE { ?z property:voice_actor ?y . ?z rdf:type ontology:fictional_character . ?y rdf:type ontology:common_name } GROUP BY ?z } } . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?e ) WHERE { ?r property:voice_actor ?t . ?r rdf:type ontology:fictional_character . ?t rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?e = ?d ) }
[]
common name fictional character
Q3471289 Q12400 Q2340460
SYSTEM
Samurai Goroh, Samus Aran, Captain Falcon
Q3471289 Q12400 Q2340460
(c(Q95074),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q95074
type Q502895
Max number of people dubbed as [ANSWERS]
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?d ) { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?k ) WHERE { ?z property:P725 ?y . ?z rdf:type ontology:Q95074 . ?y rdf:type ontology:Q502895 } GROUP BY ?z } } . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?e ) WHERE { ?r property:P725 ?t . ?r rdf:type ontology:Q95074 . ?t rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?e = ?d ) }
Samurai Goroh Samus Aran Captain Falcon
Max number of people dubbed as Samurai Goroh, Samus Aran and Captain Falcon
Samurai Goroh Samus Aran Captain Falcon
action argmax
action find_tuple_counts
relation voice actor
type fictional character
type common name
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?d ) { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?k ) WHERE { ?z property:voice_actor ?y . ?z rdf:type ontology:fictional_character . ?y rdf:type ontology:common_name } GROUP BY ?z } } . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?e ) WHERE { ?r property:voice_actor ?t . ?r rdf:type ontology:fictional_character . ?t rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?e = ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q22265259
P674
Q95074 Q277759 Q571
USER
How many fictional characters appears as a character in less number of book series and books than The Great Tyrant ?
(c(Q277759)|c(Q571),P674,c(Q95074))
action count
action less
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q277759
action find_reverse_tuple_counts
relation P674
type Q95074
type Q571
action count
action filter_multi_types
action find_reverse
entity Q22265259
relation P674
type Q277759
type Q571
[[{'concept': 'Q277759'}, {'concept': 'Q571'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { ?y property:P674 resource:Q22265259 . { { ?y rdf:type ontology:Q277759 } UNION { ?y rdf:type ontology:Q571 } } } } . FILTER ( ?t < ?b ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?m WHERE { VALUES ( ?l ) { ( ontology:Q277759 ) ( ontology:Q571 ) } . ?p rdf:type ?l } GROUP BY ?m } }
The Great Tyrant
action count
action less
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type book series
action find_reverse_tuple_counts
relation characters
type fictional character
type book
action count
action filter_multi_types
action find_reverse
entity The Great Tyrant
relation characters
type book series
type book
[[{'concept': 'book series'}, {'concept': 'book'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { ?y property:characters resource:The_Great_Tyrant . { { ?y rdf:type ontology:book_series } UNION { ?y rdf:type ontology:book } } } } . FILTER ( ?t < ?b ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?m WHERE { VALUES ( ?l ) { ( ontology:book_series ) ( ontology:book ) } . ?p rdf:type ?l } GROUP BY ?m } }
[]
fictional character book series book
SYSTEM
291
Q547105 Q3065753 Q16027672 Q27663545 Q24573084 Q27093588 Q4767744 Q252044 Q7167342 Q942938 Q27666236 Q17075849 Q2725247 Q2985575 Q18679242 Q1750634 Q14559464 Q3259165 Q27272386 Q27068028 Q15710873 Q1877780 Q2344068 Q21847074 Q272000 Q461606 Q669485 Q27270635 Q27553997 Q27267091 Q7828 Q27133637 Q15230837 Q27535984 Q2559332 Q27553808 Q3388787 Q27116644 Q5656906 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 Q14541958 Q27229992 Q27429777 Q128429 Q27553882 Q23762190 Q27118866 Q1067046 Q27118394 Q2739228 Q599351 Q510102 Q15160 Q2456444 Q1997439 Q14544980 Q4653 Q842104 Q14396915 Q5431889 Q27666036 Q20822934 Q21847089 Q27237700 Q610519 Q20723928 Q14559460 Q14559461 Q16626690 Q14542335 Q27450655 Q3704358 Q21246052 Q27270096 Q27179995 Q27067917 Q2076759 Q27429724 Q27429978 Q26678513 Q14542337 Q21847086 Q14542331 Q21065725 Q3291275 Q3403328 Q191114 Q23906183 Q21837905 Q27518155 Q20822903 Q159709 Q21837021 Q27429887 Q21837027 Q1115859 Q3939827 Q406021 Q27271937 Q8002690 Q27237722 Q20822908 Q5846 Q27481286 Q27237727 Q850506 Q3320009 Q11309288 Q27067781 Q27429907 Q3377158 Q27535068 Q27703517 Q27237663 Q2715593 Q2979585 Q10354248 Q936278 Q3603297 Q4755325 Q14542340 Q20822916 Q6748296 Q1991640 Q3471289 Q164083 Q14545148 Q4749202 Q27462047 Q21837038 Q27269137 Q2657005 Q27666317 Q27268652 Q21562043 Q21972177 Q6929804 Q27666216 Q3838346 Q21072307 Q27554295 Q267447 Q22266945 Q1028714 Q540376 Q27068138 Q4795290 Q520812 Q14542326 Q14542192 Q20822900 Q388605 Q16451200 Q14542196 Q14544711 Q27237716 Q21837832 Q3056704 Q21971504 Q767120 Q2750318 Q20280393 Q21847105 Q27457103 Q27133578 Q27536279 Q12400 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 Q27430106 Q1866743 Q27272179 Q21847058 Q15020847 Q21847115 Q3036775 Q27462273 Q2021531 Q27229770 Q4160404 Q3806180 Q9012447 Q27133508 Q3073552 Q3073555 Q191527 Q7885388 Q27145361 Q1141265 Q6214458 Q27455598 Q4933846 Q27702918 Q3257493 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 Q19803416 Q14559452
(c(Q277759)|c(Q571),P674,c(Q95074))
action count
action less
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q277759
action find_reverse_tuple_counts
relation P674
type Q95074
type Q571
action count
action filter_multi_types
action find_reverse
entity Q22265259
relation P674
type Q277759
type Q571
[ANSWER]
[[{'concept': 'Q277759'}, {'concept': 'Q571'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { ?y property:P674 resource:Q22265259 . { { ?y rdf:type ontology:Q277759 } UNION { ?y rdf:type ontology:Q571 } } } } . FILTER ( ?t < ?b ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?m WHERE { VALUES ( ?l ) { ( ontology:Q277759 ) ( ontology:Q571 ) } . ?p rdf:type ?l } GROUP BY ?m } }
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 Kalervo Quasimodo Freddy Porky Minch Captain Crocodile The blue fairy Princess Celestia Lusus Madam Mim Kōichirō Iketani Deianira Arsène Lupin Sweeney Todd Little Sister Cody King Richard Marge Simpson King Hubert Dixie Kong Carlotta Cinderella Wilbur Pinocchio Lady Josh Lyman 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 Cesar Vialpando Kaa Bianca Vampirella Jake June Wheeler Trusty Princess Zelda Yock Snow White Gavroche Captain Phoebus Ijon Tichy Renesmee Cullen White Witch Kent Paul Sherlock Holmes Grampa Simpson Kate Harper Faline George Darling Mrs. Judson Kenji Thomas O'Malley Matt Santos Flounder 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 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 Brynhildr Miraz Jeff Geppetto Penny Little John Grimsby Sister Gudule Duchess Josiah Bartlet Clopin Trouillefou Professor Ratigan Imhotep Abbey Bartlet Andrea Wyatt Jizzy B. Basil Mandy Hampton Dominic Toretto Samurai Goroh Till Eulenspiegel Beverly Johnson Amy Gardner Creeper Keisuke Takahashi Sir Hiss Adamastor Crocodile Friar Tuck Antoine Doinel Jean-Marie-François Morhange Delores Landingham Tinker Bell Lucas Lord de Winter Percival McLeach Granny Weatherwax Anastasia Tremaine Jiminy Cricket Mowgli Lampwick Arnold Vinick Claude Frollo 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 Dumbo Chrysoprase Kenta Nakamura Fflewddur Fflam King Stefan Chef Louis Samus Aran 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 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 Bob Russell Pierre Gringoire Bandersnatch 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 Brian O'Conner Old Reece
291
action count
action less
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type book series
action find_reverse_tuple_counts
relation characters
type fictional character
type book
action count
action filter_multi_types
action find_reverse
entity The Great Tyrant
relation characters
type book series
type book
[[{'concept': 'book series'}, {'concept': 'book'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { ?y property:characters resource:The_Great_Tyrant . { { ?y rdf:type ontology:book_series } UNION { ?y rdf:type ontology:book } } } } . FILTER ( ?t < ?b ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?m WHERE { VALUES ( ?l ) { ( ontology:book_series ) ( ontology:book ) } . ?p rdf:type ?l } GROUP BY ?m } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1649854
P674
Q95074 Q277759 Q571
USER
And what about Athos?
(c(Q277759)|c(Q571),P674,c(Q95074))
action count
action less
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q277759
action find_reverse_tuple_counts
relation P674
type Q95074
type Q571
action count
action filter_multi_types
action find_reverse
entity Q1649854
relation P674
type Q277759
type Q571
[[{'concept': 'Q277759'}, {'concept': 'Q571'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) ?o WHERE { ?y rdf:type ?h . VALUES ( ?h ) { ( ontology:Q277759 ) ( ontology:Q571 ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { { ?w rdf:type ontology:Q277759 } UNION { ?w rdf:type ontology:Q571 } } . ?w property:P674 resource:Q1649854 } } . FILTER ( ?u < ?c ) }
Athos
action count
action less
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type book series
action find_reverse_tuple_counts
relation characters
type fictional character
type book
action count
action filter_multi_types
action find_reverse
entity Athos
relation characters
type book series
type book
[[{'concept': 'book series'}, {'concept': 'book'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) ?o WHERE { ?y rdf:type ?h . VALUES ( ?h ) { ( ontology:book_series ) ( ontology:book ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { { ?w rdf:type ontology:book_series } UNION { ?w rdf:type ontology:book } } . ?w property:characters resource:Athos } } . FILTER ( ?u < ?c ) }
[]
fictional character book series book
SYSTEM
291
Q547105 Q3065753 Q16027672 Q27663545 Q24573084 Q27093588 Q4767744 Q252044 Q7167342 Q942938 Q27666236 Q17075849 Q2725247 Q2985575 Q18679242 Q1750634 Q14559464 Q3259165 Q27272386 Q27068028 Q15710873 Q1877780 Q2344068 Q21847074 Q272000 Q461606 Q669485 Q27270635 Q27553997 Q27267091 Q7828 Q27133637 Q15230837 Q27535984 Q2559332 Q27553808 Q3388787 Q27116644 Q5656906 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 Q14541958 Q27229992 Q27429777 Q128429 Q27553882 Q23762190 Q27118866 Q1067046 Q27118394 Q2739228 Q599351 Q510102 Q15160 Q2456444 Q1997439 Q14544980 Q4653 Q842104 Q14396915 Q5431889 Q27666036 Q20822934 Q21847089 Q27237700 Q610519 Q20723928 Q14559460 Q14559461 Q16626690 Q14542335 Q27450655 Q3704358 Q21246052 Q27270096 Q27179995 Q27067917 Q2076759 Q27429724 Q27429978 Q26678513 Q14542337 Q21847086 Q14542331 Q21065725 Q3291275 Q3403328 Q191114 Q23906183 Q21837905 Q27518155 Q20822903 Q159709 Q21837021 Q27429887 Q21837027 Q1115859 Q3939827 Q406021 Q27271937 Q8002690 Q27237722 Q20822908 Q5846 Q27481286 Q27237727 Q850506 Q3320009 Q11309288 Q27067781 Q27429907 Q3377158 Q27535068 Q27703517 Q27237663 Q2715593 Q2979585 Q10354248 Q936278 Q3603297 Q4755325 Q14542340 Q20822916 Q6748296 Q1991640 Q3471289 Q164083 Q14545148 Q4749202 Q27462047 Q21837038 Q27269137 Q2657005 Q27666317 Q27268652 Q21562043 Q21972177 Q6929804 Q27666216 Q3838346 Q21072307 Q27554295 Q267447 Q22266945 Q1028714 Q540376 Q27068138 Q4795290 Q520812 Q14542326 Q14542192 Q20822900 Q388605 Q16451200 Q14542196 Q14544711 Q27237716 Q21837832 Q3056704 Q21971504 Q767120 Q2750318 Q20280393 Q21847105 Q27457103 Q27133578 Q27536279 Q12400 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 Q27430106 Q1866743 Q27272179 Q21847058 Q15020847 Q21847115 Q3036775 Q27462273 Q2021531 Q27229770 Q4160404 Q3806180 Q9012447 Q27133508 Q3073552 Q3073555 Q191527 Q7885388 Q27145361 Q1141265 Q6214458 Q27455598 Q4933846 Q27702918 Q3257493 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 Q19803416 Q14559452
(c(Q277759)|c(Q571),P674,c(Q95074))
action count
action less
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q277759
action find_reverse_tuple_counts
relation P674
type Q95074
type Q571
action count
action filter_multi_types
action find_reverse
entity Q1649854
relation P674
type Q277759
type Q571
[ANSWER]
[[{'concept': 'Q277759'}, {'concept': 'Q571'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) ?o WHERE { ?y rdf:type ?h . VALUES ( ?h ) { ( ontology:Q277759 ) ( ontology:Q571 ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { { ?w rdf:type ontology:Q277759 } UNION { ?w rdf:type ontology:Q571 } } . ?w property:P674 resource:Q1649854 } } . FILTER ( ?u < ?c ) }
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 Kalervo Quasimodo Freddy Porky Minch Captain Crocodile The blue fairy Princess Celestia Lusus Madam Mim Kōichirō Iketani Deianira Arsène Lupin Sweeney Todd Little Sister Cody King Richard Marge Simpson King Hubert Dixie Kong Carlotta Cinderella Wilbur Pinocchio Lady Josh Lyman 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 Cesar Vialpando Kaa Bianca Vampirella Jake June Wheeler Trusty Princess Zelda Yock Snow White Gavroche Captain Phoebus Ijon Tichy Renesmee Cullen White Witch Kent Paul Sherlock Holmes Grampa Simpson Kate Harper Faline George Darling Mrs. Judson Kenji Thomas O'Malley Matt Santos Flounder 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 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 Brynhildr Miraz Jeff Geppetto Penny Little John Grimsby Sister Gudule Duchess Josiah Bartlet Clopin Trouillefou Professor Ratigan Imhotep Abbey Bartlet Andrea Wyatt Jizzy B. Basil Mandy Hampton Dominic Toretto Samurai Goroh Till Eulenspiegel Beverly Johnson Amy Gardner Creeper Keisuke Takahashi Sir Hiss Adamastor Crocodile Friar Tuck Antoine Doinel Jean-Marie-François Morhange Delores Landingham Tinker Bell Lucas Lord de Winter Percival McLeach Granny Weatherwax Anastasia Tremaine Jiminy Cricket Mowgli Lampwick Arnold Vinick Claude Frollo 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 Dumbo Chrysoprase Kenta Nakamura Fflewddur Fflam King Stefan Chef Louis Samus Aran 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 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 Bob Russell Pierre Gringoire Bandersnatch 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 Brian O'Conner Old Reece
291
action count
action less
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type book series
action find_reverse_tuple_counts
relation characters
type fictional character
type book
action count
action filter_multi_types
action find_reverse
entity Athos
relation characters
type book series
type book
[[{'concept': 'book series'}, {'concept': 'book'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) ?o WHERE { ?y rdf:type ?h . VALUES ( ?h ) { ( ontology:book_series ) ( ontology:book ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { { ?w rdf:type ontology:book_series } UNION { ?w rdf:type ontology:book } } . ?w property:characters resource:Athos } } . FILTER ( ?u < ?c ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q12400 Q1238091
P170
Q502895
USER
How many people created Samus Aran or Pinakes ?
(Q12400,P170,c(Q502895)) (Q1238091,P170,c(Q502895))
action count
action union
action filter_type
action find
entity Q12400
relation P170
type Q502895
action filter_type
action find
entity Q1238091
relation P170
type Q502895
['Q12400', 'P170', {'concept': 'Q502895'}] ['Q1238091', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { ?f property:P170 ?c . VALUES ( ?f ) { ( resource:Q12400 ) ( resource:Q1238091 ) } }
Samus Aran Pinakes
action count
action union
action filter_type
action find
entity Samus Aran
relation creator
type common name
action filter_type
action find
entity Pinakes
relation creator
type common name
['Samus Aran', 'creator', {'concept': 'common name'}] ['Pinakes', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { ?f property:creator ?c . VALUES ( ?f ) { ( resource:Samus_Aran ) ( resource:Pinakes ) } }
[]
common name
SYSTEM
2
Q192417 Q3280923
(Q12400,P170,c(Q502895)) (Q1238091,P170,c(Q502895))
action count
action union
action filter_type
action find
entity Q12400
relation P170
type Q502895
action filter_type
action find
entity Q1238091
relation P170
type Q502895
[ANSWER]
['Q12400', 'P170', {'concept': 'Q502895'}] ['Q1238091', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { ?f property:P170 ?c . VALUES ( ?f ) { ( resource:Q12400 ) ( resource:Q1238091 ) } }
Callimachus Makoto Kano
2
action count
action union
action filter_type
action find
entity Samus Aran
relation creator
type common name
action filter_type
action find
entity Pinakes
relation creator
type common name
['Samus Aran', 'creator', {'concept': 'common name'}] ['Pinakes', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { ?f property:creator ?c . VALUES ( ?f ) { ( resource:Samus_Aran ) ( resource:Pinakes ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1377227 Q22265259
P1441
Q277759
USER
Which book series are The Great Tyrant or Gellert Grindelwald shown in ?
OR((Q22265259,P1441,c(Q277759)), (Q1377227,P1441,c(Q277759)))
action filter_type
action union
action find
entity Q22265259
relation P1441
action find
entity Q1377227
relation P1441
type Q277759
{'OR': [['Q22265259', 'P1441', {'concept': 'Q277759'}], ['Q1377227', 'P1441', {'concept': 'Q277759'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q22265259 property:P1441 ?n } UNION { resource:Q1377227 property:P1441 ?n } } . ?n rdf:type ontology:Q277759 }
Gellert Grindelwald The Great Tyrant
action filter_type
action union
action find
entity The Great Tyrant
relation present in work
action find
entity Gellert Grindelwald
relation present in work
type book series
{'OR': [['The Great Tyrant', 'present in work', {'concept': 'book series'}], ['Gellert Grindelwald', 'present in work', {'concept': 'book series'}]]}
SELECT DISTINCT ?n WHERE { { { resource:The_Great_Tyrant property:present_in_work ?n } UNION { resource:Gellert_Grindelwald property:present_in_work ?n } } . ?n rdf:type ontology:book_series }
[]
book series
Q91926 Q8337
SYSTEM
Barbarella, Harry Potter
Q91926 Q8337
OR((Q22265259,P1441,c(Q277759)), (Q1377227,P1441,c(Q277759)))
action filter_type
action union
action find
entity Q22265259
relation P1441
action find
entity Q1377227
relation P1441
type Q277759
The Great Tyrant or Gellert Grindelwald are shown in [ANSWERS]
{'OR': [['Q22265259', 'P1441', {'concept': 'Q277759'}], ['Q1377227', 'P1441', {'concept': 'Q277759'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q22265259 property:P1441 ?n } UNION { resource:Q1377227 property:P1441 ?n } } . ?n rdf:type ontology:Q277759 }
Barbarella Harry Potter
The Great Tyrant or Gellert Grindelwald are shown in Barbarella and Harry Potter
Barbarella Harry Potter
action filter_type
action union
action find
entity The Great Tyrant
relation present in work
action find
entity Gellert Grindelwald
relation present in work
type book series
{'OR': [['The Great Tyrant', 'present in work', {'concept': 'book series'}], ['Gellert Grindelwald', 'present in work', {'concept': 'book series'}]]}
SELECT DISTINCT ?n WHERE { { { resource:The_Great_Tyrant property:present_in_work ?n } UNION { resource:Gellert_Grindelwald property:present_in_work ?n } } . ?n rdf:type ontology:book_series }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P674
Q15619164 Q502895 Q277759
USER
Which book series are approximately the same number of abstract beings and people a character of as that book series ?
(c(Q277759),P674,c(Q15619164)|c(Q502895))
[{'concept': 'Q277759'}, 'P674', [{'concept': 'Q15619164'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?d ) { ( ?y ) ( ?x ) } . ?z property:P674 ?d } . ?z rdf:type ontology:Q277759 . ?y rdf:type ontology:Q15619164 . ?x rdf:type ontology:Q502895 }
[{'concept': 'book series'}, 'characters', [{'concept': 'abstract being'}, {'concept': 'common name'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?d ) { ( ?y ) ( ?x ) } . ?z property:characters ?d } . ?z rdf:type ontology:book_series . ?y rdf:type ontology:abstract_being . ?x rdf:type ontology:common_name }
[]
abstract being common name book series
Comparative|More/Less|Mult. entity type|Clarification
Q8337
SYSTEM
Did you mean Harry Potter ?
(c(Q277759),P674,c(Q15619164)|c(Q502895))
[ANSWER]
[{'concept': 'Q277759'}, 'P674', [{'concept': 'Q15619164'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?d ) { ( ?y ) ( ?x ) } . ?z property:P674 ?d } . ?z rdf:type ontology:Q277759 . ?y rdf:type ontology:Q15619164 . ?x rdf:type ontology:Q502895 }
Did you mean Harry Potter ?
Harry Potter
[{'concept': 'book series'}, 'characters', [{'concept': 'abstract being'}, {'concept': 'common name'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?d ) { ( ?y ) ( ?x ) } . ?z property:characters ?d } . ?z rdf:type ontology:book_series . ?y rdf:type ontology:abstract_being . ?x rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q277759),P674,c(Q15619164)|c(Q502895))
[{'concept': 'Q277759'}, 'P674', [{'concept': 'Q15619164'}, {'concept': 'Q502895'}]]
[{'concept': 'book series'}, 'characters', [{'concept': 'abstract being'}, {'concept': 'common name'}]]
[]
SYSTEM
37
Q1989814 Q15510888 Q59990 Q2183647 Q1894425 Q1503057 Q11221 Q1276821 Q3736125 Q1456921 Q280898 Q1455322 Q2364144 Q1124620 Q213167 Q469074 Q1214840 Q2699024 Q2516759 Q340181 Q3144248 Q2008180 Q137475 Q727911 Q942860 Q3036693 Q3036697 Q162328 Q2194820 Q3705378 Q2556511 Q2402829 Q1184847 Q847022 Q8337 Q2891507 Q3046338
(c(Q277759),P674,c(Q15619164)|c(Q502895))
[ANSWER]
[{'concept': 'Q277759'}, 'P674', [{'concept': 'Q15619164'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:P674 ?y } UNION { ?z property:P674 ?x } } . ?z rdf:type ontology:Q277759 . ?y rdf:type ontology:Q15619164 . ?x rdf:type ontology:Q502895 }
L'Élève Ducobu Le Génie des alpages Blake and Mortimer Sammy Marc Lebut et son voisin L. Frank The Smurfs The Heroes of Olympus Under the North Star Valentina The Dark Tower Trolls of Troy Crusades tetralogy Condorito Percy Jackson & the Olympians Buck Danny Les petits hommes Inheritance Cycle tetralogy The Kane Chronicles The Walking Dead Nestor Burma OSS 117 Lucky Luke Largo Winch Son Altesse Sérénissime Donjon Crépuscule Donjon Potron-Minet Dungeon The Han Solo Trilogy The DemonWars Saga Scrameustache De Rode Ridder Showcase Millennium trilogy Harry Potter Batman: Haunted Knight Eagle
37
[{'concept': 'book series'}, 'characters', [{'concept': 'abstract being'}, {'concept': 'common name'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:characters ?y } UNION { ?z property:characters ?x } } . ?z rdf:type ontology:book_series . ?y rdf:type ontology:abstract_being . ?x rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1377227
P88
Q17682891
USER
What was commisioned by Gellert Grindelwald ?
(c(Q17682891),P88,Q1377227)
action filter_type
action find_reverse
entity Q1377227
relation P88
type Q17682891
[{'concept': 'Q17682891'}, 'P88', 'Q1377227']
SELECT DISTINCT ?k WHERE { ?k property:P88 resource:Q1377227 . ?k rdf:type ontology:Q17682891 }
Gellert Grindelwald
action filter_type
action find_reverse
entity Gellert Grindelwald
relation commissioned by
type fictional prison
[{'concept': 'fictional prison'}, 'commissioned by', 'Gellert Grindelwald']
SELECT DISTINCT ?k WHERE { ?k property:commissioned_by resource:Gellert_Grindelwald . ?k rdf:type ontology:fictional_prison }
[]
fictional prison
Q2171014
SYSTEM
Nurmengard
Q2171014
(c(Q17682891),P88,Q1377227)
action filter_type
action find_reverse
entity Q1377227
relation P88
type Q17682891
[ANSWER] was commisioned by Gellert Grindelwald
[{'concept': 'Q17682891'}, 'P88', 'Q1377227']
SELECT DISTINCT ?k WHERE { ?k property:P88 resource:Q1377227 . ?k rdf:type ontology:Q17682891 }
Nurmengard
Nurmengard was commisioned by Gellert Grindelwald
Nurmengard
action filter_type
action find_reverse
entity Gellert Grindelwald
relation commissioned by
type fictional prison
[{'concept': 'fictional prison'}, 'commissioned by', 'Gellert Grindelwald']
SELECT DISTINCT ?k WHERE { ?k property:commissioned_by resource:Gellert_Grindelwald . ?k rdf:type ontology:fictional_prison }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P674
Q95074 Q166142 Q277759
USER
Which fictional characters appear as a character in atmost 2 applications and book series ?
(c(Q166142)|c(Q277759),P674,c(Q95074))
action atmost
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q166142
action find_reverse_tuple_counts
relation P674
type Q95074
type Q277759
value 2
[[{'concept': 'Q166142'}, {'concept': 'Q277759'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?d ) WHERE { { ?g rdf:type ontology:Q95074 . ?z rdf:type ontology:Q166142 . ?z property:P674 ?g } UNION { ?z property:P674 ?g . ?g rdf:type ontology:Q95074 . ?z rdf:type ontology:Q277759 } } GROUP BY ?g } . FILTER ( ?d <= 2 ) }
action atmost
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type application
action find_reverse_tuple_counts
relation characters
type fictional character
type book series
value 2
[[{'concept': 'application'}, {'concept': 'book series'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?d ) WHERE { { ?g rdf:type ontology:fictional_character . ?z rdf:type ontology:application . ?z property:characters ?g } UNION { ?z property:characters ?g . ?g rdf:type ontology:fictional_character . ?z rdf:type ontology:book_series } } GROUP BY ?g } . FILTER ( ?d <= 2 ) }
[]
fictional character application book series
Q252044 Q610519 Q2715593
SYSTEM
Queen Grimhilde, Matt Santos, Josiah Bartlet
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 Q461606 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 Q27118394 Q2739228 Q114900 Q599351 Q510102 Q15160 Q2456444 Q1997439 Q14544980 Q4653 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 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 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(Q166142)|c(Q277759),P674,c(Q95074))
action atmost
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q166142
action find_reverse_tuple_counts
relation P674
type Q95074
type Q277759
value 2
[ANSWERS] appear as a character in atmost 2 applications and book series
[[{'concept': 'Q166142'}, {'concept': 'Q277759'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?d ) WHERE { { ?g rdf:type ontology:Q95074 . ?z rdf:type ontology:Q166142 . ?z property:P674 ?g } UNION { ?z property:P674 ?g . ?g rdf:type ontology:Q95074 . ?z rdf:type ontology:Q277759 } } GROUP BY ?g } . FILTER ( ?d <= 2 ) }
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 Arsène Lupin 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 Yock Snow White Lori Grimes Gavroche Captain Phoebus Ijon Tichy Renesmee Cullen White Witch Kent Paul Sherlock Holmes 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 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 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
Queen Grimhilde, Matt Santos and Josiah Bartlet appear as a character in atmost 2 applications and book series
Queen Grimhilde Matt Santos Josiah Bartlet
action atmost
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type application
action find_reverse_tuple_counts
relation characters
type fictional character
type book series
value 2
[[{'concept': 'application'}, {'concept': 'book series'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?d ) WHERE { { ?g rdf:type ontology:fictional_character . ?z rdf:type ontology:application . ?z property:characters ?g } UNION { ?z property:characters ?g . ?g rdf:type ontology:fictional_character . ?z rdf:type ontology:book_series } } GROUP BY ?g } . FILTER ( ?d <= 2 ) }
[]