Simple Question (Direct)
Simple Question
Q1290415
P20
Q515
USER
Where did Eduard Windthorst expire ?
(Q1290415,P20,c(Q515))
action filter_type
action find
entity Q1290415
relation P20
type Q515
['Q1290415', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { resource:Q1290415 property:P20 ?g . ?g rdf:type ontology:Q515 }
Eduard Windthorst
action filter_type
action find
entity Eduard Windthorst
relation place of death
type city
['Eduard Windthorst', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { resource:Eduard_Windthorst property:place_of_death ?g . ?g rdf:type ontology:city }
[]
city
Q2880
SYSTEM
Hamm
Q2880
(Q1290415,P20,c(Q515))
action filter_type
action find
entity Q1290415
relation P20
type Q515
Eduard Windthorst expired [ANSWER]
['Q1290415', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { resource:Q1290415 property:P20 ?g . ?g rdf:type ontology:Q515 }
Hamm
Eduard Windthorst expired Hamm
Hamm
action filter_type
action find
entity Eduard Windthorst
relation place of death
type city
['Eduard Windthorst', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { resource:Eduard_Windthorst property:place_of_death ?g . ?g rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1290415
P937
Q56061
USER
Where did that person work ?
(Q2880,P937,c(Q56061))
action filter_type
action find
entity Q1290415
relation P937
type Q56061
['Q2880', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1290415 property:P937 ?t . ?t rdf:type ontology:Q56061 }
Eduard Windthorst
action filter_type
action find
entity Eduard Windthorst
relation work location
type administrative territorial entity
['Hamm', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Eduard_Windthorst property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q2880,P937,c(Q56061))
action filter_type
action find
entity Q1290415
relation P937
type Q56061
That person worked in [ANSWER]
['Q2880', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1290415 property:P937 ?t . ?t rdf:type ontology:Q56061 }
Berlin
That person worked in Berlin
Berlin
action filter_type
action find
entity Eduard Windthorst
relation work location
type administrative territorial entity
['Hamm', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Eduard_Windthorst property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q64
P937
Q7210356 Q7275
USER
How many political organizations and states have Berlin as their work location ?
(c(Q7210356),P937,Q64) (c(Q7275),P937,Q64)
action count
action union
action filter_type
action find_reverse
entity Q64
relation P937
type Q7210356
action filter_type
action find_reverse
entity Q64
relation P937
type Q7275
[{'concept': 'Q7210356'}, 'P937', 'Q64'] [{'concept': 'Q7275'}, 'P937', 'Q64']
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:Q7210356 ) ( ontology:Q7275 ) } }
Berlin
action count
action union
action filter_type
action find_reverse
entity Berlin
relation work location
type political organization
action filter_type
action find_reverse
entity Berlin
relation work location
type state
[{'concept': 'political organization'}, 'work location', 'Berlin'] [{'concept': 'state'}, 'work location', 'Berlin']
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:political_organization ) ( ontology:state ) } }
[]
political organization state
SYSTEM
1 political organizations and 1 states
Q13124 Q980
(c(Q7210356),P937,Q64) (c(Q7275),P937,Q64)
action count
action union
action filter_type
action find_reverse
entity Q64
relation P937
type Q7210356
action filter_type
action find_reverse
entity Q64
relation P937
type Q7275
[ANSWER]
[{'concept': 'Q7210356'}, 'P937', 'Q64'] [{'concept': 'Q7275'}, 'P937', 'Q64']
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:Q7210356 ) ( ontology:Q7275 ) } }
Free Democratic Party Bavaria
1 political organizations and 1 states
action count
action union
action filter_type
action find_reverse
entity Berlin
relation work location
type political organization
action filter_type
action find_reverse
entity Berlin
relation work location
type state
[{'concept': 'political organization'}, 'work location', 'Berlin'] [{'concept': 'state'}, 'work location', 'Berlin']
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:political_organization ) ( ontology:state ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q11369731 Q64
P19 P190
Q56061
USER
Which administrative territories are twin cities of Berlin and are the places of birth of Takeshi Kuno ?
AND((Q64,P190,c(Q56061)), (Q11369731,P19,c(Q56061)))
action filter_type
action intersection
action find
entity Q64
relation P190
action find
entity Q11369731
relation P19
type Q56061
{'AND': [['Q64', 'P190', {'concept': 'Q56061'}], ['Q11369731', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { resource:Q64 property:P190 ?h . resource:Q11369731 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Takeshi Kuno Berlin
action filter_type
action intersection
action find
entity Berlin
relation sister city
action find
entity Takeshi Kuno
relation place of birth
type administrative territorial entity
{'AND': [['Berlin', 'sister city', {'concept': 'administrative territorial entity'}], ['Takeshi Kuno', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { resource:Berlin property:sister_city ?h . resource:Takeshi_Kuno property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1490
SYSTEM
Tokyo
Q1490
AND((Q64,P190,c(Q56061)), (Q11369731,P19,c(Q56061)))
action filter_type
action intersection
action find
entity Q64
relation P190
action find
entity Q11369731
relation P19
type Q56061
[ANSWER] is twin cities of Berlin and is the places of birth of Takeshi Kuno
{'AND': [['Q64', 'P190', {'concept': 'Q56061'}], ['Q11369731', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { resource:Q64 property:P190 ?h . resource:Q11369731 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Tokyo
Tokyo is twin cities of Berlin and is the places of birth of Takeshi Kuno
Tokyo
action filter_type
action intersection
action find
entity Berlin
relation sister city
action find
entity Takeshi Kuno
relation place of birth
type administrative territorial entity
{'AND': [['Berlin', 'sister city', {'concept': 'administrative territorial entity'}], ['Takeshi Kuno', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { resource:Berlin property:sister_city ?h . resource:Takeshi_Kuno property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P190
Q515 Q20667921 Q515
USER
How many cities are partner towns of around 7 french administrative divisions or cities ?
(c(Q20667921)|c(Q515),P190,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q20667921
action find_reverse_tuple_counts
relation P190
type Q515
type Q515
value 7
[[{'concept': 'Q20667921'}, {'concept': 'Q515'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?i WHERE { ?n rdf:type ?u . VALUES ( ?u ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } } GROUP BY ?i } . FILTER ( ?q = 7 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation sister city
type city
type type of french administrative division
action find_reverse_tuple_counts
relation sister city
type city
type city
value 7
[[{'concept': 'type of french administrative division'}, {'concept': 'city'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?i WHERE { ?n rdf:type ?u . VALUES ( ?u ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } } GROUP BY ?i } . FILTER ( ?q = 7 ) }
[]
city type of french administrative division city
SYSTEM
9
Q2887 Q19689 Q1486 Q1461 Q2079 Q166829 Q2207 Q851056 Q3616
(c(Q20667921)|c(Q515),P190,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q20667921
action find_reverse_tuple_counts
relation P190
type Q515
type Q515
value 7
[ANSWER]
[[{'concept': 'Q20667921'}, {'concept': 'Q515'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?i WHERE { ?n rdf:type ?u . VALUES ( ?u ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } } GROUP BY ?i } . FILTER ( ?q = 7 ) }
Santiago Tirana Buenos Aires Manila Leipzig Miercurea Nirajului Naga Cristuru Secuiesc Tehran
9
action count
action approx
action union
action find_reverse_tuple_counts
relation sister city
type city
type type of french administrative division
action find_reverse_tuple_counts
relation sister city
type city
type city
value 7
[[{'concept': 'type of french administrative division'}, {'concept': 'city'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?i WHERE { ?n rdf:type ?u . VALUES ( ?u ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } } GROUP BY ?i } . FILTER ( ?q = 7 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1316778 Q64
P190 P937
Q56061
USER
Which administrative territories are partner towns of Berlin and are the work locations of Gero Pfennig ?
AND((Q64,P190,c(Q56061)), (Q1316778,P937,c(Q56061)))
action filter_type
action intersection
action find
entity Q64
relation P190
action find
entity Q1316778
relation P937
type Q56061
{'AND': [['Q64', 'P190', {'concept': 'Q56061'}], ['Q1316778', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { resource:Q64 property:P190 ?y . resource:Q1316778 property:P937 ?y . ?y rdf:type ontology:Q56061 }
Gero Pfennig Berlin
action filter_type
action intersection
action find
entity Berlin
relation sister city
action find
entity Gero Pfennig
relation work location
type administrative territorial entity
{'AND': [['Berlin', 'sister city', {'concept': 'administrative territorial entity'}], ['Gero Pfennig', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { resource:Berlin property:sister_city ?y . resource:Gero_Pfennig property:work_location ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q239
SYSTEM
Brussels
Q239
AND((Q64,P190,c(Q56061)), (Q1316778,P937,c(Q56061)))
action filter_type
action intersection
action find
entity Q64
relation P190
action find
entity Q1316778
relation P937
type Q56061
[ANSWER] is partner towns of Berlin and is the work locations of Gero Pfennig
{'AND': [['Q64', 'P190', {'concept': 'Q56061'}], ['Q1316778', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { resource:Q64 property:P190 ?y . resource:Q1316778 property:P937 ?y . ?y rdf:type ontology:Q56061 }
Brussels
Brussels is partner towns of Berlin and is the work locations of Gero Pfennig
Brussels
action filter_type
action intersection
action find
entity Berlin
relation sister city
action find
entity Gero Pfennig
relation work location
type administrative territorial entity
{'AND': [['Berlin', 'sister city', {'concept': 'administrative territorial entity'}], ['Gero Pfennig', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { resource:Berlin property:sister_city ?y . resource:Gero_Pfennig property:work_location ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q239 Q16240083
P937
Q502895
USER
Does Hugues Tatilon have that administrative territory as their work location ?
(Q16240083,P937,Q239)
action is_in
entity Q239
action find
entity Q16240083
relation P937
['Q16240083', 'P937', 'Q239']
ASK WHERE { resource:Q16240083 property:P937 resource:Q239 }
Brussels Hugues Tatilon
action is_in
entity Brussels
action find
entity Hugues Tatilon
relation work location
['Hugues Tatilon', 'work location', 'Brussels']
ASK WHERE { resource:Hugues_Tatilon property:work_location resource:Brussels }
[]
common name
SYSTEM
YES
(Q16240083,P937,Q239)
action is_in
entity Q239
action find
entity Q16240083
relation P937
[ANSWER]
['Q16240083', 'P937', 'Q239']
ASK WHERE { resource:Q16240083 property:P937 resource:Q239 }
Yes
action is_in
entity Brussels
action find
entity Hugues Tatilon
relation work location
['Hugues Tatilon', 'work location', 'Brussels']
ASK WHERE { resource:Hugues_Tatilon property:work_location resource:Brussels }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11928619 Q16240083
P27
Q15617994
USER
Which administrative territories are Hugues Tatilon or Josep Jurch i Rivas a civilian of ?
OR((Q16240083,P27,c(Q15617994)), (Q11928619,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16240083
relation P27
action find
entity Q11928619
relation P27
type Q15617994
{'OR': [['Q16240083', 'P27', {'concept': 'Q15617994'}], ['Q11928619', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { ?f property:P27 ?m . VALUES ( ?f ) { ( resource:Q16240083 ) ( resource:Q11928619 ) } } }
Josep Jurch i Rivas Hugues Tatilon
action filter_type
action union
action find
entity Hugues Tatilon
relation country of citizenship
action find
entity Josep Jurch i Rivas
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Hugues Tatilon', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Josep Jurch i Rivas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?f property:country_of_citizenship ?m . VALUES ( ?f ) { ( resource:Hugues_Tatilon ) ( resource:Josep_Jurch_i_Rivas ) } } }
[]
designation for an administrative territorial entity
Q142 Q29
SYSTEM
France, Spain
Q142 Q29
OR((Q16240083,P27,c(Q15617994)), (Q11928619,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16240083
relation P27
action find
entity Q11928619
relation P27
type Q15617994
[ANSWERS] are Hugues Tatilon or Josep Jurch i Rivas a civilian of
{'OR': [['Q16240083', 'P27', {'concept': 'Q15617994'}], ['Q11928619', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { ?f property:P27 ?m . VALUES ( ?f ) { ( resource:Q16240083 ) ( resource:Q11928619 ) } } }
France Spain
France and Spain are Hugues Tatilon or Josep Jurch i Rivas a civilian of
France Spain
action filter_type
action union
action find
entity Hugues Tatilon
relation country of citizenship
action find
entity Josep Jurch i Rivas
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Hugues Tatilon', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Josep Jurch i Rivas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?f property:country_of_citizenship ?m . VALUES ( ?f ) { ( resource:Hugues_Tatilon ) ( resource:Josep_Jurch_i_Rivas ) } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q24451146
P495
Q838948
USER
Does Boy Sleeping in a High Chair originate at those administrative territories ?
(Q24451146,P495,Q142) (Q24451146,P495,Q29)
action is_in
entity prev_answer
action find
entity Q24451146
relation P495
['Q24451146', 'P495', 'Q142'] ['Q24451146', 'P495', 'Q29']
ASK WHERE { VALUES ( ?j ) { ( resource:Q142 ) ( resource:Q29 ) } . resource:Q24451146 property:P495 ?j }
Boy Sleeping in a High Chair
action is_in
entity prev_answer
action find
entity Boy Sleeping in a High Chair
relation country of origin
['Boy Sleeping in a High Chair', 'country of origin', 'France'] ['Boy Sleeping in a High Chair', 'country of origin', 'Spain']
ASK WHERE { VALUES ( ?j ) { ( resource:France ) ( resource:Spain ) } . resource:Boy_Sleeping_in_a_High_Chair property:country_of_origin ?j }
[]
work of art
SYSTEM
NO
(Q24451146,P495,Q142) (Q24451146,P495,Q29)
action is_in
entity prev_answer
action find
entity Q24451146
relation P495
[ANSWER]
['Q24451146', 'P495', 'Q142'] ['Q24451146', 'P495', 'Q29']
ASK WHERE { VALUES ( ?j ) { ( resource:Q142 ) ( resource:Q29 ) } . resource:Q24451146 property:P495 ?j }
No
action is_in
entity prev_answer
action find
entity Boy Sleeping in a High Chair
relation country of origin
['Boy Sleeping in a High Chair', 'country of origin', 'France'] ['Boy Sleeping in a High Chair', 'country of origin', 'Spain']
ASK WHERE { VALUES ( ?j ) { ( resource:France ) ( resource:Spain ) } . resource:Boy_Sleeping_in_a_High_Chair property:country_of_origin ?j }
[]