Simple Question (Direct)
Simple Question
Q4685550
P19
Q56061
USER
Which administrative territory was Adrianne Allen born at ?
(Q4685550,P19,c(Q56061))
action filter_type
action find
entity Q4685550
relation P19
type Q56061
['Q4685550', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q4685550 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Adrianne Allen
action filter_type
action find
entity Adrianne Allen
relation place of birth
type administrative territorial entity
['Adrianne Allen', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Adrianne_Allen property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q18125
SYSTEM
Manchester
Q18125
(Q4685550,P19,c(Q56061))
action filter_type
action find
entity Q4685550
relation P19
type Q56061
Adrianne Allen was born in [ANSWER]
['Q4685550', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q4685550 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Manchester
Adrianne Allen was born in Manchester
Manchester
action filter_type
action find
entity Adrianne Allen
relation place of birth
type administrative territorial entity
['Adrianne Allen', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Adrianne_Allen property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4685550
P161
Q838948
USER
Which works of art have that person as actor ?
(c(Q838948),P161,Q18125)
action filter_type
action find_reverse
entity Q4685550
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q18125']
SELECT DISTINCT ?f WHERE { ?f property:P161 resource:Q4685550 . ?f rdf:type ontology:Q838948 }
Adrianne Allen
action filter_type
action find_reverse
entity Adrianne Allen
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Manchester']
SELECT DISTINCT ?f WHERE { ?f property:cast_member resource:Adrianne_Allen . ?f rdf:type ontology:work_of_art }
[]
work of art
Q7752227 Q4261775
SYSTEM
The Morals of Marcus, Black Coffee
Q7752227 Q4261775
(c(Q838948),P161,Q18125)
action filter_type
action find_reverse
entity Q4685550
relation P161
type Q838948
[ANSWERS] have that person as actor
[{'concept': 'Q838948'}, 'P161', 'Q18125']
SELECT DISTINCT ?f WHERE { ?f property:P161 resource:Q4685550 . ?f rdf:type ontology:Q838948 }
The Morals of Marcus Black Coffee
The Morals of Marcus and Black Coffee have that person as actor
The Morals of Marcus Black Coffee
action filter_type
action find_reverse
entity Adrianne Allen
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Manchester']
SELECT DISTINCT ?f WHERE { ?f property:cast_member resource:Adrianne_Allen . ?f rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q838948 Q482994 Q811979
USER
Which works of art are atleast 2 albums or architectural structures a part of ?
(c(Q482994)|c(Q811979),P361,c(Q838948))
action atleast
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
action find_reverse_tuple_counts
relation P361
type Q838948
type Q811979
value 2
[[{'concept': 'Q482994'}, {'concept': 'Q811979'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?q >= 2 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?d WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:Q482994 ) ( ontology:Q811979 ) } } GROUP BY ?d } }
action atleast
action union
action find_reverse_tuple_counts
relation part of
type work of art
type album
action find_reverse_tuple_counts
relation part of
type work of art
type architectural structure
value 2
[[{'concept': 'album'}, {'concept': 'architectural structure'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?q >= 2 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?d WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:album ) ( ontology:architectural_structure ) } } GROUP BY ?d } }
[]
work of art album architectural structure
Q1209853 Q489772
SYSTEM
Dick Tracy, Seven Wonders of the Ancient World
Q1209853 Q489772
(c(Q482994)|c(Q811979),P361,c(Q838948))
action atleast
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
action find_reverse_tuple_counts
relation P361
type Q838948
type Q811979
value 2
[ANSWERS] are atleast 2 albums or architectural structures a part of
[[{'concept': 'Q482994'}, {'concept': 'Q811979'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?q >= 2 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?d WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:Q482994 ) ( ontology:Q811979 ) } } GROUP BY ?d } }
Dick Tracy Seven Wonders of the Ancient World
Dick Tracy and Seven Wonders of the Ancient World are atleast 2 albums or architectural structures a part of
Dick Tracy Seven Wonders of the Ancient World
action atleast
action union
action find_reverse_tuple_counts
relation part of
type work of art
type album
action find_reverse_tuple_counts
relation part of
type work of art
type architectural structure
value 2
[[{'concept': 'album'}, {'concept': 'architectural structure'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?q >= 2 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?d WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:album ) ( ontology:architectural_structure ) } } GROUP BY ?d } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1919313 Q1209853
P161 P6
Q502895
USER
Which people starred in Dick Tracy or are the heads of the government of Calles ?
OR((Q1209853,P161,c(Q502895)), (Q1919313,P6,c(Q502895)))
action filter_type
action union
action find
entity Q1209853
relation P161
action find
entity Q1919313
relation P6
type Q502895
{'OR': [['Q1209853', 'P161', {'concept': 'Q502895'}], ['Q1919313', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q1209853 property:P161 ?r } UNION { resource:Q1919313 property:P6 ?r } } . ?r rdf:type ontology:Q502895 }
Calles Dick Tracy
action filter_type
action union
action find
entity Dick Tracy
relation cast member
action find
entity Calles
relation head of government
type common name
{'OR': [['Dick Tracy', 'cast member', {'concept': 'common name'}], ['Calles', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Dick_Tracy property:cast_member ?r } UNION { resource:Calles property:head_of_government ?r } } . ?r rdf:type ontology:common_name }
[]
common name
Q232541 Q3157232 Q1744 Q350255 Q579100 Q2865227 Q2967592 Q730270 Q783369 Q41163
SYSTEM
Some of them are Estelle Parsons, Jack Kehoe, Madonna, William Forsythe, Mike Hagerty, Arthur Malet, Chuck Hicks, Michael J. Pollard, James Tolkan, Al Pacino
Q95043 Q932204 Q310295 Q579100 Q1384373 Q449602 Q232541 Q1389759 Q41163 Q1262126 Q658690 Q233365 Q783369 Q313671 Q447892 Q1066934 Q329784 Q2865227 Q3157232 Q544465 Q679987 Q1744 Q1859510 Q323503 Q267097 Q95030 Q2967592 Q6125544 Q1399617 Q708153 Q730270 Q42930 Q3047186 Q350255
OR((Q1209853,P161,c(Q502895)), (Q1919313,P6,c(Q502895)))
action filter_type
action union
action find
entity Q1209853
relation P161
action find
entity Q1919313
relation P6
type Q502895
[ANSWERS] starred in Dick Tracy or are the heads of the government of Calles
{'OR': [['Q1209853', 'P161', {'concept': 'Q502895'}], ['Q1919313', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q1209853 property:P161 ?r } UNION { resource:Q1919313 property:P6 ?r } } . ?r rdf:type ontology:Q502895 }
James Caan Allen Garfield Dick Van Dyke Mike Hagerty Henry Silva Glenne Headly Estelle Parsons John Schuck Al Pacino Ed O'Ross Charles Fleischer Catherine O'Hara James Tolkan Colm Meaney Paul Sorvino Charlie Korsmo Charles Durning Arthur Malet Jack Kehoe Kathy Bates Marshall Bell Madonna Mike Mazurki Hamilton Camp Mandy Patinkin Warren Beatty Chuck Hicks Sergio Muñoz R. G. Armstrong Seymour Cassel Michael J. Pollard Dustin Hoffman Ed McCready William Forsythe
Estelle Parsons, Jack Kehoe, Madonna, William Forsythe, Mike Hagerty, Arthur Malet, Chuck Hicks, Michael J. Pollard, James Tolkan and Al Pacino starred in Dick Tracy or are the heads of the government of Calles
Estelle Parsons Jack Kehoe Madonna William Forsythe Mike Hagerty Arthur Malet Chuck Hicks Michael J. Pollard James Tolkan Al Pacino
action filter_type
action union
action find
entity Dick Tracy
relation cast member
action find
entity Calles
relation head of government
type common name
{'OR': [['Dick Tracy', 'cast member', {'concept': 'common name'}], ['Calles', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Dick_Tracy property:cast_member ?r } UNION { resource:Calles property:head_of_government ?r } } . ?r rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1209853
P161
Q838948
USER
Do Dick Tracy have those people as actor ?
(Q1209853,P161,Q232541) (Q1209853,P161,Q3157232) (Q1209853,P161,Q1744) (Q1209853,P161,Q350255) (Q1209853,P161,Q579100) (Q1209853,P161,Q2865227) (Q1209853,P161,Q2967592) (Q1209853,P161,Q730270) (Q1209853,P161,Q783369) (Q1209853,P161,Q41163)
action is_in
entity prev_answer
action find
entity Q1209853
relation P161
['Q1209853', 'P161', 'Q232541'] ['Q1209853', 'P161', 'Q3157232'] ['Q1209853', 'P161', 'Q1744'] ['Q1209853', 'P161', 'Q350255'] ['Q1209853', 'P161', 'Q579100'] ['Q1209853', 'P161', 'Q2865227'] ['Q1209853', 'P161', 'Q2967592'] ['Q1209853', 'P161', 'Q730270'] ['Q1209853', 'P161', 'Q783369'] ['Q1209853', 'P161', 'Q41163']
ASK WHERE { resource:Q1209853 property:P161 ?i . VALUES ( ?i ) { ( resource:Q95043 ) ( resource:Q932204 ) ( resource:Q310295 ) } }
Dick Tracy
action is_in
entity prev_answer
action find
entity Dick Tracy
relation cast member
['Dick Tracy', 'cast member', 'Estelle Parsons'] ['Dick Tracy', 'cast member', 'Jack Kehoe'] ['Dick Tracy', 'cast member', 'Madonna'] ['Dick Tracy', 'cast member', 'William Forsythe'] ['Dick Tracy', 'cast member', 'Mike Hagerty'] ['Dick Tracy', 'cast member', 'Arthur Malet'] ['Dick Tracy', 'cast member', 'Chuck Hicks'] ['Dick Tracy', 'cast member', 'Michael J. Pollard'] ['Dick Tracy', 'cast member', 'James Tolkan'] ['Dick Tracy', 'cast member', 'Al Pacino']
ASK WHERE { resource:Dick_Tracy property:cast_member ?i . VALUES ( ?i ) { ( resource:James_Caan ) ( resource:Allen_Garfield ) ( resource:Dick_Van_Dyke ) } }
[]
work of art
SYSTEM
YES
(Q1209853,P161,Q232541) (Q1209853,P161,Q3157232) (Q1209853,P161,Q1744) (Q1209853,P161,Q350255) (Q1209853,P161,Q579100) (Q1209853,P161,Q2865227) (Q1209853,P161,Q2967592) (Q1209853,P161,Q730270) (Q1209853,P161,Q783369) (Q1209853,P161,Q41163)
action is_in
entity prev_answer
action find
entity Q1209853
relation P161
[ANSWER]
['Q1209853', 'P161', 'Q232541'] ['Q1209853', 'P161', 'Q3157232'] ['Q1209853', 'P161', 'Q1744'] ['Q1209853', 'P161', 'Q350255'] ['Q1209853', 'P161', 'Q579100'] ['Q1209853', 'P161', 'Q2865227'] ['Q1209853', 'P161', 'Q2967592'] ['Q1209853', 'P161', 'Q730270'] ['Q1209853', 'P161', 'Q783369'] ['Q1209853', 'P161', 'Q41163']
ASK WHERE { resource:Q1209853 property:P161 ?i . VALUES ( ?i ) { ( resource:Q95043 ) ( resource:Q932204 ) ( resource:Q310295 ) } }
Yes
action is_in
entity prev_answer
action find
entity Dick Tracy
relation cast member
['Dick Tracy', 'cast member', 'Estelle Parsons'] ['Dick Tracy', 'cast member', 'Jack Kehoe'] ['Dick Tracy', 'cast member', 'Madonna'] ['Dick Tracy', 'cast member', 'William Forsythe'] ['Dick Tracy', 'cast member', 'Mike Hagerty'] ['Dick Tracy', 'cast member', 'Arthur Malet'] ['Dick Tracy', 'cast member', 'Chuck Hicks'] ['Dick Tracy', 'cast member', 'Michael J. Pollard'] ['Dick Tracy', 'cast member', 'James Tolkan'] ['Dick Tracy', 'cast member', 'Al Pacino']
ASK WHERE { resource:Dick_Tracy property:cast_member ?i . VALUES ( ?i ) { ( resource:James_Caan ) ( resource:Allen_Garfield ) ( resource:Dick_Van_Dyke ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q120585
P1303
Q34379 Q502895
USER
Which musical instruments can greater number of people perform with than Tsuzumi ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q120585
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Q120585 property:P1303 ?t . ?t rdf:type ontology:Q34379 } } . FILTER ( ?d > ?h ) }
Tsuzumi
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Tsuzumi
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Tsuzumi property:instrument ?t . ?t rdf:type ontology:musical_instrument } } . FILTER ( ?d > ?h ) }
[]
musical instrument common name
Q5994 Q81982 Q862501
SYSTEM
piano, harpsichord, ondes Martenot
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q120585
relation P1303
type Q34379
[ANSWERS] can greater number of people perform with than Tsuzumi
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Q120585 property:P1303 ?t . ?t rdf:type ontology:Q34379 } } . FILTER ( ?d > ?h ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
Piano, harpsichord and ondes Martenot can greater number of people perform with than Tsuzumi
piano harpsichord ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Tsuzumi
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { resource:Tsuzumi property:instrument ?t . ?t rdf:type ontology:musical_instrument } } . FILTER ( ?d > ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q3623688
P1303
Q34379 Q502895
USER
And what about Paraguayan harp?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q3623688
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?v ) WHERE { ?f property:P1303 ?y . ?y rdf:type ontology:Q34379 . ?f rdf:type ontology:Q502895 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { resource:Q3623688 property:P1303 ?d . ?d rdf:type ontology:Q34379 } } . FILTER ( ?v > ?q ) }
Paraguayan harp
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Paraguayan harp
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?v ) WHERE { ?f property:instrument ?y . ?y rdf:type ontology:musical_instrument . ?f rdf:type ontology:common_name } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { resource:Paraguayan_harp property:instrument ?d . ?d rdf:type ontology:musical_instrument } } . FILTER ( ?v > ?q ) }
[]
musical instrument common name
Q5994 Q81982 Q862501
SYSTEM
piano, harpsichord, ondes Martenot
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q3623688
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?v ) WHERE { ?f property:P1303 ?y . ?y rdf:type ontology:Q34379 . ?f rdf:type ontology:Q502895 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { resource:Q3623688 property:P1303 ?d . ?d rdf:type ontology:Q34379 } } . FILTER ( ?v > ?q ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
piano harpsichord ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Paraguayan harp
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?v ) WHERE { ?f property:instrument ?y . ?y rdf:type ontology:musical_instrument . ?f rdf:type ontology:common_name } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { resource:Paraguayan_harp property:instrument ?d . ?d rdf:type ontology:musical_instrument } } . FILTER ( ?v > ?q ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P941
Q838948 Q11424 Q2342494
USER
Which works of art were the sources of inspiration for max number of films and collectables ?
(c(Q11424)|c(Q2342494),P941,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q11424
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
[[{'concept': 'Q11424'}, {'concept': 'Q2342494'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) ?p WHERE { { ?j property:P941 ?p . ?j rdf:type ontology:Q11424 . ?p rdf:type ontology:Q838948 } UNION { ?j property:P941 ?p . ?j rdf:type ontology:Q2342494 . ?p rdf:type ontology:Q838948 } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?u WHERE { { ?o property:P941 ?u . ?u rdf:type ontology:Q838948 . ?o rdf:type ontology:Q11424 } UNION { ?o property:P941 ?u . ?u rdf:type ontology:Q838948 . ?o rdf:type ontology:Q2342494 } } GROUP BY ?u } . FILTER ( ?f = ?y ) }
action argmax
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type film
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
[[{'concept': 'film'}, {'concept': 'collectable'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) ?p WHERE { { ?j property:inspired_by ?p . ?j rdf:type ontology:film . ?p rdf:type ontology:work_of_art } UNION { ?j property:inspired_by ?p . ?j rdf:type ontology:collectable . ?p rdf:type ontology:work_of_art } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?u WHERE { { ?o property:inspired_by ?u . ?u rdf:type ontology:work_of_art . ?o rdf:type ontology:film } UNION { ?o property:inspired_by ?u . ?u rdf:type ontology:work_of_art . ?o rdf:type ontology:collectable } } GROUP BY ?u } . FILTER ( ?f = ?y ) }
[]
work of art film collectable
Q1217787 Q41567 Q83186
SYSTEM
The Time Machine, Hamlet, Romeo and Juliet
Q1217787 Q19560629 Q41567 Q83186
(c(Q11424)|c(Q2342494),P941,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q11424
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
[ANSWERS] were the sources of inspiration for max number of films and collectables
[[{'concept': 'Q11424'}, {'concept': 'Q2342494'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) ?p WHERE { { ?j property:P941 ?p . ?j rdf:type ontology:Q11424 . ?p rdf:type ontology:Q838948 } UNION { ?j property:P941 ?p . ?j rdf:type ontology:Q2342494 . ?p rdf:type ontology:Q838948 } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?u WHERE { { ?o property:P941 ?u . ?u rdf:type ontology:Q838948 . ?o rdf:type ontology:Q11424 } UNION { ?o property:P941 ?u . ?u rdf:type ontology:Q838948 . ?o rdf:type ontology:Q2342494 } } GROUP BY ?u } . FILTER ( ?f = ?y ) }
The Time Machine 9/11 entschlüsselt Hamlet Romeo and Juliet
The Time Machine, Hamlet and Romeo and Juliet were the sources of inspiration for max number of films and collectables
The Time Machine Hamlet Romeo and Juliet
action argmax
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type film
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
[[{'concept': 'film'}, {'concept': 'collectable'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) ?p WHERE { { ?j property:inspired_by ?p . ?j rdf:type ontology:film . ?p rdf:type ontology:work_of_art } UNION { ?j property:inspired_by ?p . ?j rdf:type ontology:collectable . ?p rdf:type ontology:work_of_art } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?u WHERE { { ?o property:inspired_by ?u . ?u rdf:type ontology:work_of_art . ?o rdf:type ontology:film } UNION { ?o property:inspired_by ?u . ?u rdf:type ontology:work_of_art . ?o rdf:type ontology:collectable } } GROUP BY ?u } . FILTER ( ?f = ?y ) }
[]