Simple Question (Direct)
Simple Question
Q481340
P102
Q7210356
USER
Which party is Jens Christian Hauge affiliated with ?
(Q481340,P102,c(Q7210356))
action filter_type
action find
entity Q481340
relation P102
type Q7210356
['Q481340', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q481340 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Jens Christian Hauge
action filter_type
action find
entity Jens Christian Hauge
relation member of political party
type political organization
['Jens Christian Hauge', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Jens_Christian_Hauge property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
political organization
Q190219
SYSTEM
Norwegian Labour Party
Q190219
(Q481340,P102,c(Q7210356))
action filter_type
action find
entity Q481340
relation P102
type Q7210356
Jens Christian Hauge is affiliated with [ANSWER]
['Q481340', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q481340 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Norwegian Labour Party
Jens Christian Hauge is affiliated with Norwegian Labour Party
Norwegian Labour Party
action filter_type
action find
entity Jens Christian Hauge
relation member of political party
type political organization
['Jens Christian Hauge', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Jens_Christian_Hauge property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q481340
P20
Q56061
USER
Where did that person die ?
(Q190219,P20,c(Q56061))
action filter_type
action find
entity Q481340
relation P20
type Q56061
['Q190219', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q481340 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Jens Christian Hauge
action filter_type
action find
entity Jens Christian Hauge
relation place of death
type administrative territorial entity
['Norwegian Labour Party', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Jens_Christian_Hauge property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q585
SYSTEM
Oslo
Q585
(Q190219,P20,c(Q56061))
action filter_type
action find
entity Q481340
relation P20
type Q56061
That person died in [ANSWER]
['Q190219', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q481340 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Oslo
That person died in Oslo
Oslo
action filter_type
action find
entity Jens Christian Hauge
relation place of death
type administrative territorial entity
['Norwegian Labour Party', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Jens_Christian_Hauge property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q190219
P462
Q1075
USER
Which color is Norwegian Labour Party associated with ?
(Q190219,P462,c(Q1075))
action filter_type
action find
entity Q190219
relation P462
type Q1075
['Q190219', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?p WHERE { resource:Q190219 property:P462 ?p . ?p rdf:type ontology:Q1075 }
Norwegian Labour Party
action filter_type
action find
entity Norwegian Labour Party
relation color
type color
['Norwegian Labour Party', 'color', {'concept': 'color'}]
SELECT DISTINCT ?p WHERE { resource:Norwegian_Labour_Party property:color ?p . ?p rdf:type ontology:color }
[]
color
Q3142
SYSTEM
red
Q3142
(Q190219,P462,c(Q1075))
action filter_type
action find
entity Q190219
relation P462
type Q1075
Norwegian Labour Party is associated with [ANSWER]
['Q190219', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?p WHERE { resource:Q190219 property:P462 ?p . ?p rdf:type ontology:Q1075 }
red
Norwegian Labour Party is associated with red
red
action filter_type
action find
entity Norwegian Labour Party
relation color
type color
['Norwegian Labour Party', 'color', {'concept': 'color'}]
SELECT DISTINCT ?p WHERE { resource:Norwegian_Labour_Party property:color ?p . ?p rdf:type ontology:color }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q906633 Q190219
P462
Q1075
USER
Or Poseidon?
OR((Q190219,P462,c(Q1075)), (Q906633,P462,c(Q1075)))
action filter_type
action union
action find
entity Q190219
relation P462
action find
entity Q906633
relation P462
type Q1075
{'OR': [['Q190219', 'P462', {'concept': 'Q1075'}], ['Q906633', 'P462', {'concept': 'Q1075'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q190219 property:P462 ?d } UNION { resource:Q906633 property:P462 ?d } } . ?d rdf:type ontology:Q1075 }
Poseidon Norwegian Labour Party
action filter_type
action union
action find
entity Norwegian Labour Party
relation color
action find
entity Poseidon
relation color
type color
{'OR': [['Norwegian Labour Party', 'color', {'concept': 'color'}], ['Poseidon', 'color', {'concept': 'color'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Norwegian_Labour_Party property:color ?d } UNION { resource:Poseidon property:color ?d } } . ?d rdf:type ontology:color }
[]
color
Q22006653 Q3142
SYSTEM
color, red
Q22006653 Q3142
OR((Q190219,P462,c(Q1075)), (Q906633,P462,c(Q1075)))
action filter_type
action union
action find
entity Q190219
relation P462
action find
entity Q906633
relation P462
type Q1075
[ANSWERS]
{'OR': [['Q190219', 'P462', {'concept': 'Q1075'}], ['Q906633', 'P462', {'concept': 'Q1075'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q190219 property:P462 ?d } UNION { resource:Q906633 property:P462 ?d } } . ?d rdf:type ontology:Q1075 }
color red
color red
action filter_type
action union
action find
entity Norwegian Labour Party
relation color
action find
entity Poseidon
relation color
type color
{'OR': [['Norwegian Labour Party', 'color', {'concept': 'color'}], ['Poseidon', 'color', {'concept': 'color'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Norwegian_Labour_Party property:color ?d } UNION { resource:Poseidon property:color ?d } } . ?d rdf:type ontology:color }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q19960620
P180
Q1075 Q340169
USER
How many medias express greater number of colors than Study of a girl. ?
(c(Q340169),P180,c(Q1075))
action count
action greater
action find_tuple_counts
relation P180
type Q340169
type Q1075
action count
action filter_type
action find
entity Q19960620
relation P180
type Q340169
[{'concept': 'Q340169'}, 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?h ) WHERE { ?l property:P180 ?w . ?l rdf:type ontology:Q340169 . ?w rdf:type ontology:Q1075 } GROUP BY ?l } . FILTER ( ?h > ?t ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Q19960620 property:P180 ?r . ?r rdf:type ontology:Q340169 } } }
Study of a girl.
action count
action greater
action find_tuple_counts
relation depicts
type media
type color
action count
action filter_type
action find
entity Study of a girl.
relation depicts
type media
[{'concept': 'media'}, 'depicts', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?h ) WHERE { ?l property:depicts ?w . ?l rdf:type ontology:media . ?w rdf:type ontology:color } GROUP BY ?l } . FILTER ( ?h > ?t ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Study_of_a_girl. property:depicts ?r . ?r rdf:type ontology:media } } }
[]
color media
SYSTEM
3
Q18686512 Q5397781 Q18684879
(c(Q340169),P180,c(Q1075))
action count
action greater
action find_tuple_counts
relation P180
type Q340169
type Q1075
action count
action filter_type
action find
entity Q19960620
relation P180
type Q340169
[ANSWER]
[{'concept': 'Q340169'}, 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?h ) WHERE { ?l property:P180 ?w . ?l rdf:type ontology:Q340169 . ?w rdf:type ontology:Q1075 } GROUP BY ?l } . FILTER ( ?h > ?t ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Q19960620 property:P180 ?r . ?r rdf:type ontology:Q340169 } } }
Head of Smiling Girl Ulysses and the Sirens Portrait of the Artist's Sister-in-Law, Adele Harms
3
action count
action greater
action find_tuple_counts
relation depicts
type media
type color
action count
action filter_type
action find
entity Study of a girl.
relation depicts
type media
[{'concept': 'media'}, 'depicts', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?h ) WHERE { ?l property:depicts ?w . ?l rdf:type ontology:media . ?w rdf:type ontology:color } GROUP BY ?l } . FILTER ( ?h > ?t ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Study_of_a_girl. property:depicts ?r . ?r rdf:type ontology:media } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q18689357
P180
Q1075 Q340169
USER
And what about Death on the Battlefield?
(c(Q340169),P180,c(Q1075))
action count
action greater
action find_tuple_counts
relation P180
type Q340169
type Q1075
action count
action filter_type
action find
entity Q18689357
relation P180
type Q340169
[{'concept': 'Q340169'}, 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?k ) WHERE { ?s property:P180 ?t . ?s rdf:type ontology:Q340169 . ?t rdf:type ontology:Q1075 } GROUP BY ?s } . FILTER ( ?k > ?h ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { resource:Q18689357 property:P180 ?f . ?f rdf:type ontology:Q340169 } } }
Death on the Battlefield
action count
action greater
action find_tuple_counts
relation depicts
type media
type color
action count
action filter_type
action find
entity Death on the Battlefield
relation depicts
type media
[{'concept': 'media'}, 'depicts', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?k ) WHERE { ?s property:depicts ?t . ?s rdf:type ontology:media . ?t rdf:type ontology:color } GROUP BY ?s } . FILTER ( ?k > ?h ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { resource:Death_on_the_Battlefield property:depicts ?f . ?f rdf:type ontology:media } } }
[]
color media
SYSTEM
3
Q18686512 Q5397781 Q18684879
(c(Q340169),P180,c(Q1075))
action count
action greater
action find_tuple_counts
relation P180
type Q340169
type Q1075
action count
action filter_type
action find
entity Q18689357
relation P180
type Q340169
[ANSWER]
[{'concept': 'Q340169'}, 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?k ) WHERE { ?s property:P180 ?t . ?s rdf:type ontology:Q340169 . ?t rdf:type ontology:Q1075 } GROUP BY ?s } . FILTER ( ?k > ?h ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { resource:Q18689357 property:P180 ?f . ?f rdf:type ontology:Q340169 } } }
Head of Smiling Girl Ulysses and the Sirens Portrait of the Artist's Sister-in-Law, Adele Harms
3
action count
action greater
action find_tuple_counts
relation depicts
type media
type color
action count
action filter_type
action find
entity Death on the Battlefield
relation depicts
type media
[{'concept': 'media'}, 'depicts', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?k ) WHERE { ?s property:depicts ?t . ?s rdf:type ontology:media . ?t rdf:type ontology:color } GROUP BY ?s } . FILTER ( ?k > ?h ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { resource:Death_on_the_Battlefield property:depicts ?f . ?f rdf:type ontology:media } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q1075 Q11060274 Q838948
USER
Which colors are expressed in max number of prints or works of art ?
(c(Q11060274)|c(Q838948),P180,c(Q1075))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q1075
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q1075
type Q838948
[[{'concept': 'Q11060274'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?s = ?a ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) ?q WHERE { { ?t property:P180 ?q . ?q rdf:type ontology:Q1075 . ?t rdf:type ontology:Q11060274 } UNION { ?t property:P180 ?q . ?q rdf:type ontology:Q1075 . ?t rdf:type ontology:Q838948 } } GROUP BY ?q } . { SELECT DISTINCT ( MAX ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?v WHERE { ?l rdf:type ?m . VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q11060274 ) } } GROUP BY ?v } } }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type color
type print
action find_reverse_tuple_counts
relation depicts
type color
type work of art
[[{'concept': 'print'}, {'concept': 'work of art'}], 'depicts', {'concept': 'color'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?s = ?a ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) ?q WHERE { { ?t property:depicts ?q . ?q rdf:type ontology:color . ?t rdf:type ontology:print } UNION { ?t property:depicts ?q . ?q rdf:type ontology:color . ?t rdf:type ontology:work_of_art } } GROUP BY ?q } . { SELECT DISTINCT ( MAX ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?v WHERE { ?l rdf:type ?m . VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:print ) } } GROUP BY ?v } } }
[]
color print work of art
Q202466
SYSTEM
blonde
Q202466
(c(Q11060274)|c(Q838948),P180,c(Q1075))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q1075
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q1075
type Q838948
[ANSWER] is expressed in max number of prints or works of art
[[{'concept': 'Q11060274'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?s = ?a ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) ?q WHERE { { ?t property:P180 ?q . ?q rdf:type ontology:Q1075 . ?t rdf:type ontology:Q11060274 } UNION { ?t property:P180 ?q . ?q rdf:type ontology:Q1075 . ?t rdf:type ontology:Q838948 } } GROUP BY ?q } . { SELECT DISTINCT ( MAX ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?v WHERE { ?l rdf:type ?m . VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q11060274 ) } } GROUP BY ?v } } }
blonde
Blonde is expressed in max number of prints or works of art
blonde
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type color
type print
action find_reverse_tuple_counts
relation depicts
type color
type work of art
[[{'concept': 'print'}, {'concept': 'work of art'}], 'depicts', {'concept': 'color'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?s = ?a ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) ?q WHERE { { ?t property:depicts ?q . ?q rdf:type ontology:color . ?t rdf:type ontology:print } UNION { ?t property:depicts ?q . ?q rdf:type ontology:color . ?t rdf:type ontology:work_of_art } } GROUP BY ?q } . { SELECT DISTINCT ( MAX ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?v WHERE { ?l rdf:type ?m . VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:print ) } } GROUP BY ?v } } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q202466 Q23688157
P180
Q3305213
USER
Does The Creation of Eve: 'And She shall be called Woman' expresses that color ?
(Q23688157,P180,Q202466)
action is_in
entity Q23688157
action find
entity Q202466
relation P180
['Q23688157', 'P180', 'Q202466']
ASK WHERE { resource:Q202466 property:P180 resource:Q23688157 }
blonde The Creation of Eve: 'And She shall be called Woman'
action is_in
entity The Creation of Eve: 'And She shall be called Woman'
action find
entity blonde
relation depicts
["The Creation of Eve: 'And She shall be called Woman'", 'depicts', 'blonde']
ASK WHERE { resource:blonde property:depicts resource:The_Creation_of_Eve:_'And_She_shall_be_called_Woman' }
[]
painting
SYSTEM
NO
(Q23688157,P180,Q202466)
action is_in
entity Q23688157
action find
entity Q202466
relation P180
[ANSWER]
['Q23688157', 'P180', 'Q202466']
ASK WHERE { resource:Q202466 property:P180 resource:Q23688157 }
No
action is_in
entity The Creation of Eve: 'And She shall be called Woman'
action find
entity blonde
relation depicts
["The Creation of Eve: 'And She shall be called Woman'", 'depicts', 'blonde']
ASK WHERE { resource:blonde property:depicts resource:The_Creation_of_Eve:_'And_She_shall_be_called_Woman' }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q481340 Q20 Q1325405
P27
Q15617994
USER
Is Jens Christian Hauge a citizen of Norway and Steinfischbach ?
(Q481340,P27,Q20) (Q481340,P27,Q1325405)
action is_in
entity Q481340
action intersection
action find_reverse
entity Q20
relation P27
action find_reverse
entity Q1325405
relation P27
['Q481340', 'P27', 'Q20'] ['Q481340', 'P27', 'Q1325405']
ASK WHERE { resource:Q481340 property:P27 resource:Q20 . resource:Q481340 property:P27 resource:Q1325405 }
Jens Christian Hauge Norway Steinfischbach
action is_in
entity Jens Christian Hauge
action intersection
action find_reverse
entity Norway
relation country of citizenship
action find_reverse
entity Steinfischbach
relation country of citizenship
['Jens Christian Hauge', 'country of citizenship', 'Norway'] ['Jens Christian Hauge', 'country of citizenship', 'Steinfischbach']
ASK WHERE { resource:Jens_Christian_Hauge property:country_of_citizenship resource:Norway . resource:Jens_Christian_Hauge property:country_of_citizenship resource:Steinfischbach }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q481340,P27,Q20) (Q481340,P27,Q1325405)
action is_in
entity Q481340
action intersection
action find_reverse
entity Q20
relation P27
action find_reverse
entity Q1325405
relation P27
[ANSWER]
['Q481340', 'P27', 'Q20'] ['Q481340', 'P27', 'Q1325405']
ASK WHERE { resource:Q481340 property:P27 resource:Q20 . resource:Q481340 property:P27 resource:Q1325405 }
YES and NO respectively
action is_in
entity Jens Christian Hauge
action intersection
action find_reverse
entity Norway
relation country of citizenship
action find_reverse
entity Steinfischbach
relation country of citizenship
['Jens Christian Hauge', 'country of citizenship', 'Norway'] ['Jens Christian Hauge', 'country of citizenship', 'Steinfischbach']
ASK WHERE { resource:Jens_Christian_Hauge property:country_of_citizenship resource:Norway . resource:Jens_Christian_Hauge property:country_of_citizenship resource:Steinfischbach }
[]