Simple Question (Direct)
Simple Question
Q7559969
P39
Q12737077
USER
Which occupation was a position held by Somerville Hastings ?
(Q7559969,P39,c(Q12737077))
action filter_type
action find
entity Q7559969
relation P39
type Q12737077
['Q7559969', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q7559969 property:P39 ?v }
Somerville Hastings
action filter_type
action find
entity Somerville Hastings
relation position held
type occupation
['Somerville Hastings', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Somerville_Hastings property:position_held ?v }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q7559969,P39,c(Q12737077))
action filter_type
action find
entity Q7559969
relation P39
type Q12737077
The [ANSWER] was a position held by Somerville Hastings
['Q7559969', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q7559969 property:P39 ?v }
Member of Parliament in the United Kingdom
The Member of Parliament in the United Kingdom was a position held by Somerville Hastings
Member of Parliament in the United Kingdom
action filter_type
action find
entity Somerville Hastings
relation position held
type occupation
['Somerville Hastings', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Somerville_Hastings property:position_held ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7559969
P607
Q198
USER
Which battle did Somerville Hastings take part in ?
(Q7559969,P607,c(Q198))
action filter_type
action find
entity Q7559969
relation P607
type Q198
['Q7559969', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?r WHERE { resource:Q7559969 property:P607 ?r . ?r rdf:type ontology:Q198 }
Somerville Hastings
action filter_type
action find
entity Somerville Hastings
relation conflict
type war
['Somerville Hastings', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?r WHERE { resource:Somerville_Hastings property:conflict ?r . ?r rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q7559969,P607,c(Q198))
action filter_type
action find
entity Q7559969
relation P607
type Q198
Somerville Hastings took part in [ANSWER]
['Q7559969', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?r WHERE { resource:Q7559969 property:P607 ?r . ?r rdf:type ontology:Q198 }
World War I
Somerville Hastings took part in World War I
World War I
action filter_type
action find
entity Somerville Hastings
relation conflict
type war
['Somerville Hastings', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?r WHERE { resource:Somerville_Hastings property:conflict ?r . ?r rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7559969
P102
Q7210356
USER
Which political organization is Somerville Hastings a member of ?
(Q7559969,P102,c(Q7210356))
action filter_type
action find
entity Q7559969
relation P102
type Q7210356
['Q7559969', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?v WHERE { resource:Q7559969 property:P102 ?v . ?v rdf:type ontology:Q7210356 }
Somerville Hastings
action filter_type
action find
entity Somerville Hastings
relation member of political party
type political organization
['Somerville Hastings', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?v WHERE { resource:Somerville_Hastings property:member_of_political_party ?v . ?v rdf:type ontology:political_organization }
[]
political organization
Q9630
SYSTEM
Labour Party
Q9630
(Q7559969,P102,c(Q7210356))
action filter_type
action find
entity Q7559969
relation P102
type Q7210356
The [ANSWER] is Somerville Hastings a member of
['Q7559969', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?v WHERE { resource:Q7559969 property:P102 ?v . ?v rdf:type ontology:Q7210356 }
Labour Party
The Labour Party is Somerville Hastings a member of
Labour Party
action filter_type
action find
entity Somerville Hastings
relation member of political party
type political organization
['Somerville Hastings', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?v WHERE { resource:Somerville_Hastings property:member_of_political_party ?v . ?v rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7559969
P937
Q56061
USER
What is the work location of that person ?
(Q9630,P937,c(Q56061))
action filter_type
action find
entity Q7559969
relation P937
type Q56061
['Q9630', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q7559969 property:P937 ?j . ?j rdf:type ontology:Q56061 }
Somerville Hastings
action filter_type
action find
entity Somerville Hastings
relation work location
type administrative territorial entity
['Labour Party', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Somerville_Hastings property:work_location ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q9630,P937,c(Q56061))
action filter_type
action find
entity Q7559969
relation P937
type Q56061
The work location of that person is in [ANSWER]
['Q9630', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q7559969 property:P937 ?j . ?j rdf:type ontology:Q56061 }
London
The work location of that person is in London
London
action filter_type
action find
entity Somerville Hastings
relation work location
type administrative territorial entity
['Labour Party', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Somerville_Hastings property:work_location ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q84 Q1435
P190
Q13220204
USER
Is Zagreb twin town of that administrative territory ?
(Q84,P190,Q1435)
action is_in
entity Q1435
action find
entity Q84
relation P190
['Q84', 'P190', 'Q1435']
ASK WHERE { resource:Q84 property:P190 resource:Q1435 }
London Zagreb
action is_in
entity Zagreb
action find
entity London
relation sister city
['London', 'sister city', 'Zagreb']
ASK WHERE { resource:London property:sister_city resource:Zagreb }
[]
second-level administrative country subdivision
SYSTEM
YES
(Q84,P190,Q1435)
action is_in
entity Q1435
action find
entity Q84
relation P190
[ANSWER]
['Q84', 'P190', 'Q1435']
ASK WHERE { resource:Q84 property:P190 resource:Q1435 }
Yes
action is_in
entity Zagreb
action find
entity London
relation sister city
['London', 'sister city', 'Zagreb']
ASK WHERE { resource:London property:sister_city resource:Zagreb }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q84
P206
Q355304
USER
Which watercourse is situated close to London ?
(Q84,P206,c(Q355304))
action filter_type
action find
entity Q84
relation P206
type Q355304
['Q84', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?q WHERE { resource:Q84 property:P206 ?q . ?q rdf:type ontology:Q355304 }
London
action filter_type
action find
entity London
relation located next to body of water
type watercourse
['London', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?q WHERE { resource:London property:located_next_to_body_of_water ?q . ?q rdf:type ontology:watercourse }
[]
watercourse
Q19686
SYSTEM
River Thames
Q19686
(Q84,P206,c(Q355304))
action filter_type
action find
entity Q84
relation P206
type Q355304
In [ANSWER] is situated close to London
['Q84', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?q WHERE { resource:Q84 property:P206 ?q . ?q rdf:type ontology:Q355304 }
River Thames
In River Thames is situated close to London
River Thames
action filter_type
action find
entity London
relation located next to body of water
type watercourse
['London', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?q WHERE { resource:London property:located_next_to_body_of_water ?q . ?q rdf:type ontology:watercourse }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1281618
P180
Q12737077 Q3305213 Q1792379
USER
How many occupations are expressed in around the same number of paintings and art genres as sculptor ?
(c(Q3305213)|c(Q1792379),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q1281618
relation P180
type Q3305213
type Q1792379
[[{'concept': 'Q3305213'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:P180 resource:Q1281618 . { VALUES ( ?v ) { ( ontology:Q3305213 ) ( ontology:Q1792379 ) } . ?z rdf:type ?v } } } . FILTER ( ?r = ?k ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:Q3305213 ) ( ontology:Q1792379 ) } } GROUP BY ?y } }
sculptor
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action count
action filter_multi_types
action find_reverse
entity sculptor
relation depicts
type painting
type art genre
[[{'concept': 'painting'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:depicts resource:sculptor . { VALUES ( ?v ) { ( ontology:painting ) ( ontology:art_genre ) } . ?z rdf:type ?v } } } . FILTER ( ?r = ?k ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:painting ) ( ontology:art_genre ) } } GROUP BY ?y } }
[]
occupation painting art genre
SYSTEM
31
Q131512 Q1401609 Q1124183 Q2079936 Q81710 Q1259917 Q4504549 Q842782 Q486748 Q483501 Q215536 Q1139055 Q1028181 Q12097 Q14009165 Q10833314 Q1318187 Q250867 Q10873124 Q103163 Q207651 Q5716684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q1281618 Q811122 Q1630100
(c(Q3305213)|c(Q1792379),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q1281618
relation P180
type Q3305213
type Q1792379
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:P180 resource:Q1281618 . { VALUES ( ?v ) { ( ontology:Q3305213 ) ( ontology:Q1792379 ) } . ?z rdf:type ?v } } } . FILTER ( ?r = ?k ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:Q3305213 ) ( ontology:Q1792379 ) } } GROUP BY ?y } }
farmer vaquero lumberjack king of marksmen shepherd violinist religious servant detective pianist artist merchant tax collector painter king trapper tennis player scrivener Catholic priest chess player abbot executioner dancer maid picador peasant fisherman musician poet sculptor construction worker art model
31
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action count
action filter_multi_types
action find_reverse
entity sculptor
relation depicts
type painting
type art genre
[[{'concept': 'painting'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:depicts resource:sculptor . { VALUES ( ?v ) { ( ontology:painting ) ( ontology:art_genre ) } . ?z rdf:type ?v } } } . FILTER ( ?r = ?k ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:painting ) ( ontology:art_genre ) } } GROUP BY ?y } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q838811
P180
Q12737077 Q3305213 Q1792379
USER
And what about peasant?
(c(Q3305213)|c(Q1792379),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q838811
relation P180
type Q3305213
type Q1792379
[[{'concept': 'Q3305213'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?t ) WHERE { ?u rdf:type ?p . VALUES ( ?p ) { ( ontology:Q1792379 ) ( ontology:Q3305213 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:P180 resource:Q838811 . { { ?c rdf:type ontology:Q3305213 } UNION { ?c rdf:type ontology:Q1792379 } } } } . FILTER ( ?t = ?q ) }
peasant
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action count
action filter_multi_types
action find_reverse
entity peasant
relation depicts
type painting
type art genre
[[{'concept': 'painting'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?t ) WHERE { ?u rdf:type ?p . VALUES ( ?p ) { ( ontology:art_genre ) ( ontology:painting ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:depicts resource:peasant . { { ?c rdf:type ontology:painting } UNION { ?c rdf:type ontology:art_genre } } } } . FILTER ( ?t = ?q ) }
[]
occupation painting art genre
SYSTEM
31
Q131512 Q1401609 Q1124183 Q2079936 Q81710 Q1259917 Q4504549 Q842782 Q486748 Q483501 Q215536 Q1139055 Q1028181 Q12097 Q14009165 Q10833314 Q1318187 Q250867 Q10873124 Q103163 Q207651 Q5716684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q1281618 Q811122 Q1630100
(c(Q3305213)|c(Q1792379),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q838811
relation P180
type Q3305213
type Q1792379
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?t ) WHERE { ?u rdf:type ?p . VALUES ( ?p ) { ( ontology:Q1792379 ) ( ontology:Q3305213 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:P180 resource:Q838811 . { { ?c rdf:type ontology:Q3305213 } UNION { ?c rdf:type ontology:Q1792379 } } } } . FILTER ( ?t = ?q ) }
farmer vaquero lumberjack king of marksmen shepherd violinist religious servant detective pianist artist merchant tax collector painter king trapper tennis player scrivener Catholic priest chess player abbot executioner dancer maid picador peasant fisherman musician poet sculptor construction worker art model
31
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action count
action filter_multi_types
action find_reverse
entity peasant
relation depicts
type painting
type art genre
[[{'concept': 'painting'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?t ) WHERE { ?u rdf:type ?p . VALUES ( ?p ) { ( ontology:art_genre ) ( ontology:painting ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:depicts resource:peasant . { { ?c rdf:type ontology:painting } UNION { ?c rdf:type ontology:art_genre } } } } . FILTER ( ?t = ?q ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q36180 Q838811
P106
Q502895
USER
Which people have career as peasant and writer ?
AND((c(Q502895),P106,Q838811), (c(Q502895),P106,Q36180))
action filter_type
action intersection
action find_reverse
entity Q838811
relation P106
action find_reverse
entity Q36180
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q838811'], [{'concept': 'Q502895'}, 'P106', 'Q36180']]}
SELECT DISTINCT ?a WHERE { ?a property:P106 resource:Q838811 . ?a property:P106 resource:Q36180 . ?a rdf:type ontology:Q502895 }
writer peasant
action filter_type
action intersection
action find_reverse
entity peasant
relation occupation
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'peasant'], [{'concept': 'common name'}, 'occupation', 'writer']]}
SELECT DISTINCT ?a WHERE { ?a property:occupation resource:peasant . ?a property:occupation resource:writer . ?a rdf:type ontology:common_name }
[]
common name
Q24358522
SYSTEM
Francis André
Q24358522
AND((c(Q502895),P106,Q838811), (c(Q502895),P106,Q36180))
action filter_type
action intersection
action find_reverse
entity Q838811
relation P106
action find_reverse
entity Q36180
relation P106
type Q502895
[ANSWER] have career as peasant and writer
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q838811'], [{'concept': 'Q502895'}, 'P106', 'Q36180']]}
SELECT DISTINCT ?a WHERE { ?a property:P106 resource:Q838811 . ?a property:P106 resource:Q36180 . ?a rdf:type ontology:Q502895 }
Francis André
Francis André have career as peasant and writer
Francis André
action filter_type
action intersection
action find_reverse
entity peasant
relation occupation
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'peasant'], [{'concept': 'common name'}, 'occupation', 'writer']]}
SELECT DISTINCT ?a WHERE { ?a property:occupation resource:peasant . ?a property:occupation resource:writer . ?a rdf:type ontology:common_name }
[]