Simple Question (Direct)
Simple Question
Q1969508
P57
Q502895
USER
Which person directed Belorussian station ?
(Q1969508,P57,c(Q502895))
action filter_type
action find
entity Q1969508
relation P57
type Q502895
['Q1969508', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q1969508 property:P57 ?p . ?p rdf:type ontology:Q502895 }
Belorussian station
action filter_type
action find
entity Belorussian station
relation director
type common name
['Belorussian station', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Belorussian_station property:director ?p . ?p rdf:type ontology:common_name }
[]
common name
Q4424586
SYSTEM
Andrei Smirnov
Q4424586
(Q1969508,P57,c(Q502895))
action filter_type
action find
entity Q1969508
relation P57
type Q502895
[ANSWER] directed Belorussian station
['Q1969508', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q1969508 property:P57 ?p . ?p rdf:type ontology:Q502895 }
Andrei Smirnov
Andrei Smirnov directed Belorussian station
Andrei Smirnov
action filter_type
action find
entity Belorussian station
relation director
type common name
['Belorussian station', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Belorussian_station property:director ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1969508
P86
Q502895
USER
Which person composed that work of art ?
(Q4424586,P86,c(Q502895))
action filter_type
action find
entity Q1969508
relation P86
type Q502895
['Q4424586', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q1969508 property:P86 ?l . ?l rdf:type ontology:Q502895 }
Belorussian station
action filter_type
action find
entity Belorussian station
relation composer
type common name
['Andrei Smirnov', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Belorussian_station property:composer ?l . ?l rdf:type ontology:common_name }
[]
common name
Q158078
SYSTEM
Alfred Schnittke
Q158078
(Q4424586,P86,c(Q502895))
action filter_type
action find
entity Q1969508
relation P86
type Q502895
[ANSWER] composed that work of art
['Q4424586', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q1969508 property:P86 ?l . ?l rdf:type ontology:Q502895 }
Alfred Schnittke
Alfred Schnittke composed that work of art
Alfred Schnittke
action filter_type
action find
entity Belorussian station
relation composer
type common name
['Andrei Smirnov', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Belorussian_station property:composer ?l . ?l rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q158078 Q6772941
P86
Q838948
USER
Does Married and in Love have that person as the composer ?
(Q6772941,P86,Q158078)
action is_in
entity Q6772941
action find
entity Q158078
relation P86
['Q6772941', 'P86', 'Q158078']
ASK WHERE { resource:Q158078 property:P86 resource:Q6772941 }
Alfred Schnittke Married and in Love
action is_in
entity Married and in Love
action find
entity Alfred Schnittke
relation composer
['Married and in Love', 'composer', 'Alfred Schnittke']
ASK WHERE { resource:Alfred_Schnittke property:composer resource:Married_and_in_Love }
[]
work of art
SYSTEM
NO
(Q6772941,P86,Q158078)
action is_in
entity Q6772941
action find
entity Q158078
relation P86
[ANSWER]
['Q6772941', 'P86', 'Q158078']
ASK WHERE { resource:Q158078 property:P86 resource:Q6772941 }
No
action is_in
entity Married and in Love
action find
entity Alfred Schnittke
relation composer
['Married and in Love', 'composer', 'Alfred Schnittke']
ASK WHERE { resource:Alfred_Schnittke property:composer resource:Married_and_in_Love }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q645928 Q158078
P136 P86
Q838948
USER
Which works of art have Alfred Schnittke as the melodist and have biographical film as genre ?
AND((c(Q838948),P86,Q158078), (c(Q838948),P136,Q645928))
action filter_type
action intersection
action find_reverse
entity Q158078
relation P86
action find_reverse
entity Q645928
relation P136
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P86', 'Q158078'], [{'concept': 'Q838948'}, 'P136', 'Q645928']]}
SELECT DISTINCT ?y WHERE { ?y property:P136 resource:Q645928 . ?y property:P86 resource:Q158078 . ?y rdf:type ontology:Q838948 }
biographical film Alfred Schnittke
action filter_type
action intersection
action find_reverse
entity Alfred Schnittke
relation composer
action find_reverse
entity biographical film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'composer', 'Alfred Schnittke'], [{'concept': 'work of art'}, 'genre', 'biographical film']]}
SELECT DISTINCT ?y WHERE { ?y property:genre resource:biographical_film . ?y property:composer resource:Alfred_Schnittke . ?y rdf:type ontology:work_of_art }
[]
work of art
Q395279
SYSTEM
Agony
Q395279
AND((c(Q838948),P86,Q158078), (c(Q838948),P136,Q645928))
action filter_type
action intersection
action find_reverse
entity Q158078
relation P86
action find_reverse
entity Q645928
relation P136
type Q838948
[ANSWER] have Alfred Schnittke as the melodist and have biographical film as genre
{'AND': [[{'concept': 'Q838948'}, 'P86', 'Q158078'], [{'concept': 'Q838948'}, 'P136', 'Q645928']]}
SELECT DISTINCT ?y WHERE { ?y property:P136 resource:Q645928 . ?y property:P86 resource:Q158078 . ?y rdf:type ontology:Q838948 }
Agony
Agony have Alfred Schnittke as the melodist and have biographical film as genre
Agony
action filter_type
action intersection
action find_reverse
entity Alfred Schnittke
relation composer
action find_reverse
entity biographical film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'composer', 'Alfred Schnittke'], [{'concept': 'work of art'}, 'genre', 'biographical film']]}
SELECT DISTINCT ?y WHERE { ?y property:genre resource:biographical_film . ?y property:composer resource:Alfred_Schnittke . ?y rdf:type ontology:work_of_art }
[]
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 ?w WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?k ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?n ) WHERE { ?j property:P2079 ?b . ?b rdf:type ontology:Q2695280 . ?j rdf:type ontology:Q838948 } GROUP BY ?b } } . { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?r ) WHERE { ?w rdf:type ontology:Q2695280 . ?p rdf:type ontology:Q838948 . ?p property:P2079 ?w } GROUP BY ?w } . FILTER ( ?r = ?k ) }
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 ?w WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?k ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?n ) WHERE { ?j property:fabrication_method ?b . ?b rdf:type ontology:technics . ?j rdf:type ontology:work_of_art } GROUP BY ?b } } . { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?r ) WHERE { ?w rdf:type ontology:technics . ?p rdf:type ontology:work_of_art . ?p property:fabrication_method ?w } GROUP BY ?w } . FILTER ( ?r = ?k ) }
[]
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 ?w WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?k ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?n ) WHERE { ?j property:P2079 ?b . ?b rdf:type ontology:Q2695280 . ?j rdf:type ontology:Q838948 } GROUP BY ?b } } . { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?r ) WHERE { ?w rdf:type ontology:Q2695280 . ?p rdf:type ontology:Q838948 . ?p property:P2079 ?w } GROUP BY ?w } . FILTER ( ?r = ?k ) }
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 ?w WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?k ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?n ) WHERE { ?j property:fabrication_method ?b . ?b rdf:type ontology:technics . ?j rdf:type ontology:work_of_art } GROUP BY ?b } } . { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?r ) WHERE { ?w rdf:type ontology:technics . ?p rdf:type ontology:work_of_art . ?p property:fabrication_method ?w } GROUP BY ?w } . FILTER ( ?r = ?k ) }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q18761202
Q838948
USER
And what about watercolor painting?
(Q18761202,P2079,c(Q838948))
action count
action filter_type
action find
entity Q18761202
relation P2079
type Q838948
['Q18761202', 'P2079', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:Q18761202 property:P2079 ?l . ?l rdf:type ontology:Q838948 }
watercolor painting
action count
action filter_type
action find
entity watercolor painting
relation fabrication method
type work of art
['watercolor painting', 'fabrication method', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:watercolor_painting property:fabrication_method ?l . ?l rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
1
(Q18761202,P2079,c(Q838948))
action count
action filter_type
action find
entity Q18761202
relation P2079
type Q838948
[ANSWER]
['Q18761202', 'P2079', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:Q18761202 property:P2079 ?l . ?l rdf:type ontology:Q838948 }
1
action count
action filter_type
action find
entity watercolor painting
relation fabrication method
type work of art
['watercolor painting', 'fabrication method', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:watercolor_painting property:fabrication_method ?l . ?l rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3520080 Q1969508
P161 P344
Q502895
USER
Which people are the director of photography for Belorussian station or starred in The Boy from Oklahoma ?
OR((Q1969508,P344,c(Q502895)), (Q3520080,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1969508
relation P344
action find
entity Q3520080
relation P161
type Q502895
{'OR': [['Q1969508', 'P344', {'concept': 'Q502895'}], ['Q3520080', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . { { resource:Q1969508 property:P344 ?a } UNION { resource:Q3520080 property:P161 ?a } } }
The Boy from Oklahoma Belorussian station
action filter_type
action union
action find
entity Belorussian station
relation director of photography
action find
entity The Boy from Oklahoma
relation cast member
type common name
{'OR': [['Belorussian station', 'director of photography', {'concept': 'common name'}], ['The Boy from Oklahoma', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . { { resource:Belorussian_station property:director_of_photography ?a } UNION { resource:The_Boy_from_Oklahoma property:cast_member ?a } } }
[]
common name
Q3661794 Q2978795 Q2852826 Q457840 Q1277039 Q3808556 Q318261 Q4256037 Q6687485 Q7860073
SYSTEM
Some of them are James Griffith, Clem Bevans, Anthony Caruso, Will Rogers, Slim Pickens, Joan Weldon, Lon Chaney, Jr., Pavel Lebeshev, Louis Jean Heydt, Tyler MacDuff
Q4256037 Q2852826 Q6687485 Q2978795 Q3661794 Q598344 Q1704485 Q3808556 Q457840 Q2541984 Q1349284 Q259453 Q318261 Q7860073 Q1277039
OR((Q1969508,P344,c(Q502895)), (Q3520080,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1969508
relation P344
action find
entity Q3520080
relation P161
type Q502895
[ANSWERS] are the director of photography for Belorussian station or starred in The Boy from Oklahoma
{'OR': [['Q1969508', 'P344', {'concept': 'Q502895'}], ['Q3520080', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . { { resource:Q1969508 property:P344 ?a } UNION { resource:Q3520080 property:P161 ?a } } }
Pavel Lebeshev Anthony Caruso Louis Jean Heydt Clem Bevans James Griffith Merv Griffin Wallace Ford Joan Weldon Will Rogers Will Rogers Sheb Wooley Nancy Olson Lon Chaney, Jr. Tyler MacDuff Slim Pickens
James Griffith, Clem Bevans, Anthony Caruso, Will Rogers, Slim Pickens, Joan Weldon, Lon Chaney, Jr., Pavel Lebeshev, Louis Jean Heydt and Tyler MacDuff are the director of photography for Belorussian station or starred in The Boy from Oklahoma
James Griffith Clem Bevans Anthony Caruso Will Rogers Slim Pickens Joan Weldon Lon Chaney, Jr. Pavel Lebeshev Louis Jean Heydt Tyler MacDuff
action filter_type
action union
action find
entity Belorussian station
relation director of photography
action find
entity The Boy from Oklahoma
relation cast member
type common name
{'OR': [['Belorussian station', 'director of photography', {'concept': 'common name'}], ['The Boy from Oklahoma', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . { { resource:Belorussian_station property:director_of_photography ?a } UNION { resource:The_Boy_from_Oklahoma property:cast_member ?a } } }
[]