Simple Question (Direct)
Simple Question
Q624566
P344
Q502895
USER
Which person serves as the director of photography for Arachnid ?
(Q624566,P344,c(Q502895))
action filter_type
action find
entity Q624566
relation P344
type Q502895
['Q624566', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q624566 property:P344 ?r . ?r rdf:type ontology:Q502895 }
Arachnid
action filter_type
action find
entity Arachnid
relation director of photography
type common name
['Arachnid', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Arachnid property:director_of_photography ?r . ?r rdf:type ontology:common_name }
[]
common name
Q5042130
SYSTEM
Carlos González
Q5042130
(Q624566,P344,c(Q502895))
action filter_type
action find
entity Q624566
relation P344
type Q502895
[ANSWER] serves as the director of photography for Arachnid
['Q624566', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q624566 property:P344 ?r . ?r rdf:type ontology:Q502895 }
Carlos González
Carlos González serves as the director of photography for Arachnid
Carlos González
action filter_type
action find
entity Arachnid
relation director of photography
type common name
['Arachnid', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Arachnid property:director_of_photography ?r . ?r rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1071
Q15617994 Q56061 Q838948
USER
Which works of art have atleast 1 administrative territories and administrative territories as their final assembly location ?
(c(Q838948),P1071,c(Q15617994)|c(Q56061))
action atleast
action union
action find_tuple_counts
relation P1071
type Q838948
type Q15617994
action find_tuple_counts
relation P1071
type Q838948
type Q56061
value 1
[{'concept': 'Q838948'}, 'P1071', [{'concept': 'Q15617994'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?w ) WHERE { { ?j rdf:type ontology:Q838948 . ?z rdf:type ontology:Q15617994 . ?j property:P1071 ?z } UNION { ?j rdf:type ontology:Q838948 . ?z rdf:type ontology:Q56061 . ?j property:P1071 ?z } } GROUP BY ?j } . FILTER ( ?w >= 1 ) }
action atleast
action union
action find_tuple_counts
relation location of final assembly
type work of art
type designation for an administrative territorial entity
action find_tuple_counts
relation location of final assembly
type work of art
type administrative territorial entity
value 1
[{'concept': 'work of art'}, 'location of final assembly', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?w ) WHERE { { ?j rdf:type ontology:work_of_art . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:location_of_final_assembly ?z } UNION { ?j rdf:type ontology:work_of_art . ?z rdf:type ontology:administrative_territorial_entity . ?j property:location_of_final_assembly ?z } } GROUP BY ?j } . FILTER ( ?w >= 1 ) }
[]
designation for an administrative territorial entity administrative territorial entity work of art
Q15123181 Q17451496 Q23356
SYSTEM
Proserpina sarcophagus, Nymph with a Scorpion, Harbaville Triptych
Q18609768 Q6572993 Q18609790 Q18609791 Q18609855 Q20199990 Q3647650 Q20200034 Q17451496 Q9428681 Q23356 Q4785573 Q18609795 Q3555769 Q15123181 Q17347116 Q18609848 Q18609842 Q15297468 Q18609786 Q18609745 Q24178015 Q13105422 Q19776419 Q18609838
(c(Q838948),P1071,c(Q15617994)|c(Q56061))
action atleast
action union
action find_tuple_counts
relation P1071
type Q838948
type Q15617994
action find_tuple_counts
relation P1071
type Q838948
type Q56061
value 1
[ANSWERS] have atleast 1 administrative territories and administrative territories as their final assembly location
[{'concept': 'Q838948'}, 'P1071', [{'concept': 'Q15617994'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?w ) WHERE { { ?j rdf:type ontology:Q838948 . ?z rdf:type ontology:Q15617994 . ?j property:P1071 ?z } UNION { ?j rdf:type ontology:Q838948 . ?z rdf:type ontology:Q56061 . ?j property:P1071 ?z } } GROUP BY ?j } . FILTER ( ?w >= 1 ) }
cinerary urn lid Amphitrite, the wave and the sea birds cinerary urn sarcophagus sarcophagus lid Female head wearing the polos Bust of Cardinal Richelieu Sphinx Nymph with a Scorpion The Exaltation of the Flower Harbaville Triptych Archangel ivory cinerary group Vercingétorix Proserpina sarcophagus Le Génie de la sculpture dégrossissant le masque de Jupiter sarcophagus lid sarcophagus lid Statue of Tara cinerary urn lid cinerary urn lid The Intruders When the Music's Over My Stuff sarcophagus lid
Proserpina sarcophagus, Nymph with a Scorpion and Harbaville Triptych have atleast 1 administrative territories and administrative territories as their final assembly location
Proserpina sarcophagus Nymph with a Scorpion Harbaville Triptych
action atleast
action union
action find_tuple_counts
relation location of final assembly
type work of art
type designation for an administrative territorial entity
action find_tuple_counts
relation location of final assembly
type work of art
type administrative territorial entity
value 1
[{'concept': 'work of art'}, 'location of final assembly', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?w ) WHERE { { ?j rdf:type ontology:work_of_art . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:location_of_final_assembly ?z } UNION { ?j rdf:type ontology:work_of_art . ?z rdf:type ontology:administrative_territorial_entity . ?j property:location_of_final_assembly ?z } } GROUP BY ?j } . FILTER ( ?w >= 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P2079
Q2695280 Q838948
USER
Which technicss are used for the assembly of min number of works of art ?
(c(Q838948),P2079,Q170593)
action argmin
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
[{'concept': 'Q838948'}, 'P2079', 'Q170593']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:P2079 ?m . ?m rdf:type ontology:Q2695280 . ?x rdf:type ontology:Q838948 } GROUP BY ?m } } . { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?p ) WHERE { ?u property:P2079 ?b . ?b rdf:type ontology:Q2695280 . ?u rdf:type ontology:Q838948 } GROUP BY ?b } . FILTER ( ?p = ?w ) }
action argmin
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
[{'concept': 'work of art'}, 'fabrication method', 'collage']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:fabrication_method ?m . ?m rdf:type ontology:technics . ?x rdf:type ontology:work_of_art } GROUP BY ?m } } . { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?p ) WHERE { ?u property:fabrication_method ?b . ?b rdf:type ontology:technics . ?u rdf:type ontology:work_of_art } GROUP BY ?b } . FILTER ( ?p = ?w ) }
[]
technics work of art
Q173242 Q26265824 Q139106
SYSTEM
woodcut technique, chasing, engraving
Q11750728 Q9363879 Q173242 Q204867 Q192047 Q752633 Q26265824 Q139106 Q133036 Q2657271
(c(Q838948),P2079,Q170593)
action argmin
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
[ANSWERS] are used for the assembly of min number of works of art
[{'concept': 'Q838948'}, 'P2079', 'Q170593']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:P2079 ?m . ?m rdf:type ontology:Q2695280 . ?x rdf:type ontology:Q838948 } GROUP BY ?m } } . { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?p ) WHERE { ?u property:P2079 ?b . ?b rdf:type ontology:Q2695280 . ?u rdf:type ontology:Q838948 } GROUP BY ?b } . FILTER ( ?p = ?w ) }
Punching stamping woodcut technique zincography machining linocut technique chasing engraving lithography silvering
Woodcut technique, chasing and engraving are used for the assembly of min number of works of art
woodcut technique chasing engraving
action argmin
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
[{'concept': 'work of art'}, 'fabrication method', 'collage']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:fabrication_method ?m . ?m rdf:type ontology:technics . ?x rdf:type ontology:work_of_art } GROUP BY ?m } } . { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?p ) WHERE { ?u property:fabrication_method ?b . ?b rdf:type ontology:technics . ?u rdf:type ontology:work_of_art } GROUP BY ?b } . FILTER ( ?p = ?w ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q173242
P425
Q12737077
USER
Which occupation does that technics belong to ?
(c(Q12737077),P425,Q173242)
action filter_type
action find_reverse
entity Q173242
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q173242']
SELECT DISTINCT ?s WHERE { ?s property:P425 resource:Q173242 . ?s rdf:type ontology:Q12737077 }
woodcut technique
action filter_type
action find_reverse
entity woodcut technique
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'woodcut technique']
SELECT DISTINCT ?s WHERE { ?s property:field_of_this_occupation resource:woodcut_technique . ?s rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q139106
SYSTEM
Did you mean engraving ?
Q173242 Q26265824 Q139106
(c(Q12737077),P425,Q173242) (c(Q12737077),P425,Q26265824) (c(Q12737077),P425,Q139106)
[ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q173242'] [{'concept': 'Q12737077'}, 'P425', 'Q26265824'] [{'concept': 'Q12737077'}, 'P425', 'Q139106']
SELECT DISTINCT ?s WHERE { ?s property:P425 resource:Q173242 . ?s rdf:type ontology:Q12737077 }
woodcut technique chasing engraving
Did you mean engraving ?
engraving
[{'concept': 'occupation'}, 'field of this occupation', 'woodcut technique'] [{'concept': 'occupation'}, 'field of this occupation', 'chasing'] [{'concept': 'occupation'}, 'field of this occupation', 'engraving']
SELECT DISTINCT ?s WHERE { ?s property:field_of_this_occupation resource:woodcut_technique . ?s rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant woodcut technique. Could you tell me the answer for that?
(c(Q12737077),P425,Q173242)
Q173242
[{'concept': 'Q12737077'}, 'P425', 'Q173242']
[{'concept': 'occupation'}, 'field of this occupation', 'woodcut technique']
[]
Q1437754
SYSTEM
woodcutter
Q1437754
(c(Q12737077),P425,Q173242)
action filter_type
action find_reverse
entity Q173242
relation P425
type Q12737077
That technics belongs to [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q173242']
SELECT DISTINCT ?s WHERE { ?s property:P425 resource:Q173242 . ?s rdf:type ontology:Q12737077 }
woodcutter
That technics belongs to woodcutter
woodcutter
action filter_type
action find_reverse
entity woodcut technique
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'woodcut technique']
SELECT DISTINCT ?s WHERE { ?s property:field_of_this_occupation resource:woodcut_technique . ?s rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1437754 Q173242
P425
Q2695280
USER
Does woodcut technique have woodcutter as the associated field of occupation ?
(Q1437754,P425,Q173242)
action is_in
entity Q173242
action find
entity Q1437754
relation P425
['Q1437754', 'P425', 'Q173242']
ASK WHERE { resource:Q1437754 property:P425 resource:Q173242 }
woodcutter woodcut technique
action is_in
entity woodcut technique
action find
entity woodcutter
relation field of this occupation
['woodcutter', 'field of this occupation', 'woodcut technique']
ASK WHERE { resource:woodcutter property:field_of_this_occupation resource:woodcut_technique }
[]
technics
SYSTEM
YES
(Q1437754,P425,Q173242)
action is_in
entity Q173242
action find
entity Q1437754
relation P425
[ANSWER]
['Q1437754', 'P425', 'Q173242']
ASK WHERE { resource:Q1437754 property:P425 resource:Q173242 }
Yes
action is_in
entity woodcut technique
action find
entity woodcutter
relation field of this occupation
['woodcutter', 'field of this occupation', 'woodcut technique']
ASK WHERE { resource:woodcutter property:field_of_this_occupation resource:woodcut_technique }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q3907512
P361
Q838948 Q2342494 Q3305213
USER
Which works of art are more number of collectables and paintings a component of than Porto San Giorgio Polyptych ?
(c(Q2342494)|c(Q3305213),P361,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P361
type Q838948
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q3907512
relation P361
type Q2342494
type Q3305213
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?s WHERE { ?p rdf:type ?a . VALUES ( ?a ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:P361 resource:Q3907512 . { VALUES ( ?h ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?e rdf:type ?h } } } . FILTER ( ?f > ?b ) }
Porto San Giorgio Polyptych
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type collectable
action find_reverse_tuple_counts
relation part of
type work of art
type painting
action count
action filter_multi_types
action find_reverse
entity Porto San Giorgio Polyptych
relation part of
type collectable
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?s WHERE { ?p rdf:type ?a . VALUES ( ?a ) { ( ontology:collectable ) ( ontology:painting ) } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:part_of resource:Porto_San_Giorgio_Polyptych . { VALUES ( ?h ) { ( ontology:collectable ) ( ontology:painting ) } . ?e rdf:type ?h } } } . FILTER ( ?f > ?b ) }
[]
work of art collectable painting
Q1195466 Q3907478 Q1297233
SYSTEM
The Man on the Roof, Roverella Altarpiece, Ferdinand the Bull
Q22260775 Q1411766 Q1195466 Q3907478 Q1297233
(c(Q2342494)|c(Q3305213),P361,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P361
type Q838948
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q3907512
relation P361
type Q2342494
type Q3305213
[ANSWERS] are more number of collectables and paintings a component of than Porto San Giorgio Polyptych
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?s WHERE { ?p rdf:type ?a . VALUES ( ?a ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:P361 resource:Q3907512 . { VALUES ( ?h ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?e rdf:type ?h } } } . FILTER ( ?f > ?b ) }
Sonar Kella predella The Man on the Roof Roverella Altarpiece Ferdinand the Bull
The Man on the Roof, Roverella Altarpiece and Ferdinand the Bull are more number of collectables and paintings a component of than Porto San Giorgio Polyptych
The Man on the Roof Roverella Altarpiece Ferdinand the Bull
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type collectable
action find_reverse_tuple_counts
relation part of
type work of art
type painting
action count
action filter_multi_types
action find_reverse
entity Porto San Giorgio Polyptych
relation part of
type collectable
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?s WHERE { ?p rdf:type ?a . VALUES ( ?a ) { ( ontology:collectable ) ( ontology:painting ) } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:part_of resource:Porto_San_Giorgio_Polyptych . { VALUES ( ?h ) { ( ontology:collectable ) ( ontology:painting ) } . ?e rdf:type ?h } } } . FILTER ( ?f > ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q478748
P361
Q838948 Q2342494 Q3305213
USER
And how about The Holiday?
(c(Q2342494)|c(Q3305213),P361,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P361
type Q838948
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q478748
relation P361
type Q2342494
type Q3305213
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?r WHERE { VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?z rdf:type ?b } GROUP BY ?r } . FILTER ( ?u > ?a ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:P361 resource:Q478748 . { VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?l rdf:type ?c } } } }
The Holiday
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type collectable
action find_reverse_tuple_counts
relation part of
type work of art
type painting
action count
action filter_multi_types
action find_reverse
entity The Holiday
relation part of
type collectable
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?r WHERE { VALUES ( ?b ) { ( ontology:collectable ) ( ontology:painting ) } . ?z rdf:type ?b } GROUP BY ?r } . FILTER ( ?u > ?a ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:part_of resource:The_Holiday . { VALUES ( ?c ) { ( ontology:collectable ) ( ontology:painting ) } . ?l rdf:type ?c } } } }
[]
work of art collectable painting
Q1195466 Q3907478 Q1297233
SYSTEM
The Man on the Roof, Roverella Altarpiece, Ferdinand the Bull
Q22260775 Q1411766 Q1195466 Q3907478 Q1297233
(c(Q2342494)|c(Q3305213),P361,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P361
type Q838948
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q478748
relation P361
type Q2342494
type Q3305213
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?r WHERE { VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?z rdf:type ?b } GROUP BY ?r } . FILTER ( ?u > ?a ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:P361 resource:Q478748 . { VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?l rdf:type ?c } } } }
Sonar Kella predella The Man on the Roof Roverella Altarpiece Ferdinand the Bull
The Man on the Roof Roverella Altarpiece Ferdinand the Bull
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type collectable
action find_reverse_tuple_counts
relation part of
type work of art
type painting
action count
action filter_multi_types
action find_reverse
entity The Holiday
relation part of
type collectable
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?r WHERE { VALUES ( ?b ) { ( ontology:collectable ) ( ontology:painting ) } . ?z rdf:type ?b } GROUP BY ?r } . FILTER ( ?u > ?a ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:part_of resource:The_Holiday . { VALUES ( ?c ) { ( ontology:collectable ) ( ontology:painting ) } . ?l rdf:type ?c } } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1195466 Q3907478 Q1297233
P136
Q1792379
USER
What can be considered as category for The Man on the Roof, Roverella Altarpiece and Ferdinand the Bull ?
(Q1195466,P136,c(Q1792379)) (Q3907478,P136,c(Q1792379)) (Q1297233,P136,c(Q1792379))
action union
action filter_type
action find
entity Q1195466
relation P136
type Q1792379
action filter_type
action find
entity Q3907478
relation P136
type Q1792379
action filter_type
action find
entity Q1297233
relation P136
type Q1792379
['Q1195466', 'P136', {'concept': 'Q1792379'}] ['Q3907478', 'P136', {'concept': 'Q1792379'}] ['Q1297233', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?d WHERE { { resource:Q1195466 property:P136 ?d . ?d rdf:type ontology:Q1792379 } UNION { ?d rdf:type ontology:Q1792379 . resource:Q3907478 property:P136 ?d } }
The Man on the Roof Roverella Altarpiece Ferdinand the Bull
action union
action filter_type
action find
entity The Man on the Roof
relation genre
type art genre
action filter_type
action find
entity Roverella Altarpiece
relation genre
type art genre
action filter_type
action find
entity Ferdinand the Bull
relation genre
type art genre
['The Man on the Roof', 'genre', {'concept': 'art genre'}] ['Roverella Altarpiece', 'genre', {'concept': 'art genre'}] ['Ferdinand the Bull', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?d WHERE { { resource:The_Man_on_the_Roof property:genre ?d . ?d rdf:type ontology:art_genre } UNION { ?d rdf:type ontology:art_genre . resource:Roverella_Altarpiece property:genre ?d } }
[]
art genre
Q1257444 Q2414609 Q1257444
SYSTEM
film adaptation for 1st, 3rd, religious painting for 2nd
Q1257444 Q2414609 Q1257444
(Q1195466,P136,c(Q1792379)) (Q3907478,P136,c(Q1792379)) (Q1297233,P136,c(Q1792379))
action union
action filter_type
action find
entity Q1195466
relation P136
type Q1792379
action filter_type
action find
entity Q3907478
relation P136
type Q1792379
action filter_type
action find
entity Q1297233
relation P136
type Q1792379
[ANSWERS]
['Q1195466', 'P136', {'concept': 'Q1792379'}] ['Q3907478', 'P136', {'concept': 'Q1792379'}] ['Q1297233', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?d WHERE { { resource:Q1195466 property:P136 ?d . ?d rdf:type ontology:Q1792379 } UNION { ?d rdf:type ontology:Q1792379 . resource:Q3907478 property:P136 ?d } }
film adaptation religious painting film adaptation
Film adaptation, religious painting and film adaptation can be considered as category for The Man on the Roof, Roverella Altarpiece and Ferdinand the Bull
film adaptation religious painting film adaptation
action union
action filter_type
action find
entity The Man on the Roof
relation genre
type art genre
action filter_type
action find
entity Roverella Altarpiece
relation genre
type art genre
action filter_type
action find
entity Ferdinand the Bull
relation genre
type art genre
['The Man on the Roof', 'genre', {'concept': 'art genre'}] ['Roverella Altarpiece', 'genre', {'concept': 'art genre'}] ['Ferdinand the Bull', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?d WHERE { { resource:The_Man_on_the_Roof property:genre ?d . ?d rdf:type ontology:art_genre } UNION { ?d rdf:type ontology:art_genre . resource:Roverella_Altarpiece property:genre ?d } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2414609
P101
Q502895
USER
Which person works in the domain of that art genre ?
(c(Q502895),P101,Q2414609)
action filter_type
action find_reverse
entity Q2414609
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q2414609']
SELECT DISTINCT ?j WHERE { ?j property:P101 resource:Q2414609 . ?j rdf:type ontology:Q502895 }
religious painting
action filter_type
action find_reverse
entity religious painting
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'religious painting']
SELECT DISTINCT ?j WHERE { ?j property:field_of_work resource:religious_painting . ?j rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q2414609
SYSTEM
Did you mean religious painting ?
Q1257444 Q2414609 Q1257444
(c(Q502895),P101,Q1257444) (c(Q502895),P101,Q2414609) (c(Q502895),P101,Q1257444)
[ANSWER]
[{'concept': 'Q502895'}, 'P101', 'Q1257444'] [{'concept': 'Q502895'}, 'P101', 'Q2414609'] [{'concept': 'Q502895'}, 'P101', 'Q1257444']
SELECT DISTINCT ?j WHERE { ?j property:P101 resource:Q2414609 . ?j rdf:type ontology:Q502895 }
film adaptation religious painting film adaptation
Did you mean religious painting ?
religious painting
[{'concept': 'common name'}, 'field of work', 'film adaptation'] [{'concept': 'common name'}, 'field of work', 'religious painting'] [{'concept': 'common name'}, 'field of work', 'film adaptation']
SELECT DISTINCT ?j WHERE { ?j property:field_of_work resource:religious_painting . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P101,Q2414609)
[{'concept': 'Q502895'}, 'P101', 'Q2414609']
[{'concept': 'common name'}, 'field of work', 'religious painting']
[]
Q335617
SYSTEM
Onufri
Q335617
(c(Q502895),P101,Q2414609)
action filter_type
action find_reverse
entity Q2414609
relation P101
type Q502895
[ANSWER] works in the domain of that art genre
[{'concept': 'Q502895'}, 'P101', 'Q2414609']
SELECT DISTINCT ?j WHERE { ?j property:P101 resource:Q2414609 . ?j rdf:type ontology:Q502895 }
Onufri
Onufri works in the domain of that art genre
Onufri
action filter_type
action find_reverse
entity religious painting
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'religious painting']
SELECT DISTINCT ?j WHERE { ?j property:field_of_work resource:religious_painting . ?j rdf:type ontology:common_name }
[]