Simple Question (Direct)
Simple Question
Q318393
P101
Q1792379
USER
Which field does Vasily Polenov belong to ?
(Q318393,P101,c(Q1792379))
action filter_type
action find
entity Q318393
relation P101
type Q1792379
['Q318393', 'P101', {'concept': 'Q1792379'}]
SELECT DISTINCT ?c WHERE { resource:Q318393 property:P101 ?c . ?c rdf:type ontology:Q1792379 }
Vasily Polenov
action filter_type
action find
entity Vasily Polenov
relation field of work
type art genre
['Vasily Polenov', 'field of work', {'concept': 'art genre'}]
SELECT DISTINCT ?c WHERE { resource:Vasily_Polenov property:field_of_work ?c . ?c rdf:type ontology:art_genre }
[]
art genre
Q191163
SYSTEM
landscape art
Q191163
(Q318393,P101,c(Q1792379))
action filter_type
action find
entity Q318393
relation P101
type Q1792379
Vasily Polenov belongs to [ANSWER]
['Q318393', 'P101', {'concept': 'Q1792379'}]
SELECT DISTINCT ?c WHERE { resource:Q318393 property:P101 ?c . ?c rdf:type ontology:Q1792379 }
landscape art
Vasily Polenov belongs to landscape art
landscape art
action filter_type
action find
entity Vasily Polenov
relation field of work
type art genre
['Vasily Polenov', 'field of work', {'concept': 'art genre'}]
SELECT DISTINCT ?c WHERE { resource:Vasily_Polenov property:field_of_work ?c . ?c rdf:type ontology:art_genre }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q191163
P361
Q58778
USER
Which system is that art genre a part of ?
(Q191163,P361,c(Q58778))
action filter_type
action find
entity Q191163
relation P361
type Q58778
['Q191163', 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ?b WHERE { resource:Q191163 property:P361 ?b . ?b rdf:type ontology:Q58778 }
landscape art
action filter_type
action find
entity landscape art
relation part of
type system
['landscape art', 'part of', {'concept': 'system'}]
SELECT DISTINCT ?b WHERE { resource:landscape_art property:part_of ?b . ?b rdf:type ontology:system }
[]
system
Q2595720
SYSTEM
hierarchy of genres
Q2595720
(Q191163,P361,c(Q58778))
action filter_type
action find
entity Q191163
relation P361
type Q58778
The [ANSWER] is that art genre a part of
['Q191163', 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ?b WHERE { resource:Q191163 property:P361 ?b . ?b rdf:type ontology:Q58778 }
hierarchy of genres
The hierarchy of genres is that art genre a part of
hierarchy of genres
action filter_type
action find
entity landscape art
relation part of
type system
['landscape art', 'part of', {'concept': 'system'}]
SELECT DISTINCT ?b WHERE { resource:landscape_art property:part_of ?b . ?b rdf:type ontology:system }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q191163
P180
Q2221906
USER
What is depcited in landscape art ?
(Q191163,P180,c(Q2221906))
action filter_type
action find
entity Q191163
relation P180
type Q2221906
['Q191163', 'P180', {'concept': 'Q2221906'}]
SELECT DISTINCT ?s WHERE { resource:Q191163 property:P180 ?s . ?s rdf:type ontology:Q2221906 }
landscape art
action filter_type
action find
entity landscape art
relation depicts
type geographic location
['landscape art', 'depicts', {'concept': 'geographic location'}]
SELECT DISTINCT ?s WHERE { resource:landscape_art property:depicts ?s . ?s rdf:type ontology:geographic_location }
[]
geographic location
Q107425
SYSTEM
landscape
Q107425
(Q191163,P180,c(Q2221906))
action filter_type
action find
entity Q191163
relation P180
type Q2221906
Is [ANSWER] is depcited in [ANSWER] art
['Q191163', 'P180', {'concept': 'Q2221906'}]
SELECT DISTINCT ?s WHERE { resource:Q191163 property:P180 ?s . ?s rdf:type ontology:Q2221906 }
landscape
Is landscape is depcited in landscape art
landscape
action filter_type
action find
entity landscape art
relation depicts
type geographic location
['landscape art', 'depicts', {'concept': 'geographic location'}]
SELECT DISTINCT ?s WHERE { resource:landscape_art property:depicts ?s . ?s rdf:type ontology:geographic_location }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q318393
P7
Q502895
USER
How many people are Vasily Polenov a brother of ?
(c(Q502895),P7,Q318393)
action count
action filter_type
action find_reverse
entity Q318393
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q318393']
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i property:P7 resource:Q318393 . ?i rdf:type ontology:Q502895 }
Vasily Polenov
action count
action filter_type
action find_reverse
entity Vasily Polenov
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Vasily Polenov']
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i property:brother resource:Vasily_Polenov . ?i rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q462815
(c(Q502895),P7,Q318393)
action count
action filter_type
action find_reverse
entity Q318393
relation P7
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q318393']
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i property:P7 resource:Q318393 . ?i rdf:type ontology:Q502895 }
Yelena Polenova
1
action count
action filter_type
action find_reverse
entity Vasily Polenov
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Vasily Polenov']
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i property:brother resource:Vasily_Polenov . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20429135
P195
Q33506
USER
Which museum includes Portrait of a man in it ?
(Q20429135,P195,c(Q33506))
action filter_type
action find
entity Q20429135
relation P195
type Q33506
['Q20429135', 'P195', {'concept': 'Q33506'}]
SELECT DISTINCT ?n WHERE { resource:Q20429135 property:P195 ?n . ?n rdf:type ontology:Q33506 }
Portrait of a man
action filter_type
action find
entity Portrait of a man
relation collection
type museum
['Portrait of a man', 'collection', {'concept': 'museum'}]
SELECT DISTINCT ?n WHERE { resource:Portrait_of_a_man property:collection ?n . ?n rdf:type ontology:museum }
[]
museum
Q705551
SYSTEM
Art Gallery of New South Wales
Q705551
(Q20429135,P195,c(Q33506))
action filter_type
action find
entity Q20429135
relation P195
type Q33506
[ANSWER] includes Portrait of a man in it
['Q20429135', 'P195', {'concept': 'Q33506'}]
SELECT DISTINCT ?n WHERE { resource:Q20429135 property:P195 ?n . ?n rdf:type ontology:Q33506 }
Art Gallery of New South Wales
Art Gallery of New South Wales includes Portrait of a man in it
Art Gallery of New South Wales
action filter_type
action find
entity Portrait of a man
relation collection
type museum
['Portrait of a man', 'collection', {'concept': 'museum'}]
SELECT DISTINCT ?n WHERE { resource:Portrait_of_a_man property:collection ?n . ?n rdf:type ontology:museum }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q20442528 Q20429135
P276 P195
Q33506
USER
Which museums are Portrait of a man safeguarded in and are the place where Sea of clouds on Mount Huang are located ?
AND((Q20429135,P195,c(Q33506)), (Q20442528,P276,c(Q33506)))
action filter_type
action intersection
action find
entity Q20429135
relation P195
action find
entity Q20442528
relation P276
type Q33506
{'AND': [['Q20429135', 'P195', {'concept': 'Q33506'}], ['Q20442528', 'P276', {'concept': 'Q33506'}]]}
SELECT DISTINCT ?g WHERE { resource:Q20429135 property:P195 ?g . resource:Q20442528 property:P276 ?g . ?g rdf:type ontology:Q33506 }
Sea of clouds on Mount Huang Portrait of a man
action filter_type
action intersection
action find
entity Portrait of a man
relation collection
action find
entity Sea of clouds on Mount Huang
relation location
type museum
{'AND': [['Portrait of a man', 'collection', {'concept': 'museum'}], ['Sea of clouds on Mount Huang', 'location', {'concept': 'museum'}]]}
SELECT DISTINCT ?g WHERE { resource:Portrait_of_a_man property:collection ?g . resource:Sea_of_clouds_on_Mount_Huang property:location ?g . ?g rdf:type ontology:museum }
[]
museum
Q705551
SYSTEM
Art Gallery of New South Wales
Q705551
AND((Q20429135,P195,c(Q33506)), (Q20442528,P276,c(Q33506)))
action filter_type
action intersection
action find
entity Q20429135
relation P195
action find
entity Q20442528
relation P276
type Q33506
Portrait of a man are safeguarded in the [ANSWER] and are the place where Sea of clouds on Mount Huang are located
{'AND': [['Q20429135', 'P195', {'concept': 'Q33506'}], ['Q20442528', 'P276', {'concept': 'Q33506'}]]}
SELECT DISTINCT ?g WHERE { resource:Q20429135 property:P195 ?g . resource:Q20442528 property:P276 ?g . ?g rdf:type ontology:Q33506 }
Art Gallery of New South Wales
Portrait of a man are safeguarded in the Art Gallery of New South Wales and are the place where Sea of clouds on Mount Huang are located
Art Gallery of New South Wales
action filter_type
action intersection
action find
entity Portrait of a man
relation collection
action find
entity Sea of clouds on Mount Huang
relation location
type museum
{'AND': [['Portrait of a man', 'collection', {'concept': 'museum'}], ['Sea of clouds on Mount Huang', 'location', {'concept': 'museum'}]]}
SELECT DISTINCT ?g WHERE { resource:Portrait_of_a_man property:collection ?g . resource:Sea_of_clouds_on_Mount_Huang property:location ?g . ?g rdf:type ontology:museum }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q705551 Q2012050
P17
Q1048835
USER
Is Art Gallery of New South Wales present in Donetsk Oblast ?
(Q705551,P17,Q2012050)
action is_in
entity Q2012050
action find
entity Q705551
relation P17
['Q705551', 'P17', 'Q2012050']
ASK WHERE { resource:Q705551 property:P17 resource:Q2012050 }
Art Gallery of New South Wales Donetsk Oblast
action is_in
entity Donetsk Oblast
action find
entity Art Gallery of New South Wales
relation country
['Art Gallery of New South Wales', 'country', 'Donetsk Oblast']
ASK WHERE { resource:Art_Gallery_of_New_South_Wales property:country resource:Donetsk_Oblast }
[]
political territorial entity
SYSTEM
NO
(Q705551,P17,Q2012050)
action is_in
entity Q2012050
action find
entity Q705551
relation P17
[ANSWER]
['Q705551', 'P17', 'Q2012050']
ASK WHERE { resource:Q705551 property:P17 resource:Q2012050 }
No
action is_in
entity Donetsk Oblast
action find
entity Art Gallery of New South Wales
relation country
['Art Gallery of New South Wales', 'country', 'Donetsk Oblast']
ASK WHERE { resource:Art_Gallery_of_New_South_Wales property:country resource:Donetsk_Oblast }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q22669601 Q705551
P17
Q1048835
USER
Which political territories do Art Gallery of New South Wales or Gabonese legislative election belong to ?
OR((Q705551,P17,c(Q1048835)), (Q22669601,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q705551
relation P17
action find
entity Q22669601
relation P17
type Q1048835
{'OR': [['Q705551', 'P17', {'concept': 'Q1048835'}], ['Q22669601', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?s ) { ( resource:Q705551 ) ( resource:Q22669601 ) } . ?s property:P17 ?k } . ?k rdf:type ontology:Q1048835 }
Gabonese legislative election Art Gallery of New South Wales
action filter_type
action union
action find
entity Art Gallery of New South Wales
relation country
action find
entity Gabonese legislative election
relation country
type political territorial entity
{'OR': [['Art Gallery of New South Wales', 'country', {'concept': 'political territorial entity'}], ['Gabonese legislative election', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?s ) { ( resource:Art_Gallery_of_New_South_Wales ) ( resource:Gabonese_legislative_election ) } . ?s property:country ?k } . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q1000
SYSTEM
Australia, Gabon
Q408 Q1000
OR((Q705551,P17,c(Q1048835)), (Q22669601,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q705551
relation P17
action find
entity Q22669601
relation P17
type Q1048835
[ANSWERS] Art Gallery of New South Wales or Gabonese legislative election belong to
{'OR': [['Q705551', 'P17', {'concept': 'Q1048835'}], ['Q22669601', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?s ) { ( resource:Q705551 ) ( resource:Q22669601 ) } . ?s property:P17 ?k } . ?k rdf:type ontology:Q1048835 }
Australia Gabon
Australia and Gabon Art Gallery of New South Wales or Gabonese legislative election belong to
Australia Gabon
action filter_type
action union
action find
entity Art Gallery of New South Wales
relation country
action find
entity Gabonese legislative election
relation country
type political territorial entity
{'OR': [['Art Gallery of New South Wales', 'country', {'concept': 'political territorial entity'}], ['Gabonese legislative election', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?s ) { ( resource:Art_Gallery_of_New_South_Wales ) ( resource:Gabonese_legislative_election ) } . ?s property:country ?k } . ?k rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P85
Q7725634 Q484692 Q1048835
USER
Which political territories have min number of literary works or hymns as their national anthem ?
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action argmin
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?k ) WHERE { { ?s rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q484692 . ?s property:P85 ?x } UNION { ?s property:P85 ?x . ?s rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q7725634 } } GROUP BY ?s } . FILTER ( ?k = ?u ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?u ) { SELECT DISTINCT ?v ( COUNT ( ?q ) AS ?i ) WHERE { ?q rdf:type ?d . VALUES ( ?d ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } GROUP BY ?v } } }
action argmin
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?k ) WHERE { { ?s rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:hymn . ?s property:anthem ?x } UNION { ?s property:anthem ?x . ?s rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:literary_work } } GROUP BY ?s } . FILTER ( ?k = ?u ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?u ) { SELECT DISTINCT ?v ( COUNT ( ?q ) AS ?i ) WHERE { ?q rdf:type ?d . VALUES ( ?d ) { ( ontology:literary_work ) ( ontology:hymn ) } } GROUP BY ?v } } }
[]
literary work hymn political territorial entity
Q1785790
SYSTEM
Selbach, Rio Grande do Sul
Q1785790
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action argmin
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
[ANSWER] have min number of literary works or hymns as their national anthem
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?k ) WHERE { { ?s rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q484692 . ?s property:P85 ?x } UNION { ?s property:P85 ?x . ?s rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q7725634 } } GROUP BY ?s } . FILTER ( ?k = ?u ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?u ) { SELECT DISTINCT ?v ( COUNT ( ?q ) AS ?i ) WHERE { ?q rdf:type ?d . VALUES ( ?d ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } GROUP BY ?v } } }
Selbach, Rio Grande do Sul
Selbach, Rio Grande do Sul have min number of literary works or hymns as their national anthem
Selbach, Rio Grande do Sul
action argmin
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?k ) WHERE { { ?s rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:hymn . ?s property:anthem ?x } UNION { ?s property:anthem ?x . ?s rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:literary_work } } GROUP BY ?s } . FILTER ( ?k = ?u ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?u ) { SELECT DISTINCT ?v ( COUNT ( ?q ) AS ?i ) WHERE { ?q rdf:type ?d . VALUES ( ?d ) { ( ontology:literary_work ) ( ontology:hymn ) } } GROUP BY ?v } } }
[]