Simple Question (Direct)
Simple Question
Q23991694
P734
Q82799
USER
Who has the surname Bucky Barnes / Winter Soldier ?
(Q23991694,P734,c(Q82799))
action filter_type
action find
entity Q23991694
relation P734
type Q82799
['Q23991694', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q23991694 property:P734 ?s . ?s rdf:type ontology:Q82799 }
Bucky Barnes / Winter Soldier
action filter_type
action find
entity Bucky Barnes / Winter Soldier
relation family name
type name
['Bucky Barnes / Winter Soldier', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Bucky_Barnes_/_Winter_Soldier property:family_name ?s . ?s rdf:type ontology:name }
[]
name
Q2658970
SYSTEM
Barnes
Q2658970
(Q23991694,P734,c(Q82799))
action filter_type
action find
entity Q23991694
relation P734
type Q82799
[ANSWER] has the surname Bucky [ANSWER] / Winter Soldier
['Q23991694', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q23991694 property:P734 ?s . ?s rdf:type ontology:Q82799 }
Barnes
Barnes has the surname Bucky Barnes / Winter Soldier
Barnes
action filter_type
action find
entity Bucky Barnes / Winter Soldier
relation family name
type name
['Bucky Barnes / Winter Soldier', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Bucky_Barnes_/_Winter_Soldier property:family_name ?s . ?s rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2658970
P407
Q34770
USER
Which language is that name in ?
(Q2658970,P407,c(Q34770))
action filter_type
action find
entity Q2658970
relation P407
type Q34770
['Q2658970', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q2658970 property:P407 ?w . ?w rdf:type ontology:Q34770 }
Barnes
action filter_type
action find
entity Barnes
relation language of work or name
type language
['Barnes', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Barnes property:language_of_work_or_name ?w . ?w rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q2658970,P407,c(Q34770))
action filter_type
action find
entity Q2658970
relation P407
type Q34770
That is name in [ANSWER]
['Q2658970', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q2658970 property:P407 ?w . ?w rdf:type ontology:Q34770 }
English
That is name in English
English
action filter_type
action find
entity Barnes
relation language of work or name
type language
['Barnes', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Barnes property:language_of_work_or_name ?w . ?w rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1860 Q5700965
P364
Q838948
USER
Does Apasionados have that one as its original language of creation ?
(Q5700965,P364,Q1860)
action is_in
entity Q5700965
action find
entity Q1860
relation P364
['Q5700965', 'P364', 'Q1860']
ASK WHERE { resource:Q1860 property:P364 resource:Q5700965 }
English Apasionados
action is_in
entity Apasionados
action find
entity English
relation original language of work
['Apasionados', 'original language of work', 'English']
ASK WHERE { resource:English property:original_language_of_work resource:Apasionados }
[]
work of art
SYSTEM
NO
(Q5700965,P364,Q1860)
action is_in
entity Q5700965
action find
entity Q1860
relation P364
[ANSWER]
['Q5700965', 'P364', 'Q1860']
ASK WHERE { resource:Q1860 property:P364 resource:Q5700965 }
No
action is_in
entity Apasionados
action find
entity English
relation original language of work
['Apasionados', 'original language of work', 'English']
ASK WHERE { resource:English property:original_language_of_work resource:Apasionados }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q23991694 Q18407657 Q1391941
P1441
Q838948
USER
Is Bucky Barnes / Winter Soldier from the works of Captain America: Civil War and Sikkim ?
(Q23991694,P1441,Q18407657) (Q23991694,P1441,Q1391941)
action is_in
entity Q23991694
action intersection
action find_reverse
entity Q18407657
relation P1441
action find_reverse
entity Q1391941
relation P1441
['Q23991694', 'P1441', 'Q18407657'] ['Q23991694', 'P1441', 'Q1391941']
ASK WHERE { resource:Q23991694 property:P1441 resource:Q18407657 . resource:Q23991694 property:P1441 resource:Q1391941 }
Bucky Barnes / Winter Soldier Captain America: Civil War Sikkim
action is_in
entity Bucky Barnes / Winter Soldier
action intersection
action find_reverse
entity Captain America: Civil War
relation present in work
action find_reverse
entity Sikkim
relation present in work
['Bucky Barnes / Winter Soldier', 'present in work', 'Captain America: Civil War'] ['Bucky Barnes / Winter Soldier', 'present in work', 'Sikkim']
ASK WHERE { resource:Bucky_Barnes_/_Winter_Soldier property:present_in_work resource:Captain_America:_Civil_War . resource:Bucky_Barnes_/_Winter_Soldier property:present_in_work resource:Sikkim }
[]
work of art
SYSTEM
YES and NO respectively
(Q23991694,P1441,Q18407657) (Q23991694,P1441,Q1391941)
action is_in
entity Q23991694
action intersection
action find_reverse
entity Q18407657
relation P1441
action find_reverse
entity Q1391941
relation P1441
[ANSWER]
['Q23991694', 'P1441', 'Q18407657'] ['Q23991694', 'P1441', 'Q1391941']
ASK WHERE { resource:Q23991694 property:P1441 resource:Q18407657 . resource:Q23991694 property:P1441 resource:Q1391941 }
YES and NO respectively
action is_in
entity Bucky Barnes / Winter Soldier
action intersection
action find_reverse
entity Captain America: Civil War
relation present in work
action find_reverse
entity Sikkim
relation present in work
['Bucky Barnes / Winter Soldier', 'present in work', 'Captain America: Civil War'] ['Bucky Barnes / Winter Soldier', 'present in work', 'Sikkim']
ASK WHERE { resource:Bucky_Barnes_/_Winter_Soldier property:present_in_work resource:Captain_America:_Civil_War . resource:Bucky_Barnes_/_Winter_Soldier property:present_in_work resource:Sikkim }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1860 Q1346342 Q2761581
P361
Q5962346
USER
Is English a component of Anglic languages and Tamanic languages ?
(Q1860,P361,Q1346342) (Q1860,P361,Q2761581)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q1346342
relation P361
action find_reverse
entity Q2761581
relation P361
['Q1860', 'P361', 'Q1346342'] ['Q1860', 'P361', 'Q2761581']
ASK WHERE { resource:Q1860 property:P361 resource:Q2761581 . resource:Q1860 property:P361 resource:Q1346342 }
English Anglic languages Tamanic languages
action is_in
entity English
action intersection
action find_reverse
entity Anglic languages
relation part of
action find_reverse
entity Tamanic languages
relation part of
['English', 'part of', 'Anglic languages'] ['English', 'part of', 'Tamanic languages']
ASK WHERE { resource:English property:part_of resource:Tamanic_languages . resource:English property:part_of resource:Anglic_languages }
[]
classification scheme
SYSTEM
YES and NO respectively
(Q1860,P361,Q1346342) (Q1860,P361,Q2761581)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q1346342
relation P361
action find_reverse
entity Q2761581
relation P361
[ANSWER]
['Q1860', 'P361', 'Q1346342'] ['Q1860', 'P361', 'Q2761581']
ASK WHERE { resource:Q1860 property:P361 resource:Q2761581 . resource:Q1860 property:P361 resource:Q1346342 }
YES and NO respectively
action is_in
entity English
action intersection
action find_reverse
entity Anglic languages
relation part of
action find_reverse
entity Tamanic languages
relation part of
['English', 'part of', 'Anglic languages'] ['English', 'part of', 'Tamanic languages']
ASK WHERE { resource:English property:part_of resource:Tamanic_languages . resource:English property:part_of resource:Anglic_languages }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q23991694 Q5901134
P1441
Q838948
USER
Does Ant-Man feature Bucky Barnes / Winter Soldier ?
(Q23991694,P1441,Q5901134)
action is_in
entity Q5901134
action find
entity Q23991694
relation P1441
['Q23991694', 'P1441', 'Q5901134']
ASK WHERE { resource:Q23991694 property:P1441 resource:Q5901134 }
Bucky Barnes / Winter Soldier Ant-Man
action is_in
entity Ant-Man
action find
entity Bucky Barnes / Winter Soldier
relation present in work
['Bucky Barnes / Winter Soldier', 'present in work', 'Ant-Man']
ASK WHERE { resource:Bucky_Barnes_/_Winter_Soldier property:present_in_work resource:Ant-Man }
[]
work of art
SYSTEM
YES
(Q23991694,P1441,Q5901134)
action is_in
entity Q5901134
action find
entity Q23991694
relation P1441
[ANSWER]
['Q23991694', 'P1441', 'Q5901134']
ASK WHERE { resource:Q23991694 property:P1441 resource:Q5901134 }
Yes
action is_in
entity Ant-Man
action find
entity Bucky Barnes / Winter Soldier
relation present in work
['Bucky Barnes / Winter Soldier', 'present in work', 'Ant-Man']
ASK WHERE { resource:Bucky_Barnes_/_Winter_Soldier property:present_in_work resource:Ant-Man }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1247575 Q23991694
P157 P1441
Q6619679
USER
Which fictional humanoids were murdered by Bucky Barnes / Winter Soldier or appear in Emmerdale ?
OR((c(Q6619679),P157,Q23991694), (c(Q6619679),P1441,Q1247575))
action filter_type
action union
action find_reverse
entity Q23991694
relation P157
action find_reverse
entity Q1247575
relation P1441
type Q6619679
{'OR': [[{'concept': 'Q6619679'}, 'P157', 'Q23991694'], [{'concept': 'Q6619679'}, 'P1441', 'Q1247575']]}
SELECT DISTINCT ?x WHERE { { { ?x property:P157 resource:Q23991694 } UNION { ?x property:P1441 resource:Q1247575 } } . ?x rdf:type ontology:Q6619679 }
Emmerdale Bucky Barnes / Winter Soldier
action filter_type
action union
action find_reverse
entity Bucky Barnes / Winter Soldier
relation killed by
action find_reverse
entity Emmerdale
relation present in work
type fictional humanoid
{'OR': [[{'concept': 'fictional humanoid'}, 'killed by', 'Bucky Barnes / Winter Soldier'], [{'concept': 'fictional humanoid'}, 'present in work', 'Emmerdale']]}
SELECT DISTINCT ?x WHERE { { { ?x property:killed_by resource:Bucky_Barnes_/_Winter_Soldier } UNION { ?x property:present_in_work resource:Emmerdale } } . ?x rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q4747837 Q6525449 Q5252881 Q4749461 Q7408011 Q7608100 Q7937418 Q11695703 Q16259622 Q5289354
SYSTEM
Some of them are Amos Brearly, Leonard Kempinski, Del Dingle, Amy Wyatt, Sam Pearson, Steph Forsythe, Viv Hope, Nikhil Sharma, Jai Sharma, Dolly Skilbeck
Q6551568 Q4710036 Q5416174 Q7029047 Q6894695 Q4749461 Q6548459 Q7026753 Q5041988 Q6161797 Q7456435 Q7417502 Q4904736 Q5971778 Q5271581 Q7350144 Q5237531 Q5301896 Q4725818 Q5438979 Q7369454 Q6117790 Q5489943 Q7430482 Q4883624 Q7158116 Q4747837 Q6737013 Q5228838 Q5312910 Q6968515 Q5204513 Q6147013 Q6377231 Q9093450 Q7372843 Q7152219 Q7924941 Q5074529 Q6375808 Q6200561 Q7705167 Q6275748 Q5657175 Q6790806 Q4805606 Q4786629 Q5102853 Q7685163 Q7493845 Q5017579 Q5108230 Q4766948 Q8195586 Q5087029 Q24040935 Q7816472 Q5958628 Q7437533 Q6794929 Q5252881 Q6409497 Q7321352 Q8073311 Q5249357 Q11866482 Q5242531 Q7525300 Q6770451 Q16258849 Q6115387 Q11887438 Q7422810 Q7821255 Q7368386 Q7384234 Q5364509 Q5933092 Q5387289 Q6678897 Q5296500 Q23900446 Q4960783 Q11695703 Q5294238 Q4769435 Q7246479 Q8064964 Q16258968 Q17022767 Q7460856 Q5340022 Q4679066 Q5372246 Q7519339 Q16259166 Q7937418 Q7405299 Q5243651 Q17104926 Q5730175 Q6525449 Q7909130 Q7608100 Q7123516 Q7702020 Q5598425 Q7279277 Q4707944 Q5761043 Q5046281 Q6162869 Q5040431 Q6775234 Q4932838 Q7407415 Q16259622 Q7151927 Q7182267 Q5247910 Q4898806 Q6660722 Q6521930 Q5881899 Q6538026 Q7336483 Q6702135 Q7441385 Q7408011 Q5289354 Q6557936 Q6161254 Q6851377 Q7397929 Q4912730 Q7416342 Q6096552 Q7144050 Q6789345 Q16259601 Q4354285 Q4678680 Q4662215 Q6537667 Q4894314 Q7659738 Q4725744 Q6170853 Q6771924 Q7613256 Q6969437 Q5360205 Q5592720 Q5220266 Q6748289
OR((c(Q6619679),P157,Q23991694), (c(Q6619679),P1441,Q1247575))
action filter_type
action union
action find_reverse
entity Q23991694
relation P157
action find_reverse
entity Q1247575
relation P1441
type Q6619679
[ANSWERS] were murdered by Bucky Barnes / Winter Soldier or appear in Emmerdale
{'OR': [[{'concept': 'Q6619679'}, 'P157', 'Q23991694'], [{'concept': 'Q6619679'}, 'P1441', 'Q1247575']]}
SELECT DISTINCT ?x WHERE { { { ?x property:P157 resource:Q23991694 } UNION { ?x property:P1441 resource:Q1247575 } } . ?x rdf:type ontology:Q6619679 }
Linda Fowler Albert Dingle Eve Jenson Nicola King Moira Barton Amy Wyatt Lily Butterfield Nick Bates Carlos Diaz Jasmine Thomas Seth Armstrong Sandy Thomas Biff Fowler Laurel Thomas Diane Sugden Robert Sugden David Metcalfe Douglas Potts Alice Dingle Faye Lamb Ross Kirk Jackson Walsh Genesis Walker Scarlett Nicholls Belle Dingle Pearl Ladderbanks Amos Brearly Maisie Wylde Dave Glover Duke Woods Natasha Wylde DCI Grace Barraclough Jamie Hope Kathy Glover Victoria Sugden Roy Glover Paul Marsden Vic Windsor Charity Tate Kate Sugden Jimmy King Terry Woods Jonny Foster Hari Prasad Matthew King Ashley Thomas Archie Brooks Chloe Atkinson Tara Thornfield Shelley Williams Cain Dingle Chris Tate Anna De Souza Alicia Gallagher Chas Dingle Maria Stark Tom King Katie Sugden Scott Windsor Max King Del Dingle Kim Tate Rhona Goskirk Zoe Tate Declan Macey Jo Stiles Dawn Woods Siobhan Marsden Mark Wylde Louise Appleton Jack Sugden Perdita Hyde-Sinclair Sarah Sugden Toni Daggert Rosemary King Ryan Lamb Ella Hart John Barton Eric Pollard Lord Alex Oakwell Donna Windsor-Dingle Howard Stark Brenda Walker Nikhil Sharma Donald De Souza Annie Sugden Priya Sharma Zak Dingle Rodney Blackstock Frank Tate Shadrach Dingle Edna Birch Adam Forsythe Emily Kirk Simon Meredith Kelly Windsor Viv Hope Sally Spode Daz Eden Joe Sugden Henry Wilks Leonard Kempinski Val Pollard Steph Forsythe Paddy Kirk Terence Turner Grayson Sinclair Rachel Hughes Alan Turner Hilary Potts Carrie Nicholls Jason Kirk Carl King Martin Crowe Bob Hope Sam Dingle Jai Sharma Paul Lambert Phil Pearce Debbie Dingle Betty Eagleton Lizzie Lakely Len Reynolds Holly Barton Leyla Harding Rita Brannigan Luke McAllister Sean Reynolds Sam Pearson Dolly Skilbeck Lisa Dingle Jarvis Skelton Miles De Souza Sadie King Billy Hopwood Sandie Merrick Ivan Jones Pat Sugden Matt Skilbeck Ollie Reynolds Andy Sugden Adam Barton Aaron Livesy Lexi King Bernice Thomas Syd Woolfe Alice Bates Jean Hope Marlon Dingle Steve Marchant Nathan Wylde Eli Dingle Graham Clark Danny Daggert Mandy Dingle
Amos Brearly, Leonard Kempinski, Del Dingle, Amy Wyatt, Sam Pearson, Steph Forsythe, Viv Hope, Nikhil Sharma, Jai Sharma and Dolly Skilbeck were murdered by Bucky Barnes / Winter Soldier or appear in Emmerdale
Amos Brearly Leonard Kempinski Del Dingle Amy Wyatt Sam Pearson Steph Forsythe Viv Hope Nikhil Sharma Jai Sharma Dolly Skilbeck
action filter_type
action union
action find_reverse
entity Bucky Barnes / Winter Soldier
relation killed by
action find_reverse
entity Emmerdale
relation present in work
type fictional humanoid
{'OR': [[{'concept': 'fictional humanoid'}, 'killed by', 'Bucky Barnes / Winter Soldier'], [{'concept': 'fictional humanoid'}, 'present in work', 'Emmerdale']]}
SELECT DISTINCT ?x WHERE { { { ?x property:killed_by resource:Bucky_Barnes_/_Winter_Soldier } UNION { ?x property:present_in_work resource:Emmerdale } } . ?x rdf:type ontology:fictional_humanoid }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1860 Q9288
P407
Q2031291
USER
How many releases are created in language English and Hebrew ?
(c(Q2031291),P407,Q1860) (c(Q2031291),P407,Q9288)
action count
action intersection
action filter_type
action find_reverse
entity Q1860
relation P407
type Q2031291
action filter_type
action find_reverse
entity Q9288
relation P407
type Q2031291
[{'concept': 'Q2031291'}, 'P407', 'Q1860'] [{'concept': 'Q2031291'}, 'P407', 'Q9288']
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ontology:Q2031291 . ?k property:P407 resource:Q1860 . ?k property:P407 resource:Q9288 . ?k rdf:type ontology:Q2031291 }
English Hebrew
action count
action intersection
action filter_type
action find_reverse
entity English
relation language of work or name
type release
action filter_type
action find_reverse
entity Hebrew
relation language of work or name
type release
[{'concept': 'release'}, 'language of work or name', 'English'] [{'concept': 'release'}, 'language of work or name', 'Hebrew']
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ontology:release . ?k property:language_of_work_or_name resource:English . ?k property:language_of_work_or_name resource:Hebrew . ?k rdf:type ontology:release }
[]
release
SYSTEM
3
Q831449 Q5453899 Q5161861
(c(Q2031291),P407,Q1860) (c(Q2031291),P407,Q9288)
action count
action intersection
action filter_type
action find_reverse
entity Q1860
relation P407
type Q2031291
action filter_type
action find_reverse
entity Q9288
relation P407
type Q2031291
[ANSWER]
[{'concept': 'Q2031291'}, 'P407', 'Q1860'] [{'concept': 'Q2031291'}, 'P407', 'Q9288']
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ontology:Q2031291 . ?k property:P407 resource:Q1860 . ?k property:P407 resource:Q9288 . ?k rdf:type ontology:Q2031291 }
HaSheket SheNish'ar First Time Connie Francis Sings Jewish Favorites
3
action count
action intersection
action filter_type
action find_reverse
entity English
relation language of work or name
type release
action filter_type
action find_reverse
entity Hebrew
relation language of work or name
type release
[{'concept': 'release'}, 'language of work or name', 'English'] [{'concept': 'release'}, 'language of work or name', 'Hebrew']
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ontology:release . ?k property:language_of_work_or_name resource:English . ?k property:language_of_work_or_name resource:Hebrew . ?k rdf:type ontology:release }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q838948 Q8436 Q6619679
USER
Which fictional humanoids are a portion of max number of works of art or families ?
(c(Q6619679),P361,c(Q838948)|c(Q8436))
action argmax
action union
action find_tuple_counts
relation P361
type Q6619679
type Q838948
action find_tuple_counts
relation P361
type Q6619679
type Q8436
[{'concept': 'Q6619679'}, 'P361', [{'concept': 'Q838948'}, {'concept': 'Q8436'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?h WHERE { VALUES ( ?a ) { ( ontology:Q838948 ) ( ontology:Q8436 ) } . ?j rdf:type ?a } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) ?e WHERE { { ?e property:P361 ?m . ?m rdf:type ontology:Q838948 . ?e rdf:type ontology:Q6619679 } UNION { ?e property:P361 ?m . ?m rdf:type ontology:Q8436 . ?e rdf:type ontology:Q6619679 } } GROUP BY ?e } . FILTER ( ?t = ?z ) }
action argmax
action union
action find_tuple_counts
relation part of
type fictional humanoid
type work of art
action find_tuple_counts
relation part of
type fictional humanoid
type family
[{'concept': 'fictional humanoid'}, 'part of', [{'concept': 'work of art'}, {'concept': 'family'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?h WHERE { VALUES ( ?a ) { ( ontology:work_of_art ) ( ontology:family ) } . ?j rdf:type ?a } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) ?e WHERE { { ?e property:part_of ?m . ?m rdf:type ontology:work_of_art . ?e rdf:type ontology:fictional_humanoid } UNION { ?e property:part_of ?m . ?m rdf:type ontology:family . ?e rdf:type ontology:fictional_humanoid } } GROUP BY ?e } . FILTER ( ?t = ?z ) }
[]
work of art family fictional humanoid
Q17417420 Q20085277 Q17386736
SYSTEM
Pierre Del Rio, Frank, Lucy Keyes
Q20085277 Q17386736 Q17417420 Q15284139
(c(Q6619679),P361,c(Q838948)|c(Q8436))
action argmax
action union
action find_tuple_counts
relation P361
type Q6619679
type Q838948
action find_tuple_counts
relation P361
type Q6619679
type Q8436
[ANSWERS] are a portion of max number of works of art or families
[{'concept': 'Q6619679'}, 'P361', [{'concept': 'Q838948'}, {'concept': 'Q8436'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?h WHERE { VALUES ( ?a ) { ( ontology:Q838948 ) ( ontology:Q8436 ) } . ?j rdf:type ?a } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) ?e WHERE { { ?e property:P361 ?m . ?m rdf:type ontology:Q838948 . ?e rdf:type ontology:Q6619679 } UNION { ?e property:P361 ?m . ?m rdf:type ontology:Q8436 . ?e rdf:type ontology:Q6619679 } } GROUP BY ?e } . FILTER ( ?t = ?z ) }
Frank Lucy Keyes Pierre Del Rio Captain Harlock
Pierre Del Rio, Frank and Lucy Keyes are a portion of max number of works of art or families
Pierre Del Rio Frank Lucy Keyes
action argmax
action union
action find_tuple_counts
relation part of
type fictional humanoid
type work of art
action find_tuple_counts
relation part of
type fictional humanoid
type family
[{'concept': 'fictional humanoid'}, 'part of', [{'concept': 'work of art'}, {'concept': 'family'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?h WHERE { VALUES ( ?a ) { ( ontology:work_of_art ) ( ontology:family ) } . ?j rdf:type ?a } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) ?e WHERE { { ?e property:part_of ?m . ?m rdf:type ontology:work_of_art . ?e rdf:type ontology:fictional_humanoid } UNION { ?e property:part_of ?m . ?m rdf:type ontology:family . ?e rdf:type ontology:fictional_humanoid } } GROUP BY ?e } . FILTER ( ?t = ?z ) }
[]