Simple Question (Direct)
Simple Question
Q24084368
P1441
Q15416
USER
Which television program is Mark B. Sellner present in ?
(Q24084368,P1441,c(Q15416))
action filter_type
action find
entity Q24084368
relation P1441
type Q15416
['Q24084368', 'P1441', {'concept': 'Q15416'}]
SELECT DISTINCT ?w WHERE { resource:Q24084368 property:P1441 ?w . ?w rdf:type ontology:Q15416 }
Mark B. Sellner
action filter_type
action find
entity Mark B. Sellner
relation present in work
type television program
['Mark B. Sellner', 'present in work', {'concept': 'television program'}]
SELECT DISTINCT ?w WHERE { resource:Mark_B._Sellner property:present_in_work ?w . ?w rdf:type ontology:television_program }
[]
television program
Q3577037
SYSTEM
The West Wing
Q3577037
(Q24084368,P1441,c(Q15416))
action filter_type
action find
entity Q24084368
relation P1441
type Q15416
[ANSWER] is Mark B. Sellner present in
['Q24084368', 'P1441', {'concept': 'Q15416'}]
SELECT DISTINCT ?w WHERE { resource:Q24084368 property:P1441 ?w . ?w rdf:type ontology:Q15416 }
The West Wing
The West Wing is Mark B. Sellner present in
The West Wing
action filter_type
action find
entity Mark B. Sellner
relation present in work
type television program
['Mark B. Sellner', 'present in work', {'concept': 'television program'}]
SELECT DISTINCT ?w WHERE { resource:Mark_B._Sellner property:present_in_work ?w . ?w rdf:type ontology:television_program }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3577037
P840
Q56061
USER
Which narrative location is that television program set in ?
(Q3577037,P840,c(Q56061))
action filter_type
action find
entity Q3577037
relation P840
type Q56061
['Q3577037', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q3577037 property:P840 ?r . ?r rdf:type ontology:Q56061 }
The West Wing
action filter_type
action find
entity The West Wing
relation narrative location
type administrative territorial entity
['The West Wing', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:The_West_Wing property:narrative_location ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q61
SYSTEM
Washington, D.C.
Q61
(Q3577037,P840,c(Q56061))
action filter_type
action find
entity Q3577037
relation P840
type Q56061
That television program is set in [ANSWER]
['Q3577037', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q3577037 property:P840 ?r . ?r rdf:type ontology:Q56061 }
Washington, D.C.
That television program is set in Washington, D.C.
Washington, D.C.
action filter_type
action find
entity The West Wing
relation narrative location
type administrative territorial entity
['The West Wing', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:The_West_Wing property:narrative_location ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q3577037
Q41176
USER
And which building?
(Q3577037,P840,c(Q41176))
action filter_type
action find
entity Q3577037
relation P840
type Q41176
['Q3577037', 'P840', {'concept': 'Q41176'}]
SELECT DISTINCT ?f WHERE { resource:Q3577037 property:P840 ?f . ?f rdf:type ontology:Q41176 }
The West Wing
action filter_type
action find
entity The West Wing
relation narrative location
type building
['The West Wing', 'narrative location', {'concept': 'building'}]
SELECT DISTINCT ?f WHERE { resource:The_West_Wing property:narrative_location ?f . ?f rdf:type ontology:building }
[]
building
Q1932621
SYSTEM
West Wing
Q1932621
(Q3577037,P840,c(Q41176))
action filter_type
action find
entity Q3577037
relation P840
type Q41176
[ANSWER]
['Q3577037', 'P840', {'concept': 'Q41176'}]
SELECT DISTINCT ?f WHERE { resource:Q3577037 property:P840 ?f . ?f rdf:type ontology:Q41176 }
West Wing
West Wing
action filter_type
action find
entity The West Wing
relation narrative location
type building
['The West Wing', 'narrative location', {'concept': 'building'}]
SELECT DISTINCT ?f WHERE { resource:The_West_Wing property:narrative_location ?f . ?f rdf:type ontology:building }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q205002 Q3577037
P767 P1441
Q95074
USER
Which fictional characters appear in The West Wing or did Joe Grant contribute to ?
OR((c(Q95074),P1441,Q3577037), (c(Q95074),P767,Q205002))
action filter_type
action union
action find_reverse
entity Q3577037
relation P1441
action find_reverse
entity Q205002
relation P767
type Q95074
{'OR': [[{'concept': 'Q95074'}, 'P1441', 'Q3577037'], [{'concept': 'Q95074'}, 'P767', 'Q205002']]}
SELECT DISTINCT ?g WHERE { { { ?g property:P1441 resource:Q3577037 } UNION { ?g property:P767 resource:Q205002 } } . ?g rdf:type ontology:Q95074 }
Joe Grant The West Wing
action filter_type
action union
action find_reverse
entity The West Wing
relation present in work
action find_reverse
entity Joe Grant
relation contributor
type fictional character
{'OR': [[{'concept': 'fictional character'}, 'present in work', 'The West Wing'], [{'concept': 'fictional character'}, 'contributor', 'Joe Grant']]}
SELECT DISTINCT ?g WHERE { { { ?g property:present_in_work resource:The_West_Wing } UNION { ?g property:contributor resource:Joe_Grant } } . ?g rdf:type ontology:fictional_character }
[]
fictional character
Q24068630 Q23035757 Q23762190 Q23301736 Q5656906 Q23054665 Q23899095 Q24023460 Q4933846 Q23900472
SYSTEM
Some of them are Peter Santos, Jack Sloan, June Wheeler, SitRoom Civilian Advisor David, Josh Lyman, Albie Duncan, Lewis Berryhill, Shira Galit, Bob Russell, Theodore Barrow
Q23214200 Q24044563 Q23038751 Q24039836 Q23038562 Q23024676 Q27468350 Q23046165 Q23826180 Q7167342 Q610519 Q24024851 Q24084368 Q24052834 Q23003614 Q24062967 Q6748296 Q23058141 Q23760935 Q23015114 Q23047371 Q4767744 Q23900493 Q23037303 Q9012447 Q24054552 Q23025185 Q24035460 Q23761797 Q23029164 Q23012330 Q24037769 Q23054665 Q23001864 Q24040324 Q252044 Q17075849 Q2284795 Q23005189 Q23010238 Q23000921 Q8002690 Q5354221 Q23301703 Q23005293 Q23762190 Q24054813 Q23899095 Q23047434 Q23003776 Q23761301 Q24044109 Q23894023 Q23053752 Q23938898 Q23777628 Q23762112 Q23938893 Q23036869 Q23008119 Q23940153 Q4933846 Q24068632 Q24068630 Q23893764 Q23898966 Q3704358 Q23898969 Q4749202 Q23301677 Q23058181 Q23001650 Q22999546 Q23000140 Q23001659 Q24054376 Q23900741 Q23042970 Q24052982 Q23777896 Q23011599 Q23900341 Q24054381 Q23014030 Q24062083 Q23010252 Q23038541 Q23898951 Q23932637 Q24039746 Q23784735 Q24054363 Q2715593 Q23799249 Q24054367 Q23912069 Q23981988 Q23982155 Q23042967 Q3603297 Q4755325 Q23893787 Q23035757 Q23011464 Q23035753 Q14396915 Q24037752 Q23785282 Q23826623 Q23939646 Q6929804 Q23826628 Q23024229 Q23899066 Q23000758 Q23900602 Q23762427 Q24039948 Q23042922 Q4795290 Q24053179 Q23007298 Q27636508 Q22999522 Q23012300 Q23047422 Q23900472 Q23012307 Q23305518 Q23799208 Q24021446 Q23000920 Q23005306 Q22999586 Q6524042 Q24039954 Q22999595 Q23890919 Q23014039 Q22999590 Q23024397 Q23833727 Q24020884 Q23047396 Q27116644 Q3946354 Q24009496 Q3666688 Q24036633 Q8073344 Q326075 Q23777554 Q24036639 Q23008443 Q23932620 Q23005316 Q6744279 Q24023460 Q23005310 Q23005318 Q1080587 Q24044444 Q6214458 Q23011516 Q1649583 Q24069196 Q24023874 Q24053385 Q23035765 Q7349306 Q1345373 Q23899180 Q23301736 Q23000261 Q23908883 Q23000267 Q23785435 Q23005125 Q3036775 Q24054431 Q23014839 Q23005324 Q5656906 Q23000290 Q23001841 Q24020978 Q24090736 Q23011568 Q23030384
OR((c(Q95074),P1441,Q3577037), (c(Q95074),P767,Q205002))
action filter_type
action union
action find_reverse
entity Q3577037
relation P1441
action find_reverse
entity Q205002
relation P767
type Q95074
[ANSWERS] appear in The West Wing or did Joe Grant contribute to
{'OR': [[{'concept': 'Q95074'}, 'P1441', 'Q3577037'], [{'concept': 'Q95074'}, 'P767', 'Q205002']]}
SELECT DISTINCT ?g WHERE { { { ?g property:P1441 resource:Q3577037 } UNION { ?g property:P767 resource:Q205002 } } . ?g rdf:type ontology:Q95074 }
Simon Donovan Sean Oliver Babish Edwin Kelwick Zach Robbie Mosley Cheshire Cat Cliff Calley Miles Hutchinson Percy Fitzwallace Matt Santos Doran Mazar Mark B. Sellner Congresswoman Gleeson Roberto Mendoza Steve Hodder Mandy Hampton Jordon Kendall Intern Stacy Mary Marsh Robert Royce Annabeth Schott Reporter George Michael Casper John Hoynes Charles Frost Mark O'Donnell Congressman Lackey Elsie Snuffin Henry Shallick Arthur Leeds Ling-Po Albie Duncan Ron Butterfield Trevor Queen Grimhilde Danny Concannon Mrs. Potts Donnie Gina Toscano Jenny McGarry Will Bailey Eleanor Bartlet Officer Thomas Lord John Marbury June Wheeler Barry Goodwin Lewis Berryhill Sally Katie Witt Alexander Thompson Sheila Brooks Glenallen Walken Alan Adamle Matt Hunt Reporter John Ted Willard Ben Dryer Millicent Griffith Joseph Bruno Lisa Wolfe Bob Russell Miranda Santos Peter Santos Secret Service Agent Wesley Steve Atwood Deborah Fiderer Doug Westin Amy Gardner SitRoom Civilian Advisor Darren Gibson Bob Engler Cathy Nancy Carol Fitzpatrick Ellis Taylor Nicholas Alexander Connie Tate Bram Howard Gail Mackee Sondra Jeff Haffley Mike Diacovo Ainsley Hayes Vic Faison Al Kiefer Howard Stackhouse Elizabeth Bartlet Westin Taylor Reid Curtis Carruthers Wendell Tripplehorn Edie Ortega Josiah Bartlet Jean Paul Otto Rina Jack Sosa George Arnold Douglas Wegland Abbey Bartlet Andrea Wyatt Jamie Reed Jack Sloan Jonathan Mickey Troop Kate Harper Eric Baker Manny Cassie Tatum Greg Brock Delores Landingham Jimmy Wendall Stanley Keyworth Ryan Pierce Chris Reporter Charlayne Reporter Jo Helen Santos Bruno Gianelli Arnold Vinick Ray Sullivan Roger Tribbey Raven Laurie Nancy McNally Phil Theodore Barrow Ken Shannon Mitch Bryce Jules Ziegler Nizar Farad Mark Richardson Larry Claypool Al Caldwell Leo McGarry Marla Worisky Bonnie Joe Quincy Mark Gottfried Margaret Hooper Bernard Thatch Bartender Tammy Colin Ayres Bob Slatterly Lady Sam Seaborn Mike Gordon Charlie Young Ned Carlson Zoey Bartlet Rafiki Jack Reese Ronna Beckman Kenny Thurman Efraim 'Eli' Zahavy Jaworski Mallory O'Brien Shira Galit Chinese Ambassador George Rollie C. J. Cregg Bob Mayer Joey Lucas Max Lobell Simba Jane Braun Saeb Mukarat Dylan Clark Mike Chysler Robert Ritchie Toby Ziegler Angela Blake SitRoom Civilian Advisor David Bobbi Roy Ashland Stevie Presidential Reporter Ginger Donna Moss Louise Thornton Mark Chase Larry Josh Lyman Ed Matt Skinner Colonel Leahy Curtis Shaeffer Steve Roger Salier
Peter Santos, Jack Sloan, June Wheeler, SitRoom Civilian Advisor David, Josh Lyman, Albie Duncan, Lewis Berryhill, Shira Galit, Bob Russell and Theodore Barrow appear in The West Wing or did Joe Grant contribute to
Peter Santos Jack Sloan June Wheeler SitRoom Civilian Advisor David Josh Lyman Albie Duncan Lewis Berryhill Shira Galit Bob Russell Theodore Barrow
action filter_type
action union
action find_reverse
entity The West Wing
relation present in work
action find_reverse
entity Joe Grant
relation contributor
type fictional character
{'OR': [[{'concept': 'fictional character'}, 'present in work', 'The West Wing'], [{'concept': 'fictional character'}, 'contributor', 'Joe Grant']]}
SELECT DISTINCT ?g WHERE { { { ?g property:present_in_work resource:The_West_Wing } UNION { ?g property:contributor resource:Joe_Grant } } . ?g rdf:type ontology:fictional_character }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P674
Q95074 Q5398426 Q234460
USER
How many fictional characters appear as a character in atleast 1 television series or texts ?
(c(Q5398426)|c(Q234460),P674,c(Q95074))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q5398426
action find_reverse_tuple_counts
relation P674
type Q95074
type Q234460
value 1
[[{'concept': 'Q5398426'}, {'concept': 'Q234460'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) ?v WHERE { { ?h property:P674 ?v . ?v rdf:type ontology:Q95074 . ?h rdf:type ontology:Q5398426 } UNION { ?h property:P674 ?v . ?v rdf:type ontology:Q95074 . ?h rdf:type ontology:Q234460 } } GROUP BY ?v } . FILTER ( ?j >= 1 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type television series
action find_reverse_tuple_counts
relation characters
type fictional character
type text
value 1
[[{'concept': 'television series'}, {'concept': 'text'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) ?v WHERE { { ?h property:characters ?v . ?v rdf:type ontology:fictional_character . ?h rdf:type ontology:television_series } UNION { ?h property:characters ?v . ?v rdf:type ontology:fictional_character . ?h rdf:type ontology:text } } GROUP BY ?v } . FILTER ( ?j >= 1 ) }
[]
fictional character television series text
SYSTEM
19
Q16027672 Q2985575 Q1750634 Q461606 Q2340460 Q510102 Q4653 Q191114 Q23906183 Q159709 Q850506 Q27703517 Q2979585 Q3471289 Q520812 Q27703691 Q3073552 Q27702918 Q661491
(c(Q5398426)|c(Q234460),P674,c(Q95074))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q5398426
action find_reverse_tuple_counts
relation P674
type Q95074
type Q234460
value 1
[ANSWER]
[[{'concept': 'Q5398426'}, {'concept': 'Q234460'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) ?v WHERE { { ?h property:P674 ?v . ?v rdf:type ontology:Q95074 . ?h rdf:type ontology:Q5398426 } UNION { ?h property:P674 ?v . ?v rdf:type ontology:Q95074 . ?h rdf:type ontology:Q234460 } } GROUP BY ?v } . FILTER ( ?j >= 1 ) }
Dr. Stewart K-9 Quasimodo Arsène Lupin Captain Falcon Captain Phoebus Sherlock Holmes Sita Herbert Einstein Gilgamesh Brynhildr Sister Gudule Clopin Trouillefou Samurai Goroh Claude Frollo Jehan Frollo Fleur-de-Lys Pierre Gringoire Esméralda
19
action count
action atleast
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type television series
action find_reverse_tuple_counts
relation characters
type fictional character
type text
value 1
[[{'concept': 'television series'}, {'concept': 'text'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) ?v WHERE { { ?h property:characters ?v . ?v rdf:type ontology:fictional_character . ?h rdf:type ontology:television_series } UNION { ?h property:characters ?v . ?v rdf:type ontology:fictional_character . ?h rdf:type ontology:text } } GROUP BY ?v } . FILTER ( ?j >= 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1345373 Q24068630
P1441
Q15416
USER
Which television programs are Peter Santos and Toby Ziegler shown in ?
AND((Q24068630,P1441,c(Q15416)), (Q1345373,P1441,c(Q15416)))
action filter_type
action intersection
action find
entity Q24068630
relation P1441
action find
entity Q1345373
relation P1441
type Q15416
{'AND': [['Q24068630', 'P1441', {'concept': 'Q15416'}], ['Q1345373', 'P1441', {'concept': 'Q15416'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15416 . resource:Q24068630 property:P1441 ?u . resource:Q1345373 property:P1441 ?u }
Toby Ziegler Peter Santos
action filter_type
action intersection
action find
entity Peter Santos
relation present in work
action find
entity Toby Ziegler
relation present in work
type television program
{'AND': [['Peter Santos', 'present in work', {'concept': 'television program'}], ['Toby Ziegler', 'present in work', {'concept': 'television program'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:television_program . resource:Peter_Santos property:present_in_work ?u . resource:Toby_Ziegler property:present_in_work ?u }
[]
television program
Q3577037
SYSTEM
The West Wing
Q3577037
AND((Q24068630,P1441,c(Q15416)), (Q1345373,P1441,c(Q15416)))
action filter_type
action intersection
action find
entity Q24068630
relation P1441
action find
entity Q1345373
relation P1441
type Q15416
Peter Santos and Toby Ziegler are shown in [ANSWER]
{'AND': [['Q24068630', 'P1441', {'concept': 'Q15416'}], ['Q1345373', 'P1441', {'concept': 'Q15416'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15416 . resource:Q24068630 property:P1441 ?u . resource:Q1345373 property:P1441 ?u }
The West Wing
Peter Santos and Toby Ziegler are shown in The West Wing
The West Wing
action filter_type
action intersection
action find
entity Peter Santos
relation present in work
action find
entity Toby Ziegler
relation present in work
type television program
{'AND': [['Peter Santos', 'present in work', {'concept': 'television program'}], ['Toby Ziegler', 'present in work', {'concept': 'television program'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:television_program . resource:Peter_Santos property:present_in_work ?u . resource:Toby_Ziegler property:present_in_work ?u }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q4749202
P674
Q95074 Q2342494 Q7725634
USER
Which fictional characters appears as a character in approximately the same number of collectables and literary works as Amy Gardner ?
(c(Q2342494)|c(Q7725634),P674,c(Q95074))
action approx
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q2342494
action find_reverse_tuple_counts
relation P674
type Q95074
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q4749202
relation P674
type Q2342494
type Q7725634
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?s ) WHERE { ?t rdf:type ?j . VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { ?u property:P674 resource:Q4749202 . { ?u rdf:type ?f . VALUES ( ?f ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } } } } . FILTER ( ?s = ?y ) }
Amy Gardner
action approx
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type collectable
action find_reverse_tuple_counts
relation characters
type fictional character
type literary work
action count
action filter_multi_types
action find_reverse
entity Amy Gardner
relation characters
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?s ) WHERE { ?t rdf:type ?j . VALUES ( ?j ) { ( ontology:collectable ) ( ontology:literary_work ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { ?u property:characters resource:Amy_Gardner . { ?u rdf:type ?f . VALUES ( ?f ) { ( ontology:collectable ) ( ontology:literary_work ) } } } } . FILTER ( ?s = ?y ) }
[]
fictional character collectable literary work
Q252044 Q610519 Q2715593
SYSTEM
Queen Grimhilde, Matt Santos, Josiah Bartlet
Q547105 Q3065753 Q16027672 Q27663545 Q24573084 Q27093588 Q4767744 Q252044 Q7167342 Q27666236 Q17075849 Q2725247 Q2985575 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 Q605125 Q27663642 Q11339468 Q27271240 Q217533 Q17209231 Q27269911 Q22266941 Q27666260 Q3060933 Q21847215 Q1660555 Q27068114 Q21837397 Q892442 Q27243295 Q11623287 Q913841 Q27267295 Q27145408 Q2277080 Q519034 Q2915850 Q14541961 Q27270825 Q669992 Q10904385 Q27663814 Q1541235 Q4574639 Q295599 Q27074305 Q2340460 Q7834 Q14544872 Q5354221 Q1080587 Q1478155 Q14541956 Q507978 Q203927 Q27116381 Q14542323 Q21847103 Q21716752 Q14541958 Q27229992 Q27429777 Q128429 Q27553882 Q23762190 Q27118866 Q1067046 Q27118394 Q2739228 Q114900 Q599351 Q510102 Q15160 Q2456444 Q14544980 Q842104 Q14396915 Q5431889 Q27666036 Q25883159 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 Q3455774 Q27518155 Q20822903 Q159709 Q21837021 Q27429887 Q21837027 Q1115859 Q3939827 Q406021 Q27271937 Q8002690 Q27237722 Q20822908 Q5846 Q27481286 Q27237727 Q52986 Q850506 Q3320009 Q11309288 Q589261 Q27067781 Q27429907 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 Q27554295 Q22266945 Q1028714 Q540376 Q27068138 Q4795290 Q520812 Q14542326 Q14542192 Q20822900 Q388605 Q16451200 Q14542196 Q14544711 Q27237716 Q21837832 Q3056704 Q21971504 Q767120 Q21932351 Q2750318 Q21847105 Q27457103 Q27133578 Q27536279 Q12400 Q2308402 Q27666068 Q27269717 Q27269399 Q27145277 Q1616457 Q2392421 Q14542209 Q27703691 Q27075302 Q27456283 Q321349 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 Q7885388 Q27145361 Q1141265 Q6214458 Q27455598 Q2264282 Q4933846 Q27702918 Q3257493 Q27642997 Q1345373 Q1392000 Q2879032 Q264685 Q27180048 Q20822895 Q8073344 Q21072390 Q1456741 Q27267273 Q616178 Q6175066 Q27271402 Q3666688 Q27666118 Q7810 Q661491 Q51766 Q6524042 Q20822940 Q27148824 Q14559457 Q27666112 Q27068106 Q765498 Q19803416 Q14559452
(c(Q2342494)|c(Q7725634),P674,c(Q95074))
action approx
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q2342494
action find_reverse_tuple_counts
relation P674
type Q95074
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q4749202
relation P674
type Q2342494
type Q7725634
[ANSWERS] appear as a character in approximately the same number of collectables and literary works as Amy Gardner
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?s ) WHERE { ?t rdf:type ?j . VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { ?u property:P674 resource:Q4749202 . { ?u rdf:type ?f . VALUES ( ?f ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } } } } . FILTER ( ?s = ?y ) }
Nezha Lady of the Green Kirtle Dr. Stewart Peter Pan Archimedes Alice's sister Annabeth Schott Queen Grimhilde Percy Fitzwallace Nana Danny Concannon Ness K-9 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 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 Clarice Starling Aurora Thumper Wu Zi Mu Skippy Rincewind Diddy Kong Captain Hook Kullervo Jack Crawford Two-Face Timothy Q. Mouse Captain Falcon Maggie Simpson Michael Toreno 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 Princess Zelda Yock Snow White Lori Grimes Gavroche Captain Phoebus Ijon Tichy Renesmee Cullen Kent Paul Grampa Simpson Kate Harper Faline George Darling Thompson 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 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 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 Percival McLeach 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 Kenta Nakamura Fflewddur Fflam King Stefan Chef Louis Samus Aran Bambi John Darling Trigger Lady Kluck Pongo Mycroft Holmes Constance Bonacieux Kendl Johnson Jehan Frollo Fairy Godmother Gurgi Nick Knatterton 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 Sebastian Roger Radcliffe Lady Tremaine Joey Lucas Eilonwy Roland Deschain Bob Russell Pierre Gringoire Bandersnatch Corto Maltese Toby Ziegler Fagin Bagheera Marvin 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 approximately the same number of collectables and literary works as Amy Gardner
Queen Grimhilde Matt Santos Josiah Bartlet
action approx
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type collectable
action find_reverse_tuple_counts
relation characters
type fictional character
type literary work
action count
action filter_multi_types
action find_reverse
entity Amy Gardner
relation characters
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?s ) WHERE { ?t rdf:type ?j . VALUES ( ?j ) { ( ontology:collectable ) ( ontology:literary_work ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { ?u property:characters resource:Amy_Gardner . { ?u rdf:type ?f . VALUES ( ?f ) { ( ontology:collectable ) ( ontology:literary_work ) } } } } . FILTER ( ?s = ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q20822900
P674
Q95074 Q2342494 Q7725634
USER
And what about Hiram Flaversham?
(c(Q2342494)|c(Q7725634),P674,c(Q95074))
action approx
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q2342494
action find_reverse_tuple_counts
relation P674
type Q95074
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q20822900
relation P674
type Q2342494
type Q7725634
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s property:P674 resource:Q20822900 . { { ?s rdf:type ontology:Q2342494 } UNION { ?s rdf:type ontology:Q7725634 } } } } . FILTER ( ?x = ?v ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?h WHERE { VALUES ( ?q ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } . ?k rdf:type ?q } GROUP BY ?h } }
Hiram Flaversham
action approx
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type collectable
action find_reverse_tuple_counts
relation characters
type fictional character
type literary work
action count
action filter_multi_types
action find_reverse
entity Hiram Flaversham
relation characters
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s property:characters resource:Hiram_Flaversham . { { ?s rdf:type ontology:collectable } UNION { ?s rdf:type ontology:literary_work } } } } . FILTER ( ?x = ?v ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?h WHERE { VALUES ( ?q ) { ( ontology:literary_work ) ( ontology:collectable ) } . ?k rdf:type ?q } GROUP BY ?h } }
[]
fictional character collectable literary work
Q252044 Q610519 Q2715593
SYSTEM
Queen Grimhilde, Matt Santos, Josiah Bartlet
Q547105 Q3065753 Q16027672 Q27663545 Q24573084 Q27093588 Q4767744 Q252044 Q7167342 Q27666236 Q17075849 Q2725247 Q2985575 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 Q605125 Q27663642 Q11339468 Q27271240 Q217533 Q17209231 Q27269911 Q22266941 Q27666260 Q3060933 Q21847215 Q1660555 Q27068114 Q21837397 Q892442 Q27243295 Q11623287 Q913841 Q27267295 Q27145408 Q2277080 Q519034 Q2915850 Q14541961 Q27270825 Q669992 Q10904385 Q27663814 Q1541235 Q4574639 Q295599 Q27074305 Q2340460 Q7834 Q14544872 Q5354221 Q1080587 Q1478155 Q14541956 Q507978 Q203927 Q27116381 Q14542323 Q21847103 Q21716752 Q14541958 Q27229992 Q27429777 Q128429 Q27553882 Q23762190 Q27118866 Q1067046 Q27118394 Q2739228 Q114900 Q599351 Q510102 Q15160 Q2456444 Q14544980 Q842104 Q14396915 Q5431889 Q27666036 Q25883159 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 Q3455774 Q27518155 Q20822903 Q159709 Q21837021 Q27429887 Q21837027 Q1115859 Q3939827 Q406021 Q27271937 Q8002690 Q27237722 Q20822908 Q5846 Q27481286 Q27237727 Q52986 Q850506 Q3320009 Q11309288 Q589261 Q27067781 Q27429907 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 Q27554295 Q22266945 Q1028714 Q540376 Q27068138 Q4795290 Q520812 Q14542326 Q14542192 Q20822900 Q388605 Q16451200 Q14542196 Q14544711 Q27237716 Q21837832 Q3056704 Q21971504 Q767120 Q21932351 Q2750318 Q21847105 Q27457103 Q27133578 Q27536279 Q12400 Q2308402 Q27666068 Q27269717 Q27269399 Q27145277 Q1616457 Q2392421 Q14542209 Q27703691 Q27075302 Q27456283 Q321349 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 Q7885388 Q27145361 Q1141265 Q6214458 Q27455598 Q2264282 Q4933846 Q27702918 Q3257493 Q27642997 Q1345373 Q1392000 Q2879032 Q264685 Q27180048 Q20822895 Q8073344 Q21072390 Q1456741 Q27267273 Q616178 Q6175066 Q27271402 Q3666688 Q27666118 Q7810 Q661491 Q51766 Q6524042 Q20822940 Q27148824 Q14559457 Q27666112 Q27068106 Q765498 Q19803416 Q14559452
(c(Q2342494)|c(Q7725634),P674,c(Q95074))
action approx
action union
action find_reverse_tuple_counts
relation P674
type Q95074
type Q2342494
action find_reverse_tuple_counts
relation P674
type Q95074
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q20822900
relation P674
type Q2342494
type Q7725634
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s property:P674 resource:Q20822900 . { { ?s rdf:type ontology:Q2342494 } UNION { ?s rdf:type ontology:Q7725634 } } } } . FILTER ( ?x = ?v ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?h WHERE { VALUES ( ?q ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } . ?k rdf:type ?q } GROUP BY ?h } }
Nezha Lady of the Green Kirtle Dr. Stewart Peter Pan Archimedes Alice's sister Annabeth Schott Queen Grimhilde Percy Fitzwallace Nana Danny Concannon Ness K-9 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 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 Clarice Starling Aurora Thumper Wu Zi Mu Skippy Rincewind Diddy Kong Captain Hook Kullervo Jack Crawford Two-Face Timothy Q. Mouse Captain Falcon Maggie Simpson Michael Toreno 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 Princess Zelda Yock Snow White Lori Grimes Gavroche Captain Phoebus Ijon Tichy Renesmee Cullen Kent Paul Grampa Simpson Kate Harper Faline George Darling Thompson 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 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 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 Percival McLeach 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 Kenta Nakamura Fflewddur Fflam King Stefan Chef Louis Samus Aran Bambi John Darling Trigger Lady Kluck Pongo Mycroft Holmes Constance Bonacieux Kendl Johnson Jehan Frollo Fairy Godmother Gurgi Nick Knatterton 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 Sebastian Roger Radcliffe Lady Tremaine Joey Lucas Eilonwy Roland Deschain Bob Russell Pierre Gringoire Bandersnatch Corto Maltese Toby Ziegler Fagin Bagheera Marvin 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 Josiah Bartlet
action approx
action union
action find_reverse_tuple_counts
relation characters
type fictional character
type collectable
action find_reverse_tuple_counts
relation characters
type fictional character
type literary work
action count
action filter_multi_types
action find_reverse
entity Hiram Flaversham
relation characters
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s property:characters resource:Hiram_Flaversham . { { ?s rdf:type ontology:collectable } UNION { ?s rdf:type ontology:literary_work } } } } . FILTER ( ?x = ?v ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?h WHERE { VALUES ( ?q ) { ( ontology:literary_work ) ( ontology:collectable ) } . ?k rdf:type ?q } GROUP BY ?h } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2879032
P144
Q502895 Q277759 Q95074
USER
Which fictional characters are an extension approximately the same number of people or book series as Bagheera ?
(c(Q95074),P144,c(Q502895)|c(Q277759))
action approx
action union
action find_tuple_counts
relation P144
type Q95074
type Q502895
action find_tuple_counts
relation P144
type Q95074
type Q277759
action count
action filter_multi_types
action find
entity Q2879032
relation P144
type Q502895
type Q277759
[{'concept': 'Q95074'}, 'P144', [{'concept': 'Q502895'}, {'concept': 'Q277759'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?m ) WHERE { { ?b property:P144 ?i . ?b rdf:type ontology:Q95074 . ?i rdf:type ontology:Q502895 } UNION { ?b property:P144 ?i . ?b rdf:type ontology:Q95074 . ?i rdf:type ontology:Q277759 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Q2879032 property:P144 ?p . { { ?p rdf:type ontology:Q502895 } UNION { ?p rdf:type ontology:Q277759 } } } } . FILTER ( ?m = ?x ) }
Bagheera
action approx
action union
action find_tuple_counts
relation based on
type fictional character
type common name
action find_tuple_counts
relation based on
type fictional character
type book series
action count
action filter_multi_types
action find
entity Bagheera
relation based on
type common name
type book series
[{'concept': 'fictional character'}, 'based on', [{'concept': 'common name'}, {'concept': 'book series'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?m ) WHERE { { ?b property:based_on ?i . ?b rdf:type ontology:fictional_character . ?i rdf:type ontology:common_name } UNION { ?b property:based_on ?i . ?b rdf:type ontology:fictional_character . ?i rdf:type ontology:book_series } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Bagheera property:based_on ?p . { { ?p rdf:type ontology:common_name } UNION { ?p rdf:type ontology:book_series } } } } . FILTER ( ?m = ?x ) }
[]
common name book series fictional character
Q252044 Q2739228 Q27663642
SYSTEM
Queen Grimhilde, Snow White, Wendy Darling
Q27663545 Q27688828 Q27666236 Q27712993 Q27075302 Q27491048 Q27302894 Q27666216 Q27468496 Q27498920 Q27663642 Q27856469 Q27468252 Q27457103 Q27303579 Q27477399 Q27469093 Q27101591 Q958289 Q27477310 Q27304877 Q252044 Q27663814 Q27305077 Q112310 Q2739228 Q27455598 Q5431889 Q27666036 Q16626690 Q27450655 Q2559332 Q3291275 Q25714585 Q27481286 Q27702142 Q24050122 Q27303695 Q27467127 Q3377158 Q27702890 Q27468055 Q26273271 Q488159 Q27469182 Q3388787 Q27303912 Q27666317 Q27304504 Q27268652 Q27490840 Q27493744 Q27230066 Q3437147 Q27229770 Q540376 Q27229992 Q27468350 Q27857613 Q27666260 Q27230909 Q27429777 Q27710770 Q2308402 Q27666068 Q27148788 Q27456283 Q27699441 Q27666446 Q27305188 Q27468422 Q27627816 Q27477272 Q246838 Q27700877 Q1141265 Q27477415 Q27734191 Q27855815 Q2879032 Q27267273 Q27477427 Q26273191 Q27666118 Q27666112
(c(Q95074),P144,c(Q502895)|c(Q277759))
action approx
action union
action find_tuple_counts
relation P144
type Q95074
type Q502895
action find_tuple_counts
relation P144
type Q95074
type Q277759
action count
action filter_multi_types
action find
entity Q2879032
relation P144
type Q502895
type Q277759
[ANSWERS] are an extension approximately the same number of people or book series as Bagheera
[{'concept': 'Q95074'}, 'P144', [{'concept': 'Q502895'}, {'concept': 'Q277759'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?m ) WHERE { { ?b property:P144 ?i . ?b rdf:type ontology:Q95074 . ?i rdf:type ontology:Q502895 } UNION { ?b property:P144 ?i . ?b rdf:type ontology:Q95074 . ?i rdf:type ontology:Q277759 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Q2879032 property:P144 ?p . { { ?p rdf:type ontology:Q502895 } UNION { ?p rdf:type ontology:Q277759 } } } } . FILTER ( ?m = ?x ) }
Peter Pan Dumbo Nana Djali Fairy Godmother Dodger Piglet Tinker Bell Queen of Hearts Huntsman Wendy Darling Amphytryon Caterpillar Fflewddur Fflam Tigger Tweedledum Dodo Ultron Tiana Bill the Lizard Christopher Robin Queen Grimhilde Captain Hook Roo Alice (Disney) Snow White Eilonwy Faline George Darling Baloo Taran Cinderella Maid Marian Tito Hen Wen Esmeralda Hela Rabbit Alice Little John Phoebus Mad Hatter Echidna Ded Moroz White Rabbit Pinocchio I-Aah Crocodile Owl Friar Tuck Oliver Bill Sykes Akela Robin Hood Shere Khan Mowgli Kaa Cheshire Cat Nessus Mr. Smee Prince Charming Bianca Archdeacon Bambi John Darling Magic Mirror Gurgi Quasimodo Tiger Lily Kanga March Hare Dormammu Dormouse Mulan Claude Frollo Lady Tremaine Tweedledee Clopin Alcmene Bagheera Sheriff of Nottingham King of Hearts Orthos Michael Darling Mary Darling
Queen Grimhilde, Snow White and Wendy Darling are an extension approximately the same number of people or book series as Bagheera
Queen Grimhilde Snow White Wendy Darling
action approx
action union
action find_tuple_counts
relation based on
type fictional character
type common name
action find_tuple_counts
relation based on
type fictional character
type book series
action count
action filter_multi_types
action find
entity Bagheera
relation based on
type common name
type book series
[{'concept': 'fictional character'}, 'based on', [{'concept': 'common name'}, {'concept': 'book series'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?m ) WHERE { { ?b property:based_on ?i . ?b rdf:type ontology:fictional_character . ?i rdf:type ontology:common_name } UNION { ?b property:based_on ?i . ?b rdf:type ontology:fictional_character . ?i rdf:type ontology:book_series } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Bagheera property:based_on ?p . { { ?p rdf:type ontology:common_name } UNION { ?p rdf:type ontology:book_series } } } } . FILTER ( ?m = ?x ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P674
Q223393
USER
How many literary genres have the character that fictional character ?
(c(Q223393),P674,Q2739228)
[{'concept': 'Q223393'}, 'P674', 'Q2739228']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P674 resource:Q17510536 . ?z rdf:type ontology:Q223393 }
[{'concept': 'literary genre'}, 'characters', 'Snow White']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:characters resource:Snow_White . ?z rdf:type ontology:literary_genre }
[]
literary genre
Quantitative|Count|Single entity type|Clarification
Q2739228
SYSTEM
Did you mean Snow White ?
(c(Q223393),P674,Q252044) (c(Q223393),P674,Q2739228) (c(Q223393),P674,Q27663642)
[ANSWER]
[{'concept': 'Q223393'}, 'P674', 'Q252044'] [{'concept': 'Q223393'}, 'P674', 'Q2739228'] [{'concept': 'Q223393'}, 'P674', 'Q27663642']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P674 resource:Q17510536 . ?z rdf:type ontology:Q223393 }
Did you mean Snow White ?
Snow White
[{'concept': 'literary genre'}, 'characters', 'Queen Grimhilde'] [{'concept': 'literary genre'}, 'characters', 'Snow White'] [{'concept': 'literary genre'}, 'characters', 'Wendy Darling']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:characters resource:Snow_White . ?z rdf:type ontology:literary_genre }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q223393),P674,Q2739228)
[{'concept': 'Q223393'}, 'P674', 'Q2739228']
[{'concept': 'literary genre'}, 'characters', 'Snow White']
[]
SYSTEM
1
Q11831
(c(Q223393),P674,Q2739228)
[ANSWER]
[{'concept': 'Q223393'}, 'P674', 'Q2739228']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P674 resource:Q17510536 . ?z rdf:type ontology:Q223393 }
Snow White
1
[{'concept': 'literary genre'}, 'characters', 'Snow White']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:characters resource:Snow_White . ?z rdf:type ontology:literary_genre }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19090 Q3577037
P674
Q95074
USER
Which fictional characters are the name of the persons who plays a role in The West Wing or Robin Hood ?
OR((Q3577037,P674,c(Q95074)), (Q19090,P674,c(Q95074)))
action filter_type
action union
action find
entity Q3577037
relation P674
action find
entity Q19090
relation P674
type Q95074
{'OR': [['Q3577037', 'P674', {'concept': 'Q95074'}], ['Q19090', 'P674', {'concept': 'Q95074'}]]}
SELECT DISTINCT ?u WHERE { { ?o property:P674 ?u . VALUES ( ?o ) { ( resource:Q3577037 ) ( resource:Q19090 ) } } . ?u rdf:type ontology:Q95074 }
Robin Hood The West Wing
action filter_type
action union
action find
entity The West Wing
relation characters
action find
entity Robin Hood
relation characters
type fictional character
{'OR': [['The West Wing', 'characters', {'concept': 'fictional character'}], ['Robin Hood', 'characters', {'concept': 'fictional character'}]]}
SELECT DISTINCT ?u WHERE { { ?o property:characters ?u . VALUES ( ?o ) { ( resource:The_West_Wing ) ( resource:Robin_Hood ) } } . ?u rdf:type ontology:fictional_character }
[]
fictional character
Q27267295 Q1345373 Q27268652 Q27270096 Q27270635 Q4755325 Q14396915 Q610519 Q27270825 Q3036775
SYSTEM
Some of them are Alan-a-Dale, Toby Ziegler, Friar Tuck, Sexton Mouse, Little Sister, Andrea Wyatt, Kate Harper, Matt Santos, Skippy, Donna Moss
Q3377158 Q4767744 Q2715593 Q27272794 Q7167342 Q23762190 Q3603297 Q27272179 Q4755325 Q3946354 Q6214458 Q3403328 Q5656906 Q14396915 Q8073344 Q27269137 Q610519 Q6748296 Q4933846 Q27270635 Q9012447 Q6929804 Q3704358 Q27271402 Q4749202 Q1080587 Q3437147 Q27271240 Q27268652 Q4795290 Q27267091 Q3291275 Q1345373 Q27269911 Q27272386 Q27271937 Q27270825 Q27267295 Q3036775 Q27267273 Q27270096 Q3666688 Q17075849 Q6524042 Q27269399 Q8002690 Q27269717 Q5354221
OR((Q3577037,P674,c(Q95074)), (Q19090,P674,c(Q95074)))
action filter_type
action union
action find
entity Q3577037
relation P674
action find
entity Q19090
relation P674
type Q95074
[ANSWERS] are the name of the persons who plays a role in The West Wing or Robin Hood
{'OR': [['Q3577037', 'P674', {'concept': 'Q95074'}], ['Q19090', 'P674', {'concept': 'Q95074'}]]}
SELECT DISTINCT ?u WHERE { { ?o property:P674 ?u . VALUES ( ?o ) { ( resource:Q3577037 ) ( resource:Q19090 ) } } . ?u rdf:type ontology:Q95074 }
Little John Annabeth Schott Josiah Bartlet Otto Percy Fitzwallace June Wheeler Abbey Bartlet Mother Rabbit Andrea Wyatt Sam Seaborn Joey Lucas Prince John Josh Lyman Kate Harper Zoey Bartlet Sir Hiss Matt Santos Mandy Hampton Bob Russell Little Sister John Hoynes Delores Landingham Deborah Fiderer Tagalong Amy Gardner C. J. Cregg Robin Hood Sis Friar Tuck Arnold Vinick King Richard Maid Marian Toby Ziegler Nutsy Captain Crocodile Toby Skippy Alan-a-Dale Donna Moss Sheriff of Nottingham Sexton Mouse Charlie Young Danny Concannon Leo McGarry Lady Kluck Will Bailey Trigger Eleanor Bartlet
Alan-a-Dale, Toby Ziegler, Friar Tuck, Sexton Mouse, Little Sister, Andrea Wyatt, Kate Harper, Matt Santos, Skippy and Donna Moss are the name of the persons who plays a role in The West Wing or Robin Hood
Alan-a-Dale Toby Ziegler Friar Tuck Sexton Mouse Little Sister Andrea Wyatt Kate Harper Matt Santos Skippy Donna Moss
action filter_type
action union
action find
entity The West Wing
relation characters
action find
entity Robin Hood
relation characters
type fictional character
{'OR': [['The West Wing', 'characters', {'concept': 'fictional character'}], ['Robin Hood', 'characters', {'concept': 'fictional character'}]]}
SELECT DISTINCT ?u WHERE { { ?o property:characters ?u . VALUES ( ?o ) { ( resource:The_West_Wing ) ( resource:Robin_Hood ) } } . ?u rdf:type ontology:fictional_character }
[]