Simple Question (Direct)
Simple Question
Q127273
P27
Q15617994
USER
Which administrative territory does Annie Parisse belong to ?
(Q127273,P27,c(Q15617994))
action filter_type
action find
entity Q127273
relation P27
type Q15617994
['Q127273', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q127273 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Annie Parisse
action filter_type
action find
entity Annie Parisse
relation country of citizenship
type designation for an administrative territorial entity
['Annie Parisse', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Annie_Parisse property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q127273,P27,c(Q15617994))
action filter_type
action find
entity Q127273
relation P27
type Q15617994
Annie Parisse belongs to [ANSWER]
['Q127273', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q127273 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
United States of America
Annie Parisse belongs to United States of America
United States of America
action filter_type
action find
entity Annie Parisse
relation country of citizenship
type designation for an administrative territorial entity
['Annie Parisse', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Annie_Parisse property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q127273
P161
Q838948
USER
Which works of art have that person as actor ?
(c(Q838948),P161,Q30)
action filter_type
action find_reverse
entity Q127273
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q30']
SELECT DISTINCT ?r WHERE { ?r property:P161 resource:Q127273 . ?r rdf:type ontology:Q838948 }
Annie Parisse
action filter_type
action find_reverse
entity Annie Parisse
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'United States of America']
SELECT DISTINCT ?r WHERE { ?r property:cast_member resource:Annie_Parisse . ?r rdf:type ontology:work_of_art }
[]
work of art
Q309366 Q229808 Q602501
SYSTEM
National Treasure, The Amazing Spider-Man, One for the Money
Q1121878 Q1327370 Q309366 Q4753356 Q229808 Q682904 Q602501 Q1123917
(c(Q838948),P161,Q30)
action filter_type
action find_reverse
entity Q127273
relation P161
type Q838948
[ANSWERS] have that person as actor
[{'concept': 'Q838948'}, 'P161', 'Q30']
SELECT DISTINCT ?r WHERE { ?r property:P161 resource:Q127273 . ?r rdf:type ontology:Q838948 }
Definitely, Maybe How to Lose a Guy in 10 Days National Treasure And So It Goes The Amazing Spider-Man Monster-in-Law One for the Money Prime
National Treasure, The Amazing Spider-Man and One for the Money have that person as actor
National Treasure The Amazing Spider-Man One for the Money
action filter_type
action find_reverse
entity Annie Parisse
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'United States of America']
SELECT DISTINCT ?r WHERE { ?r property:cast_member resource:Annie_Parisse . ?r rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q127273
P161 P495
Q838948
USER
Which works of art do Annie Parisse star in and originated in United States of America ?
AND((c(Q838948),P161,Q127273), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q127273
relation P161
action find_reverse
entity Q30
relation P495
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q127273'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?o WHERE { ?o property:P161 resource:Q127273 . ?o property:P495 resource:Q30 . ?o rdf:type ontology:Q838948 }
United States of America Annie Parisse
action filter_type
action intersection
action find_reverse
entity Annie Parisse
relation cast member
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Annie Parisse'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?o WHERE { ?o property:cast_member resource:Annie_Parisse . ?o property:country_of_origin resource:United_States_of_America . ?o rdf:type ontology:work_of_art }
[]
work of art
Q1121878 Q1327370 Q4753356 Q229808 Q309366 Q1123917 Q602501 Q682904
SYSTEM
Definitely, Maybe, How to Lose a Guy in 10 Days, And So It Goes, The Amazing Spider-Man, National Treasure, Prime, One for the Money, Monster-in-Law
Q1121878 Q1327370 Q4753356 Q229808 Q309366 Q1123917 Q602501 Q682904
AND((c(Q838948),P161,Q127273), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q127273
relation P161
action find_reverse
entity Q30
relation P495
type Q838948
Annie Parisse star in Prime [ANSWERS]
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q127273'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?o WHERE { ?o property:P161 resource:Q127273 . ?o property:P495 resource:Q30 . ?o rdf:type ontology:Q838948 }
Definitely, Maybe How to Lose a Guy in 10 Days And So It Goes The Amazing Spider-Man National Treasure Prime One for the Money Monster-in-Law
Annie Parisse star in Prime Definitely, Maybe, How to Lose a Guy in 10 Days, And So It Goes, The Amazing Spider-Man, National Treasure, Prime, One for the Money and Monster-in-Law
Definitely, Maybe How to Lose a Guy in 10 Days And So It Goes The Amazing Spider-Man National Treasure Prime One for the Money Monster-in-Law
action filter_type
action intersection
action find_reverse
entity Annie Parisse
relation cast member
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Annie Parisse'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?o WHERE { ?o property:cast_member resource:Annie_Parisse . ?o property:country_of_origin resource:United_States_of_America . ?o rdf:type ontology:work_of_art }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q215911
P180
Q838948 Q15709879 Q386724
USER
Which works of art are depicted in greater number of artwork series and works than serenade ?
(c(Q15709879)|c(Q386724),P180,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q838948
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q215911
relation P180
type Q15709879
type Q386724
[[{'concept': 'Q15709879'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?q ) WHERE { { ?d rdf:type ontology:Q838948 . ?b rdf:type ontology:Q15709879 . ?b property:P180 ?d } UNION { ?d rdf:type ontology:Q838948 . ?b rdf:type ontology:Q386724 . ?b property:P180 ?d } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { ?a property:P180 resource:Q215911 . { { ?a rdf:type ontology:Q15709879 } UNION { ?a rdf:type ontology:Q386724 } } } } . FILTER ( ?q > ?f ) }
serenade
action greater
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type artwork series
action find_reverse_tuple_counts
relation depicts
type work of art
type work
action count
action filter_multi_types
action find_reverse
entity serenade
relation depicts
type artwork series
type work
[[{'concept': 'artwork series'}, {'concept': 'work'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?q ) WHERE { { ?d rdf:type ontology:work_of_art . ?b rdf:type ontology:artwork_series . ?b property:depicts ?d } UNION { ?d rdf:type ontology:work_of_art . ?b rdf:type ontology:work . ?b property:depicts ?d } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { ?a property:depicts resource:serenade . { { ?a rdf:type ontology:artwork_series } UNION { ?a rdf:type ontology:work } } } } . FILTER ( ?q > ?f ) }
[]
work of art artwork series work
Q465762 Q848790 Q185392
SYSTEM
Laocoön and His Sons, Dying Gaul, Borghese Gladiator
Q766487 Q2439030 Q267971 Q831869 Q17305006 Q185382 Q826635 Q2070542 Q733893 Q185392 Q619135 Q848790 Q1350279 Q907387 Q374591 Q945850 Q1989744 Q465762 Q7539835 Q183272 Q599302 Q208440
(c(Q15709879)|c(Q386724),P180,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q838948
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q215911
relation P180
type Q15709879
type Q386724
Laocoön and His Sons, dying Gaul and Borghese Gladiator are depicted in greater number of artwork series and works than serenade
[[{'concept': 'Q15709879'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?q ) WHERE { { ?d rdf:type ontology:Q838948 . ?b rdf:type ontology:Q15709879 . ?b property:P180 ?d } UNION { ?d rdf:type ontology:Q838948 . ?b rdf:type ontology:Q386724 . ?b property:P180 ?d } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { ?a property:P180 resource:Q215911 . { { ?a rdf:type ontology:Q15709879 } UNION { ?a rdf:type ontology:Q386724 } } } } . FILTER ( ?q > ?f ) }
David St. Peter's Baldacchino Triton Fountain oenochoe Galatea Trevi Fountain Elephant and Obelisk Hermes Chair of Saint Peter Borghese Gladiator Apollo Belvedere Dying Gaul pyxis Equestrian Statue of Marcus Aurelius Farnese Hercules Apollo and Daphne Moses Laocoön and His Sons Sleeping Ariadne frieze Column of Antoninus Pius chess piece
Laocoön and His Sons, dying Gaul and Borghese Gladiator are depicted in greater number of artwork series and works than serenade
Laocoön and His Sons Dying Gaul Borghese Gladiator
action greater
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type artwork series
action find_reverse_tuple_counts
relation depicts
type work of art
type work
action count
action filter_multi_types
action find_reverse
entity serenade
relation depicts
type artwork series
type work
[[{'concept': 'artwork series'}, {'concept': 'work'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?q ) WHERE { { ?d rdf:type ontology:work_of_art . ?b rdf:type ontology:artwork_series . ?b property:depicts ?d } UNION { ?d rdf:type ontology:work_of_art . ?b rdf:type ontology:work . ?b property:depicts ?d } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { ?a property:depicts resource:serenade . { { ?a rdf:type ontology:artwork_series } UNION { ?a rdf:type ontology:work } } } } . FILTER ( ?q > ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1192229
P180
Q838948 Q15709879 Q386724
USER
And what about The Original Sin?
(c(Q15709879)|c(Q386724),P180,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q838948
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q1192229
relation P180
type Q15709879
type Q386724
[[{'concept': 'Q15709879'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?t > ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { { ?c rdf:type ontology:Q15709879 } UNION { ?c rdf:type ontology:Q386724 } } . ?c property:P180 resource:Q1192229 } } . { SELECT DISTINCT ?o ( COUNT ( ?l ) AS ?t ) WHERE { { ?l property:P180 ?o . ?l rdf:type ontology:Q15709879 . ?o rdf:type ontology:Q838948 } UNION { ?l property:P180 ?o . ?l rdf:type ontology:Q386724 . ?o rdf:type ontology:Q838948 } } GROUP BY ?o } }
The Original Sin
action greater
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type artwork series
action find_reverse_tuple_counts
relation depicts
type work of art
type work
action count
action filter_multi_types
action find_reverse
entity The Original Sin
relation depicts
type artwork series
type work
[[{'concept': 'artwork series'}, {'concept': 'work'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?t > ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { { ?c rdf:type ontology:artwork_series } UNION { ?c rdf:type ontology:work } } . ?c property:depicts resource:The_Original_Sin } } . { SELECT DISTINCT ?o ( COUNT ( ?l ) AS ?t ) WHERE { { ?l property:depicts ?o . ?l rdf:type ontology:artwork_series . ?o rdf:type ontology:work_of_art } UNION { ?l property:depicts ?o . ?l rdf:type ontology:work . ?o rdf:type ontology:work_of_art } } GROUP BY ?o } }
[]
work of art artwork series work
Q465762 Q848790 Q185392
SYSTEM
Laocoön and His Sons, Dying Gaul, Borghese Gladiator
Q766487 Q2439030 Q267971 Q831869 Q17305006 Q185382 Q826635 Q2070542 Q733893 Q185392 Q619135 Q848790 Q1350279 Q907387 Q374591 Q945850 Q1989744 Q465762 Q7539835 Q183272 Q599302 Q208440
(c(Q15709879)|c(Q386724),P180,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q838948
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q1192229
relation P180
type Q15709879
type Q386724
[ANSWERS]
[[{'concept': 'Q15709879'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?t > ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { { ?c rdf:type ontology:Q15709879 } UNION { ?c rdf:type ontology:Q386724 } } . ?c property:P180 resource:Q1192229 } } . { SELECT DISTINCT ?o ( COUNT ( ?l ) AS ?t ) WHERE { { ?l property:P180 ?o . ?l rdf:type ontology:Q15709879 . ?o rdf:type ontology:Q838948 } UNION { ?l property:P180 ?o . ?l rdf:type ontology:Q386724 . ?o rdf:type ontology:Q838948 } } GROUP BY ?o } }
David St. Peter's Baldacchino Triton Fountain oenochoe Galatea Trevi Fountain Elephant and Obelisk Hermes Chair of Saint Peter Borghese Gladiator Apollo Belvedere Dying Gaul pyxis Equestrian Statue of Marcus Aurelius Farnese Hercules Apollo and Daphne Moses Laocoön and His Sons Sleeping Ariadne frieze Column of Antoninus Pius chess piece
Laocoön and His Sons Dying Gaul Borghese Gladiator
action greater
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type artwork series
action find_reverse_tuple_counts
relation depicts
type work of art
type work
action count
action filter_multi_types
action find_reverse
entity The Original Sin
relation depicts
type artwork series
type work
[[{'concept': 'artwork series'}, {'concept': 'work'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?t > ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { { ?c rdf:type ontology:artwork_series } UNION { ?c rdf:type ontology:work } } . ?c property:depicts resource:The_Original_Sin } } . { SELECT DISTINCT ?o ( COUNT ( ?l ) AS ?t ) WHERE { { ?l property:depicts ?o . ?l rdf:type ontology:artwork_series . ?o rdf:type ontology:work_of_art } UNION { ?l property:depicts ?o . ?l rdf:type ontology:work . ?o rdf:type ontology:work_of_art } } GROUP BY ?o } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q8441 Q185392
P180
Q15709879
USER
Which artwork series depict Borghese Gladiator and man ?
AND((c(Q15709879),P180,Q185392), (c(Q15709879),P180,Q8441))
action filter_type
action intersection
action find_reverse
entity Q185392
relation P180
action find_reverse
entity Q8441
relation P180
type Q15709879
{'AND': [[{'concept': 'Q15709879'}, 'P180', 'Q185392'], [{'concept': 'Q15709879'}, 'P180', 'Q8441']]}
SELECT DISTINCT ?y WHERE { ?y property:P180 resource:Q185392 . ?y property:P180 resource:Q8441 . ?y rdf:type ontology:Q15709879 }
man Borghese Gladiator
action filter_type
action intersection
action find_reverse
entity Borghese Gladiator
relation depicts
action find_reverse
entity man
relation depicts
type artwork series
{'AND': [[{'concept': 'artwork series'}, 'depicts', 'Borghese Gladiator'], [{'concept': 'artwork series'}, 'depicts', 'man']]}
SELECT DISTINCT ?y WHERE { ?y property:depicts resource:Borghese_Gladiator . ?y property:depicts resource:man . ?y rdf:type ontology:artwork_series }
[]
artwork series
Q3094657
SYSTEM
Ancient Rome
Q3094657
AND((c(Q15709879),P180,Q185392), (c(Q15709879),P180,Q8441))
action filter_type
action intersection
action find_reverse
entity Q185392
relation P180
action find_reverse
entity Q8441
relation P180
type Q15709879
[ANSWER] depict Borghese Gladiator and man
{'AND': [[{'concept': 'Q15709879'}, 'P180', 'Q185392'], [{'concept': 'Q15709879'}, 'P180', 'Q8441']]}
SELECT DISTINCT ?y WHERE { ?y property:P180 resource:Q185392 . ?y property:P180 resource:Q8441 . ?y rdf:type ontology:Q15709879 }
Ancient Rome
Ancient Rome depict Borghese Gladiator and man
Ancient Rome
action filter_type
action intersection
action find_reverse
entity Borghese Gladiator
relation depicts
action find_reverse
entity man
relation depicts
type artwork series
{'AND': [[{'concept': 'artwork series'}, 'depicts', 'Borghese Gladiator'], [{'concept': 'artwork series'}, 'depicts', 'man']]}
SELECT DISTINCT ?y WHERE { ?y property:depicts resource:Borghese_Gladiator . ?y property:depicts resource:man . ?y rdf:type ontology:artwork_series }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8441
P689
Q2057971
USER
Which health problem can afflict that concept ?
(c(Q2057971),P689,Q3094657)
action filter_type
action find_reverse
entity Q8441
relation P689
type Q2057971
[{'concept': 'Q2057971'}, 'P689', 'Q3094657']
SELECT DISTINCT ?k WHERE { ?k property:P689 resource:Q8441 . ?k rdf:type ontology:Q2057971 }
man
action filter_type
action find_reverse
entity man
relation afflicts
type health problem
[{'concept': 'health problem'}, 'afflicts', 'Ancient Rome']
SELECT DISTINCT ?k WHERE { ?k property:afflicts resource:man . ?k rdf:type ontology:health_problem }
[]
health problem
Q6742919
SYSTEM
Male breast cancer
Q6742919
(c(Q2057971),P689,Q3094657)
action filter_type
action find_reverse
entity Q8441
relation P689
type Q2057971
[ANSWER] can afflict that concept
[{'concept': 'Q2057971'}, 'P689', 'Q3094657']
SELECT DISTINCT ?k WHERE { ?k property:P689 resource:Q8441 . ?k rdf:type ontology:Q2057971 }
Male breast cancer
Male breast cancer can afflict that concept
Male breast cancer
action filter_type
action find_reverse
entity man
relation afflicts
type health problem
[{'concept': 'health problem'}, 'afflicts', 'Ancient Rome']
SELECT DISTINCT ?k WHERE { ?k property:afflicts resource:man . ?k rdf:type ontology:health_problem }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P144
Q838948 Q2342494 Q1001378
USER
Which works of art are max number of collectables or cinematic techniques based on ?
(c(Q2342494)|c(Q1001378),P144,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P144
type Q838948
type Q1001378
[[{'concept': 'Q2342494'}, {'concept': 'Q1001378'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?d WHERE { { ?h property:P144 ?d . ?d rdf:type ontology:Q838948 . ?h rdf:type ontology:Q2342494 } UNION { ?h property:P144 ?d . ?d rdf:type ontology:Q838948 . ?h rdf:type ontology:Q1001378 } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?k WHERE { { ?i rdf:type ontology:Q2342494 . ?k rdf:type ontology:Q838948 . ?i property:P144 ?k } UNION { ?i property:P144 ?k . ?k rdf:type ontology:Q838948 . ?i rdf:type ontology:Q1001378 } } GROUP BY ?k } . FILTER ( ?j = ?t ) }
action argmax
action union
action find_reverse_tuple_counts
relation based on
type work of art
type collectable
action find_reverse_tuple_counts
relation based on
type work of art
type cinematic technique
[[{'concept': 'collectable'}, {'concept': 'cinematic technique'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?d WHERE { { ?h property:based_on ?d . ?d rdf:type ontology:work_of_art . ?h rdf:type ontology:collectable } UNION { ?h property:based_on ?d . ?d rdf:type ontology:work_of_art . ?h rdf:type ontology:cinematic_technique } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?k WHERE { { ?i rdf:type ontology:collectable . ?k rdf:type ontology:work_of_art . ?i property:based_on ?k } UNION { ?i property:based_on ?k . ?k rdf:type ontology:work_of_art . ?i rdf:type ontology:cinematic_technique } } GROUP BY ?k } . FILTER ( ?j = ?t ) }
[]
work of art collectable cinematic technique
Q83186
SYSTEM
Romeo and Juliet
Q83186
(c(Q2342494)|c(Q1001378),P144,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P144
type Q838948
type Q1001378
[ANSWER] is max number of collectables or cinematic techniques based on
[[{'concept': 'Q2342494'}, {'concept': 'Q1001378'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?d WHERE { { ?h property:P144 ?d . ?d rdf:type ontology:Q838948 . ?h rdf:type ontology:Q2342494 } UNION { ?h property:P144 ?d . ?d rdf:type ontology:Q838948 . ?h rdf:type ontology:Q1001378 } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?k WHERE { { ?i rdf:type ontology:Q2342494 . ?k rdf:type ontology:Q838948 . ?i property:P144 ?k } UNION { ?i property:P144 ?k . ?k rdf:type ontology:Q838948 . ?i rdf:type ontology:Q1001378 } } GROUP BY ?k } . FILTER ( ?j = ?t ) }
Romeo and Juliet
Romeo and Juliet is max number of collectables or cinematic techniques based on
Romeo and Juliet
action argmax
action union
action find_reverse_tuple_counts
relation based on
type work of art
type collectable
action find_reverse_tuple_counts
relation based on
type work of art
type cinematic technique
[[{'concept': 'collectable'}, {'concept': 'cinematic technique'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?d WHERE { { ?h property:based_on ?d . ?d rdf:type ontology:work_of_art . ?h rdf:type ontology:collectable } UNION { ?h property:based_on ?d . ?d rdf:type ontology:work_of_art . ?h rdf:type ontology:cinematic_technique } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?k WHERE { { ?i rdf:type ontology:collectable . ?k rdf:type ontology:work_of_art . ?i property:based_on ?k } UNION { ?i property:based_on ?k . ?k rdf:type ontology:work_of_art . ?i rdf:type ontology:cinematic_technique } } GROUP BY ?k } . FILTER ( ?j = ?t ) }
[]